/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #141414;
    --bg-soft: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-muted: #242424;
    --bg-hover: #2a2a2a;
    --gold: #f1c40f;
    --gold-dk: #d4a90c;
    --gold-lt: rgba(241,196,15,.12);
    --orange: #e8a000;
    --teal: #00b5ad;
    --txt: #e8e8e8;
    --txt2: #aaaaaa;
    --txt3: #666666;
    --line: #2c2c2c;
    --line2: #383838;
    --sh1: 0 1px 6px rgba(0,0,0,.55);
    --sh2: 0 4px 16px rgba(0,0,0,.65);
    --sh3: 0 8px 28px rgba(0,0,0,.75);
    --rad: 6px;
    --rad2: 4px;
    --rad3: 8px;
}

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

a { color: var(--txt2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.vp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.vp-header {
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.vp-header .vp-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.vp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vp-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.vp-sitename {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--gold);
    font-style: normal;
    letter-spacing: -.2px;
    text-decoration: none;
    border-bottom: none;
}

.vp-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(241,196,15,.08);
    border: 1px solid rgba(241,196,15,.2);
    border-radius: var(--rad2);
    padding: 4px 12px;
}

.vp-domain-tag .vdt-lbl {
    font-size: .67rem;
    color: var(--txt3);
    white-space: nowrap;
}

.vp-domain-tag .vdt-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.top-banner {
    margin: 4px 0 3px;
}
.top-banner img { border-radius: var(--rad); width: 100%; }

/* ===== CATEGORY NAV ===== */
.chan-nav {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.chan-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    min-height: 38px;
}

.chan-nav-row:last-child { border-bottom: none; }

.chan-zone-name {
    background: #111;
    color: var(--txt3);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--line);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.chan-link-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.chan-link-list a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--rad2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.chan-link-list a:hover {
    background: var(--gold-lt);
    color: var(--gold);
    border-color: rgba(241,196,15,.2);
}

.chan-link-list a.active {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.vp-search {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.vp-search form {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.vp-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--line2);
    border-radius: 17px;
    padding: 0 14px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg-muted);
    outline: none;
    transition: border-color .18s;
}

.vp-search input[type="text"]::placeholder { color: var(--txt3); }
.vp-search input[type="text"]:focus {
    border-color: var(--gold);
    background: var(--bg-hover);
}

.vp-search button {
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rad2);
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.vp-search button:hover { background: var(--bg-hover); color: var(--gold); }

.vp-search button[value="1"] {
    background: var(--gold);
    color: #111;
    font-weight: 700;
    border-radius: var(--rad2);
}
.vp-search button[value="1"]:hover { background: var(--gold-dk); color: #111; }

.vp-search button[value="2"] {
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    border: 1px solid var(--gold);
    border-radius: var(--rad2);
}
.vp-search button[value="2"]:hover { background: var(--gold-lt); }

/* ===== HOT TAGS ===== */
.hot-kwords {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.hot-kwords h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--txt3);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.kword-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kword-pills .kp {
    display: inline-block;
    background: var(--bg-muted);
    color: var(--txt2);
    border: 1px solid var(--line2);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.kword-pills .kp:hover {
    background: var(--gold-lt);
    color: var(--gold);
    border-color: rgba(241,196,15,.25);
}

/* ===== CONTENT SECTION ===== */
.vp-sect {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad3);
    padding: 11px 11px 9px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.vp-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line2);
    position: relative;
}

.vp-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.vp-sect-hd h3 {
    font-size: .96rem;
    font-weight: 700;
    color: var(--txt);
}

.vp-sect-hd h3 a { color: var(--txt); }
.vp-sect-hd h3 a:hover { color: var(--gold); }

.vp-sect-hd h4 {
    font-size: .94rem;
    font-weight: 700;
    color: var(--txt);
}

/* ===== FILM GRID ===== */
.vp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vp-grid li {
    border-radius: var(--rad);
    overflow: hidden;
    border: 1px solid var(--line2);
    background: var(--bg-muted);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.vp-grid li:hover {
    box-shadow: var(--sh3);
    border-color: rgba(241,196,15,.35);
    transform: translateY(-2px);
}

.vp-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}

.vp-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,.0);
    background: rgba(0,0,0,0);
    transition: all .2s;
}

.vp-thumb:hover::after {
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.4);
}

.vp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.vp-thumb:hover img { transform: scale(1.04); }

.vp-caption {
    padding: 5px 7px 7px;
}

.vp-caption h5 {
    font-size: .76rem;
    font-weight: 400;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vp-caption h5 a { color: var(--txt2); }
.vp-caption h5 a:hover { color: var(--gold); }

/* ===== PAGINATION ===== */
.vp-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.vp-pglist {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    justify-content: center;
}

.vp-pglist a.vpp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    font-size: .81rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.vp-pglist a.vpp:hover {
    background: var(--gold-lt);
    border-color: rgba(241,196,15,.3);
    color: var(--gold);
}

.vp-pglist a.vpp-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--rad2);
    font-size: .81rem;
    font-weight: 700;
    color: #111;
    cursor: default;
}

/* ===== FOOTER ===== */
.vp-flinks {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.fl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fl-row dd { display: inline; }

.fl-row a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 8px;
    border-radius: var(--rad2);
    border: 1px solid var(--line);
    background: var(--bg-muted);
    text-decoration: none;
    transition: all .15s;
}

.fl-row a:hover { color: var(--gold); border-color: rgba(241,196,15,.3); }

.vp-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-left: 3px solid var(--gold);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    color: var(--txt);
}

.detail-title a {
    color: var(--gold);
    font-weight: 700;
    margin-right: 6px;
}

.detail-specs {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

.shot-preview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.shot-preview picture,
.shot-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rad2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 11px 0;
}

.dl-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 22px;
    background: var(--gold);
    color: #111;
    border: none;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    letter-spacing: .2px;
}

.dl-pill:hover {
    background: var(--gold-dk);
    color: #111;
    transform: translateY(-1px);
}

.client-hint {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.client-hint a { color: var(--txt3); font-weight: 600; }
.client-hint a:hover { color: var(--gold); }

/* ===== SHARE ===== */
.vp-share {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-muted);
    border: 1px solid var(--line2);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.vp-share .vs-lbl { font-size: .73rem; color: var(--txt3); white-space: nowrap; }
.vp-share .vs-url { font-size: .76rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.vp-share .vs-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: var(--gold);
    color: #111;
    border: none;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.vp-share .vs-copy:hover { background: var(--gold-dk); }

/* ===== VIS HELPERS ===== */
.only-pc { display: block; }
.only-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .vp-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .only-pc { display: none; }
    .only-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .vp-sitename { font-size: 1.06rem; }
    .vp-domain-tag .vdt-val { font-size: .9rem; }

    .chan-nav-row { align-items: stretch; }

    .chan-zone-name {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chan-link-list {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 4px;
        align-items: center;
    }

    .chan-link-list a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: NO wrap, all in one row */
    .vp-search form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .vp-search input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 9px;
    }

    .vp-search button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

    .vp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .vp-thumb { aspect-ratio: 600 / 350; }
    .vp-caption h5 { font-size: .7rem; }
    .vp-sect { padding: 8px 8px 6px; }
    .dl-pill { padding: 8px 16px; font-size: .82rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .chan-zone-name { font-size: 10px; }
    .chan-link-list a { font-size: 13px; }
}

@media (max-width: 380px) {
    .chan-zone-name { font-size: 10px; }
    .chan-link-list a { font-size: 12px; }
    .vp-search button { padding: 0 4px; font-size: .66rem; }
}
