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

:root {
    --white: #ffffff;
    --off-white: #f5f5f5;
    --light-gray: #ebebeb;
    --mid-gray: #d0d0d0;
    --text-dark: #111111;
    --text-body: #333333;
    --text-soft: #666666;
    --text-mute: #999999;
    --red: #cc2200;
    --red-hover: #aa1800;
    --red-light: #fff0ee;
    --teal: #00857a;
    --teal-hover: #006b62;
    --border-main: #e0e0e0;
    --border-soft: #eeeeee;
    --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
    --corner: 3px;
    --corner-lg: 6px;
}

html { font-size: 15px; }

body {
    background: var(--off-white);
    color: var(--text-body);
    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(--red-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.fx::after { content: ''; display: table; clear: both; }

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

/* ===== TOP BAR / BRAND ===== */
.site-topbar {
    background: var(--white);
    border-bottom: 3px solid var(--text-dark);
    padding: 8px 0;
    box-shadow: var(--shadow-xs);
}

.site-topbar .w-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.site-name-text {
    font-size: 1.48rem;
    font-weight: 900;
    color: var(--text-dark);
    font-style: normal;
    letter-spacing: -1px;
    text-decoration: none;
    border-bottom: none;
    text-transform: uppercase;
    line-height: 1;
}

.site-name-text strong {
    color: var(--red);
}

.url-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-left: 3px solid var(--red);
    padding-left: 10px;
}

.url-tag .ut-label {
    font-size: 0.68rem;
    color: var(--text-mute);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.url-tag .ut-domain {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    letter-spacing: -.2px;
}

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner-lg);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

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

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

.nav-zone-name {
    background: var(--text-dark);
    color: rgba(255,255,255,.85);
    font-size: .65rem;
    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,.08);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.nav-items-wrap a {
    font-size: .81rem;
    color: var(--text-body);
    padding: 3px 5px;
    border-radius: var(--corner);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.nav-items-wrap a:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: rgba(204,34,0,.2);
}

.nav-items-wrap a.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner-lg);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border-main);
    border-radius: var(--corner);
    padding: 0 12px;
    font-size: .87rem;
    color: var(--text-dark);
    background: var(--off-white);
    outline: none;
    transition: border-color .18s;
}

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

.search-bar input[type="text"]:focus {
    border-color: var(--text-dark);
    background: var(--white);
}

.search-bar button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--corner);
    background: var(--text-dark);
    color: var(--white);
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.search-bar button:hover { background: #333; }

.search-bar button[value="1"] { background: var(--red); }
.search-bar button[value="1"]:hover { background: var(--red-hover); }

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

/* ===== HOT KEYWORDS ===== */
.kw-panel {
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner-lg);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

.kw-panel h4 {
    font-size: .77rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

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

.kw-list .kw {
    display: inline-block;
    background: var(--off-white);
    color: var(--text-body);
    border: 1px solid var(--border-main);
    border-radius: 2px;
    padding: 2px 9px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.kw-list .kw:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: rgba(204,34,0,.25);
}

/* ===== CONTENT MODULE ===== */
.content-module {
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner-lg);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--text-dark);
    position: relative;
}

.module-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 3px;
    background: var(--red);
    border-radius: 0;
}

.module-head h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.module-head h3 a { color: var(--text-dark); }
.module-head h3 a:hover { color: var(--red); }

.module-head h4 {
    font-size: .93rem;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
}

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

.vod-list li {
    border-radius: var(--corner);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--off-white);
    transition: box-shadow .2s, transform .2s;
}

.vod-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

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

.vod-label {
    padding: 5px 7px 7px;
    border-top: 1px solid var(--border-soft);
}

.vod-label h5 {
    font-size: .77rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vod-label h5 a { color: var(--text-body); }
.vod-label h5 a:hover { color: var(--red); }

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

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

.page-btns a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--white);
    border: 1.5px solid var(--border-main);
    border-radius: var(--corner);
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all .15s;
}

.page-btns a.pgb:hover {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.page-btns a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--red);
    border: 1.5px solid var(--red);
    border-radius: var(--corner);
    font-size: .83rem;
    font-weight: 700;
    color: var(--white);
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner-lg);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

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

.flink-items dd { display: inline; }

.flink-items a {
    display: inline-block;
    font-size: .76rem;
    color: var(--text-mute);
    padding: 2px 9px;
    border-radius: var(--corner);
    border: 1px solid var(--border-soft);
    background: var(--off-white);
    text-decoration: none;
    transition: all .15s;
}

.flink-items a:hover { color: var(--red); border-color: rgba(204,34,0,.3); background: var(--red-light); }

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

/* ===== DETAIL TITLE ===== */
.detail-title {
    line-height: 1.8;
    text-align: left;
    padding: 12px 15px;
    font-size: .96rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--border-main);
    border-top: 3px solid var(--red);
    border-radius: var(--corner);
    box-shadow: var(--shadow-xs);
}

.detail-title a {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== DETAIL INFO ===== */
.detail-info {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner);
    box-shadow: var(--shadow-xs);
    margin: 4px 0;
    color: var(--text-body);
}

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

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

/* ===== DOWNLOAD BUTTONS ===== */
.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 24px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: var(--corner);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.act-btn:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-1px);
}

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

.client-hint a { color: var(--text-soft); font-weight: 600; }
.client-hint a:hover { color: var(--red); }

/* ===== SHARE ROW ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--off-white);
    border: 1px solid var(--border-main);
    border-radius: var(--corner);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-strip .ss-label { font-size: .74rem; color: var(--text-mute); white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.share-strip .ss-url { font-size: .79rem; color: var(--text-soft); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: var(--corner);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

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

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

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

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

    .site-name-text { font-size: 1.1rem; }
    .url-tag .ut-domain { font-size: .9rem; }

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

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

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

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

    .search-bar input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 7px;
    }

    .search-bar button {
        height: 34px;
        padding: 0 7px;
        font-size: .72rem;
    }

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

    .vod-cover { aspect-ratio: 600 / 350; }
    .vod-label h5 { font-size: .71rem; }
    .content-module { padding: 9px 9px 7px; }
    .act-btn { padding: 9px 14px; font-size: .83rem; }
}

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

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