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

:root {
    --bg: #ffffff;
    --bg-soft: #f0f4fa;
    --bg-muted: #e4ecf7;
    --blue: #1a73e8;
    --blue-dk: #1558b0;
    --blue-lt: #4a9af5;
    --blue-bg: #e8f0fe;
    --teal: #00897b;
    --teal-dk: #00695c;
    --sky: #e3f2fd;
    --txt: #202124;
    --txt2: #3c4043;
    --txt3: #80868b;
    --line: #dadce0;
    --line2: #bdc1c6;
    --s1: 0 1px 4px rgba(60,64,67,.10);
    --s2: 0 2px 10px rgba(60,64,67,.14);
    --s3: 0 4px 20px rgba(60,64,67,.18);
    --r: 10px;
    --r2: 6px;
    --r3: 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.65;
}

a { color: var(--blue); text-decoration: none; transition: color .18s; }
a:hover { color: var(--blue-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 ===== */
.site-top {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    box-shadow: var(--s1);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

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

.site-title-text {
    font-size: 1.36rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -.3px;
    text-decoration: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-bg);
    border: 1px solid #c5d8fd;
    border-radius: 24px;
    padding: 4px 15px;
}

.domain-badge .badge-hint {
    font-size: 0.69rem;
    color: var(--blue);
    white-space: nowrap;
    opacity: .75;
}

.domain-badge .badge-url {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-dk);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

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

.nav-zone-tag {
    background: var(--blue);
    color: rgba(255,255,255,.92);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    width: 64px;
    min-width: 64px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-items-zone a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 5px;
    border-radius: var(--r2);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-items-zone a:hover {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: #c5d8fd;
}

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

/* ===== SEARCH ===== */
.qry-bar {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

.qry-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 37px;
    border: 1.5px solid var(--line2);
    border-radius: 24px;
    padding: 0 16px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.qry-bar input[type="text"]:focus {
    border-color: var(--blue);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

.qry-bar button {
    height: 37px;
    padding: 0 13px;
    border: none;
    border-radius: 24px;
    background: var(--txt2);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.qry-bar button:hover { background: var(--blue-dk); }

.qry-bar button[value="1"] { background: var(--blue); }
.qry-bar button[value="1"]:hover { background: var(--blue-dk); }

.qry-bar button[value="2"] { background: var(--teal); }
.qry-bar button[value="2"]:hover { background: var(--teal-dk); }

/* ===== HOT TAGS ===== */
.trend-block {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.trend-block h4 {
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 6px;
}

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

.kw-pills .kw-item {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2px 11px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.kw-pills .kw-item:hover {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: #c5d8fd;
}

/* ===== CONTENT SECTION ===== */
.media-sect {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

.media-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.media-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.media-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt);
}

.media-sect-hd h3 a { color: var(--txt); }
.media-sect-hd h3 a:hover { color: var(--blue); }

.media-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
}

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

.vod-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

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

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

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

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

.vod-meta {
    padding: 5px 7px 7px;
}

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

.vod-meta h5 a { color: var(--txt); }
.vod-meta h5 a:hover { color: var(--blue); }

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

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

.pager-inner a.pg-lnk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--line2);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pager-inner a.pg-lnk:hover {
    background: var(--blue-bg);
    border-color: var(--blue);
    color: var(--blue);
}

.pager-inner a.pg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.flink-panel {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

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

.ext-links dd { display: inline; }

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

.ext-links a:hover { color: var(--blue); border-color: var(--blue); }

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

/* ===== DETAIL PAGES ===== */
.dtl-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--r);
    box-shadow: var(--s1);
}

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

.dtl-specs {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--s1);
    margin: 5px 0;
}

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

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

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

.dl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(26,115,232,.28);
}

.dl-action-btn:hover {
    background: var(--blue-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,115,232,.35);
}

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

.client-tip a { color: var(--blue); font-weight: 600; }
.client-tip a:hover { color: var(--blue-dk); }

/* ===== SHARE ===== */
.link-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--sky);
    border: 1px solid #c5d8fd;
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.link-share-bar .share-prefix { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.link-share-bar .share-link-text { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.link-share-bar .copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.link-share-bar .copy-link-btn:hover { background: var(--blue-dk); }

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

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

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

    .site-title-text { font-size: 1.08rem; }
    .domain-badge .badge-url { font-size: .9rem; }

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

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

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

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

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

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

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

    .vod-cover { aspect-ratio: 600 / 350; }
    .vod-meta h5 { font-size: .72rem; }
    .media-sect { padding: 9px 9px 7px; }
    .dl-action-btn { padding: 9px 16px; font-size: .84rem; }
}

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

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