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

:root {
    --jet: #000000;
    --near-black: #111111;
    --bg: #f7f7f7;
    --surface: #ffffff;
    --raised: #f2f2f5;
    --vs-purple: #5b2ecc;
    --vs-purple-dk: #4520a8;
    --vs-purple-lt: rgba(91,46,204,.09);
    --vs-indigo: #3d1fa8;
    --accent2: #7c3aed;
    --ink: #111111;
    --body: #333333;
    --mid: #555555;
    --faint: #888888;
    --pale: #bbbbbb;
    --rule: #e2e2e8;
    --rule2: #d0d0da;
    --v1: 0 1px 4px rgba(0,0,0,.07);
    --v2: 0 3px 14px rgba(0,0,0,.10);
    --v3: 0 7px 28px rgba(0,0,0,.14);
    --vr: 6px;
    --vr2: 4px;
    --vr3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.vs-masthead {
    background: var(--jet);
    border-bottom: 3px solid var(--vs-purple);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.vs-masthead .vs-frame {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.vs-sitename {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--surface);
    font-style: normal;
    letter-spacing: .5px;
    text-decoration: none;
    border-bottom: none;
    border: 1.5px solid rgba(255,255,255,.25);
    padding: 3px 10px;
    border-radius: var(--vr2);
}

.vs-domain-node {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--vr2);
    padding: 4px 12px;
}

.vs-domain-node .vdn-hint {
    font-size: .67rem;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}

.vs-domain-node .vdn-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.vs-navpanel {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--vr3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--v1);
}

.vs-navrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
    min-height: 38px;
}

.vs-navrow:last-child { border-bottom: none; }

.vs-zone-chip {
    background: var(--jet);
    color: rgba(255,255,255,.75);
    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 rgba(255,255,255,.06);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.vs-catrow a:hover {
    background: var(--vs-purple-lt);
    color: var(--vs-purple);
    border-color: rgba(91,46,204,.2);
}

.vs-catrow a.active {
    background: var(--vs-purple);
    color: #fff;
    border-color: var(--vs-purple);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.vs-querybar {
    background: var(--jet);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--vr3);
    padding: 10px 14px;
    margin: 3px 0;
    box-shadow: var(--v1);
}

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

.vs-querybar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--vr2);
    padding: 0 16px;
    font-size: .9rem;
    color: var(--ink);
    background: var(--surface);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.vs-querybar input[type="text"]::placeholder { color: var(--pale); }
.vs-querybar input[type="text"]:focus {
    border-color: var(--vs-purple);
    box-shadow: 0 0 0 3px rgba(91,46,204,.15);
}

.vs-querybar button {
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: var(--vr2);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.vs-querybar button:hover { background: rgba(255,255,255,.25); }

.vs-querybar button[value="1"] {
    background: var(--vs-purple);
    color: #fff;
    font-weight: 700;
    border-radius: var(--vr2);
}
.vs-querybar button[value="1"]:hover { background: var(--vs-purple-dk); }

.vs-querybar button[value="2"] {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: var(--vr2);
}
.vs-querybar button[value="2"]:hover { background: rgba(255,255,255,.1); }

/* ===== HOT TAGS ===== */
.vs-hotbox {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--vr3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--v1);
}

.vs-hotbox h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--faint);
    margin-bottom: 5px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.vs-hotbox h4 strong { color: var(--vs-purple); }

.vs-hotlist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.vs-hotlist .vstag {
    display: inline-block;
    background: var(--raised);
    color: var(--mid);
    border: 1px solid var(--rule2);
    border-radius: var(--vr2);
    padding: 2px 9px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.vs-hotlist .vstag:hover {
    background: var(--vs-purple-lt);
    color: var(--vs-purple);
    border-color: rgba(91,46,204,.22);
}

/* ===== CONTENT SECTION ===== */
.vs-content {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--vr3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--v1);
}

.vs-content-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--jet);
    position: relative;
}

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

.vs-content-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--ink);
}

.vs-content-hd h3 a { color: var(--ink); }
.vs-content-hd h3 a:hover { color: var(--vs-purple); }

.vs-content-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--ink);
}

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

.vs-imgrid li {
    border-radius: var(--vr);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--raised);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.vs-imgrid li:hover {
    box-shadow: var(--v3);
    border-color: rgba(91,46,204,.35);
    transform: translateY(-2px);
}

.vs-thumbwrap {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #e8e4f4;
}

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

.vs-thumbwrap:hover img { transform: scale(1.04); }

.vs-thumblabel {
    padding: 5px 7px 7px;
}

.vs-thumblabel h5 {
    font-size: .75rem;
    font-weight: 400;
    color: var(--mid);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vs-thumblabel h5 a { color: var(--mid); }
.vs-thumblabel h5 a:hover { color: var(--vs-purple); }

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

.vs-pgitems {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.vs-pgitems a.vspg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--surface);
    border: 1.5px solid var(--rule2);
    border-radius: var(--vr2);
    font-size: .82rem;
    color: var(--mid);
    text-decoration: none;
    transition: all .15s;
}

.vs-pgitems a.vspg:hover {
    background: var(--vs-purple-lt);
    border-color: var(--vs-purple);
    color: var(--vs-purple);
}

.vs-pgitems a.vspg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--vs-purple);
    border: 1.5px solid var(--vs-purple);
    border-radius: var(--vr2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.vs-flinks {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--vr);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--v1);
}

.vs-fldl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.vs-fldl dd { display: inline; }

.vs-fldl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--pale);
    padding: 2px 9px;
    border-radius: var(--vr2);
    border: 1px solid var(--rule);
    background: var(--raised);
    text-decoration: none;
    transition: all .15s;
}

.vs-fldl a:hover { color: var(--vs-purple); border-color: rgba(91,46,204,.28); }

.vs-footcopy {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--pale);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.vs-item-ttl {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--vs-purple);
    border-radius: var(--vr);
    box-shadow: var(--v1);
    color: var(--ink);
}

.vs-item-ttl a {
    color: var(--vs-purple);
    font-weight: 700;
    margin-right: 6px;
}

.vs-item-meta {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--vr);
    box-shadow: var(--v1);
    margin: 3px 0;
    color: var(--mid);
}

.vs-snapview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.vs-snapview picture,
.vs-snapview img {
    width: 100%;
    height: auto;
    border-radius: var(--vr2);
    display: block;
}

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

.vs-dlbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    background: var(--vs-purple);
    color: #fff;
    border: none;
    border-radius: var(--vr2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    letter-spacing: .2px;
}

.vs-dlbtn:hover {
    background: var(--vs-purple-dk);
    color: #fff;
    transform: translateY(-1px);
}

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

.vs-clientnote a { color: var(--faint); font-weight: 600; }
.vs-clientnote a:hover { color: var(--vs-purple); }

/* ===== SHARE ===== */
.vs-sharebar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--raised);
    border: 1px solid var(--rule);
    border-radius: var(--vr);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.vs-sharebar .vsb-lbl { font-size: .73rem; color: var(--pale); white-space: nowrap; }
.vs-sharebar .vsb-url { font-size: .76rem; color: var(--mid); flex: 1; min-width: 0; word-break: break-all; }

.vs-sharebar .vsb-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--vs-purple);
    color: #fff;
    border: none;
    border-radius: var(--vr2);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.vs-sharebar .vsb-copy:hover { background: var(--vs-purple-dk); }

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

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

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

    .vs-sitename { font-size: 1.06rem; }
    .vs-domain-node .vdn-val { font-size: .9rem; }

    .vs-navrow { align-items: stretch; }

    .vs-zone-chip {
        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;
    }

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

    .vs-catrow 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 */
    .vs-querybar form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .vs-querybar input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 9px;
    }

    .vs-querybar button {
        height: 34px;
        padding: 0 6px;
        font-size: .72rem;
    }

    .vs-imgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .vs-thumbwrap { aspect-ratio: 600 / 350; }
    .vs-thumblabel h5 { font-size: .7rem; }
    .vs-content { padding: 8px 8px 6px; }
    .vs-dlbtn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .vs-zone-chip { font-size: 10px; }
    .vs-catrow a { font-size: 13px; }
}

@media (max-width: 380px) {
    .vs-zone-chip { font-size: 10px; }
    .vs-catrow a { font-size: 12px; }
    .vs-querybar button { padding: 0 4px; font-size: .66rem; }
}
