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

:root {
    --base: #ffffff;
    --base-warm: #f5f4f0;
    --base-muted: #eceae4;
    --ink: #191919;
    --ink-mid: #333333;
    --ink-soft: #555555;
    --ink-faint: #999999;
    --green: #00b67a;
    --green-dk: #009966;
    --green-pale: #e5f7f1;
    --night: #111111;
    --night-mid: #2a2a2a;
    --border: #e0ddd6;
    --border2: #ccc9c0;
    --glow1: 0 1px 3px rgba(0,0,0,.06);
    --glow2: 0 3px 10px rgba(0,0,0,.09);
    --glow3: 0 6px 22px rgba(0,0,0,.13);
    --rr: 10px;
    --rr2: 6px;
    --rr3: 16px;
}

html { font-size: 15px; }

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

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

/* ===== PAGE CONTAINER ===== */
.mx-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SITE HEADER ===== */
.tp-hdr {
    background: var(--night);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.tp-hdr .mx-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.tp-sitename {
    font-size: 1.36rem;
    font-weight: 800;
    color: var(--green);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.tp-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 24px;
    padding: 4px 14px;
}

.tp-domain-badge .db-caption {
    font-size: 0.67rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.tp-domain-badge .db-value {
    font-size: 1.06rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .1px;
}

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--base);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--glow1);
}

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

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

.zone-tag {
    background: var(--night);
    color: rgba(255,255,255,.75);
    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(255,255,255,.08);
    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: 4px 8px;
    gap: 3px;
    flex: 1;
}

.nav-items a {
    font-size: .82rem;
    color: var(--ink-mid);
    padding: 3px 6px;
    border-radius: var(--rr2);
    transition: all .18s;
    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(--green-pale);
    color: var(--green-dk);
    border-color: #9de5cc;
}

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

/* ===== SEARCH ===== */
.qry-box {
    background: var(--base);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--glow1);
}

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

.qry-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border2);
    border-radius: 99px;
    padding: 0 16px;
    font-size: .88rem;
    color: var(--ink);
    background: var(--base-warm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.qry-box input[type="text"]:focus {
    border-color: var(--ink);
    background: var(--base);
    box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}

.qry-box button {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 99px;
    background: var(--night);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.qry-box button:hover { background: var(--night-mid); }

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

.qry-box button[value="2"] {
    background: #555;
}
.qry-box button[value="2"]:hover { background: #333; }

/* ===== HOT TAGS ===== */
.kw-block {
    background: var(--base);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--glow1);
}

.kw-block h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

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

.kw-tags .kw-item {
    display: inline-block;
    background: var(--base-warm);
    color: var(--ink-soft);
    border: 1px solid var(--border2);
    border-radius: 99px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.kw-tags .kw-item:hover {
    background: var(--green-pale);
    color: var(--green-dk);
    border-color: #9de5cc;
}

/* ===== CONTENT SECTION ===== */
.content-card {
    background: var(--base);
    border: 1.5px solid var(--border);
    border-radius: var(--rr3);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--glow1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--base-muted);
    position: relative;
}

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

.card-header h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink);
}

.card-header h3 a { color: var(--ink); }
.card-header h3 a:hover { color: var(--green-dk); }

.card-header h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

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

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

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

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

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

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

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

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

.vod-label h5 a { color: var(--ink); }
.vod-label h5 a:hover { color: var(--green-dk); }

/* ===== 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.pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--base);
    border: 1.5px solid var(--border2);
    border-radius: 99px;
    font-size: .84rem;
    color: var(--ink-mid);
    text-decoration: none;
    transition: all .18s;
}

.pager-inner a.pg:hover {
    background: var(--green-pale);
    border-color: var(--green);
    color: var(--green-dk);
}

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

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

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

.fl-row dd { display: inline; }

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

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

.copy-text {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink-faint);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.item-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--base);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--rr);
    box-shadow: var(--glow1);
}

.item-heading a {
    color: var(--green-dk);
    font-weight: 700;
    margin-right: 6px;
}

.item-details {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--base);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    box-shadow: var(--glow1);
    margin: 5px 0;
}

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

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

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

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

.main-btn:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-1px);
}

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

.app-hint a { color: var(--ink-mid); font-weight: 600; }
.app-hint a:hover { color: var(--green-dk); }

/* ===== SHARE ===== */
.link-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--base-warm);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.link-share .ls-label { font-size: .77rem; color: var(--ink-faint); white-space: nowrap; }
.link-share .ls-url { font-size: .79rem; color: var(--ink-soft); flex: 1; min-width: 0; word-break: break-all; }

.link-share .ls-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--night);
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.link-share .ls-btn:hover { background: var(--green); }

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

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

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

    .tp-sitename { font-size: 1.06rem; }
    .tp-domain-badge .db-value { font-size: .9rem; }

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

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

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

    .qry-box button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

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

    .vod-thumb { aspect-ratio: 600 / 350; }
    .vod-label h5 { font-size: .72rem; }
    .content-card { padding: 9px 9px 7px; }
    .main-btn { padding: 9px 16px; font-size: .84rem; }
}

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

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