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

:root {
    --yellow: #FFE000;
    --yellow-dk: #E6CA00;
    --yellow-bg: #FFFBE0;
    --black: #111111;
    --black2: #222222;
    --black3: #333333;
    --white: #ffffff;
    --gray: #f2f2f2;
    --gray2: #e5e5e5;
    --gray3: #cccccc;
    --red: #e01020;
    --txt: #111111;
    --txt2: #333333;
    --txt3: #777777;
    --line: #dddddd;
    --line2: #bbbbbb;
    --sh1: 0 1px 3px rgba(0,0,0,.10);
    --sh2: 0 2px 8px rgba(0,0,0,.14);
    --sh3: 0 4px 16px rgba(0,0,0,.18);
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.x-header {
    background: var(--yellow);
    border-bottom: 3px solid var(--black);
    padding: 8px 0;
    box-shadow: var(--sh1);
}

.x-header .x-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.x-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--black);
    font-style: normal;
    letter-spacing: -1px;
    text-transform: uppercase;
    border-bottom: none;
    text-decoration: none;
    line-height: 1;
}

.x-domain-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--black);
    padding: 5px 13px;
}

.x-domain-box .db-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
}

.x-domain-box .db-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--yellow);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.x-banner {
    margin: 3px 0 2px;
}
.x-banner img { width: 100%; }

/* ===== CATEGORY NAV ===== */
.x-nav-panel {
    background: var(--white);
    border: 2px solid var(--black);
    border-top: 3px solid var(--yellow);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.x-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line2);
    min-height: 36px;
}

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

.x-zone-label {
    background: var(--black);
    color: var(--yellow);
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 2px solid var(--yellow);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.x-nav-links a {
    font-size: .80rem;
    font-weight: 700;
    color: var(--black2);
    padding: 3px 5px;
    transition: all .14s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
    background: transparent;
}

.x-nav-links a:hover {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--black);
    text-decoration: none;
}

.x-nav-links a.active {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--black);
    font-weight: 900;
    text-decoration: none;
}

/* ===== SEARCH ===== */
.x-search-box {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.x-search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--black);
    padding: 0 11px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--txt);
    background: var(--gray);
    outline: none;
    transition: border-color .15s, background .15s;
    border-radius: 0;
}

.x-search-box input[type="text"]:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 2px var(--black);
}

.x-search-box button {
    height: 36px;
    padding: 0 12px;
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--yellow);
    font-size: .80rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s, color .14s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-radius: 0;
}

.x-search-box button:hover {
    background: var(--yellow);
    color: var(--black);
}

.x-search-box button[value="1"] {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--black);
}
.x-search-box button[value="1"]:hover {
    background: var(--yellow-dk);
}

.x-search-box button[value="2"] {
    background: var(--red);
    color: var(--white);
    border-color: var(--black);
}
.x-search-box button[value="2"]:hover {
    background: #b80d1a;
}

/* ===== HOT TAGS ===== */
.x-hot-block {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.x-hot-block h4 {
    font-size: .78rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.x-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.x-tags .xtag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    border: 1.5px solid var(--black);
    padding: 2px 9px;
    font-size: .74rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .14s;
}

.x-tags .xtag:hover {
    background: var(--black);
    color: var(--yellow);
    text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.x-sect {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 11px 11px 9px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.x-sect-hd h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.x-sect-hd h3 a { color: var(--black); text-decoration: none; }
.x-sect-hd h3 a:hover { color: var(--red); }

.x-sect-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--black);
    text-transform: uppercase;
}

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

.x-grid li {
    overflow: hidden;
    border: 2px solid var(--black);
    background: var(--gray);
    transition: box-shadow .18s, transform .18s;
}

.x-grid li:hover {
    box-shadow: 4px 4px 0 var(--yellow);
    transform: translate(-2px, -2px);
}

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

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

.x-cover:hover img { transform: scale(1.06); }

.x-caption {
    padding: 4px 6px 6px;
    border-top: 1px solid var(--line2);
    background: var(--white);
}

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

.x-caption h5 a { color: var(--txt); text-decoration: none; }
.x-caption h5 a:hover { color: var(--red); }

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

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

.x-pager-inner a.xpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--white);
    border: 2px solid var(--black);
    font-size: .83rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    transition: all .14s;
}

.x-pager-inner a.xpb:hover {
    background: var(--yellow);
    color: var(--black);
}

.x-pager-inner a.xpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--yellow);
    border: 2px solid var(--black);
    font-size: .83rem;
    font-weight: 900;
    color: var(--black);
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.x-flinks-sect {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 8px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.x-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.x-flinks dd { display: inline; }

.x-flinks a {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--txt3);
    padding: 2px 8px;
    border: 1.5px solid var(--line2);
    background: var(--gray);
    text-decoration: none;
    transition: all .14s;
}

.x-flinks a:hover { color: var(--black); border-color: var(--black); background: var(--yellow); }

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

/* ===== DETAIL PAGES ===== */
.x-dtl-title {
    line-height: 1.7;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    font-weight: 700;
    margin: 3px 0;
    word-break: break-all;
    background: var(--white);
    border: 2px solid var(--black);
    border-left: 5px solid var(--yellow);
    box-shadow: var(--sh1);
}

.x-dtl-title a {
    color: var(--black);
    font-weight: 900;
    margin-right: 6px;
    text-decoration: none;
}

.x-dtl-meta {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: var(--sh1);
    margin: 3px 0;
}

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

.x-preview picture,
.x-preview img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--line2);
}

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

.x-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .16s, transform .13s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.x-dl-btn:hover {
    background: var(--black);
    color: var(--yellow);
    transform: translateY(-1px);
    text-decoration: none;
}

.x-cli-tip {
    text-align: center;
    padding: 6px;
    font-size: .80rem;
}

.x-cli-tip a { color: var(--black); font-weight: 800; text-decoration: none; }
.x-cli-tip a:hover { color: var(--red); }

/* ===== SHARE BAR ===== */
.x-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--yellow-bg);
    border: 2px solid var(--black);
    padding: 7px 11px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.x-share-bar .s-lbl { font-size: .75rem; font-weight: 700; color: var(--txt3); white-space: nowrap; }
.x-share-bar .s-url { font-size: .77rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.x-share-bar .s-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--black);
    color: var(--yellow);
    border: 2px solid var(--black);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    border-radius: 0;
    text-transform: uppercase;
}

.x-share-bar .s-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

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

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

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

    .x-sitename { font-size: 1.08rem; letter-spacing: -.5px; }
    .x-domain-box .db-val { font-size: .92rem; }

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

    .x-zone-label {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
        line-height: 1.3;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .x-nav-links a {
        font-size: 12px;
        padding: 4px 1px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        border-width: 1.5px;
    }

    .x-search-box form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .x-search-box input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 6px;
    }

    .x-search-box button {
        height: 34px;
        padding: 0 6px;
        font-size: .72rem;
        letter-spacing: 0;
    }

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

    .x-cover { aspect-ratio: 600 / 350; }
    .x-caption h5 { font-size: .71rem; }
    .x-sect { padding: 8px 8px 6px; }
    .x-dl-btn { padding: 9px 14px; font-size: .82rem; }
}

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

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