/* Video Site Template — Spotify Dark Vibrant Style */

:root {
    --sp-bg: #120a2a;
    --sp-surface: #1e1040;
    --sp-card: #261550;
    --sp-card-hover: #2e1c5e;
    --sp-border: #3a2468;
    --sp-lime: #b3f84a;
    --sp-lime-dark: #8ed630;
    --sp-cyan: #1db954;
    --sp-cyan-bright: #22d95f;
    --sp-teal: #00bfa5;
    --sp-white: #ffffff;
    --sp-text: #f0eaff;
    --sp-text-sub: #c4b8e8;
    --sp-text-muted: #8a7aaa;
    --sp-text-faint: #564878;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-pill: 999px;
    --ease: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xs: 0 1px 6px rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.45);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.55);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.65);
    --lime-glow: rgba(179, 248, 74, 0.2);
    --lime-glow-strong: rgba(179, 248, 74, 0.35);
    --cyan-glow: rgba(29, 185, 84, 0.25);
}

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

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

/* Subtle dot texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(179,248,74,0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(29,185,84,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.sp-header {
    background: rgba(18, 10, 42, 0.96);
    border-bottom: 1px solid var(--sp-border);
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

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

.sp-brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--ease);
}

.sp-brand-link:hover { opacity: 0.85; }

/* Circle logo with play icon */
.sp-logo-orb {
    width: 34px;
    height: 34px;
    background: var(--sp-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--lime-glow-strong);
    transition: var(--ease);
}

.sp-logo-orb svg {
    width: 18px;
    height: 18px;
    fill: var(--sp-bg);
}

.sp-brand-link:hover .sp-logo-orb {
    box-shadow: 0 0 24px var(--lime-glow-strong);
    transform: scale(1.06);
}

.sp-site-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--sp-lime);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1.2;
}

.sp-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(179, 248, 74, 0.08);
    border: 1px solid rgba(179, 248, 74, 0.25);
    border-radius: var(--radius-pill);
    padding: 6px 18px;
    transition: var(--ease);
}

.sp-domain-badge:hover {
    background: rgba(179, 248, 74, 0.12);
    border-color: rgba(179, 248, 74, 0.4);
}

.sp-domain-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--sp-bg);
    background: var(--sp-lime);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sp-domain-addr {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-lime);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    letter-spacing: 0.3px;
}

/* ===== CONTAINER ===== */
.sp-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.sp-seg {
    padding: 6px 0;
}

/* ===== BANNER ===== */
.sp-banner-slot {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sp-border);
}

.sp-banner-slot img {
    display: block;
    width: 100%;
}

/* ===== NAVIGATION ===== */
.sp-nav-panel {
    background: var(--sp-surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
}

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

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

/* PC端: nav-label 正常宽度，nav-links 撑满，8个链接均分一行 */
.nav-row .nav-label {
    font-weight: 800;
    font-size: 13px;
    color: var(--sp-bg);
    background: var(--sp-lime);
    white-space: nowrap;
    width: 10%;
    min-width: 70px;
    text-align: center;
    border-right: 1px solid var(--sp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.nav-row .nav-links {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
}

/* PC端: 8个链接均匀占满整行 */
.nav-row .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-xs);
    transition: var(--ease);
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    white-space: nowrap;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-row .nav-links a:hover {
    background: rgba(179, 248, 74, 0.12);
    color: var(--sp-lime);
    border-color: rgba(179, 248, 74, 0.3);
    transform: translateY(-1px);
}

.nav-row .nav-links a.active {
    background: var(--sp-lime);
    color: var(--sp-bg);
    border-color: var(--sp-lime);
    font-weight: 700;
    box-shadow: 0 2px 10px var(--lime-glow);
}

/* ===== SEARCH ===== */
.seach {
    background: var(--sp-surface);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 6px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 16px;
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-pill);
    background: var(--sp-card);
    color: var(--sp-text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--sp-lime);
    background: var(--sp-card-hover);
    box-shadow: 0 0 0 3px var(--lime-glow);
}

.seach input[type="text"]::placeholder { color: var(--sp-text-faint); }

.seach button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--sp-lime);
    color: var(--sp-bg);
    font-weight: 800;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 10px var(--lime-glow);
}

.seach button:hover {
    background: var(--sp-lime-dark);
    box-shadow: 0 4px 16px var(--lime-glow-strong);
    transform: translateY(-1px);
}

/* ===== KEYWORD TAGS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 12px;
    background: var(--sp-surface);
    border-radius: var(--radius);
    margin-bottom: 6px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
}

.grid-item {
    padding: 5px 13px;
    background: var(--sp-card);
    border-radius: var(--radius-pill);
    color: var(--sp-text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--sp-border);
}

.grid-item:hover {
    background: rgba(179, 248, 74, 0.12);
    color: var(--sp-lime);
    border-color: rgba(179, 248, 74, 0.3);
    transform: translateY(-1px);
}

/* ===== SECTION HEADINGS ===== */
.mhlleset { margin-bottom: 10px; }
.mhlleset-main { width: 100%; }

.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sp-border);
    position: relative;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--sp-lime);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--lime-glow);
}

.mhlleset-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--sp-text);
    letter-spacing: -0.2px;
}

.mhlleset-title a {
    color: var(--sp-text);
    text-decoration: none;
    transition: var(--ease);
}

.mhlleset-title a:hover { color: var(--sp-lime); }

/* ===== FILM GRID — PC端每行4个 ===== */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li {
    animation: spReveal 0.42s ease backwards;
}

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

@keyframes spReveal {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 600:350 = 12:7 */
.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 12 / 7;
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail2:hover {
    box-shadow: var(--shadow-md), 0 0 20px var(--lime-glow);
    border-color: rgba(179, 248, 74, 0.4);
    transform: translateY(-3px) scale(1.01);
}

.thumbnail2:hover img { transform: scale(1.07); }

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    z-index: 2;
    color: var(--sp-bg);
    font-size: 20px;
    background: var(--sp-lime);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    line-height: 46px;
    text-indent: 2px;
    box-shadow: 0 4px 18px var(--lime-glow-strong);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18,10,42,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.thumbnail2:hover::after { opacity: 1; }

.video-info { padding: 8px 2px 4px; }

.video-info h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--sp-text-sub);
}

.video-info h5 a {
    color: var(--sp-text-sub);
    text-decoration: none;
    transition: var(--ease);
}

.video-info h5 a:hover { color: var(--sp-lime); }

/* ===== DETAIL TITLE BAR ===== */
.pg-titlebar {
    line-height: 1.7;
    text-align: center;
    padding: 18px 22px;
    font-size: 17px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--sp-surface);
    border-radius: var(--radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
}

.pg-titlebar a {
    color: var(--sp-lime);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== TORRENT DETAIL ===== */
.torrent-detail-blk {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px 24px;
    background: var(--sp-surface);
    border-radius: var(--radius);
    margin: 8px 0;
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
    color: var(--sp-text-sub);
}

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

.torrent-capture-grid picture img,
.torrent-capture-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 10px;
    margin: 8px 0;
    background: var(--sp-surface);
    border-radius: var(--radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
}

.down_btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    color: var(--sp-bg);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    background: var(--sp-lime);
    box-shadow: 0 2px 12px var(--lime-glow);
    letter-spacing: 0.2px;
    text-align: center;
}

.down_btn:hover {
    background: var(--sp-lime-dark);
    box-shadow: 0 4px 20px var(--lime-glow-strong);
    transform: translateY(-2px) scale(1.02);
}

/* ===== SHARE ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--sp-surface);
    border-radius: var(--radius);
    margin: 8px 0;
    border: 1px solid var(--sp-border);
    box-shadow: var(--shadow-xs);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    background: var(--sp-card);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sp-border);
    overflow: hidden;
}

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

.share-url {
    font-size: 12px;
    color: var(--sp-text-muted);
    font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--sp-lime);
    color: var(--sp-bg);
    font-weight: 800;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    box-shadow: 0 2px 10px var(--lime-glow);
    flex-shrink: 0;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: var(--sp-lime-dark);
    box-shadow: 0 4px 16px var(--lime-glow-strong);
    transform: translateY(-1px);
}

.share-icon { font-size: 16px; line-height: 1; }

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

.a_page_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    background: var(--sp-surface);
    color: var(--sp-text-sub);
    border: 1px solid var(--sp-border);
}

.a_page_info:hover {
    background: rgba(179, 248, 74, 0.1);
    border-color: rgba(179, 248, 74, 0.3);
    color: var(--sp-lime);
}

.page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    min-width: 36px;
    background: var(--sp-lime);
    color: var(--sp-bg);
    border: 1px solid var(--sp-lime);
    cursor: default;
    font-weight: 800;
    box-shadow: 0 2px 10px var(--lime-glow);
}

/* ===== FRIENDLY LINKS ===== */
.txtguanggao2 {
    padding: 12px;
    background: var(--sp-surface);
    border-radius: var(--radius);
    border: 1px solid var(--sp-border);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }

.txtguanggao2 a {
    color: var(--sp-teal);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.txtguanggao2 a:hover {
    background: rgba(179, 248, 74, 0.1);
    color: var(--sp-lime);
}

/* ===== FOOTER ===== */
.footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--sp-border);
    margin-top: 20px;
    background: var(--sp-bg);
}

.footer p {
    margin: 6px 0;
    color: var(--sp-text-faint);
    font-size: 12px;
}

.footer a {
    color: var(--sp-text-faint);
    text-decoration: none;
    transition: var(--ease);
}

.footer a:hover { color: var(--sp-lime); }

/* ===== CLEARFIX ===== */
.clearfix::after,
.clrfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== UTILS ===== */
.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; } }

/* ===== RESPONSIVE — 移动端 ===== */
@media (max-width: 768px) {
    .sp-wrap { padding: 0 8px; }
    .sp-header { padding: 8px 0; }
    .sp-header-inner { gap: 8px; }
    .sp-site-name { font-size: 19px; }

    .sp-domain-badge { padding: 5px 14px; gap: 8px; }
    .sp-domain-tag { font-size: 9px; padding: 2px 7px; }
    .sp-domain-addr { font-size: 15px; }

    .sp-seg { padding: 4px 0; }

    /* 移动端导航：label占15%（4个汉字完整显示），links占85%，每行4个，共2行 */
    .nav-row .nav-label {
        width: 15%;
        min-width: 0;
        font-size: 11px;
        padding: 8px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        /* 强制4个汉字竖排两行显示以适应15%宽度 */
        word-break: break-all;
        white-space: normal;
    }

    /* 移动端 nav-links 改用 Grid，强制4列2行 */
    .nav-row .nav-links {
        width: 85%;
        flex: none;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 6px 4px;
    }

    .nav-row .nav-links a {
        font-size: 11px;
        padding: 5px 2px;
        flex: none;
        width: auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .seach { padding: 10px; }
    .seach form { gap: 6px; }
    .seach input[type="text"] { min-width: 100px; padding: 9px 12px; font-size: 13px; }
    .seach button { padding: 9px 10px; font-size: 12px; }

    /* 移动端影片网格：每行2个 */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-info h5 { font-size: 12px; }
    .mhlleset { margin-bottom: 8px; }
    .mhlleset-title { font-size: 16px; }

    .grid-container { padding: 10px; gap: 5px; }
    .grid-item { padding: 4px 11px; font-size: 12px; }

    .download { padding: 12px 8px; gap: 8px; }
    .down_btn { padding: 10px 18px; font-size: 13px; }

    .share-section { padding: 10px 11px; gap: 7px; }
    .share-url-display { padding: 8px 10px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 11px; font-size: 12px; }
    .share-icon { font-size: 15px; }

    .page_info_div { padding: 14px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

@media (max-width: 480px) {
    .sp-site-name { font-size: 17px; }
    .sp-domain-addr { font-size: 13px; }

    /* 超小屏幕仍保持15%/85%和4列导航 */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .nav-row .nav-links {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-row .nav-links a {
        font-size: 10px;
        width: auto;
    }

    .seach input[type="text"] { min-width: 80px; font-size: 12px; }
    .seach button { padding: 8px 8px; font-size: 11px; }

    /* 超小屏幕影片网格仍保持2列 */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }
    .down_btn { padding: 9px 14px; font-size: 12px; }
}

img[data-original] { background: var(--sp-card); }
