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

:root {
    --bg-base: #0d1b3e;
    --bg-panel: #112352;
    --bg-card: #162d66;
    --bg-lift: #1d3878;
    --sky: #0770e3;
    --sky-lt: #1a8af5;
    --sky-bg: rgba(7,112,227,.14);
    --cyan: #00b2f3;
    --cyan-dk: #0099d4;
    --white: #ffffff;
    --ink1: #e8edf7;
    --ink2: #9aaed0;
    --ink3: #5a718f;
    --sep: #1e3060;
    --sep2: #264080;
    --glow1: 0 1px 5px rgba(7,112,227,.15);
    --glow2: 0 3px 14px rgba(7,112,227,.22);
    --glow3: 0 6px 28px rgba(7,112,227,.32);
    --rr: 8px;
    --rr2: 5px;
    --rr3: 12px;
}

html { font-size: 15px; }

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

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

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

/* ===== HEADER ===== */
.site-top {
    background: #091530;
    border-bottom: 1px solid var(--sep);
    padding: 10px 0;
    box-shadow: var(--glow1);
}

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

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

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

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

.url-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sky-bg);
    border: 1px solid rgba(7,112,227,.40);
    border-radius: 24px;
    padding: 4px 14px;
}

.url-chip .chip-lbl {
    font-size: 0.67rem;
    color: var(--ink2);
    white-space: nowrap;
}

.url-chip .chip-domain {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

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

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

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

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

.zone-name {
    background: #091530;
    color: var(--ink2);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--sep);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cat-links a {
    font-size: .81rem;
    color: var(--ink2);
    padding: 3px 5px;
    border-radius: var(--rr2);
    transition: all .17s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cat-links a:hover {
    background: var(--sky-bg);
    color: var(--cyan);
    border-color: rgba(7,112,227,.4);
}

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

/* ===== SEARCH ===== */
.query-bar {
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--glow1);
}

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

.query-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--sep2);
    border-radius: var(--rr2);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--ink1);
    background: var(--bg-base);
    outline: none;
    transition: border-color .2s;
}

.query-bar input[type="text"]::placeholder { color: var(--ink3); }

.query-bar input[type="text"]:focus {
    border-color: var(--sky);
}

.query-bar button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rr2);
    background: var(--bg-lift);
    color: var(--ink2);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .17s, color .17s;
    flex-shrink: 0;
}

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

.query-bar button[value="1"] { background: var(--sky); color: #fff; }
.query-bar button[value="1"]:hover { background: var(--sky-lt); }

.query-bar button[value="2"] { background: var(--cyan-dk); color: #fff; }
.query-bar button[value="2"]:hover { background: var(--cyan); }

/* ===== HOT TAGS ===== */
.hot-terms {
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--glow1);
}

.hot-terms h4 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 5px;
}

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

.term-row .kw {
    display: inline-block;
    background: rgba(255,255,255,.04);
    color: var(--ink2);
    border: 1px solid var(--sep2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .17s;
}

.term-row .kw:hover {
    background: var(--sky-bg);
    color: var(--cyan);
    border-color: rgba(7,112,227,.45);
}

/* ===== CONTENT SECTION ===== */
.vod-sect {
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-radius: var(--rr3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--glow1);
}

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

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

.sect-top h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--white);
}

.sect-top h3 a { color: var(--white); }
.sect-top h3 a:hover { color: var(--cyan); }

.sect-top h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--white);
}

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

.mov-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--sep);
    background: var(--bg-card);
    transition: box-shadow .2s, transform .2s;
}

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

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

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

.mov-cover:hover img { transform: scale(1.05); }

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

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

.mov-info h5 a { color: var(--ink2); }
.mov-info h5 a:hover { color: var(--cyan); }

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

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

.page-set a.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--sep2);
    border-radius: var(--rr2);
    font-size: .83rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .17s;
}

.page-set a.pbtn:hover {
    background: var(--sky-bg);
    border-color: var(--sky);
    color: var(--cyan);
}

.page-set a.pbtn-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--sky);
    border: 1px solid var(--sky);
    border-radius: var(--rr2);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.foot-links {
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-radius: var(--rr);
    padding: 9px 12px;
    margin: 3px 0;
    box-shadow: var(--glow1);
}

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

.fl-items dd { display: inline; }

.fl-items a {
    display: inline-block;
    font-size: .76rem;
    color: var(--ink3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--sep);
    background: rgba(255,255,255,.03);
    text-decoration: none;
    transition: all .17s;
}

.fl-items a:hover { color: var(--cyan); border-color: rgba(7,112,227,.45); }

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

/* ===== DETAIL PAGES ===== */
.info-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-left: 3px solid var(--sky);
    border-radius: var(--rr);
    box-shadow: var(--glow1);
}

.info-title a {
    color: var(--cyan);
    font-weight: 700;
    margin-right: 6px;
}

.info-meta {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--sep);
    border-radius: var(--rr);
    box-shadow: var(--glow1);
    margin: 3px 0;
}

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

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

/* ===== ACTION BUTTONS ===== */
.act-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

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

.act-btn:hover {
    background: var(--sky-lt);
    color: #fff;
    transform: translateY(-1px);
}

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

.client-note a { color: var(--cyan); font-weight: 600; }
.client-note a:hover { color: #fff; }

/* ===== SHARE BAR ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--sep);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.share-bar .s-lbl { font-size: .76rem; color: var(--ink3); white-space: nowrap; }
.share-bar .s-url { font-size: .78rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.share-bar .s-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: var(--bg-lift);
    color: var(--ink2);
    border: 1px solid var(--sep2);
    border-radius: var(--rr2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .17s, color .17s, border-color .17s;
    flex-shrink: 0;
}

.share-bar .s-copy:hover { background: var(--sky); color: #fff; border-color: var(--sky); }

/* ===== VISIBILITY ===== */
.vis-pc { display: block; }
.vis-mb { display: none; }

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

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

    .site-title { font-size: 1.04rem; }
    .url-chip .chip-domain { font-size: .87rem; }

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

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

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

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

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

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

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

    .mov-cover { aspect-ratio: 600 / 350; }
    .mov-info h5 { font-size: .71rem; }
    .vod-sect { padding: 8px 8px 7px; }
    .act-btn { padding: 8px 13px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .zone-name { font-size: 10px; }
    .cat-links a { font-size: 12px; }
    .query-bar button { padding: 0 4px; font-size: .66rem; }
}
