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

:root {
    --bg-deep:     #0f1f0f;
    --bg-main:     #152815;
    --bg-card:     #1c3320;
    --bg-card2:    #213b25;
    --bg-hover:    #264429;
    --gold:        #c9a227;
    --gold-lt:     #e0b840;
    --gold-dk:     #a8851c;
    --gold-bg:     rgba(201,162,39,.12);
    --grn-acc:     #2e6b35;
    --grn-btn:     #2d6632;
    --grn-btn-h:   #357a3c;
    --txt-main:    #f0ede5;
    --txt-sub:     #b8c4b0;
    --txt-muted:   #6e8a6e;
    --bdr:         rgba(201,162,39,.18);
    --bdr-md:      rgba(201,162,39,.30);
    --bdr-card:    rgba(255,255,255,.07);
    --shd-xs:      0 1px 4px rgba(0,0,0,.38);
    --shd-sm:      0 3px 12px rgba(0,0,0,.48);
    --shd-md:      0 6px 24px rgba(0,0,0,.58);
    --r:           8px;
    --rsm:         5px;
    --rlg:         12px;
}

html { font-size: 15px; }

body {
    background: var(--bg-main);
    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(--gold); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold-lt); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.rwd-cf::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.top-hd {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--bdr);
    padding: 8px 0;
    box-shadow: var(--shd-xs);
}

.top-hd .gw {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

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

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

.brand-nm {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.url-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--bdr-md);
    border-radius: 20px;
    padding: 4px 13px;
}

.url-pill .up-lbl {
    font-size: 0.67rem;
    color: var(--txt-muted);
    white-space: nowrap;
}

.url-pill .up-val {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--gold-lt);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.cat-nav {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(201,162,39,.10);
    min-height: 38px;
}

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

.zone-nm {
    background: var(--bg-deep);
    color: var(--txt-muted);
    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 rgba(201,162,39,.10);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.cat-lks a:hover {
    background: var(--gold-bg);
    color: var(--gold-lt);
    border-color: rgba(201,162,39,.35);
}

.cat-lks a.active {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.sch-box {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

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

.sch-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--bdr-md);
    border-radius: var(--rsm);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--txt-main);
    background: var(--bg-deep);
    outline: none;
    transition: border-color .2s;
}

.sch-box input[type="text"]::placeholder { color: var(--txt-muted); }
.sch-box input[type="text"]:focus { border-color: var(--gold); }

.sch-box button {
    height: 36px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rsm);
    background: var(--grn-btn);
    color: var(--txt-main);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .17s, color .17s;
    flex-shrink: 0;
}

.sch-box button:hover { background: var(--grn-btn-h); }
.sch-box button[value="1"] { background: var(--gold-dk); color: #fff; }
.sch-box button[value="1"]:hover { background: var(--gold); color: var(--bg-deep); }
.sch-box button[value="2"] { background: var(--grn-acc); color: #fff; }
.sch-box button[value="2"]:hover { background: var(--grn-btn-h); }

/* ===== HOT TAGS ===== */
.htag-box {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

.htag-box h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

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

.htag-items .htag-lk {
    display: inline-block;
    background: var(--bg-deep);
    color: var(--txt-sub);
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .17s;
}

.htag-items .htag-lk:hover {
    background: var(--gold-bg);
    color: var(--gold-lt);
    border-color: rgba(201,162,39,.4);
}

/* ===== CONTENT SECTION ===== */
.mod-sect {
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-radius: var(--rlg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

.mod-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,162,39,.15);
    position: relative;
}

.mod-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.mod-hd h3 { font-size: .97rem; font-weight: 800; color: var(--gold-lt); }
.mod-hd h3 a { color: var(--gold-lt); }
.mod-hd h3 a:hover { color: var(--gold); }
.mod-hd h4 { font-size: .94rem; font-weight: 800; color: var(--gold-lt); }

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

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

.vod-list li:hover {
    box-shadow: var(--shd-md);
    transform: translateY(-2px);
    border-color: rgba(201,162,39,.32);
}

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

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

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

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

.vod-txt h5 {
    font-size: .77rem;
    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-txt h5 a { color: var(--txt-sub); }
.vod-txt h5 a:hover { color: var(--gold-lt); }

/* ===== PAGINATION ===== */
.pg-zone {
    margin: 13px 0 5px;
    display: flex;
    justify-content: center;
}

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

.pg-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(--bdr);
    border-radius: var(--rsm);
    font-size: .83rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .17s;
}

.pg-row a.pgb:hover {
    background: var(--gold-bg);
    border-color: var(--gold);
    color: var(--gold-lt);
}

.pg-row a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--rsm);
    font-size: .83rem;
    font-weight: 700;
    color: var(--bg-deep);
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-sect {
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

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

.flink-dl dd { display: inline; }

.flink-dl a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt-muted);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--bg-deep);
    text-decoration: none;
    transition: all .17s;
}

.flink-dl a:hover { color: var(--gold-lt); border-color: var(--bdr-md); }

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

/* ===== DETAIL PAGES ===== */
.dtl-ttl {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--gold);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    color: var(--txt-main);
}

.dtl-ttl a {
    color: var(--gold);
    font-weight: 700;
    margin-right: 6px;
}

.dtl-body {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--bg-card);
    border: 1px solid var(--bdr-card);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    margin: 5px 0;
    color: var(--txt-sub);
}

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

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

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

.dl-lnk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: var(--grn-btn);
    color: var(--txt-main);
    border: 1px solid rgba(201,162,39,.2);
    border-radius: var(--rsm);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .14s, color .2s;
    text-decoration: none;
}

.dl-lnk:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
    transform: translateY(-1px);
}

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

.client-tip a { color: var(--gold); font-weight: 600; }
.client-tip a:hover { color: var(--gold-lt); }

/* ===== SHARE BAR ===== */
.shr-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-deep);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.shr-line .sl-lbl { font-size: .76rem; color: var(--txt-muted); white-space: nowrap; }
.shr-line .sl-url { font-size: .78rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.shr-line .sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: var(--grn-btn);
    color: var(--txt-main);
    border: none;
    border-radius: var(--rsm);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .17s, color .17s;
    flex-shrink: 0;
}

.shr-line .sl-btn:hover { background: var(--gold); color: var(--bg-deep); }

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

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

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

    .brand-nm { font-size: 1.04rem; }
    .url-pill .up-val { font-size: .9rem; }

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

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

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

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

    /* Search: no wrap, all one row */
    .sch-box form {
        flex-wrap: nowrap;
        gap: 3px;
    }

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

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

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

    .vod-img { aspect-ratio: 600 / 350; }
    .vod-txt h5 { font-size: .71rem; }
    .mod-sect { padding: 9px 9px 7px; }
    .dl-lnk { padding: 9px 13px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .zone-nm { font-size: 10px; }
    .cat-lks a { font-size: 12px; }
    .sch-box button { padding: 0 4px; font-size: .66rem; }
}
