/* Video Site Template - Steam Dark Blue Style */

:root {
    --st-bg:        #1b2838;
    --st-bg2:       #2a475e;
    --st-bg3:       #1e3448;
    --st-bg4:       #16202d;
    --st-bg5:       #0d1b26;
    --st-blue:      #1a9fff;
    --st-blue-dk:   #0d7ed8;
    --st-blue-lt:   #4db8ff;
    --st-cyan:      #66c0f4;
    --st-cyan-lt:   #9dd4f0;
    --st-green:     #4c6b22;
    --st-green-lt:  #a4d007;
    --st-text:      #c6d4df;
    --st-text-lt:   #e8eef2;
    --st-text-muted:#7a9ab5;
    --st-border:    rgba(103,148,176,0.20);
    --st-border-lt: rgba(103,148,176,0.35);
    --st-border-blue:rgba(26,159,255,0.45);
    --sh-sm: 0 1px 4px rgba(0,0,0,0.45);
    --sh-md: 0 3px 12px rgba(0,0,0,0.55);
    --sh-lg: 0 6px 24px rgba(0,0,0,0.65);
    --rd: 4px;
    --rd-sm: 3px;
    --ease: all 0.2s ease;
    --grad-blue: linear-gradient(135deg, #1a9fff 0%, #0d7ed8 100%);
    --grad-header: linear-gradient(180deg, #0d1b26 0%, #1b2838 100%);
    --grad-nav: linear-gradient(180deg, #2a475e 0%, #1e3448 100%);
    --grad-card: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    --grad-bg: linear-gradient(180deg, #1b2838 0%, #1e2d3d 100%);
}

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

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

/* ===== HEADER ===== */
.pg-header {
    background: var(--grad-header);
    border-bottom: 1px solid var(--st-border);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.pg-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.site-logo-link { text-decoration: none; display: inline-block; }

.pg-site-name {
    font-size: 25px;
    font-weight: 900;
    color: var(--st-text-lt);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    transition: var(--ease);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.site-logo-link:hover .pg-site-name { color: var(--st-cyan); }

.pg-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(26,159,255,0.1);
    border: 1px solid var(--st-border-blue);
    border-radius: var(--rd);
    padding: 5px 12px;
}

.pg-domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--st-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(26,159,255,0.18);
    padding: 1px 6px;
    border-radius: var(--rd-sm);
}

.pg-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--st-cyan-lt);
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 12px;
}

.wrap-section { padding: 5px 0; }

/* ===== NAV ===== */
.nav-wrap {
    background: var(--grad-nav);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid var(--st-border);
    box-shadow: var(--sh-sm);
}

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

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

.nav-zone-lbl {
    font-weight: 700;
    font-size: 13px;
    color: var(--st-text-muted);
    background: rgba(13,27,38,0.7);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    border-right: 1px solid var(--st-border);
}

.nav-zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 8px;
    align-items: center;
}

.nav-zone-links a {
    display: inline-block;
    color: var(--st-text);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--st-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.nav-zone-links a:hover {
    background: var(--st-blue);
    color: #fff;
    border-color: var(--st-blue);
    box-shadow: 0 2px 6px rgba(26,159,255,0.3);
}

.nav-zone-links a.active {
    background: var(--grad-blue);
    color: #fff;
    border-color: var(--st-blue-dk);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(26,159,255,0.4);
}

/* ===== SEARCH ===== */
.search-panel {
    background: var(--st-bg4);
    border-radius: var(--rd);
    padding: 9px 12px;
    margin-bottom: 5px;
    border: 1px solid var(--st-border);
    box-shadow: var(--sh-sm);
}

.search-panel form {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
}

.search-panel input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    border: 1px solid rgba(103,148,176,0.4);
    border-radius: var(--rd-sm);
    background: rgba(0,0,0,0.3);
    color: var(--st-text-lt);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: var(--st-blue);
    box-shadow: 0 0 0 2px rgba(26,159,255,0.2);
    background: rgba(0,0,0,0.45);
}

.search-panel input[type="text"]::placeholder { color: var(--st-text-muted); }

.search-panel button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grad-blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.search-panel button:hover {
    background: var(--st-blue-lt);
    box-shadow: 0 3px 10px rgba(26,159,255,0.4);
}

/* ===== TAGS ===== */
.tags-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 8px 10px;
    background: var(--st-bg3);
    border-radius: var(--rd);
    margin-bottom: 5px;
    border: 1px solid var(--st-border);
}

.tags-panel .tag-item {
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--rd-sm);
    color: var(--st-text);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--st-border);
}

.tags-panel .tag-item:hover {
    background: var(--st-blue);
    color: #fff;
    border-color: var(--st-blue);
}

/* ===== SECTION HEAD ===== */
.film-section { margin-bottom: 10px; }

.film-section-hd {
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--st-border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.film-section-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--st-cyan);
    border-radius: 2px;
}

.film-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--st-text-lt);
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.film-section-title a { color: var(--st-text-lt); text-decoration: none; transition: var(--ease); }
.film-section-title a:hover { color: var(--st-cyan); }

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

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

.film-list-grid li:nth-child(1) { animation-delay: 0.03s; }
.film-list-grid li:nth-child(2) { animation-delay: 0.07s; }
.film-list-grid li:nth-child(3) { animation-delay: 0.11s; }
.film-list-grid li:nth-child(4) { animation-delay: 0.15s; }
.film-list-grid li:nth-child(5) { animation-delay: 0.19s; }
.film-list-grid li:nth-child(6) { animation-delay: 0.23s; }
.film-list-grid li:nth-child(7) { animation-delay: 0.27s; }
.film-list-grid li:nth-child(8) { animation-delay: 0.31s; }

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

.film-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--st-bg3);
    border: 1px solid var(--st-border);
    box-shadow: var(--sh-sm);
}

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

.film-thumb-link:hover {
    border-color: var(--st-cyan);
    box-shadow: 0 0 0 1px rgba(102,192,244,0.5), var(--sh-md);
}

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

.film-thumb-link::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    opacity: 0;
    transition: all 0.25s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.film-thumb-link:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-thumb-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

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

.film-meta { padding: 5px 0 0; }

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

.film-meta h5 a {
    color: var(--st-text);
    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(--st-cyan); }

/* ===== VIDEO PLAYER ===== */
.video-wrap {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 10px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    position: relative;
    border: 1px solid var(--st-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--sh-lg);
    border: 1px solid var(--st-border);
}

/* ===== TORRENT CAPTURE ===== */
.capture-block { width: 100%; }

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

.capture-block .img_item { width: 100%; }

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    text-align: center;
    padding: 12px;
    background: var(--st-bg3);
    border-radius: var(--rd);
    margin: 8px 0;
    border: 1px solid var(--st-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.dl-btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--grad-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    margin: 0;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.dl-btn:hover {
    background: var(--st-blue-lt);
    box-shadow: 0 4px 14px rgba(26,159,255,0.45);
    color: #fff;
}

/* ===== SHARE SECTION ===== */
.link-share-box {
    background: var(--st-bg3);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid var(--st-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-share-display {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--st-border-lt);
    border-radius: var(--rd-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.link-share-lbl {
    font-weight: 700;
    font-size: 10px;
    color: var(--st-cyan);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(26,159,255,0.15);
    border: 1px solid rgba(102,192,244,0.3);
    padding: 1px 7px;
    border-radius: var(--rd-sm);
}

.link-share-url {
    font-size: 12px;
    color: var(--st-text-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-share-btn {
    padding: 8px 14px;
    background: var(--grad-blue);
    color: #fff;
    border: none;
    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;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.link-share-btn:hover {
    background: var(--st-blue-lt);
    box-shadow: 0 4px 14px rgba(26,159,255,0.4);
}

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

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

/* ===== PAGINATION ===== */
.pg-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.pg-btn {
    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: 34px;
    text-align: center;
}

.pg-btn-link {
    background: rgba(255,255,255,0.05);
    color: var(--st-text);
    border: 1px solid var(--st-border);
}

.pg-btn-link:hover {
    background: var(--st-blue);
    border-color: var(--st-blue);
    color: #fff;
}

.pg-btn-cur {
    background: var(--grad-blue);
    color: #fff;
    border: 1px solid var(--st-blue-dk);
    cursor: default;
}

/* ===== FOOTER ===== */
.pg-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--st-border);
    margin-top: 14px;
    background: var(--st-bg4);
}

.pg-footer p { margin: 5px 0; color: var(--st-text-muted); font-size: 12px; }
.pg-footer a { color: var(--st-text-muted); text-decoration: none; transition: var(--ease); }
.pg-footer a:hover { color: var(--st-cyan); }

/* ===== FRIENDLY LINKS ===== */
.flink-wrap {
    padding: 9px 12px;
    background: var(--st-bg3);
    border-radius: var(--rd);
    border: 1px solid var(--st-border);
}

.flink-wrap dl { margin: 0; }
.flink-wrap dd { display: inline-block; margin: 3px; }
.flink-wrap a { color: var(--st-text-muted); text-decoration: none; transition: var(--ease); font-size: 13px; }
.flink-wrap a:hover { color: var(--st-cyan); }

/* ===== UTILITIES ===== */
.clearfix::after { content: ''; display: table; clear: both; }

.hide_mobile { display: block; }
.hide_pc { display: block; }
@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }

img[data-original] { background: var(--st-bg3); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 7px; }
    .pg-header { padding: 7px 0; }
    .pg-site-name { font-size: 20px; }
    .pg-domain-badge { padding: 4px 10px; }
    .pg-domain-tag { font-size: 9px; }
    .pg-domain-val { font-size: 14px; }
    .wrap-section { padding: 4px 0; }

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

    .film-list-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .video-wrap { height: 56.25vw; max-height: 380px; margin-bottom: 8px; }
    .search-panel { padding: 7px 8px; }
    .search-panel input[type="text"] { min-width: 100px; padding: 7px 9px; font-size: 13px; }
    .search-panel button { padding: 7px 9px; font-size: 12px; }
    .film-meta h5 { font-size: 11px; }
    .film-section-title { font-size: 15px; }
    .dl-actions { padding: 9px 6px; gap: 6px; }
    .dl-btn { padding: 8px 12px; font-size: 12px; }
    .link-share-box { padding: 8px; margin: 7px 0; gap: 6px; }
    .link-share-display { padding: 7px 8px; }
    .link-share-lbl { font-size: 9px; }
    .link-share-url { font-size: 11px; }
    .link-share-btn { padding: 7px 10px; font-size: 12px; }
    .pg-btn { padding: 5px 10px; font-size: 12px; min-width: 30px; }
}

@media (max-width: 480px) {
    .pg-site-name { font-size: 18px; }
    .pg-domain-val { font-size: 13px; }
    .nav-zone-lbl { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-zone-links { width: 85%; gap: 3px; padding: 4px 3px; }
    .nav-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .search-panel input[type="text"] { min-width: 80px; font-size: 12px; }
    .search-panel button { padding: 7px 7px; font-size: 11px; }
    .dl-btn { padding: 7px 9px; font-size: 11px; }
}

@media (min-width: 769px) {
    .film-list-grid { grid-template-columns: repeat(4, 1fr); }
}
