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

:root {
    --clr-bg: #f8f8f8;
    --clr-surface: #ffffff;
    --clr-surface2: #f1f1f1;
    --clr-border: #dddddd;
    --clr-border2: #c0c0c0;
    --clr-navy: #26374a;
    --clr-navy2: #1c2d3e;
    --clr-navy3: #335075;
    --clr-red: #b10e1e;
    --clr-red-dk: #8a0b17;
    --clr-red-bg: #f5e8ea;
    --clr-link: #284162;
    --clr-link-hv: #0535d2;
    --clr-txt: #333333;
    --clr-txt2: #555555;
    --clr-txt3: #767676;
    --clr-gold: #c47a00;
    --sh1: 0 1px 3px rgba(0,0,0,.08);
    --sh2: 0 2px 8px rgba(0,0,0,.12);
    --sh3: 0 4px 16px rgba(0,0,0,.15);
    --rad: 4px;
    --rad2: 3px;
    --rad3: 6px;
}

html { font-size: 15px; }

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

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

/* ===== LAYOUT WRAPPER ===== */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.site-hd {
    background: var(--clr-surface);
    border-bottom: 3px solid var(--clr-navy);
    padding: 8px 0;
    box-shadow: var(--sh1);
}

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

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

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

.hd-sitename {
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--clr-navy);
    font-style: normal;
    letter-spacing: -.2px;
    border-bottom: none;
    text-decoration: none;
}

.hd-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-navy);
    border-radius: var(--rad2);
    padding: 4px 12px;
}

.hd-domain-tag .dt-label {
    font-size: 0.64rem;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    letter-spacing: .3px;
}

.hd-domain-tag .dt-value {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-navy);
    border-radius: 0 0 var(--rad) var(--rad);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.nav-group {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-border);
    min-height: 36px;
}

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

.nav-group-lbl {
    background: var(--clr-navy);
    color: rgba(255,255,255,.8);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 58px;
    min-width: 58px;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .2px;
    flex-shrink: 0;
}

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

.nav-links-area a {
    font-size: .80rem;
    color: var(--clr-navy);
    padding: 3px 5px;
    border-radius: var(--rad2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-links-area a:hover {
    background: var(--clr-red-bg);
    color: var(--clr-red);
    border-color: #e8b0b6;
    text-decoration: none;
}

.nav-links-area a.active {
    background: var(--clr-navy);
    color: #fff;
    border-color: var(--clr-navy);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.srch-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-navy);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.srch-panel input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--clr-border2);
    border-radius: var(--rad2);
    padding: 0 10px;
    font-size: .86rem;
    color: var(--clr-txt);
    background: var(--clr-surface2);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.srch-panel input[type="text"]:focus {
    border-color: var(--clr-navy);
    background: var(--clr-surface);
    box-shadow: 0 0 0 2px rgba(38,55,74,.15);
}

.srch-panel button {
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: var(--rad2);
    background: var(--clr-navy);
    color: #fff;
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.srch-panel button:hover { background: var(--clr-navy2); }

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

.srch-panel button[value="2"] { background: var(--clr-gold); }
.srch-panel button[value="2"]:hover { background: #a36200; }

/* ===== HOT TAGS ===== */
.hotword-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.hotword-block h4 {
    font-size: .76rem;
    font-weight: 700;
    color: var(--clr-navy);
    margin-bottom: 5px;
}

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

.hw-list .hw-item {
    display: inline-block;
    background: var(--clr-surface2);
    color: var(--clr-link);
    border: 1px solid var(--clr-border2);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
}

.hw-list .hw-item:hover {
    background: var(--clr-red-bg);
    color: var(--clr-red);
    border-color: #e8b0b6;
    text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.sect-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad3);
    padding: 12px 12px 9px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

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

.sect-hd h3 a { color: var(--clr-navy); text-decoration: none; }
.sect-hd h3 a:hover { color: var(--clr-red); text-decoration: underline; }

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

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

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

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

.vod-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--clr-border);
}

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

.vod-thumb:hover img { transform: scale(1.04); }

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

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

.vod-meta h5 a { color: var(--clr-link); text-decoration: none; }
.vod-meta h5 a:hover { color: var(--clr-link-hv); text-decoration: underline; }

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

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

.page-nav-inner a.pn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border2);
    border-radius: var(--rad2);
    font-size: .81rem;
    color: var(--clr-link);
    text-decoration: none;
    transition: all .15s;
}

.page-nav-inner a.pn-btn:hover {
    background: var(--clr-navy);
    border-color: var(--clr-navy);
    color: #fff;
}

.page-nav-inner a.pn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--clr-navy);
    border: 1px solid var(--clr-navy);
    border-radius: var(--rad2);
    font-size: .81rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-sect {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-navy);
    border-radius: var(--rad);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.flink-wrap dd { display: inline; }

.flink-wrap a {
    display: inline-block;
    font-size: .74rem;
    color: var(--clr-txt3);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface2);
    text-decoration: none;
    transition: all .15s;
}

.flink-wrap a:hover { color: var(--clr-link-hv); border-color: var(--clr-link-hv); }

.cr-strip {
    text-align: center;
    padding: 6px 0 12px;
    color: var(--clr-txt3);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.dtl-bar {
    line-height: 1.8;
    text-align: center;
    padding: 11px 15px;
    font-size: .95rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-red);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
}

.dtl-bar a {
    color: var(--clr-red);
    font-weight: 700;
    margin-right: 6px;
    text-decoration: none;
}

.dtl-spec {
    font-size: .87rem;
    line-height: 1.9;
    padding: 13px 16px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

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

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

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

.dl-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 20px;
    background: var(--clr-navy);
    color: #fff;
    border: none;
    border-radius: var(--rad2);
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.dl-action:hover {
    background: var(--clr-red);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

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

.client-note a { color: var(--clr-navy); font-weight: 600; text-decoration: underline; }
.client-note a:hover { color: var(--clr-red); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-strip .ss-lbl { font-size: .74rem; color: var(--clr-txt3); white-space: nowrap; }
.share-strip .ss-url { font-size: .76rem; color: var(--clr-txt2); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--clr-navy);
    color: #fff;
    border: none;
    border-radius: var(--rad2);
    font-size: .77rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.share-strip .ss-btn:hover { background: var(--clr-red); }

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

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

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

    .hd-sitename { font-size: 1.0rem; }
    .hd-domain-tag .dt-value { font-size: .88rem; }

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

    .nav-group-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;
    }

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

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

    /* Search: all one row, no wrap */
    .srch-panel form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .srch-panel input[type="text"] {
        height: 33px;
        font-size: .76rem;
        padding: 0 6px;
    }

    .srch-panel button {
        height: 33px;
        padding: 0 6px;
        font-size: .71rem;
    }

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

    .vod-thumb { aspect-ratio: 600 / 350; }
    .vod-meta h5 { font-size: .71rem; }
    .sect-block { padding: 8px 8px 6px; }
    .dl-action { padding: 8px 13px; font-size: .82rem; }
}

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

@media (max-width: 380px) {
    .nav-group-lbl { font-size: 10px; }
    .nav-links-area a { font-size: 12px; }
    .srch-panel button { padding: 0 4px; font-size: .65rem; }
}
