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

:root {
    --bg: #1b2838;
    --bg-soft: #171a21;
    --bg-card: #16202d;
    --bg-muted: #1e2a3a;
    --bg-panel: #2a3f5a;
    --steam-mid: #2a475e;
    --accent: #66c0f4;
    --accent-dk: #4fa3d4;
    --accent-bg: rgba(102,192,244,.10);
    --green: #5ba32b;
    --gold: #f5c518;
    --txt: #c7d5e0;
    --txt2: #8f98a0;
    --txt3: #4a6070;
    --line: #2a3f5a;
    --line2: #3d5a78;
    --sh1: 0 1px 6px rgba(0,0,0,.5);
    --sh2: 0 4px 18px rgba(0,0,0,.6);
    --sh3: 0 8px 32px rgba(0,0,0,.7);
    --rad: 4px;
    --rad2: 3px;
    --rad3: 5px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.site-header {
    background: linear-gradient(to bottom, #15232f 0%, #1b2838 100%);
    border-bottom: 1px solid #000;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.site-header .outer-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

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

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

.hdr-sitename {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--txt);
    font-style: normal;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
}

.hdr-domain-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,.3);
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    padding: 4px 12px;
}

.hdr-domain-box .dbox-label {
    font-size: .68rem;
    color: var(--txt3);
    white-space: nowrap;
}

.hdr-domain-box .dbox-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

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

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

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

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

.zone-label {
    background: var(--steam-mid);
    color: var(--txt2);
    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(0,0,0,.25);
    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(--txt2);
    padding: 4px 5px;
    border-radius: var(--rad2);
    transition: all .15s;
    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(--accent-bg);
    color: var(--accent);
    border-color: rgba(102,192,244,.25);
}

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

/* ===== SEARCH ===== */
.query-block {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--rad3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.query-block form {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.query-block input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid #000;
    border-radius: var(--rad2);
    padding: 0 10px;
    font-size: .86rem;
    color: var(--txt);
    background: rgba(0,0,0,.3);
    outline: none;
    transition: border-color .18s;
}

.query-block input[type="text"]::placeholder { color: var(--txt3); }
.query-block input[type="text"]:focus {
    border-color: var(--accent);
    background: rgba(0,0,0,.45);
}

.query-block button {
    height: 34px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rad2);
    background: var(--steam-mid);
    color: var(--txt);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.query-block button:hover { background: var(--line2); color: #fff; }

.query-block button[value="1"] {
    background: linear-gradient(to bottom, #47bfff 0%, #1a9fd4 100%);
    color: #15232f;
    font-weight: 700;
}
.query-block button[value="1"]:hover { background: var(--accent); color: #15232f; }

.query-block button[value="2"] {
    background: linear-gradient(to bottom, #6ecb3d 0%, #4a9620 100%);
    color: #fff;
    font-weight: 700;
}
.query-block button[value="2"]:hover { background: var(--green); color: #fff; }

/* ===== HOT TAGS ===== */
.kword-block {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--rad3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.kword-block h4 {
    font-size: .76rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.kword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kword-list .kw {
    display: inline-block;
    background: var(--bg-muted);
    color: var(--txt2);
    border: 1px solid var(--line);
    border-radius: var(--rad2);
    padding: 2px 9px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
}

.kword-list .kw:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: rgba(102,192,244,.3);
}

/* ===== CONTENT SECTION ===== */
.content-sect {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--rad3);
    padding: 11px 11px 9px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.content-sect-hd h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt);
}

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

.content-sect-hd h4 {
    font-size: .93rem;
    font-weight: 700;
    color: var(--txt);
}

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

.card-grid li {
    border-radius: var(--rad);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-muted);
    transition: box-shadow .2s, border-color .2s;
}

.card-grid li:hover {
    box-shadow: var(--sh3);
    border-color: var(--accent);
}

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

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

.card-thumb:hover img { transform: scale(1.04); }

.card-caption {
    padding: 4px 6px 6px;
}

.card-caption h5 {
    font-size: .76rem;
    font-weight: 400;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-caption h5 a { color: var(--txt2); }
.card-caption h5 a:hover { color: var(--accent); }

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

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

.pager-btns a.pbn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.pager-btns a.pbn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.pager-btns a.pbn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--rad2);
    font-size: .82rem;
    font-weight: 700;
    color: #15232f;
    cursor: default;
}

/* ===== FOOTER ===== */
.footer-links-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fl-list dd { display: inline; }

.fl-list a {
    display: inline-block;
    font-size: .75rem;
    color: var(--txt3);
    padding: 2px 8px;
    border-radius: var(--rad2);
    border: 1px solid var(--line);
    background: var(--bg-muted);
    text-decoration: none;
    transition: all .15s;
}

.fl-list a:hover { color: var(--accent); border-color: var(--accent); }

.copy-bar {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .74rem;
}

/* ===== DETAIL PAGES ===== */
.item-heading {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    color: var(--txt);
}

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

.item-details {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

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

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

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

.dl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 20px;
    background: linear-gradient(to bottom, #47bfff 0%, #1a9fd4 100%);
    color: #15232f;
    border: none;
    border-radius: var(--rad2);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
}

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

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

.tip-line a { color: var(--txt2); font-weight: 600; }
.tip-line a:hover { color: var(--accent); }

/* ===== SHARE ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-muted);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

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

.share-row .sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--steam-mid);
    color: var(--txt);
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

.share-row .sr-btn:hover { background: var(--accent); color: #15232f; border-color: var(--accent); }

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

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

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

    .hdr-sitename { font-size: 1.05rem; }
    .hdr-domain-box .dbox-val { font-size: .88rem; }

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

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

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

    .query-block form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .query-block input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 6px;
    }

    .query-block button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

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

    .card-thumb { aspect-ratio: 600 / 350; }
    .card-caption h5 { font-size: .7rem; }
    .content-sect { padding: 8px 8px 6px; }
    .dl-action-btn { padding: 8px 13px; font-size: .82rem; }
}

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

@media (max-width: 380px) {
    .zone-label { font-size: 10px; }
    .nav-items a { font-size: 12px; }
    .query-block button { padding: 0 4px; font-size: .66rem; }
}
