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

:root {
    --yellow: #f5c518;
    --yellow-dk: #e0b000;
    --yellow-lt: #fff9d6;
    --yellow-bg: #fffde7;
    --amber: #e07800;
    --amber-dk: #b86200;
    --black: #1a1a1a;
    --black2: #2d2d2d;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #fafaf7;
    --bg-warm: #f5f2ea;
    --bg-muted: #eeeae0;
    --txt: #1a1a1a;
    --txt2: #3d3d3d;
    --txt3: #888878;
    --line: #e8e2d0;
    --line2: #d8d2be;
    --sd1: 0 2px 6px rgba(26,26,26,.07);
    --sd2: 0 4px 14px rgba(26,26,26,.11);
    --sd3: 0 8px 28px rgba(26,26,26,.15);
    --rr: 10px;
    --rr2: 6px;
    --rr3: 16px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--yellow);
    border-bottom: 3px solid var(--yellow-dk);
    padding: 9px 0;
    box-shadow: var(--sd2);
}

.top-bar .w-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.site-name {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
    font-style: normal;
}

.url-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    border-radius: 24px;
    padding: 4px 16px;
}

.url-tag .ut-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

.url-tag .ut-addr {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--yellow);
    white-space: nowrap;
    letter-spacing: .2px;
}

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

/* ===== CATEGORY NAV ===== */
.cls-nav {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sd1);
}

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

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

.cls-zone-tag {
    background: var(--yellow);
    color: var(--black);
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 64px;
    min-width: 64px;
    border-right: 2px solid var(--yellow-dk);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cls-links a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--rr2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1.5px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.cls-links a:hover {
    background: var(--yellow-bg);
    color: var(--black);
    border-color: var(--yellow-dk);
}

.cls-links a.active {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow-dk);
    font-weight: 800;
}

/* ===== SEARCH ===== */
.sch-wrap {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sd1);
}

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

.sch-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--line2);
    border-radius: var(--rr2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.sch-wrap input[type="text"]:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245,197,24,.22);
}

.sch-wrap button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rr2);
    background: var(--black);
    color: var(--white);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s;
    flex-shrink: 0;
}

.sch-wrap button:hover { background: var(--black2); }

.sch-wrap button[value="1"] { background: var(--yellow); color: var(--black); }
.sch-wrap button[value="1"]:hover { background: var(--yellow-dk); color: var(--black); }

.sch-wrap button[value="2"] { background: var(--amber); color: var(--white); }
.sch-wrap button[value="2"]:hover { background: var(--amber-dk); }

/* ===== HOT TAGS ===== */
.hot-wrap {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sd1);
}

.hot-wrap h4 {
    font-size: .79rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 5px;
}

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

.kwd-list .kw {
    display: inline-block;
    background: var(--yellow-bg);
    color: var(--txt2);
    border: 1.5px solid var(--line2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .16s;
    font-weight: 500;
}

.kwd-list .kw:hover {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow-dk);
}

/* ===== CONTENT SECTION ===== */
.mod-sect {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--sd1);
}

.mod-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--yellow);
    position: relative;
}

.mod-hd h3 {
    font-size: .98rem;
    font-weight: 900;
    color: var(--black);
}

.mod-hd h3 a { color: var(--black); }
.mod-hd h3 a:hover { color: var(--amber); }

.mod-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--black);
}

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

.vid-list li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--bg-warm);
    transition: box-shadow .2s, transform .2s;
}

.vid-list li:hover {
    box-shadow: var(--sd3);
    transform: translateY(-3px);
    border-color: var(--yellow);
}

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

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

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

.vid-desc {
    padding: 5px 7px 7px;
}

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

.vid-desc h5 a { color: var(--txt); }
.vid-desc h5 a:hover { color: var(--amber); }

/* ===== PAGINATION ===== */
.pg-section {
    margin: 13px 0 5px;
    display: flex;
    justify-content: center;
}

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

.pg-row a.pgi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--white);
    border: 2px solid var(--line2);
    border-radius: var(--rr2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .16s;
    font-weight: 600;
}

.pg-row a.pgi:hover {
    background: var(--yellow-bg);
    border-color: var(--yellow);
    color: var(--black);
}

.pg-row a.pgi-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--yellow);
    border: 2px solid var(--yellow-dk);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 800;
    color: var(--black);
    cursor: default;
}

/* ===== FOOTER ===== */
.fl-sect {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr);
    padding: 9px 12px;
    margin: 4px 0;
    box-shadow: var(--sd1);
}

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

.fl-row dd { display: inline; }

.fl-row a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1.5px solid var(--line);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .16s;
}

.fl-row a:hover { color: var(--black); border-color: var(--yellow); background: var(--yellow-bg); }

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

/* ===== DETAIL PAGES ===== */
.item-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--white);
    border: 2px solid var(--line);
    border-left: 5px solid var(--yellow);
    border-radius: var(--rr);
    box-shadow: var(--sd1);
}

.item-title a {
    color: var(--amber);
    font-weight: 800;
    margin-right: 6px;
}

.item-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 18px;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--rr);
    box-shadow: var(--sd1);
    margin: 4px 0;
}

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

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

/* ===== DL 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(--black);
    color: var(--yellow);
    border: none;
    border-radius: var(--rr2);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
}

.act-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

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

.client-note a { color: var(--black); font-weight: 700; }
.client-note a:hover { color: var(--amber); }

/* ===== SHARE ===== */
.share-box {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--yellow-bg);
    border: 2px solid var(--yellow-dk);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

.share-box .sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--black);
    color: var(--yellow);
    border: none;
    border-radius: var(--rr2);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.share-box .sb-btn:hover { background: var(--amber); color: var(--white); }

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

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

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

    .site-name { font-size: 1.06rem; }
    .url-tag .ut-addr { font-size: .9rem; }

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

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

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

    .cls-links 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 */
    .sch-wrap form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .sch-wrap input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 6px;
    }

    .sch-wrap button {
        height: 34px;
        padding: 0 6px;
        font-size: .73rem;
    }

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

    .vid-cover { aspect-ratio: 600 / 350; }
    .vid-desc h5 { font-size: .72rem; }
    .mod-sect { padding: 9px 9px 7px; }
    .act-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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