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

:root {
    --ink: #0d0f1a;
    --ink2: #141828;
    --ink3: #1c2235;
    --ink4: #232b40;
    --panel: #f0ede8;
    --panel2: #e8e5e0;
    --panel3: #dedad4;
    --red: #e8304a;
    --red-dk: #c42038;
    --red-lt: #fde8eb;
    --silver: #a0a8b8;
    --silver2: #6e788a;
    --silver3: #3a4258;
    --bone: #f7f4ef;
    --bone2: #ede9e3;
    --txt-on-dark: #e8eaf0;
    --txt-on-dark2: #9faabb;
    --txt-on-light: #1a1d28;
    --txt-on-light2: #4a4e60;
    --txt-on-light3: #888ea8;
    --sep-dark: rgba(255,255,255,.08);
    --sep-light: #d8d4ce;
    --shd1: 0 1px 4px rgba(13,15,26,.18);
    --shd2: 0 3px 14px rgba(13,15,26,.28);
    --shd3: 0 6px 28px rgba(13,15,26,.38);
    --rr: 6px;
    --rr2: 4px;
    --rr3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--ink2);
    border-bottom: 2px solid var(--red);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

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

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

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

.site-title-text {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    border-radius: 4px;
    padding: 4px 13px;
}

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

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

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

/* ===== CATEGORY NAV ===== */
.nav-module {
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

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

.nav-section-name {
    background: var(--ink4);
    color: var(--txt-on-dark2);
    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 var(--sep-dark);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-items-zone a {
    font-size: .82rem;
    color: var(--txt-on-dark2);
    padding: 3px 5px;
    border-radius: var(--rr2);
    transition: all .17s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-items-zone a:hover {
    background: rgba(232,48,74,.15);
    color: var(--red);
    border-color: rgba(232,48,74,.3);
}

.nav-items-zone a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.query-box {
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

.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 var(--silver3);
    border-radius: var(--rr2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-on-dark);
    background: var(--ink4);
    outline: none;
    transition: border-color .2s;
}

.query-box input[type="text"]::placeholder { color: var(--txt-on-dark2); }

.query-box input[type="text"]:focus {
    border-color: var(--red);
    background: var(--ink2);
}

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

.query-box button:hover { background: var(--silver2); }

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

.query-box button[value="2"] { background: #6c3fa0; }
.query-box button[value="2"]:hover { background: #542f80; }

/* ===== HOT KEYWORDS ===== */
.kwd-panel {
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

.kwd-panel h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--txt-on-dark);
    margin-bottom: 5px;
}

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

.kwd-row .kw {
    display: inline-block;
    background: var(--ink4);
    color: var(--txt-on-dark2);
    border: 1px solid var(--silver3);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .17s;
}

.kwd-row .kw:hover {
    background: rgba(232,48,74,.15);
    color: var(--red);
    border-color: rgba(232,48,74,.4);
}

/* ===== CONTENT SECTION ===== */
.section-card {
    background: var(--panel);
    border: 1px solid var(--panel3);
    border-radius: var(--rr3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--panel3);
    position: relative;
}

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

.sc-head h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt-on-light);
    letter-spacing: .3px;
}

.sc-head h3 a { color: var(--txt-on-light); }
.sc-head h3 a:hover { color: var(--red); }

.sc-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt-on-light);
    letter-spacing: .3px;
}

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

.poster-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--panel3);
    background: var(--ink2);
    transition: box-shadow .2s, transform .2s;
}

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

.poster-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--ink3);
}

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

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

.poster-caption {
    padding: 5px 7px 7px;
    background: var(--bone2);
}

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

.poster-caption h5 a { color: var(--txt-on-light); }
.poster-caption h5 a:hover { color: var(--red); }

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

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

.pager-inner a.pn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr2);
    font-size: .84rem;
    color: var(--txt-on-dark2);
    text-decoration: none;
    transition: all .17s;
}

.pager-inner a.pn:hover {
    background: rgba(232,48,74,.18);
    border-color: var(--red);
    color: var(--red);
}

.pager-inner a.pn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.links-footer {
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shd1);
}

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

.flink-set dd { display: inline; }

.flink-set a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-on-dark2);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--silver3);
    background: var(--ink4);
    text-decoration: none;
    transition: all .17s;
}

.flink-set a:hover { color: var(--red); border-color: var(--red); }

.bottom-note {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-on-dark2);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.vod-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-left: 4px solid var(--red);
    border-radius: var(--rr);
    box-shadow: var(--shd1);
    color: var(--txt-on-dark);
}

.vod-title-bar a {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
}

.vod-meta-box {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    box-shadow: var(--shd1);
    margin: 5px 0;
    color: var(--txt-on-dark);
}

.capture-zone {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.capture-zone picture,
.capture-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--rr2);
    display: block;
}

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

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

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

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

.client-hint a { color: var(--txt-on-dark); font-weight: 600; }
.client-hint a:hover { color: var(--red); }

/* ===== SHARE ROW ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--ink3);
    border: 1px solid var(--silver3);
    border-radius: var(--rr);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-row .sr-label { font-size: .77rem; color: var(--txt-on-dark2); white-space: nowrap; }
.share-row .sr-link { font-size: .79rem; color: var(--txt-on-dark2); flex: 1; min-width: 0; word-break: break-all; }

.share-row .sr-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--rr2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .17s;
    flex-shrink: 0;
}

.share-row .sr-copy:hover { background: var(--red-dk); }

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

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

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

    .site-title-text { font-size: 1.08rem; }
    .domain-tag .dt-addr { font-size: .9rem; }

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

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

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

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

    .query-box form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

    .poster-img { aspect-ratio: 600 / 350; }
    .poster-caption h5 { font-size: .72rem; }
    .section-card { padding: 9px 9px 7px; }
    .act-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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