/* Video Site Template - ChinaPress News Edition */

:root {
    --clr-red: #d0021b;
    --clr-red2: #b00017;
    --clr-yellow: #f5a623;
    --clr-yellow2: #e8920e;
    --clr-gold: #ffd700;
    --clr-dark: #1a1a1a;
    --clr-dark2: #2c2c2c;
    --clr-dark3: #3d3d3d;
    --clr-bg: #f0f0f0;
    --clr-bg2: #f7f7f7;
    --clr-white: #ffffff;
    --clr-text: #1a1a1a;
    --clr-text2: #555555;
    --clr-text3: #888888;
    --clr-border: #dddddd;
    --clr-border2: #cccccc;
    --clr-link: #d0021b;
    --clr-link2: #c47900;
    --clr-shadow: rgba(0, 0, 0, 0.12);
    --clr-shadow2: rgba(0, 0, 0, 0.22);
    --grad-red: linear-gradient(135deg, #d0021b 0%, #8b0010 100%);
    --grad-yellow: linear-gradient(135deg, #f5a623 0%, #e07b00 100%);
    --grad-header: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    --rd: 4px;
    --rd-sm: 3px;
    --ease: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimSun', Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ── SITE HEADER ─────────────────────────────── */
.site-header {
    background: var(--grad-header);
    padding: 0.55rem 0;
    border-bottom: 3px solid var(--clr-red);
}

.brand-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.site-logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--ease);
}
.site-logo:hover { opacity: 0.85; }

.site-ttl {
    font-size: 27px;
    font-weight: 900;
    color: var(--clr-white);
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.site-ttl:hover { color: var(--clr-gold); }

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--rd);
    border: 1px solid var(--clr-yellow);
    background: rgba(245, 166, 35, 0.12);
}

.domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-yellow);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.domain-val {
    font-size: 19px;
    font-weight: 800;
    color: var(--clr-gold);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* ── LAYOUT ──────────────────────────────────── */
.pg-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 13px;
}

.pg-body { padding: 7px 0; }

/* ── CATEGORY NAVIGATION ─────────────────────── */
.cate-nav {
    background: var(--clr-white);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.cate-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-border);
}
.cate-row:last-child { border-bottom: none; }

.cate-zone {
    font-weight: 800;
    font-size: 12px;
    color: var(--clr-white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--clr-red);
}

.cate-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 8px;
    align-items: center;
}

.cate-links a {
    display: inline-block;
    color: var(--clr-text);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.cate-links a:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red2);
    font-weight: 600;
}

.cate-links a.active {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red2);
    font-weight: 700;
}

/* ── SEARCH BOX ──────────────────────────────── */
.srch-box {
    background: var(--clr-white);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

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

.srch-box input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 9px 12px;
    border: 1px solid var(--clr-border2);
    border-radius: var(--rd-sm);
    background: var(--clr-bg2);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.srch-box input[type="text"]:focus {
    border-color: var(--clr-red);
    background: var(--clr-white);
    box-shadow: 0 0 0 2px rgba(208,2,27,0.12);
}

.srch-box input[type="text"]::placeholder { color: var(--clr-text3); }

.srch-box button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grad-red);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.srch-box button:hover {
    background: var(--clr-red2);
    box-shadow: 0 2px 8px rgba(208,2,27,0.35);
}

/* ── HOT TAGS ────────────────────────────────── */
.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 8px 10px;
    background: var(--clr-white);
    border-radius: var(--rd);
    margin-bottom: 7px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.tag-link {
    padding: 3px 11px;
    background: var(--clr-bg2);
    border-radius: 2px;
    color: var(--clr-text2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-link:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red2);
    font-weight: 600;
}

/* ── SECTION BLOCKS ──────────────────────────── */
.sec-block { margin-bottom: 12px; }

.sec-inner {
    background: var(--clr-white);
    border-radius: var(--rd);
    border: 1px solid var(--clr-border);
    padding: 13px 13px 10px;
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.sec-head {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-head::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--grad-red);
    border-radius: 2px;
    flex-shrink: 0;
}

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

.sec-ttl {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--clr-text);
    letter-spacing: 0.3px;
}

.sec-ttl a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease);
}
.sec-ttl a:hover { color: var(--clr-red); }

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

.film-grid li {
    position: relative;
    animation: fadeUp 0.4s ease backwards;
}

.film-grid li:nth-child(1) { animation-delay: 0.03s; }
.film-grid li:nth-child(2) { animation-delay: 0.06s; }
.film-grid li:nth-child(3) { animation-delay: 0.09s; }
.film-grid li:nth-child(4) { animation-delay: 0.12s; }
.film-grid li:nth-child(5) { animation-delay: 0.15s; }
.film-grid li:nth-child(6) { animation-delay: 0.18s; }
.film-grid li:nth-child(7) { animation-delay: 0.21s; }
.film-grid li:nth-child(8) { animation-delay: 0.24s; }

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

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd-sm);
    /* 封面比例 600:350 */
    aspect-ratio: 600 / 350;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(208,2,27,0.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.film-thumb:hover::after { opacity: 1; }

.film-thumb:hover {
    border-color: var(--clr-red);
    box-shadow: 0 3px 12px var(--clr-shadow2);
}

.film-thumb:hover img { transform: scale(1.06); }

.film-meta { padding: 6px 0 2px; }

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

.film-meta h5 a {
    color: var(--clr-text2);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover { color: var(--clr-red); }

/* ── VIDEO PLAYER ────────────────────────────── */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--clr-shadow2);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px var(--clr-shadow2);
}

/* ── TORRENT CAPTURE ─────────────────────────── */
.snap-grid { width: 100%; }

.snap-grid picture { display: block; width: 100%; }

.snap-grid img,
.snap-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

.snap-grid .img_item { width: 100%; }

/* ── DOWNLOAD BUTTONS ────────────────────────── */
.dl-wrap {
    text-align: center;
    padding: 12px;
    background: var(--clr-white);
    border-radius: var(--rd);
    margin: 9px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.dl-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--grad-red);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 1px solid var(--clr-red2);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.dl-btn:hover {
    background: var(--clr-red2);
    box-shadow: 0 3px 10px rgba(208,2,27,0.4);
}

/* ── LINK / SHARE SECTION ────────────────────── */
.lnk-section {
    background: var(--clr-white);
    border-radius: var(--rd);
    padding: 12px;
    margin: 9px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lnk-display {
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border2);
    border-radius: var(--rd-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.lnk-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--clr-red);
    white-space: nowrap;
    flex-shrink: 0;
}

.lnk-url {
    font-size: 12px;
    color: var(--clr-text2);
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lnk-copy {
    padding: 9px 18px;
    background: var(--grad-yellow);
    color: var(--clr-white);
    border: 1px solid var(--clr-yellow2);
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lnk-copy:hover {
    background: var(--clr-yellow2);
    box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}
.lnk-copy:active { transform: scale(0.97); }
.lnk-icon { font-size: 15px; }

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

.pg-link, .pg-cur {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rd-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 32px;
    text-align: center;
}

.pg-link {
    background: var(--clr-white);
    color: var(--clr-text2);
    border: 1px solid var(--clr-border2);
}

.pg-link:hover {
    background: var(--clr-red);
    border-color: var(--clr-red2);
    color: var(--clr-white);
    font-weight: 700;
}

.pg-cur {
    background: var(--grad-red);
    color: var(--clr-white);
    border: 1px solid var(--clr-red2);
    cursor: default;
    font-weight: 700;
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--clr-red);
    margin-top: 14px;
    background: var(--clr-dark);
}

.site-footer p {
    margin: 5px 0;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.site-footer a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: var(--ease);
}

.site-footer a:hover { color: var(--clr-yellow); text-decoration: underline; }

/* ── FRIENDLY LINKS ──────────────────────────── */
.flink-box {
    padding: 10px 12px;
    background: var(--clr-white);
    border-radius: var(--rd);
    border: 1px solid var(--clr-border);
}

.flink-box dl { margin: 0; }
.flink-box dd { display: inline-block; margin: 3px; }

.flink-box a {
    color: var(--clr-text2);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 2px 4px;
}

.flink-box a:hover { color: var(--clr-red); text-decoration: underline; }

.pd5 { padding: 2px 4px; }

/* ── UTILITY ─────────────────────────────────── */
.clearfix::after { content: ""; display: table; clear: both; }

.hide-mob { display: block; }
.hide-pc  { display: block; }

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

img[data-original] { background: var(--clr-bg2); }

/* ── RESPONSIVE ≤ 768px ──────────────────────── */
@media (max-width: 768px) {
    .pg-wrap { padding: 0 8px; }
    .pg-body  { padding: 6px 0; }

    .site-ttl  { font-size: 20px; }
    .domain-val { font-size: 17px; }
    .domain-tag { font-size: 10px; }

    .cate-zone  { width: 15%; font-size: 10px; padding: 7px 2px; }
    .cate-links { width: 85%; gap: 4px; padding: 7px 4px; }
    .cate-links a {
        font-size: 14px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .film-grid  { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .film-meta h5 { font-size: 12px; }
    .sec-ttl   { font-size: 16px; }
    .sec-block { margin-bottom: 9px; }
    .sec-inner { padding: 10px 10px 8px; }

    .srch-box  { padding: 8px 10px; }
    .srch-box input[type="text"] { min-width: 90px; font-size: 12px; padding: 8px 9px; }
    .srch-box button { padding: 8px 9px; font-size: 12px; }

    .tag-wrap  { padding: 7px 9px; gap: 5px; }
    .tag-link  { padding: 3px 9px; font-size: 11px; }

    .dl-wrap   { padding: 9px 6px; margin: 7px 0; gap: 6px; }
    .dl-btn    { padding: 8px 12px; font-size: 13px; }

    .lnk-section { padding: 9px; margin: 8px 0; gap: 6px; }
    .lnk-display  { padding: 7px 9px; }
    .lnk-copy     { padding: 8px 10px; font-size: 12px; }

    .pager-wrap { padding: 11px 0; gap: 4px; }
    .pg-link, .pg-cur { padding: 5px 9px; font-size: 12px; min-width: 28px; }

    .video-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }
    .site-footer { padding: 13px 0; margin-top: 10px; }
}

/* ── RESPONSIVE ≤ 480px ──────────────────────── */
@media (max-width: 480px) {
    .site-ttl  { font-size: 18px; }
    .domain-val { font-size: 16px; }
    .brand-inner { gap: 11px; }

    .cate-zone  { width: 15%; font-size: 10px; padding: 5px 2px; }
    .cate-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .cate-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .film-grid  { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .film-meta h5 { font-size: 11px; }
    .sec-ttl   { font-size: 14px; }

    .srch-box input[type="text"] { min-width: 65px; padding: 7px 7px; }
    .srch-box button { padding: 7px 7px; font-size: 11px; }

    .dl-btn { padding: 7px 10px; font-size: 12px; }
    .lnk-url   { font-size: 10px; }
    .lnk-label { font-size: 10px; }

    .video-container { height: 56.25vw; max-height: 260px; margin-bottom: 8px; }
}
