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

:root {
    --bg: #ffffff;
    --bg2: #f4f4f4;
    --bg3: #ececec;
    --hd-bg: #1a1a1a;
    --hd-bg2: #111111;
    --red: #e8000d;
    --red2: #c50009;
    --red-bg: #fff0f0;
    --txt: #1a1a1a;
    --txt2: #444444;
    --txt3: #888888;
    --line: #dedede;
    --line2: #cccccc;
    --sh1: 0 1px 3px rgba(0,0,0,.08);
    --sh2: 0 2px 8px rgba(0,0,0,.12);
    --sh3: 0 4px 16px rgba(0,0,0,.16);
    --rd: 3px;
    --rd2: 2px;
    --rd3: 4px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.top-bar {
    background: var(--hd-bg);
    border-bottom: 3px solid var(--red);
    padding: 8px 0;
    box-shadow: var(--sh2);
}

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

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

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

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

.new-url-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: var(--rd);
    padding: 4px 13px;
    border-left: 3px solid var(--red);
}

.new-url-badge .nb-label {
    font-size: 0.64rem;
    color: #999999;
    white-space: nowrap;
}

.new-url-badge .nb-url {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .1px;
}

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

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

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

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

.zone-name {
    background: var(--hd-bg);
    color: #cccccc;
    font-size: .66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 60px;
    min-width: 60px;
    border-right: 2px solid var(--red);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-lnks a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--rd2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-lnks a:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: #f5b0b3;
}

.nav-lnks a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.srch-wrap {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.srch-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--line2);
    border-radius: var(--rd2);
    padding: 0 11px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg2);
    outline: none;
    transition: border-color .18s;
}

.srch-wrap input[type="text"]:focus {
    border-color: var(--red);
    background: var(--bg);
}

.srch-wrap button {
    height: 34px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rd2);
    background: var(--hd-bg);
    color: #ccc;
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.srch-wrap button:hover { background: #333; color: #fff; }

.srch-wrap button[value="1"] {
    background: var(--red);
    color: #fff;
}
.srch-wrap button[value="1"]:hover { background: var(--red2); }

.srch-wrap button[value="2"] {
    background: #555;
    color: #fff;
}
.srch-wrap button[value="2"]:hover { background: #444; }

/* ===== HOT TAGS ===== */
.hot-zone {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

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

.kw-list .kw:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: #f0aaaa;
}

/* ===== CONTENT SECTION ===== */
.sec-block {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.sec-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--red);
}

.sec-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: .1px;
}

.sec-hd h3 a { color: var(--txt); }
.sec-hd h3 a:hover { color: var(--red); }

.sec-hd h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--txt);
}

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

.item-grid li {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: box-shadow .18s, transform .18s;
}

.item-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-1px);
}

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

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

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

.item-desc {
    padding: 5px 7px 7px;
    border-top: 1px solid var(--line);
}

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

.item-desc h5 a { color: var(--txt2); }
.item-desc h5 a:hover { color: var(--red); }

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

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

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

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

.pager-btns a.pn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--red);
    border: 1px solid var(--red);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-sec {
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: 2px solid var(--hd-bg);
    padding: 9px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.fl-row dd { display: inline; }

.fl-row a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 8px;
    border: 1px solid var(--line);
    background: var(--bg2);
    text-decoration: none;
    transition: all .15s;
}

.fl-row a:hover { color: var(--red); border-color: var(--red); }

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

/* ===== DETAIL PAGES ===== */
.dtl-ttl {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .95rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    box-shadow: var(--sh1);
}

.dtl-ttl a {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
}

.dtl-body {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 15px;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

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

.pic-preview picture,
.pic-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== DL BUTTONS ===== */
.action-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 11px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, transform .14s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--red2);
    color: #fff;
    transform: translateY(-1px);
}

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

.cli-note a { color: var(--txt2); font-weight: 600; }
.cli-note a:hover { color: var(--red); }

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

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

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--hd-bg);
    color: #fff;
    border: none;
    font-size: .77rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.share-strip .ss-btn:hover { background: var(--red); }

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

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

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

    .hd-name { font-size: 1.04rem; }
    .new-url-badge .nb-url { font-size: .9rem; }

    .nav-row { 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;
    }

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

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

    .srch-wrap form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .srch-wrap input[type="text"] {
        height: 33px;
        font-size: .76rem;
        padding: 0 6px;
    }

    .srch-wrap button {
        height: 33px;
        padding: 0 7px;
        font-size: .70rem;
    }

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

    .item-cover { aspect-ratio: 600 / 350; }
    .item-desc h5 { font-size: .70rem; }
    .sec-block { padding: 8px 8px 7px; }
    .action-btn { padding: 9px 13px; font-size: .82rem; }
}

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

@media (max-width: 380px) {
    .zone-name { font-size: 10px; }
    .nav-lnks a { font-size: 12px; }
    .srch-wrap button { padding: 0 5px; font-size: .64rem; }
}
