/* SteamDark VideoSite Template */

:root {
    --bg-page:    #1b2838;
    --bg-nav:     #171a21;
    --bg-panel:   #1e2a3a;
    --bg-card:    #16202d;
    --bg-input:   #0d1520;
    --bg-hover:   #2a3f55;
    --clr-blue:   #1a9fff;
    --clr-blue2:  #66c0f4;
    --clr-green:  #5ba32b;
    --clr-text:   #c6d4df;
    --clr-head:   #ffffff;
    --clr-muted:  #7a9ab5;
    --clr-border: #2a475e;
    --clr-line:   #253a4f;
    --shadow:     rgba(0,0,0,0.35);
    --rad:        4px;
    --rad-sm:     3px;
    --ease:       all 0.2s ease;
}

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

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

/* TOPBAR */
.v-topbar {
    background: var(--bg-nav);
    border-bottom: 2px solid #000;
    padding: 0.5rem 0;
}

.v-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.v-site-name {
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: var(--clr-blue2);
    letter-spacing: 0.5px;
    font-style: normal;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(102,192,244,0.3);
}
.v-site-name:hover { color:#fff; }

.v-domain-row {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(26,159,255,0.1);
    border: 1px solid rgba(26,159,255,0.3);
    border-radius: var(--rad-sm);
    padding: 4px 12px;
}
.v-domain-label {
    font-size: 11px;
    color: var(--clr-muted);
    white-space: nowrap;
    font-weight: 500;
}
.v-domain-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-blue2);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

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

/* NAV */
.v-nav-box {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 8px;
}
.v-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-line);
}
.v-nav-row:last-child { border-bottom: none; }

.v-zone-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-blue2);
    background: rgba(26,159,255,0.08);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    border-right: 1px solid var(--clr-line);
}
.v-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
}
.v-zone-links a {
    display: inline-block;
    color: var(--clr-text);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}
.v-zone-links a:hover {
    background: var(--clr-blue);
    color: #fff;
    border-color: var(--clr-blue);
}
.v-zone-links a.active {
    background: var(--clr-blue);
    color: #fff;
    border-color: #1485d4;
    font-weight: 600;
}

/* SEARCH */
.v-searchbar {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 9px 12px;
    margin-bottom: 8px;
}
.v-searchbar form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}
.v-searchbar input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    border: 1px solid var(--clr-border);
    border-radius: var(--rad-sm);
    background: var(--bg-input);
    color: var(--clr-head);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}
.v-searchbar input[type="text"]:focus {
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 2px rgba(26,159,255,0.15);
}
.v-searchbar input[type="text"]::placeholder { color: var(--clr-muted); }
.v-searchbar button {
    padding: 8px 12px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--clr-blue);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}
.v-searchbar button:hover { background: #1485d4; }

/* TAGS */
.v-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 9px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    margin-bottom: 8px;
}
.v-tag-item {
    padding: 4px 11px;
    background: var(--bg-card);
    border-radius: var(--rad-sm);
    color: var(--clr-muted);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--clr-border);
    transition: var(--ease);
}
.v-tag-item:hover {
    background: var(--clr-blue);
    color: #fff;
    border-color: var(--clr-blue);
}

/* SECTIONS */
.v-block { margin-bottom: 14px; }

.v-block-head {
    display: flex;
    align-items: center;
    padding-bottom: 7px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}
.v-block-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clr-blue);
}
.v-block-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-head);
    margin: 0;
}
.v-block-title a { color: inherit; text-decoration: none; }
.v-block-title a:hover { color: var(--clr-blue2); }

/* CARD GRID */
.v-card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}
.v-card-list li { animation: vCardIn 0.4s ease backwards; }
.v-card-list li:nth-child(1){animation-delay:0.03s}
.v-card-list li:nth-child(2){animation-delay:0.06s}
.v-card-list li:nth-child(3){animation-delay:0.09s}
.v-card-list li:nth-child(4){animation-delay:0.12s}
.v-card-list li:nth-child(5){animation-delay:0.15s}
.v-card-list li:nth-child(6){animation-delay:0.18s}
.v-card-list li:nth-child(7){animation-delay:0.21s}
.v-card-list li:nth-child(8){animation-delay:0.24s}

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

.v-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
}
.v-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.v-thumb:hover {
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 1px var(--clr-blue), 0 4px 14px var(--shadow);
}
.v-thumb:hover img { transform: scale(1.06); }
.v-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 26px;
    background: rgba(26,159,255,0.25);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}
.v-thumb:hover::after { opacity: 1; }

.v-card-info { padding: 6px 0 0; }
.v-card-info h5 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.v-card-info h5 a {
    color: var(--clr-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}
.v-card-info h5 a:hover { color: var(--clr-blue2); }

/* PLAYER */
.MacPlayer {
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--clr-border);
}

/* DETAIL TITLE */
.v-detail-title {
    line-height: 1.7;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-panel);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
    color: var(--clr-head);
}

/* TORRENT INFO */
.v-torrent-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px;
    background: var(--bg-panel);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
    margin: 8px 0;
}
.v-preview-zone { width: 100%; margin-top: 8px; }
.v-preview-zone picture { display: block; width: 100%; }
.v-preview-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

/* ACTION BUTTONS */
.v-actions {
    text-align: center;
    padding: 12px;
    background: var(--bg-panel);
    border-radius: var(--rad);
    margin: 8px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.down_btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--clr-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.down_btn:hover {
    background: #1485d4;
    box-shadow: 0 4px 12px rgba(26,159,255,0.3);
}

/* SHARE */
.v-share {
    background: var(--bg-panel);
    border-radius: var(--rad);
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-url-display {
    background: var(--bg-input);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--clr-blue2);
    white-space: nowrap;
    flex-shrink: 0;
}
.share-url {
    font-size: 11px;
    color: var(--clr-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-copy-btn {
    padding: 9px 16px;
    background: var(--clr-blue);
    color: #fff;
    border: none;
    border-radius: var(--rad-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.share-copy-btn:hover { background: #1485d4; }
.share-icon { font-size: 15px; }

/* PAGINATION */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}
.a_page_info {
    background: var(--bg-panel);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}
.a_page_info:hover {
    background: var(--clr-blue);
    border-color: var(--clr-blue);
    color: #fff;
}
.page_info_focus {
    background: var(--clr-blue);
    color: #fff;
    border: 1px solid #1485d4;
    cursor: default;
}

/* FRIEND LINKS */
.v-flink {
    padding: 10px 12px;
    background: var(--bg-panel);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
}
.v-flink dl { margin: 0; }
.v-flink dd { display: inline-block; margin: 3px; }
.v-flink a { color: var(--clr-blue2); text-decoration: none; font-size: 13px; }
.v-flink a:hover { color: #fff; }

/* FOOTER */
.v-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--clr-line);
    margin-top: 16px;
    background: var(--bg-nav);
}
.v-footer p { margin: 5px 0; color: var(--clr-muted); font-size: 12px; }
.v-footer a { color: var(--clr-muted); text-decoration: none; }
.v-footer a:hover { color: var(--clr-blue2); }

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

.clearfix::after { content:''; display:table; clear:both; }
img[data-original] { background: var(--bg-card); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .v-wrap { padding: 0 7px; }
    .v-sec  { padding: 6px 0; }
    .v-topbar { padding: 0.4rem 0; }
    .v-topbar-inner { gap: 10px; }
    .v-site-name { font-size: 16px; }
    .v-domain-val { font-size: 13px; }
    .v-domain-label { font-size: 10px; }

    /* Nav: zone 15%, links 85%, 4-per-row */
    .v-zone-tag { width:15%; font-size:10px; padding:6px 2px; }
    .v-zone-links { width:85%; gap:3px; padding:6px 4px; }
    .v-zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search stays one line */
    .v-searchbar form { flex-wrap: nowrap; }
    .v-searchbar input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .v-searchbar button { padding:7px 8px; font-size:11px; }

    /* Cards 2-per-row */
    .v-card-list { grid-template-columns:repeat(2,1fr); gap:8px; }

    .v-card-info h5 { font-size:11px; }
    .v-block-title  { font-size:14px; }
    .v-block        { margin-bottom:10px; }
    .v-actions { padding:9px 6px; gap:6px; }
    .down_btn { padding:8px 12px; font-size:12px; }
    .v-share { padding:9px; flex-wrap:nowrap; }
    .share-url-display { padding:8px 10px; }
    .share-copy-btn { padding:8px 10px; font-size:11px; }
    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .v-site-name { font-size:14px; }
    .v-domain-val { font-size:12px; }
    .v-zone-tag { width:15%; font-size:10px; padding:5px 1px; }
    .v-zone-links { width:85%; gap:3px; padding:5px 3px; }
    .v-zone-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }
    .v-searchbar input[type="text"] { padding:7px 6px; font-size:11px; }
    .v-searchbar button { padding:7px 6px; font-size:11px; }
    .v-card-list { grid-template-columns:repeat(2,1fr); gap:6px; }
    .down_btn { padding:7px 9px; font-size:11px; }
    .v-actions { gap:4px; }
}
