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

:root {
    --bg: #ffffff;
    --bg-soft: #f8f8f8;
    --bg-muted: #f2f2f2;
    --orange: #f07820;
    --orange-dk: #d4620e;
    --orange-lt: #fff4ec;
    --orange-mid: #e86c10;
    --gray-hd: #333333;
    --gray-bd: #555555;
    --gray-lt: #888888;
    --txt: #222222;
    --txt2: #444444;
    --txt3: #999999;
    --line: #e8e8e8;
    --line2: #d8d8d8;
    --shd1: 0 1px 4px rgba(0,0,0,.06);
    --shd2: 0 2px 10px rgba(0,0,0,.09);
    --shd3: 0 4px 18px rgba(240,120,32,.18);
    --rd: 6px;
    --rd2: 4px;
    --rd3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--orange);
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(240,120,32,.28);
}

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

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

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

.site-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    text-decoration: none;
    letter-spacing: -.2px;
    border-bottom: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,.18);
    border-radius: 20px;
    padding: 3px 13px;
    border: 1px solid rgba(255,255,255,.22);
}

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

.domain-tag .dt-url {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .2px;
}

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

/* ===== CATEGORY NAV ===== */
.nav-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

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

.nav-zone-name {
    background: var(--orange);
    color: rgba(255,255,255,.92);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.nav-items a:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: #f5c09a;
}

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

/* ===== SEARCH ===== */
.srch-row {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

.srch-row input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 35px;
    border: 1.5px solid var(--line2);
    border-radius: var(--rd2);
    padding: 0 11px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s;
}

.srch-row input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--bg);
}

.srch-row button {
    height: 35px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rd2);
    background: var(--gray-hd);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s;
    flex-shrink: 0;
}

.srch-row button:hover { background: #111; }
.srch-row button[value="1"] { background: var(--orange); }
.srch-row button[value="1"]:hover { background: var(--orange-dk); }
.srch-row button[value="2"] { background: #e09010; }
.srch-row button[value="2"]:hover { background: #b87008; }

/* ===== HOT TAGS ===== */
.hot-row {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

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

.tags-wrap .tw {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--line2);
    border-radius: 18px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .16s;
}

.tags-wrap .tw:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: #f5b888;
}

/* ===== CONTENT SECTION ===== */
.sect-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd3);
    padding: 12px 12px 9px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

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

.sect-head h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--gray-hd);
}

.sect-head h3 a { color: var(--gray-hd); }
.sect-head h3 a:hover { color: var(--orange); }

.sect-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gray-hd);
}

/* ===== 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(--rd);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

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

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

.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: .78rem;
    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(--orange); }

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

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

.pg-nums a.pn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 33px;
    padding: 0 9px;
    background: var(--bg);
    border: 1.5px solid var(--line2);
    border-radius: var(--rd2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .16s;
}

.pg-nums a.pn:hover {
    background: var(--orange-lt);
    border-color: var(--orange);
    color: var(--orange);
}

.pg-nums a.pn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 33px;
    padding: 0 9px;
    background: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: var(--rd2);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

.flink-items dd { display: inline; }

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

.flink-items a:hover { color: var(--orange); border-color: var(--orange); }

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

/* ===== DETAIL TITLE ===== */
.dtl-head {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    border-radius: var(--rd);
    box-shadow: var(--shd1);
}

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

/* ===== DETAIL META ===== */
.dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    box-shadow: var(--shd1);
    margin: 4px 0;
}

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

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

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

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

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

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

.cli-note a { color: var(--gray-hd); font-weight: 600; }
.cli-note a:hover { color: var(--orange); }

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

.shr-line .sl-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.shr-line .sl-url { font-size: .78rem; color: var(--txt2); 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(--orange);
    color: #fff;
    border: none;
    border-radius: var(--rd2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.shr-line .sl-btn:hover { background: var(--orange-dk); }

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

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

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

    .site-title { font-size: 1.05rem; }
    .domain-tag .dt-url { font-size: .9rem; }

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

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

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

    .srch-row form { flex-wrap: nowrap; gap: 4px; }

    .srch-row input[type="text"] {
        height: 33px;
        font-size: .78rem;
        padding: 0 7px;
    }

    .srch-row button {
        height: 33px;
        padding: 0 7px;
        font-size: .73rem;
    }

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

    .vod-cover { aspect-ratio: 600 / 350; }
    .vod-caption h5 { font-size: .72rem; }
    .sect-box { padding: 9px 9px 7px; }
    .dl-btn { padding: 8px 14px; font-size: .84rem; }
}

@media (max-width: 480px) {
    .nav-items a { font-size: 12px; }
    .nav-zone-name { font-size: 10px; }
    .srch-row button { padding: 0 5px; font-size: .67rem; }
}

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