/* =============================================
   Broadcast Media Portal - Dark Nav & Red Accent
   ============================================= */

:root {
    --crimson:    #cc0000;
    --crimson-dk: #a80000;
    --crimson-lt: #fff0f0;
    --navy:       #1a2035;
    --navy-mid:   #252d45;
    --navy-lt:    #2e3855;
    --sky:        #1677ff;
    --bg-root:    #f4f5f7;
    --bg-white:   #ffffff;
    --txt:        #1a1a1a;
    --txt-s:      #444;
    --txt-m:      #888;
    --txt-inv:    #ffffff;
    --bdr:        #e2e4e8;
    --bdr-lt:     #eeeff2;
    --shd-xs:     0 1px 3px rgba(0,0,0,0.06);
    --shd-s:      0 2px 8px rgba(0,0,0,0.09);
    --shd-m:      0 4px 16px rgba(0,0,0,0.12);
    --rr:         4px;
    --rrm:        6px;
    --tr:         all 0.2s ease;
    --ratio:      calc(350 / 600 * 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    background: var(--bg-root);
    color: var(--txt);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--txt); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--crimson); }
ul, ol { list-style: none; }
.zf::after { content: ""; display: table; clear: both; }

/* ===== LAYOUT ===== */
.bound     { max-width: 1060px; margin: 0 auto; padding: 0 14px; }
.bound-gap { padding: 10px 0; }

/* ===== SITE BRAND — NOT sticky/fixed ===== */
.hd-bar {
    background: var(--navy);
    /* intentionally no position:sticky */
}

.hd-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.hd-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.hd-sitename {
    font-size: 26px;
    font-weight: 900;
    color: var(--txt-inv);
    letter-spacing: 1px;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hd-sitename::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 26px;
    background: var(--crimson);
    border-radius: 2px;
    flex-shrink: 0;
}

.hd-domain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--rr);
    padding: 5px 14px;
}

.domain-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-inv);
    background: var(--crimson);
    padding: 1px 7px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.domain-str {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.3px;
}

/* ===== CHANNEL NAV ===== */
.chnl-nav {
    background: var(--navy-mid);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--crimson);
}

.chnl-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chnl-row:last-child { border-bottom: none; }

.chnl-zone {
    flex: 0 0 auto;
    min-width: 56px;
    background: var(--crimson);
    color: var(--txt-inv);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    text-align: center;
    white-space: nowrap;
    border-right: 2px solid var(--crimson-dk);
}

.chnl-links {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.chnl-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    border-left: 1px solid rgba(255,255,255,0.07);
    transition: var(--tr);
    white-space: nowrap;
}

.chnl-links a:hover {
    background: rgba(255,255,255,0.10);
    color: var(--txt-inv);
}

.chnl-links a.active {
    background: var(--crimson);
    color: var(--txt-inv);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.srch-wrap {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rrm);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shd-xs);
}

.srch-wrap form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.srch-wrap input[type="text"] {
    flex: 1;
    min-width: 100px;
    height: 38px;
    padding: 0 13px;
    border: 1.5px solid var(--bdr);
    border-radius: var(--rr);
    font-size: 14px;
    color: var(--txt);
    background: var(--bg-root);
    outline: none;
    transition: var(--tr);
}

.srch-wrap input[type="text"]:focus {
    border-color: var(--crimson);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px rgba(204,0,0,0.10);
}

.srch-wrap input[type="text"]::placeholder { color: var(--txt-m); }

.srch-wrap button {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: var(--rr);
    background: var(--crimson);
    color: var(--txt-inv);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.srch-wrap button:hover { background: var(--crimson-dk); box-shadow: var(--shd-s); }

/* ===== HOT WORDS ===== */
.hotword-panel {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rrm);
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shd-xs);
}

.hotword-panel h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bdr-lt);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotword-panel h4 strong { color: var(--crimson); }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
}

.cloud-item {
    display: inline-block;
    padding: 4px 11px;
    background: var(--bg-root);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    font-size: 12px;
    color: var(--txt-s);
    transition: var(--tr);
}

.cloud-item:hover {
    background: var(--crimson);
    color: var(--txt-inv);
    border-color: var(--crimson);
    box-shadow: 0 2px 8px rgba(204,0,0,0.2);
}

/* ===== CONTENT BLOCKS ===== */
.blk-wrap { margin-bottom: 12px; }

.blk-body {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rrm);
    padding: 14px 16px;
    box-shadow: var(--shd-xs);
}

.blk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bdr-lt);
    position: relative;
}

.blk-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--crimson);
}

.blk-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--txt);
    margin: 0;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blk-name::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--crimson);
    border-radius: 1px;
    flex-shrink: 0;
}

.blk-name a { color: var(--txt); }
.blk-name a:hover { color: var(--crimson); }

/* ===== FILM GRID  PC:4col  Mobile:2col ===== */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0;
}

.vod-grid li { position: relative; }

.vod-grid li:nth-child(1)  { animation: fadeRise 0.35s 0.03s both; }
.vod-grid li:nth-child(2)  { animation: fadeRise 0.35s 0.06s both; }
.vod-grid li:nth-child(3)  { animation: fadeRise 0.35s 0.09s both; }
.vod-grid li:nth-child(4)  { animation: fadeRise 0.35s 0.12s both; }
.vod-grid li:nth-child(5)  { animation: fadeRise 0.35s 0.15s both; }
.vod-grid li:nth-child(6)  { animation: fadeRise 0.35s 0.18s both; }
.vod-grid li:nth-child(7)  { animation: fadeRise 0.35s 0.21s both; }
.vod-grid li:nth-child(8)  { animation: fadeRise 0.35s 0.24s both; }
.vod-grid li:nth-child(9)  { animation: fadeRise 0.35s 0.27s both; }
.vod-grid li:nth-child(10) { animation: fadeRise 0.35s 0.30s both; }
.vod-grid li:nth-child(11) { animation: fadeRise 0.35s 0.33s both; }
.vod-grid li:nth-child(12) { animation: fadeRise 0.35s 0.36s both; }

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 600:350 cover ratio */
.vod-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rr);
    background: var(--bg-root);
    padding-top: var(--ratio);
    border: 1px solid var(--bdr-lt);
}

.vod-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.vod-cover:hover { border-color: var(--crimson); box-shadow: var(--shd-m); }
.vod-cover:hover img { transform: scale(1.06); }

.vod-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(180,0,0,0.42) 0%, transparent 52%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.vod-cover:hover::after { opacity: 1; }

.vod-desc { padding: 6px 2px 2px; }

.vod-desc h5 { font-size: 13px; font-weight: 500; line-height: 1.4; margin: 0; }

.vod-desc h5 a {
    color: var(--txt);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vod-desc h5 a:hover { color: var(--crimson); }

/* ===== DETAIL HEADLINE ===== */
.det-title {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--crimson);
    border-radius: var(--rr);
    box-shadow: var(--shd-xs);
}

.det-title a {
    color: var(--crimson);
    font-weight: 700;
    margin-right: 6px;
}

/* ===== TORRENT SPECS ===== */
.det-specs {
    font-size: 14px;
    line-height: 2.0;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    margin: 12px 0;
    box-shadow: var(--shd-xs);
}

.shot-zone { margin-top: 12px; }

.shot-zone picture { display: block; width: 100%; }

.shot-zone picture img,
.shot-zone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rr);
    border: 1px solid var(--bdr);
}

/* ===== DOWNLOAD BUTTONS — centered ===== */
.dl-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    margin: 12px 0;
    box-shadow: var(--shd-xs);
    flex-wrap: wrap;
}

.dl-cta {
    display: inline-block;
    padding: 10px 26px;
    background: var(--crimson);
    color: var(--txt-inv);
    border-radius: var(--rr);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    letter-spacing: 0.5px;
}

.dl-cta:hover {
    background: var(--crimson-dk);
    color: var(--txt-inv);
    box-shadow: 0 4px 12px rgba(204,0,0,0.35);
    transform: translateY(-1px);
}

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 580px;
    max-height: 580px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--rr);
    overflow: hidden;
    box-shadow: var(--shd-m);
    position: relative;
}

.video-container iframe,
.video-container video,
.video-container #video-container { width: 100%; height: 100%; border: none; }

.MacPlayer {
    background: #000;
    border-radius: var(--rr);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shd-m);
}

/* ===== SHARE SECTION ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 12px 14px;
    margin: 12px 0;
    box-shadow: var(--shd-xs);
    flex-wrap: nowrap;
}

.share-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-root);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 8px 11px;
    flex: 1;
    min-width: 0;
}

.share-kw {
    font-size: 12px;
    font-weight: 700;
    color: var(--crimson);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-href {
    font-size: 12px;
    color: var(--txt-s);
    word-break: break-all;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--navy);
    color: var(--txt-inv);
    border: none;
    border-radius: var(--rr);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy:hover { background: var(--navy-lt); box-shadow: var(--shd-s); }
.share-ico { font-size: 14px; }

/* ===== PAGINATION ===== */
.pager-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.pager-lnk {
    display: inline-block;
    min-width: 34px;
    padding: 5px 10px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    color: var(--txt-s);
    font-size: 13px;
    text-align: center;
    transition: var(--tr);
}

.pager-lnk:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--txt-inv);
}

.pager-active {
    display: inline-block;
    min-width: 34px;
    padding: 5px 10px;
    background: var(--crimson);
    border: 1px solid var(--crimson);
    border-radius: var(--rr);
    color: var(--txt-inv);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: default;
}

/* ===== FRIEND LINKS ===== */
.ext-block {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 10px 12px;
    box-shadow: var(--shd-xs);
}

.ext-block dl { display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; }
.ext-block dd { display: inline-block; margin: 3px 3px; }

.ext-link {
    display: inline-block;
    font-size: 12px;
    color: var(--txt-s);
    padding: 3px 9px;
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    transition: var(--tr);
    background: var(--bg-root);
}

.ext-link:hover {
    background: var(--crimson-lt);
    color: var(--crimson);
    border-color: #f5c0c0;
}

/* ===== FOOTER ===== */
.site-foot {
    background: var(--navy);
    padding: 20px 0;
    margin-top: 12px;
    text-align: center;
}

.foot-notice p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0;
}

.foot-notice a { color: rgba(255,255,255,0.78); }
.foot-notice a:hover { color: var(--crimson); }

/* ===== VISIBILITY ===== */
.on-pc  { display: block; }
.on-mob { display: block; }

@media (max-width: 768px)  { .on-pc  { display: none !important; } }
@media (min-width: 769px)  { .on-mob { display: none !important; } }

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {

    .bound     { padding: 0 8px; }
    .bound-gap { padding: 8px 0; }

    .hd-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }

    .hd-sitename { font-size: 20px; }
    .hd-domain   { padding: 4px 11px; }
    .domain-badge { font-size: 10px; }
    .domain-str   { font-size: 13px; }

    /* Zone tag: slightly larger on mobile — 4 chars fully visible, NO max-width */
    .chnl-zone {
        font-size: 13px;
        min-width: 44px;
        padding: 0 4px;
        line-height: 1.4;
        white-space: normal;
        word-break: keep-all;
        text-align: center;
        border-right-width: 1px;
    }

    /* Category links: 4 per row × 2 rows, bigger font */
    .chnl-links { flex-wrap: wrap; }

    .chnl-links a {
        flex: 0 0 25%;
        font-size: 15px;
        font-weight: 500;
        padding: 11px 2px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        border-left: none;
        color: rgba(255,255,255,0.82);
    }

    .chnl-links a:hover {
        background: rgba(255,255,255,0.12);
        color: var(--txt-inv);
    }

    /* Film grid: 2 cols */
    .vod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .blk-body { padding: 10px 12px; }
    .blk-name { font-size: 14px; }

    .srch-wrap form { flex-wrap: nowrap; gap: 5px; }
    .srch-wrap input[type="text"] { height: 34px; font-size: 13px; min-width: 80px; padding: 0 10px; }
    .srch-wrap button { height: 34px; padding: 0 11px; font-size: 12px; }

    .video-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }

    .dl-bar  { padding: 12px 8px; gap: 8px; }
    .dl-cta  { padding: 8px 16px; font-size: 13px; }

    .share-bar     { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-url-box { padding: 7px 9px; gap: 5px; }
    .share-kw      { font-size: 11px; }
    .share-href    { font-size: 11px; }
    .share-copy    { padding: 7px 11px; font-size: 12px; }

    .pager-row { padding: 10px 0; gap: 3px; }
    .pager-lnk, .pager-active { min-width: 30px; padding: 4px 8px; font-size: 12px; }

    .tag-cloud { gap: 5px; }
    .cloud-item { font-size: 11px; padding: 3px 9px; }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {

    .hd-sitename { font-size: 18px; }

    .chnl-zone {
        font-size: 12px;
        min-width: 40px;
        padding: 0 3px;
    }

    .chnl-links a { font-size: 14px; padding: 10px 1px; }

    .vod-grid { gap: 6px; }
    .vod-desc h5 { font-size: 12px; }
    .dl-cta   { padding: 7px 12px; font-size: 12px; }
    .share-bar { gap: 5px; }
    .share-copy { padding: 6px 8px; font-size: 11px; }
}

/* ===== MISC ===== */
img[data-original] { background: var(--bg-root); }
