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

:root {
    --bg: #ffffff;
    --bg-soft: #f4f6fb;
    --bg-muted: #eaecf5;
    --navy: #1e3a6e;
    --navy-dk: #152d56;
    --navy-mid: #2a4f92;
    --navy-nav: #2d4f8e;
    --pink: #e8185a;
    --pink-dk: #c4124a;
    --pink-bg: #fde8ef;
    --purple: #7b2d8b;
    --txt: #1a2340;
    --txt2: #3c4e6a;
    --txt3: #8d9ab5;
    --bdr: #dde3ef;
    --bdr2: #ccd4e6;
    --sh1: 0 1px 5px rgba(30,58,110,.07);
    --sh2: 0 3px 14px rgba(30,58,110,.11);
    --sh3: 0 6px 26px rgba(30,58,110,.17);
    --rad: 10px;
    --rad2: 6px;
    --rad3: 14px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.vx-topbar {
    background: var(--bg);
    border-bottom: 2px solid var(--bdr);
    padding: 9px 0;
    box-shadow: var(--sh1);
}

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

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

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

.vx-sitename {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--navy);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.vx-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    border-radius: 24px;
    padding: 5px 16px;
}

.vx-domain-tag .dt-lbl {
    font-size: 0.67rem;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

.vx-domain-tag .dt-url {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.vx-nav-box {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

.vx-zone-name {
    background: var(--navy-nav);
    color: rgba(255,255,255,.88);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.vx-links-grid a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 6px;
    border-radius: var(--rad2);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.vx-links-grid a:hover {
    background: var(--pink-bg);
    color: var(--pink);
    border-color: #f5a0be;
}

.vx-links-grid a.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.vx-search-box {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.vx-search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr2);
    border-radius: 20px;
    padding: 0 14px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s;
}

.vx-search-box input[type="text"]:focus {
    border-color: var(--pink);
    background: var(--bg);
}

.vx-search-box button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 20px;
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.vx-search-box button:hover { background: var(--navy-mid); }
.vx-search-box button[value="1"] { background: var(--pink); }
.vx-search-box button[value="1"]:hover { background: var(--pink-dk); }
.vx-search-box button[value="2"] { background: var(--purple); }
.vx-search-box button[value="2"]:hover { background: #5e1f6e; }

/* ===== HOT TAGS ===== */
.vx-hot-box {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.vx-hot-box h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.vx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vx-tags .vtag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--bdr2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.vx-tags .vtag:hover {
    background: var(--pink-bg);
    color: var(--pink);
    border-color: #f5a0be;
}

/* ===== CONTENT SECTION ===== */
.vx-sect {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.vx-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
}

.vx-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--navy);
}

.vx-sect-hd h3 a { color: var(--navy); }
.vx-sect-hd h3 a:hover { color: var(--pink); }

.vx-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--navy);
}

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

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

.vx-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
}

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

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

.vx-thumb:hover img { transform: scale(1.05); }

.vx-cap {
    padding: 5px 7px 7px;
}

.vx-cap h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vx-cap h5 a { color: var(--txt); }
.vx-cap h5 a:hover { color: var(--pink); }

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

.vx-pager-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.vx-pager-inner a.vxp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--bdr2);
    border-radius: var(--rad2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.vx-pager-inner a.vxp:hover {
    background: var(--pink-bg);
    border-color: var(--pink);
    color: var(--pink);
}

.vx-pager-inner a.vxp-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: var(--rad2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.vx-friendlinks {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.vx-flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vx-flink-list dd { display: inline; }

.vx-flink-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .18s;
}

.vx-flink-list a:hover { color: var(--pink); border-color: var(--pink); }

.vx-cr {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.vx-detail-hd {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-left: 4px solid var(--pink);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
}

.vx-detail-hd a {
    color: var(--pink);
    font-weight: 700;
    margin-right: 6px;
}

.vx-detail-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.vx-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

.vx-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

.vx-btn:hover {
    background: var(--pink-dk);
    color: #fff;
    transform: translateY(-1px);
}

.vx-client-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.vx-client-hint a { color: var(--navy); font-weight: 600; }
.vx-client-hint a:hover { color: var(--pink); }

/* ===== SHARE ===== */
.vx-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rad);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.vx-share-bar .sb-lbl { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.vx-share-bar .sb-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.vx-share-bar .sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.vx-share-bar .sb-btn:hover { background: var(--pink); }

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

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

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

    .vx-sitename { font-size: 1.06rem; }
    .vx-domain-tag .dt-url { font-size: .9rem; }

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

    .vx-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;
    }

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

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

    /* Search: all in one row no wrap */
    .vx-search-box form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .vx-search-box input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 8px;
    }

    .vx-search-box button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

    /* Film grid: 2 columns */
    .vx-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .vx-thumb { aspect-ratio: 600 / 350; }
    .vx-cap h5 { font-size: .72rem; }
    .vx-sect { padding: 9px 9px 7px; }
    .vx-btn { padding: 9px 16px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .vx-zone-name { font-size: 10px; }
    .vx-links-grid a { font-size: 12px; }
    .vx-search-box button { padding: 0 5px; font-size: .68rem; }
}
