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

:root {
    --root-bg: #e3e6e6;
    --surface: #ffffff;
    --surface2: #f8f8f8;
    --surface3: #efefef;
    --ink: #0f1111;
    --ink2: #232f3e;
    --ink3: #37475a;
    --tangerine: #ff9900;
    --tangerine2: #febd69;
    --tangerine-dk: #c45500;
    --tangerine-pale: #fff8f0;
    --sapphire: #146eb4;
    --sapphire-dk: #0f5496;
    --txt-main: #0f1111;
    --txt-sub: #555555;
    --txt-mute: #767676;
    --txt-link: #146eb4;
    --stroke: #dddddd;
    --stroke2: #c2c2c2;
    --el1: 0 1px 2px rgba(0,0,0,.08);
    --el2: 0 2px 8px rgba(0,0,0,.12);
    --el3: 0 4px 16px rgba(0,0,0,.16);
    --rnd: 8px;
    --rnd2: 3px;
    --rnd3: 10px;
}

html { font-size: 15px; }

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

a { color: var(--txt-link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tangerine-dk); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.row-clear::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.top-rail {
    background: var(--ink);
    padding: 9px 0;
}

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

.identity-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.identity-name {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: -.2px;
    text-decoration: none;
    border-bottom: none;
}

.domain-capsule {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ink2);
    border: 1px solid var(--tangerine2);
    border-radius: var(--rnd2);
    padding: 4px 13px;
}

.domain-capsule .dcp-tag {
    font-size: 0.68rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}

.domain-capsule .dcp-text {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--tangerine2);
    white-space: nowrap;
}

/* second nav rail */
.sub-rail {
    background: var(--ink2);
    padding: 0;
}

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

/* ===== CATEGORY NAV ===== */
.cat-matrix {
    background: var(--ink3);
    border-radius: var(--rnd2);
    overflow: hidden;
    margin: 4px 0;
    border: 1px solid rgba(255,255,255,.06);
}

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

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

.zone-marker {
    background: rgba(0,0,0,.28);
    color: var(--tangerine2);
    font-size: 10px;
    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,.06);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cat-anchors a {
    font-size: .82rem;
    color: rgba(255,255,255,.78);
    padding: 3px 6px;
    border-radius: var(--rnd2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cat-anchors a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: var(--tangerine2);
    text-decoration: none;
}

.cat-anchors a.active {
    background: var(--tangerine);
    color: var(--ink);
    border-color: var(--tangerine);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.query-strip {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--el1);
}

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

.query-strip input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--tangerine);
    border-radius: var(--rnd2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--surface);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.query-strip input[type="text"]:focus {
    border-color: var(--tangerine-dk);
    box-shadow: 0 0 0 3px rgba(255,153,0,.2);
}

.query-strip button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--rnd2);
    background: var(--ink2);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.query-strip button:hover { background: var(--ink3); }

.query-strip button[value="1"] {
    background: var(--tangerine);
    color: var(--ink);
}
.query-strip button[value="1"]:hover { background: var(--tangerine-dk); color: #fff; }

.query-strip button[value="2"] {
    background: var(--surface);
    color: var(--sapphire);
    border: 2px solid var(--sapphire);
}
.query-strip button[value="2"]:hover { background: #e8f2fa; }

/* ===== HOT TAGS ===== */
.kwd-cluster {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--el1);
}

.kwd-cluster h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--txt-main);
    margin-bottom: 5px;
}

.kwd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kwd-pills .kpill {
    display: inline-block;
    background: var(--surface2);
    color: var(--txt-sub);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd2);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.kwd-pills .kpill:hover {
    background: var(--tangerine-pale);
    color: var(--tangerine-dk);
    border-color: var(--tangerine);
    text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.tile-block {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--el1);
}

.tile-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--surface3);
    position: relative;
}

.tile-hdr::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30px;
    height: 2px;
    background: var(--tangerine);
    border-radius: 2px;
}

.tile-hdr h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--txt-main);
}

.tile-hdr h3 a { color: var(--txt-main); text-decoration: none; }
.tile-hdr h3 a:hover { color: var(--sapphire); text-decoration: underline; }

.tile-hdr h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt-main);
}

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

.reel-grid li {
    border-radius: var(--rnd2);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: var(--surface2);
    transition: box-shadow .2s, transform .2s;
}

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

.reel-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--surface3);
}

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

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

.reel-caption {
    padding: 5px 7px 7px;
}

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

.reel-caption h5 a { color: var(--txt-main); text-decoration: none; }
.reel-caption h5 a:hover { color: var(--sapphire); text-decoration: underline; }

/* ===== PAGINATION ===== */
.pgn-wrap {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

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

.pgn-list a.pp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--surface);
    border: 1px solid var(--stroke2);
    border-radius: var(--rnd2);
    font-size: .84rem;
    color: var(--sapphire);
    text-decoration: none;
    transition: all .15s;
}

.pgn-list a.pp:hover {
    background: var(--tangerine-pale);
    border-color: var(--tangerine);
    color: var(--tangerine-dk);
    text-decoration: none;
}

.pgn-list a.pp-sel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--tangerine);
    border: 1px solid var(--tangerine-dk);
    border-radius: var(--rnd2);
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink);
    cursor: default;
}

/* ===== FOOTER ===== */
.ft-linkset {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--el1);
}

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

.ft-links dd { display: inline; }

.ft-links a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-mute);
    padding: 2px 9px;
    border-radius: var(--rnd2);
    border: 1px solid var(--stroke);
    background: var(--surface2);
    text-decoration: none;
    transition: all .15s;
}

.ft-links a:hover {
    color: var(--sapphire);
    border-color: var(--sapphire);
    text-decoration: none;
}

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

/* ===== DETAIL PAGES ===== */
.dtl-bar {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-left: 4px solid var(--tangerine);
    border-radius: var(--rnd);
    box-shadow: var(--el1);
}

.dtl-bar a {
    color: var(--sapphire);
    font-weight: 700;
    margin-right: 6px;
    text-decoration: none;
}

.dtl-bar a:hover { color: var(--tangerine-dk); text-decoration: underline; }

.dtl-content {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd);
    box-shadow: var(--el1);
    margin: 4px 0;
}

.capture-box {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

.get-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 22px;
    background: var(--tangerine);
    color: var(--ink);
    border: none;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(255,153,0,.3);
}

.get-btn:hover {
    background: var(--tangerine-dk);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255,153,0,.35);
}

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

.hint-row a { color: var(--sapphire); font-weight: 600; text-decoration: none; }
.hint-row a:hover { color: var(--tangerine-dk); text-decoration: underline; }

/* ===== SHARE BAR ===== */
.url-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface2);
    border: 1px solid var(--stroke);
    border-radius: var(--rnd);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.url-row .ur-lbl { font-size: .77rem; color: var(--txt-mute); white-space: nowrap; }
.url-row .ur-val { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.url-row .ur-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--tangerine);
    color: var(--ink);
    border: none;
    border-radius: 16px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.url-row .ur-btn:hover { background: var(--tangerine-dk); color: #fff; }

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

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

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

    .identity-name { font-size: 1.06rem; }
    .domain-capsule .dcp-text { font-size: .94rem; }

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

    .zone-marker {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    /* Search: single row, no wrap */
    .query-strip form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .query-strip input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 8px;
    }

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

    /* Film grid: 2 col */
    .reel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .reel-img { aspect-ratio: 600 / 350; }
    .reel-caption h5 { font-size: .72rem; }
    .tile-block { padding: 9px 9px 7px; }
    .get-btn { padding: 8px 16px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .zone-marker { font-size: 10px; }
    .cat-anchors a { font-size: 12px; }
    .query-strip button { padding: 0 5px; font-size: .68rem; }
}
