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

:root {
    --bg: #0d0d1a;
    --bg-soft: #111122;
    --bg-card: #161628;
    --bg-card2: #1a1a30;
    --crimson: #c0152a;
    --crimson-dk: #9a1020;
    --crimson-lt: #e01f36;
    --crimson-glow: rgba(192,21,42,0.18);
    --violet: #2e1a4a;
    --violet-mid: #3d2560;
    --accent: #ff3b52;
    --accent-soft: rgba(255,59,82,0.12);
    --gold: #d4a017;
    --gold-soft: rgba(212,160,23,0.15);
    --txt: #f0f0f8;
    --txt2: #b0b0cc;
    --txt3: #6060aa;
    --line: rgba(255,255,255,0.07);
    --line2: rgba(255,255,255,0.12);
    --grad1: linear-gradient(135deg, #1a0a2e 0%, #2c0a1a 50%, #1a0a1a 100%);
    --grad2: linear-gradient(135deg, #c0152a 0%, #7b0d3e 50%, #2e1a4a 100%);
    --s1: 0 2px 8px rgba(0,0,0,0.4);
    --s2: 0 4px 16px rgba(0,0,0,0.5);
    --s3: 0 8px 28px rgba(192,21,42,0.25);
    --r: 8px;
    --r2: 5px;
    --r3: 12px;
}

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
    background-image: radial-gradient(ellipse at 20% 0%, rgba(192,21,42,0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 100%, rgba(46,26,74,0.12) 0%, transparent 60%);
}

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: linear-gradient(90deg, #0d0d1a 0%, #1a0a2e 40%, #2c0a1a 100%);
    border-bottom: 1px solid rgba(192,21,42,0.35);
    padding: 10px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.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-text {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: none;
    text-shadow: 0 0 20px rgba(192,21,42,0.6);
    background: linear-gradient(90deg, #fff 0%, #ffb3bb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192,21,42,0.25);
    border: 1px solid rgba(192,21,42,0.5);
    border-radius: 4px;
    padding: 4px 12px;
}

.domain-badge .badge-lbl {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.domain-badge .badge-url {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ff8a96;
    white-space: nowrap;
    letter-spacing: .5px;
}

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

/* ===== CATEGORY NAV ===== */
.cat-nav-block {
    background: var(--bg-card);
    border: 1px solid rgba(192,21,42,0.2);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

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

.cat-zone-name {
    background: var(--grad2);
    color: rgba(255,255,255,0.85);
    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,0.06);
    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(--txt2);
    padding: 3px 6px;
    border-radius: var(--r2);
    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(--crimson-glow);
    color: #ff8a96;
    border-color: rgba(192,21,42,0.4);
}

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

/* ===== SEARCH ===== */
.search-wrap {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.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 rgba(255,255,255,0.1);
    border-radius: var(--r2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: rgba(255,255,255,0.05);
    outline: none;
    transition: border-color .2s, background .2s;
}

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

.search-wrap input[type="text"]:focus {
    border-color: var(--crimson);
    background: rgba(255,255,255,0.08);
}

.search-wrap button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--r2);
    background: var(--violet-mid);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.search-wrap button:hover { background: var(--violet); }

.search-wrap button[value="1"] {
    background: var(--crimson);
}
.search-wrap button[value="1"]:hover { background: var(--crimson-dk); }

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

/* ===== HOT TAGS ===== */
.trending-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.trending-box h4 {
    font-size: .79rem;
    font-weight: 700;
    color: #ff8a96;
    margin-bottom: 5px;
}

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

.tag-row .tag-item {
    display: inline-block;
    background: rgba(192,21,42,0.12);
    color: var(--txt2);
    border: 1px solid rgba(192,21,42,0.25);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.tag-row .tag-item:hover {
    background: rgba(192,21,42,0.3);
    color: #ff8a96;
    border-color: rgba(192,21,42,0.6);
}

/* ===== CONTENT SECTION ===== */
.content-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}

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

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

.block-header h3 a { color: var(--txt); }
.block-header h3 a:hover { color: #ff8a96; }

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

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

.movie-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: var(--bg-card2);
    transition: box-shadow .2s, transform .2s;
}

.movie-grid li:hover {
    box-shadow: var(--s3);
    transform: translateY(-2px);
    border-color: rgba(192,21,42,0.35);
}

.thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

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

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

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

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

.movie-info h5 a { color: var(--txt2); }
.movie-info h5 a:hover { color: #ff8a96; }

/* ===== 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-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pager-inner a.pg-link:hover {
    background: var(--crimson-glow);
    border-color: var(--crimson);
    color: #ff8a96;
}

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

/* ===== FOOTER ===== */
.footer-links-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

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

.friendly-links dd { display: inline; }

.friendly-links a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: all .18s;
}

.friendly-links a:hover { color: #ff8a96; border-color: rgba(192,21,42,0.4); }

.copyright-bar {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid rgba(192,21,42,0.3);
    border-left: 4px solid var(--crimson);
    border-radius: var(--r);
    box-shadow: var(--s1);
}

.detail-title a {
    color: #ff8a96;
    font-weight: 700;
    margin-right: 6px;
}

.detail-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r);
    box-shadow: var(--s1);
    margin: 5px 0;
    color: var(--txt2);
}

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

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

/* ===== DL BUTTONS ===== */
.action-btns {
    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(--crimson);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--crimson-lt);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192,21,42,0.4);
}

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

.client-hint a { color: var(--txt2); font-weight: 600; }
.client-hint a:hover { color: #ff8a96; }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-strip .strip-lbl { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.share-strip .strip-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

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

.share-strip .strip-btn:hover { background: var(--crimson-lt); }

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

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

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

    .site-title-text { font-size: 1.06rem; }
    .domain-badge .badge-url { font-size: .88rem; }

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

    .cat-zone-name {
        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 4px;
        align-items: center;
    }

    .cat-links-wrap a {
        font-size: 12px;
        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: .79rem;
        padding: 0 7px;
    }

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

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

    .thumb-link { aspect-ratio: 600 / 350; }
    .movie-info h5 { font-size: .72rem; }
    .content-block { padding: 9px 9px 7px; }
    .action-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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