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

:root {
    --bg-page: #1a0a2e;
    --bg-card: #ffffff;
    --bg-card2: #f4f0fc;
    --bg-card3: #ede8f8;
    --purple: #7c3aed;
    --purple-dk: #5b21b6;
    --purple-lt: #a855f7;
    --pink: #ec4899;
    --pink-dk: #be185d;
    --violet: #8b5cf6;
    --grad-hd: linear-gradient(135deg, #3b0764 0%, #6d28d9 40%, #a855f7 80%, #ec4899 100%);
    --grad-nav: linear-gradient(135deg, #2e1065 0%, #5b21b6 100%);
    --grad-btn: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --txt-light: #ffffff;
    --txt-light2: rgba(255,255,255,.75);
    --txt-light3: rgba(255,255,255,.45);
    --txt: #1e1035;
    --txt2: #3d2a6e;
    --txt3: #7c6aa0;
    --bdr: rgba(124,58,237,.18);
    --bdr2: rgba(124,58,237,.30);
    --bdr-card: #e4d9f8;
    --sh1: 0 2px 10px rgba(124,58,237,.15);
    --sh2: 0 4px 20px rgba(124,58,237,.22);
    --sh3: 0 8px 32px rgba(124,58,237,.30);
    --r: 10px;
    --r2: 6px;
    --r3: 14px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.site-header {
    background: var(--grad-hd);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(124,58,237,.4);
}

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

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

.brand-anchor {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-name {
    font-size: 1.42rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 22px;
    padding: 4px 15px;
    backdrop-filter: blur(4px);
}

.domain-pill .dp-tag {
    font-size: 0.7rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.domain-pill .dp-url {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--grad-nav);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh2);
}

.nav-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 38px;
}

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

.zone-name {
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.8);
    font-size: 10px;
    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,.08);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-link-set a {
    font-size: .82rem;
    color: rgba(255,255,255,.82);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-link-set a:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.nav-link-set a.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.query-box {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    backdrop-filter: blur(8px);
}

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

.query-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 0 16px;
    font-size: .88rem;
    color: #fff;
    background: rgba(255,255,255,.12);
    outline: none;
    transition: border-color .2s, background .2s;
}

.query-box input[type="text"]::placeholder { color: rgba(255,255,255,.45); }

.query-box input[type="text"]:focus {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.18);
}

.query-box button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.query-box button:hover { background: rgba(255,255,255,.32); }

.query-box button[value="1"] { background: var(--grad-btn); }
.query-box button[value="1"]:hover { background: var(--pink-dk); }

.query-box button[value="2"] {
    background: rgba(236,72,153,.35);
    border: 1px solid rgba(236,72,153,.55);
}
.query-box button[value="2"]:hover { background: var(--pink); }

/* ===== HOT TAGS ===== */
.trending-box {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    backdrop-filter: blur(8px);
}

.trending-box h4 {
    font-size: .79rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin-bottom: 5px;
}

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

.trend-tags .tt {
    display: inline-block;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.trend-tags .tt:hover {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

/* ===== CONTENT SECTION ===== */
.content-panel {
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.panel-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
}

.panel-title h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt);
}

.panel-title h3 a { color: var(--txt); }
.panel-title h3 a:hover { color: var(--purple); }

.panel-title h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
}

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

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

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

.media-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-card3);
}

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

.media-cover:hover img { transform: scale(1.04); }

.media-desc {
    padding: 5px 7px 7px;
}

.media-desc 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;
}

.media-desc h5 a { color: var(--txt); }
.media-desc h5 a:hover { color: var(--purple); }

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

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

.pg-nums a.gp {
    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(--bdr-card);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pg-nums a.gp:hover {
    background: var(--bg-card3);
    border-color: var(--purple);
    color: var(--purple);
}

.pg-nums a.gp-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 var(--purple);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.footer-links {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    backdrop-filter: blur(8px);
}

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

.fls-list dd { display: inline; }

.fls-list a {
    display: inline-block;
    font-size: .77rem;
    color: rgba(255,255,255,.55);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    text-decoration: none;
    transition: all .18s;
}

.fls-list a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.14);
}

.bottom-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: rgba(255,255,255,.35);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.entry-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-left: 4px solid var(--purple-lt);
    border-radius: var(--r);
    box-shadow: var(--sh1);
}

.entry-heading a {
    color: var(--purple);
    font-weight: 700;
    margin-right: 6px;
}

.entry-details {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.snap-viewer {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.snap-viewer picture,
.snap-viewer img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

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

.dl-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

.dl-pill:hover {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
}

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

.client-note a { color: rgba(255,255,255,.7); font-weight: 600; }
.client-note a:hover { color: #fff; }

/* ===== SHARE BAR ===== */
.copy-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
    backdrop-filter: blur(6px);
}

.copy-strip .cs-lbl { font-size: .77rem; color: rgba(255,255,255,.5); white-space: nowrap; }
.copy-strip .cs-url { font-size: .79rem; color: rgba(255,255,255,.75); flex: 1; min-width: 0; word-break: break-all; }

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

.copy-strip .cs-btn:hover { opacity: .82; }

/* ===== VIS HELPERS ===== */
.only-desktop { display: block; }
.only-mobile { display: none; }

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

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

    .brand-name { font-size: 1.06rem; }
    .domain-pill .dp-url { font-size: .94rem; }

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

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

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

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

    /* Search: single row, no wrap */
    .query-box form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

    .query-box button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

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

    .media-cover { aspect-ratio: 600 / 350; }
    .media-desc h5 { font-size: .72rem; }
    .content-panel { padding: 9px 9px 7px; }
    .dl-pill { padding: 9px 16px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .zone-name { font-size: 10px; }
    .nav-link-set a { font-size: 12px; }
    .query-box button { padding: 0 5px; font-size: .68rem; }
}
