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

:root {
    --bg: #f5f7f6;
    --bg2: #edf1ef;
    --bg3: #e2e8e5;
    --teal: #003d38;
    --teal-dk: #00261f;
    --teal-md: #005c52;
    --teal-lt: #007a6b;
    --teal-pale: #e0efed;
    --teal-line: #b3d5d0;
    --green: #3dba8c;
    --green-dk: #2d9a70;
    --green-bg: #e8f7f2;
    --white: #ffffff;
    --txt: #0d2421;
    --txt2: #2a4a44;
    --txt3: #6a8a84;
    --border: #d4e2de;
    --border2: #bdd1cc;
    --sh1: 0 1px 5px rgba(0,61,56,.08);
    --sh2: 0 3px 14px rgba(0,61,56,.13);
    --sh3: 0 6px 28px rgba(0,61,56,.18);
    --rad: 6px;
    --rad2: 4px;
    --rad3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.site-head {
    background: var(--teal-dk);
    border-bottom: 2px solid var(--teal-md);
    padding: 9px 0;
    box-shadow: 0 2px 10px rgba(0,38,31,.35);
}

.site-head .w-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

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

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

.brand-name {
    font-size: 1.36rem;
    font-weight: 800;
    color: #ffffff;
    font-style: normal;
    letter-spacing: -.2px;
    border-bottom: none;
    text-decoration: none;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(61,186,140,.15);
    border: 1px solid rgba(61,186,140,.3);
    border-radius: 22px;
    padding: 4px 14px;
}

.domain-tag .dt-caption {
    font-size: 0.68rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.domain-tag .dt-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.zone-tag {
    background: var(--teal);
    color: rgba(255,255,255,.82);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    width: 64px;
    min-width: 64px;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.nav-cats a:hover {
    background: var(--teal-pale);
    color: var(--teal);
    border-color: var(--teal-line);
}

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

/* ===== SEARCH ===== */
.search-bar {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 35px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rad2);
    padding: 0 11px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg);
    outline: none;
    transition: border-color .2s;
}

.search-bar input[type="text"]:focus {
    border-color: var(--teal-lt);
    background: var(--white);
}

.search-bar button {
    height: 35px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rad2);
    background: var(--teal);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.search-bar button:hover { background: var(--teal-md); }
.search-bar button[value="1"] { background: var(--teal-md); }
.search-bar button[value="1"]:hover { background: var(--teal-lt); }
.search-bar button[value="2"] { background: var(--green-dk); }
.search-bar button[value="2"]:hover { background: var(--green); }

/* ===== HOT TAGS ===== */
.hot-panel {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.hot-panel h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 5px;
}

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

.keyword-list .kw {
    display: inline-block;
    background: var(--teal-pale);
    color: var(--teal-md);
    border: 1px solid var(--teal-line);
    border-radius: 18px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .18s;
}

.keyword-list .kw:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* ===== CONTENT SECTION ===== */
.sect-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad3);
    padding: 12px 12px 9px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.sect-head h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--teal-dk);
}

.sect-head h3 a { color: var(--teal-dk); }
.sect-head h3 a:hover { color: var(--teal-lt); }

.sect-head h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--teal-dk);
}

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

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

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

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

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

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

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

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

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

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

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

.page-row a.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 33px;
    padding: 0 10px;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: var(--rad2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.page-row a.pbtn:hover {
    background: var(--teal-pale);
    border-color: var(--teal);
    color: var(--teal);
}

.page-row a.pbtn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 33px;
    padding: 0 10px;
    background: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: var(--rad2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ft-links-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.fl-row dd { display: inline; }

.fl-row a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    transition: all .18s;
}

.fl-row a:hover { color: var(--teal); border-color: var(--teal); }

.cr-note {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.dtl-head {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
}

.dtl-head a {
    color: var(--teal-lt);
    font-weight: 700;
    margin-right: 6px;
}

.dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 3px 0;
}

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

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

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

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

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

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

.cli-note a { color: var(--teal-dk); font-weight: 600; }
.cli-note a:hover { color: var(--teal-lt); }

/* ===== SHARE ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.share-bar .sb-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.share-bar .sb-link { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.share-bar .sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--rad2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.share-bar .sb-btn:hover { background: var(--teal-md); }

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

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

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

    .brand-name { font-size: 1.04rem; }
    .domain-tag .dt-value { font-size: .9rem; }

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

    .zone-tag {
        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-cats {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 4px;
        align-items: center;
    }

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

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

    .search-bar input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 6px;
    }

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

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

    .vod-cover { aspect-ratio: 600 / 350; }
    .vod-caption h5 { font-size: .71rem; }
    .sect-box { padding: 8px 8px 6px; }
    .act-btn { padding: 9px 13px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .zone-tag { font-size: 10px; }
    .nav-cats a { font-size: 12px; }
    .search-bar button { padding: 0 5px; font-size: .66rem; }
}
