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

:root {
    --bg-root: #0a0c12;
    --bg-card: #12151f;
    --bg-panel: #161a27;
    --bg-hover: #1e2336;
    --accent: #e82b4a;
    --accent-dk: #c4203a;
    --accent-soft: rgba(232,43,74,.12);
    --gold: #f0a500;
    --gold-soft: rgba(240,165,0,.12);
    --white: #ffffff;
    --txt-main: #e8eaf0;
    --txt-sub: #9aa0b8;
    --txt-mute: #5a6080;
    --border: rgba(255,255,255,.07);
    --border-bright: rgba(255,255,255,.14);
    --sh1: 0 2px 8px rgba(0,0,0,.45);
    --sh2: 0 4px 20px rgba(0,0,0,.6);
    --sh3: 0 8px 32px rgba(0,0,0,.75);
    --rad: 6px;
    --rad2: 4px;
    --rad3: 10px;
}

html { font-size: 15px; }

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-bright);
    padding: 10px 0;
}

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

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

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

.site-title-txt {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
    text-transform: uppercase;
}

.site-title-txt em {
    color: var(--accent);
    font-style: normal;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,43,74,.15);
    border: 1px solid rgba(232,43,74,.3);
    border-radius: 4px;
    padding: 4px 12px;
}

.domain-badge .db-label {
    font-size: 0.68rem;
    color: var(--txt-sub);
    white-space: nowrap;
}

.domain-badge .db-url {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: .5px;
}

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

/* ===== CATEGORY NAV ===== */
.cat-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 3px 0;
}

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

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

.cat-zone-tag {
    background: rgba(232,43,74,.18);
    color: var(--accent);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cat-links-wrap a {
    font-size: .82rem;
    color: var(--txt-sub);
    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;
}

.cat-links-wrap a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(232,43,74,.3);
}

.cat-links-wrap a.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.search-wrap {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border-bright);
    border-radius: var(--rad2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--bg-root);
    outline: none;
    transition: border-color .2s;
}

.search-wrap input[type="text"]::placeholder { color: var(--txt-mute); }

.search-wrap input[type="text"]:focus {
    border-color: var(--accent);
}

.search-wrap button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rad2);
    background: var(--bg-hover);
    color: var(--txt-main);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
    border: 1px solid var(--border-bright);
}

.search-wrap button:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }

.search-wrap button[value="1"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-wrap button[value="1"]:hover { background: var(--accent-dk); }

.search-wrap button[value="2"] { background: var(--gold); color: #111; border-color: var(--gold); }
.search-wrap button[value="2"]:hover { background: #d99200; }

/* ===== HOT TAGS ===== */
.tag-block {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
}

.tag-block h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--txt-sub);
    margin-bottom: 5px;
}

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

.tag-row .tg {
    display: inline-block;
    background: var(--bg-hover);
    color: var(--txt-sub);
    border: 1px solid var(--border-bright);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .18s;
}

.tag-row .tg:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(232,43,74,.35);
}

/* ===== CONTENT SECTION ===== */
.mod-sect {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad3);
    padding: 13px 13px 10px;
    margin: 4px 0;
}

.mod-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.mod-sect-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mod-sect-hd h3 a { color: var(--white); }
.mod-sect-hd h3 a:hover { color: var(--accent); }

.mod-sect-hd h4 {
    font-size: .92rem;
    font-weight: 800;
    color: var(--white);
}

/* ===== 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(--border);
    background: var(--bg-card);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.vod-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: rgba(232,43,74,.35);
}

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

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

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

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

.vod-info 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-info h5 a { color: var(--txt-sub); }
.vod-info h5 a:hover { color: var(--accent); }

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

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

.pager-inner a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: var(--rad2);
    font-size: .82rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
}

.pager-inner a.pgb:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.pager-inner a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--rad2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 9px 13px;
    margin: 4px 0;
}

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

.flink-list dd { display: inline; }

.flink-list a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt-mute);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--bg-root);
    text-decoration: none;
    transition: all .18s;
}

.flink-list a:hover { color: var(--accent); border-color: rgba(232,43,74,.35); }

.copy-bar {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-mute);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.dtl-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .96rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--rad);
}

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

.dtl-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    margin: 4px 0;
}

.cap-grid {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

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

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

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

.client-tip a { color: var(--txt-sub); font-weight: 600; }
.client-tip a:hover { color: var(--accent); }

/* ===== SHARE ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-row .sh-label { font-size: .75rem; color: var(--txt-mute); white-space: nowrap; }
.share-row .sh-url { font-size: .78rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.share-row .sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bg-hover);
    color: var(--txt-main);
    border: 1px solid var(--border-bright);
    border-radius: var(--rad2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.share-row .sh-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

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

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

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

    .site-title-txt { font-size: 1.06rem; }
    .domain-badge .db-url { font-size: .9rem; }

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

    .cat-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;
    }

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

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

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

    .search-wrap input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 7px;
    }

    .search-wrap button {
        height: 34px;
        padding: 0 7px;
        font-size: .73rem;
    }

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

    .vod-thumb { aspect-ratio: 600 / 350; }
    .vod-info h5 { font-size: .71rem; }
    .mod-sect { padding: 9px 9px 7px; }
    .action-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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