/* Video Site - Dark Space Theme */

:root {
    --clr-bg: #0b0c0e;
    --clr-bg2: #141518;
    --clr-surface: #1a1c21;
    --clr-surface2: #22252c;
    --clr-red: #e03a2f;
    --clr-red-dk: #b82e25;
    --clr-red-lt: rgba(224, 58, 47, 0.12);
    --clr-text: #f0f0f0;
    --clr-text-sub: #a0a4ae;
    --clr-text-dim: #666a75;
    --clr-border: #2a2d35;
    --clr-border-lt: #323540;
    --clr-shadow: rgba(0, 0, 0, 0.4);
    --clr-shadow-lg: rgba(0, 0, 0, 0.65);
    --grad-red: linear-gradient(135deg, #e03a2f 0%, #c0392b 100%);
    --bd-r: 4px;
    --bd-r-sm: 3px;
    --fx: all 0.22s ease;
}

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

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

/* ─── Header ─── */
.site-header {
    background: #000000;
    border-bottom: 2px solid var(--clr-red);
    padding: 0.55rem 0;
}

.hd-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

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

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    transition: var(--fx);
}

.brand-anchor:hover .brand-title {
    color: var(--clr-red);
}

.addr-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.addr-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.addr-val {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── Layout ─── */
.outer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.blk {
    padding: 8px 0;
}

/* ─── Navigation ─── */
.nav-shelf {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: var(--bd-r);
}

.nav-band {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-border);
}

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

.zone-tag {
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    background: var(--clr-red);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 8px;
    align-items: center;
    background: var(--clr-bg2);
}

.zone-links a {
    display: inline-block;
    color: var(--clr-text-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--bd-r-sm);
    transition: var(--fx);
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border-lt);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.zone-links a:hover {
    background: var(--clr-red);
    color: #fff;
    border-color: var(--clr-red);
}

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

/* ─── Search ─── */
.qry-bar {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: var(--bd-r);
}

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

.qry-bar input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    border: 1px solid var(--clr-border-lt);
    background: var(--clr-bg2);
    color: var(--clr-text);
    font-size: 13px;
    outline: none;
    transition: var(--fx);
    border-radius: 2px;
}

.qry-bar input[type="text"]:focus {
    border-color: var(--clr-red);
    box-shadow: 0 0 0 2px rgba(224, 58, 47, 0.2);
}

.qry-bar input[type="text"]::placeholder {
    color: var(--clr-text-dim);
}

.qry-bar button {
    padding: 8px 14px;
    border: none;
    background: var(--clr-red);
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--fx);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

/* ─── Hot Tags ─── */
.keyword-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    margin-bottom: 8px;
    border-radius: var(--bd-r);
}

.kw-pill {
    padding: 4px 12px;
    background: var(--clr-surface2);
    color: var(--clr-text-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--fx);
    border: 1px solid var(--clr-border-lt);
    border-radius: 2px;
}

.kw-pill:hover {
    background: var(--clr-red);
    color: #fff;
    border-color: var(--clr-red);
}

/* ─── Section Blocks ─── */
.content-block {
    margin-bottom: 12px;
}

.block-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.block-ttl {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.block-ttl a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--fx);
}

.block-ttl a:hover {
    color: var(--clr-red);
}

/* ─── Thumbnail Grid ─── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}

.card-grid li {
    position: relative;
}

.card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--bd-r);
    aspect-ratio: 600 / 350;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    transition: var(--fx);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card-img-wrap:hover {
    border-color: var(--clr-red);
    box-shadow: 0 4px 20px var(--clr-shadow-lg);
}

.card-img-wrap:hover img {
    transform: scale(1.07);
}

.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-wrap:hover::after {
    opacity: 1;
}

.card-meta {
    padding: 6px 0;
}

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

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

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

/* ─── Video Player ─── */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--bd-r);
    overflow: hidden;
    box-shadow: 0 6px 30px var(--clr-shadow-lg);
    position: relative;
    border: 1px solid var(--clr-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--bd-r);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
}

/* ─── Torrent Preview Image ─── */
.torrent-capture-grid {}

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

.torrent-capture-grid img:hover,
.torrent-capture-grid .img_item img:hover {
    box-shadow: none;
    transform: none;
}

.torrent-capture-grid .img_item {
    width: 100%;
}

/* ─── Download Buttons ─── */
.act-bar {
    text-align: center;
    padding: 14px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    border-radius: var(--bd-r);
}

.act-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-red);
    color: white;
    text-decoration: none;
    border-radius: var(--bd-r-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--fx);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.act-btn:hover {
    background: var(--clr-red-dk);
    box-shadow: 0 4px 16px rgba(224, 58, 47, 0.4);
}

/* ─── Share Panel ─── */
.share-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 12px 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--bd-r);
}

.share-url-display {
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border-lt);
    border-radius: var(--bd-r-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--clr-red);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.share-url {
    font-size: 12px;
    color: var(--clr-text-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 16px;
    background: var(--clr-red);
    color: white;
    border: none;
    border-radius: var(--bd-r-sm);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--fx);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.share-copy-btn:hover {
    background: var(--clr-red-dk);
    box-shadow: 0 4px 14px rgba(224, 58, 47, 0.4);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

.share-icon {
    font-size: 15px;
}

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

.pg-a,
.pg-now {
    display: inline-block;
    padding: 6px 13px;
    border-radius: var(--bd-r-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--fx);
    min-width: 34px;
    text-align: center;
}

.pg-a {
    background: var(--clr-surface2);
    color: var(--clr-text-sub);
    border: 1px solid var(--clr-border-lt);
}

.pg-a:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: #fff;
}

.pg-now {
    background: var(--clr-red);
    color: #fff;
    border: 1px solid var(--clr-red);
    cursor: default;
}

/* ─── Footer ─── */
.foot-wrap {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 16px;
    background: #000;
}

.foot-wrap p {
    margin: 5px 0;
    color: var(--clr-text-dim);
    font-size: 12px;
}

.foot-wrap a {
    color: var(--clr-text-dim);
    text-decoration: none;
    transition: var(--fx);
}

.foot-wrap a:hover {
    color: var(--clr-red);
}

/* ─── Friend Links ─── */
.lnk-panel {
    padding: 10px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--bd-r);
}

.lnk-panel dl { margin: 0; }

.lnk-panel dd {
    display: inline-block;
    margin: 3px 4px;
}

.lnk-panel a {
    color: var(--clr-text-sub);
    text-decoration: none;
    transition: var(--fx);
    font-size: 13px;
}

.lnk-panel a:hover {
    color: var(--clr-red);
}

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

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

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .outer { padding: 0 8px; }
    .site-header { padding: 0.45rem 0; }
    .brand-row { gap: 10px; flex-wrap: nowrap; }
    .brand-title { font-size: 20px; }
    .addr-strip { padding: 4px 10px; gap: 6px; }
    .addr-lbl { font-size: 10px; }
    .addr-val { font-size: 14px; }
    .blk { padding: 5px 0; }

    .nav-band { display: flex; align-items: stretch; }
    .zone-tag { width: 15%; font-size: 10px; padding: 6px 2px; word-break: keep-all; }
    .zone-links { width: 85%; gap: 3px; padding: 5px 4px; }
    .zone-links a { font-size: 12px; padding: 4px 2px; width: calc((100% - 9px) / 4); flex-shrink: 0; flex-grow: 0; }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .block-ttl { font-size: 15px; }
    .card-meta h5 { font-size: 12px; }

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

    .keyword-pool { padding: 8px 10px; gap: 5px; }
    .kw-pill { padding: 3px 10px; font-size: 11px; }

    .act-btn { padding: 9px 14px; font-size: 12px; }
    .act-bar { padding: 10px 8px; gap: 7px; }

    .share-panel { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 8px 10px; gap: 6px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; flex-shrink: 0; }

    .pg-nav { padding: 10px 0; gap: 3px; }
    .pg-a, .pg-now { padding: 5px 10px; font-size: 12px; min-width: 30px; }
    .content-block { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 17px; }
    .addr-lbl { font-size: 9px; }
    .addr-val { font-size: 13px; }
    .zone-tag { width: 15%; font-size: 10px; padding: 5px 1px; }
    .zone-links { width: 85%; gap: 3px; padding: 4px 3px; }
    .zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .video-container { height: 56.25vw; max-height: 280px; margin-bottom: 8px; }
    .qry-bar input[type="text"] { min-width: 70px; padding: 7px 8px; font-size: 12px; }
    .qry-bar button { padding: 7px 8px; font-size: 11px; }
    .act-bar { padding: 8px 4px; gap: 5px; }
    .act-btn { padding: 8px 10px; font-size: 11px; }
    .share-panel { padding: 7px 8px; gap: 5px; }
}

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