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

:root {
    --bg-page: #2d1b69;
    --bg-deep: #1a0e3d;
    --bg-card: rgba(255,255,255,.10);
    --bg-card-solid: #3a2480;
    --purple: #7c3aed;
    --purple-lt: #9f67ff;
    --purple-dk: #5b21b6;
    --violet: #6d28d9;
    --pink-acc: #c084fc;
    --rose: #e879a0;
    --rose-dk: #be185d;
    --gold: #fbbf24;
    --white: #ffffff;
    --txt-main: #f0ebff;
    --txt-sub: #c4b5fd;
    --txt-muted: #a78bfa;
    --bdr: rgba(167,139,250,.22);
    --bdr2: rgba(167,139,250,.4);
    --shade1: 0 2px 8px rgba(109,40,217,.25);
    --shade2: 0 4px 16px rgba(109,40,217,.35);
    --shade3: 0 8px 30px rgba(109,40,217,.45);
    --grad-main: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a855f7 100%);
    --grad-hd: linear-gradient(135deg, #1a0e3d 0%, #3b0764 50%, #6d28d9 100%);
    --grad-btn: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --grad-btn2: linear-gradient(135deg, #be185d 0%, #e879a0 100%);
    --radius: 12px;
    --radius-sm: 7px;
    --radius-lg: 18px;
}

html { font-size: 15px; }

body {
    background: var(--bg-page);
    background-image: radial-gradient(ellipse at 20% 20%, rgba(167,139,250,.18) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 80%, rgba(232,121,160,.12) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--txt-main);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--grad-hd);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.top-bar .site-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.hd-brand-row {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

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

.hd-name {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: -.2px;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(192,132,252,.6);
}

.newest-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(192,132,252,.4);
    border-radius: 26px;
    padding: 4px 16px;
    backdrop-filter: blur(8px);
}

.newest-domain .nd-label {
    font-size: 0.67rem;
    color: var(--txt-sub);
    white-space: nowrap;
}

.newest-domain .nd-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(251,191,36,.4);
}

/* ===== BANNER ZONE ===== */
.bnr-row {
    margin: 5px 0 3px;
}
.bnr-row img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

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

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

.zone-lbl {
    background: rgba(109,40,217,.5);
    color: var(--txt-sub);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--bdr);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.zone-links a {
    font-size: .82rem;
    color: var(--txt-sub);
    padding: 4px 5px;
    border-radius: var(--radius-sm);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.zone-links a:hover {
    background: rgba(192,132,252,.2);
    color: var(--white);
    border-color: var(--bdr2);
}

.zone-links a.active {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(124,58,237,.4);
}

/* ===== SEARCH BAR ===== */
.search-row {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

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

.search-row input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--white);
    background: rgba(255,255,255,.08);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-row input[type="text"]::placeholder { color: var(--txt-muted); }

.search-row input[type="text"]:focus {
    border-color: var(--purple-lt);
    box-shadow: 0 0 0 3px rgba(159,103,255,.2);
    background: rgba(255,255,255,.12);
}

.search-row button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.15);
    color: var(--txt-main);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.search-row button:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }

.search-row button[value="1"] { background: var(--grad-btn); color: #fff; }
.search-row button[value="1"]:hover { opacity: .88; }

.search-row button[value="2"] { background: var(--grad-btn2); color: #fff; }
.search-row button[value="2"]:hover { opacity: .88; }

/* ===== HOT TAGS ===== */
.hot-words {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

.hot-words h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--pink-acc);
    margin-bottom: 5px;
}

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

.word-list .wt {
    display: inline-block;
    background: rgba(255,255,255,.08);
    color: var(--txt-sub);
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.word-list .wt:hover {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
}

/* ===== CONTENT SECTION ===== */
.ctn-sect {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius-lg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

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

.ctn-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
}

.ctn-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt-main);
}

.ctn-sect-hd h3 a { color: var(--txt-main); }
.ctn-sect-hd h3 a:hover { color: var(--pink-acc); }

.ctn-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt-main);
}

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

.vod-grid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: rgba(0,0,0,.2);
    transition: box-shadow .2s, transform .2s;
}

.vod-grid li:hover {
    box-shadow: var(--shade3);
    transform: translateY(-2px);
    border-color: var(--bdr2);
}

.vod-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: rgba(0,0,0,.3);
}

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

.vod-cover:hover img { transform: scale(1.06); }

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

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

.vod-caption h5 a { color: var(--txt-sub); }
.vod-caption h5 a:hover { color: var(--white); }

/* ===== PAGINATION ===== */
.pg-bar {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

.pg-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.pg-btns-row a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
    backdrop-filter: blur(8px);
}

.pg-btns-row a.pgb:hover {
    background: rgba(192,132,252,.2);
    border-color: var(--purple-lt);
    color: var(--white);
}

.pg-btns-row a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--grad-btn);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(124,58,237,.4);
}

/* ===== FOOTER ===== */
.ftr-links-box {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

.ftr-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ftr-link-row dd { display: inline; }

.ftr-link-row a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-muted);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: rgba(255,255,255,.05);
    text-decoration: none;
    transition: all .18s;
}

.ftr-link-row a:hover { color: var(--white); border-color: var(--bdr2); background: rgba(255,255,255,.12); }

.copy-notice {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-muted);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.item-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--purple-lt);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    backdrop-filter: blur(12px);
}

.item-title a {
    color: var(--pink-acc);
    font-weight: 700;
    margin-right: 6px;
}

.item-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    margin: 5px 0;
    backdrop-filter: blur(12px);
}

.prev-wrap {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.prev-wrap picture,
.prev-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

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

.dload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(124,58,237,.35);
}

.dload-btn:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124,58,237,.5);
}

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

.client-tip a { color: var(--pink-acc); font-weight: 600; }
.client-tip a:hover { color: var(--white); }

/* ===== SHARE BAR ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.share-bar .shr-label { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; }
.share-bar .shr-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.share-bar .shr-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.share-bar .shr-copy-btn:hover { opacity: .85; transform: translateY(-1px); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .vod-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; }

    .hd-name { font-size: 1.06rem; }
    .newest-domain .nd-val { font-size: .92rem; }

    .nav-line { align-items: stretch; }

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

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

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

    .search-row form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

    .vod-cover { aspect-ratio: 600 / 350; }
    .vod-caption h5 { font-size: .72rem; }
    .ctn-sect { padding: 9px 9px 7px; }
    .dload-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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