/* ============================================
   NewCloud TV — 免费沉浸式影视 · 全局样式
   ============================================ */

:root {
    --bg-base: #06060D;
    --bg-surface: #0E0E1B;
    --bg-card: #151524;
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --accent: #22D3EE;
    --primary-rgb: 139, 92, 246;
    --accent-rgb: 34, 211, 238;
    --text-main: #FFFFFF;
    --text-secondary: #D3DCEA;
    --text-muted: #8B94A6;
    --gold: #FBBF24;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-full: 100px;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --shadow-neon: 0 0 30px rgba(var(--primary-rgb), 0.25);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 12% 45%, rgba(var(--primary-rgb), 0.10), transparent 55%),
        radial-gradient(ellipse at 88% 15%, rgba(var(--accent-rgb), 0.07), transparent 50%),
        radial-gradient(ellipse at 50% 115%, rgba(var(--primary-rgb), 0.06), transparent 55%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    z-index: 1000;
    box-sizing: border-box;
    /* 背景与公告栏（container 内容盒）严格同宽居中 */
    max-width: calc(min(1600px, 100%) - 2 * clamp(16px, 4vw, 60px));
    margin: 0 auto;
}

/* 导航栏内容左右留白与公告栏一致（背景已与公告栏同宽，内容再缩进 1 档） */
.navbar > .logo { margin-left: clamp(16px, 4vw, 60px); }
.navbar > .search-box { margin-right: clamp(16px, 4vw, 60px); }



.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.logo i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

.search-box {
    position: relative;
    width: 240px;
}

.search-box input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    color: #FFF;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.12);
}

.search-box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    padding: 88px clamp(16px, 4vw, 60px) 16px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.3; }
.breadcrumb .current { color: var(--text-secondary); }

/* ===== Categories (顶部分类标签) ===== */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar { display: none; }

.tag {
    padding: 7px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--transition-smooth);
    user-select: none;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}

.tag.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--accent-rgb), 0.18));
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--text-main);
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.12);
}

/* ===== Section ===== */
.section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px;
    flex-shrink: 0;
}

.view-more {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.view-more:hover { color: var(--primary); }

/* ===== Grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* ===== Card ===== */
.card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    cursor: pointer;
    display: block;
    transition: transform 0.5s var(--transition-bounce), box-shadow 0.5s ease;
    background: var(--bg-card);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-poster {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease, filter 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-poster::after {
    content: '\eafe';
    font-family: 'remixicon';
    font-size: 44px;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    z-index: -1;
}

.card:hover .card-poster {
    transform: none;
    filter: brightness(1.15);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 10px 8px;
    transition: background 0.4s ease;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.card:hover .card-overlay {
    background: transparent;
    border-color: transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -12px rgba(var(--primary-rgb), 0.35), 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.play-btn {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 22px;
    transition: all 0.45s var(--transition-bounce);
    z-index: 2;
}

.card:hover .play-btn {
    opacity: 1;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.55);
}

.badge-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(var(--primary-rgb), 0.85);
    backdrop-filter: blur(6px);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #FFF;
    z-index: 2;
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.card-info {
    position: relative;
    z-index: 1;
    margin: 4px 6px 6px;
    padding: 8px 10px 9px;
    border-radius: 12px;
    background: rgba(10, 10, 20, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card-info {
    background: rgba(15, 15, 30, 0.88);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* ===== Filters (list.php 顶部筛选) ===== */
.filter-section {
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    padding-top: 5px;
    padding-right: 16px; /* 与 .filter-item 水平内边距一致，保证文字间距均匀 */
    flex-shrink: 0;
}

.filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 2px 0;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-item {
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-item:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.filter-item.active {
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
    border-color: rgba(var(--primary-rgb), 0.3);
}

.result-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.result-info em {
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 4px;
}

.page-btn:hover:not(.dots) {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #FFF;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.page-btn.dots {
    background: transparent;
    border: none;
    cursor: default;
    pointer-events: none;
}

/* ===== Detail Page ===== */
.detail-hero {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.detail-poster {
    flex-shrink: 0;
    width: 260px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 48px -12px rgba(var(--primary-rgb), 0.3);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-poster-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-poster-bg::after {
    content: '\eafe';
    font-family: 'remixicon';
    font-size: 56px;
    color: rgba(255, 255, 255, 0.05);
}

.detail-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-score {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(135deg, #FCD34D, #F59E0B 70%, #D97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 8px rgba(251, 191, 36, 0.35));
}

.detail-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
    font-size: 20px;
    filter: drop-shadow(0 2px 5px rgba(251, 191, 36, 0.3));
}

.detail-stars .dim { color: rgba(251, 191, 36, 0.32); }

.detail-rating-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #34D399;
    background: rgba(0, 119, 34, 0.16);
    border: 1px solid rgba(0, 119, 34, 0.28);
    border-radius: 20px;
    width: fit-content;
}
.detail-rating-source i { color: #34D399; font-size: 13px; }

.detail-votes {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.detail-tag:hover {
    color: var(--text-main);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    word-break: break-all;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-grid strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #FFF;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    transition: all 0.4s var(--transition-bounce);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.45);
}

.btn-play i { font-size: 20px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Synopsis */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.block-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.synopsis-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-muted);
}

/* 选集区块容器（毛玻璃卡片） */
.ep-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px 26px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Episode Grid */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}

.ep-btn {
    width: 100%;
    min-height: 52px;
    padding: 7px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1.35;
    letter-spacing: 0.3px;
}

.ep-date {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.ep-title {
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.ep-btn:hover {
    background: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.ep-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--accent) 120%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.ep-btn.active .ep-date { color: rgba(255, 255, 255, 0.95); }

.ep-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(var(--primary-rgb), 0.9);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-radius: 20px;
    vertical-align: 2px;
}

/* ===== Play Page ===== */
.player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 60px -16px rgba(0, 0, 0, 0.8);
}

.player-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.player-placeholder i {
    font-size: 64px;
    color: var(--primary);
    opacity: 0.6;
}

.player-placeholder span { font-size: 15px; }

.vp-retry-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--text-primary, #e8e8e8);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.vp-retry-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.vp-retry-btn i { font-size: 16px; }

.play-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.play-now-title {
    font-size: 20px;
    font-weight: 700;
}

.play-now-title span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

.play-toolbar {
    display: flex;
    gap: 8px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.tool-btn:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

/* ===== Search Page ===== */
.search-hero {
    text-align: center;
    padding: 20px 0 36px;
}

.search-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.search-big-input {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.search-big-input input {
    width: 100%;
    padding: 14px 24px 14px 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #FFF;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-big-input input::placeholder { color: var(--text-muted); }

.search-big-input input:focus {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.15);
}

.search-big-input > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-stats {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.search-stats em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
    display: block;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 20px clamp(16px, 4vw, 60px) 24px;
    margin: 8px auto 28px;
    max-width: calc(min(1600px, 100%) - 2 * clamp(16px, 4vw, 60px));
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-sizing: border-box;
}


.footer-brand {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-brand i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 14px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--text-main); }

.footer-copy {
    font-size: 12px;
    color: rgba(100, 116, 139, 0.5);
}

/* ===== Mobile Bottom Tab Bar ===== */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 500px;
    margin: 0 auto;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab-item i {
    font-size: 22px;
    transition: all 0.3s var(--transition-bounce);
}

.tab-item.active {
    color: var(--text-main);
}

.tab-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.6));
    transform: translateY(-2px);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

/* ===== Right Floating Actions (留言 / 关于 / Back to Top) ===== */
.float-actions {
    position: fixed;
    right: 24px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(12, 12, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--transition-bounce),
                background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.float-btn i {
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

/* 悬浮提示 */
.float-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: rgba(12, 12, 22, 0.92);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

@media (hover: hover) {
    .float-btn:hover {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.5);
        box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-3px);
    }
    .float-btn:hover .float-tip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
    .float-btn:hover i {
        transform: translateY(-2px);
    }
}

.float-btn:active {
    transform: translateY(0) scale(0.95);
}

/* 回到顶部按钮（悬浮栏内，滚动后显示） */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top .btt-ring {
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), transparent 70%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

@media (hover: hover) {
    .back-to-top:hover .btt-ring {
        opacity: 1;
    }
}

/* ===== Custom Video Player ===== */
.vp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    pointer-events: none;
}

.vp-loading, .vp-buffering {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    pointer-events: none;
    gap: 12px;
}

.vp-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

/* Click detection layer */
.vp-click-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
}

.vp-big-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: auto;
    cursor: pointer;
}
.vp-big-play i {
    font-size: 52px;
    color: #fff;
    background: rgba(139,92,246,.65);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 4px 24px rgba(139,92,246,.4);
    transition: transform .2s, background .2s;
}

/* Unmute tip */
.vp-unmute-tip {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background: rgba(139,92,246,.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(139,92,246,.3);
    animation: unmutePulse 2s ease infinite;
    white-space: nowrap;
}
@keyframes unmutePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Long press speed indicator */
.vp-speed-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 24px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 24px 16px 12px;
    opacity: 0;
    transition: opacity .3s;
}
.vp-controls.visible { opacity: 1; }

.vp-progress {
    position: relative;
    height: 20px;
    cursor: pointer;
    margin-bottom: 6px;
    touch-action: none;
    display: flex;
    align-items: center;
}
.vp-progress::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    transition: height .15s;
}
.vp-progress:hover::before,
.vp-progress:active::before { height: 6px; }

.vp-progress-buffered {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    pointer-events: none;
    transition: height .15s;
}
.vp-progress-played {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    background: var(--primary);
    border-radius: 2px;
    pointer-events: none;
    transition: height .15s;
}
.vp-progress:hover .vp-progress-buffered,
.vp-progress:active .vp-progress-buffered { height: 6px; }
.vp-progress:hover .vp-progress-played,
.vp-progress:active .vp-progress-played { height: 6px; }

.vp-progress-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(139,92,246,.5);
    z-index: 2;
}
.vp-progress:hover .vp-progress-thumb,
.vp-progress:active .vp-progress-thumb { opacity: 1; }

.vp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vp-controls-left, .vp-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-btn:hover { background: rgba(255,255,255,.12); }

.vp-text-btn {
    font-size: 13px !important;
    font-weight: 500;
    padding: 4px 10px;
    letter-spacing: .3px;
}

.vp-time {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    margin-left: 8px;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

/* ---- Popup Menus (speed / quality / fit) ---- */
.vp-menu-wrap { position: relative; }

.vp-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: rgba(18, 18, 30, .95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 6px;
    min-width: 90px;
    z-index: 20;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.vp-popup-title {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    padding: 4px 12px 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    user-select: none;
}

.vp-popup-item {
    padding: 7px 16px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    transition: background .15s, color .15s;
}
.vp-popup-item:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.vp-popup-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Volume Slider ---- */
.vp-volume-wrap {
    display: flex;
    align-items: center;
    position: relative;
}
.vp-volume-slider {
    width: 0;
    overflow: hidden;
    transition: width .25s ease;
    display: flex;
    align-items: center;
}
.vp-volume-wrap:hover .vp-volume-slider,
.vp-volume-wrap.expanded .vp-volume-slider {
    width: 80px;
    padding-right: 4px;
}

.vp-vol-range {
    -webkit-appearance: none;
    appearance: none;
    width: 76px;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.vp-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(139,92,246,.5);
}
.vp-vol-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(139,92,246,.5);
}

/* ---- Progress Hover Tooltip ---- */
.vp-progress-tip {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---- Player corner text logo ---- */
.vp-logo {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    user-select: none;
}
.vp-logo i {
    font-size: 16px;
    color: var(--accent, #8b5cf6);
}

/* ---- Fullscreen Top Bar ---- */
.vp-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(rgba(0,0,0,.85), transparent);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.vp-top-bar.visible {
    opacity: 1;
    pointer-events: auto;
}
.vp-top-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Mobile tap highlight fix ---- */
.player-wrap,
.player-wrap *,
.vp-click-layer,
.vp-controls,
.vp-controls *,
.vp-top-bar,
.vp-top-bar *,
.vp-big-play,
.vp-unmute-tip {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ---- Fullscreen ---- */
.player-wrap:fullscreen { background: #000; }
.player-wrap:fullscreen .vp-video { object-fit: contain; }
.player-wrap:fullscreen .vp-controls { padding-bottom: 16px; }

/* ---- Inner wrapper (for portrait rotation) ---- */
.vp-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* ---- Portrait mode (fullscreen) ---- */
/* Rotate a single wrapper — all children (video, controls, overlays) rotate together */
.player-wrap:fullscreen.is-portrait {
    overflow: hidden;
}
.player-wrap:fullscreen.is-portrait .vp-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* ---- tool-btn as button ---- */
button.tool-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    cursor: pointer;
}

/* ===== Skeleton Loading ===== */
@keyframes skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
}

.skeleton-tag {
    height: 32px;
    width: 72px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.skeleton-title {
    height: 24px;
    width: 120px;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
}

/* Loading overlay for sections */
.section-loading {
    position: relative;
    min-height: 200px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-spinner::before {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(var(--primary-rgb), 0.1);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in when data arrives */
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0; height: 56px; border-radius: 14px; }
    .nav-links { display: none; }
    .search-box { width: 160px; }
    .container { padding-top: 72px; padding-bottom: 12px; }
    .section { margin-bottom: 16px; }

    /* Show mobile tab bar */
    .mobile-tabbar { display: block; }

    /* Floating actions above tab bar, uniform size (留言/关于/回顶对齐) */
    .float-actions { bottom: 76px; right: 16px; gap: 10px; }
    .float-btn { width: 40px; height: 40px; border-radius: 12px; }
    .float-btn i { font-size: 18px; }
    .back-to-top .btt-ring { border-radius: 12px; }

    .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .card-overlay { padding: 10px; }
    .card-title { font-size: 12px; }
    .card-meta { font-size: 10px; }
    .play-btn { width: 40px; height: 40px; font-size: 18px; }
    .section-title { font-size: 17px; }

    /* Detail responsive */
    .detail-hero { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .detail-poster { width: 180px; }
    .detail-title { font-size: 22px; }
    .detail-rating-row { justify-content: center; }
    .detail-tags { justify-content: center; }
    .detail-actions { justify-content: center; }
    .meta-grid { grid-template-columns: 1fr 1fr; text-align: left; }

    /* Footer above tabbar */
    .site-footer { margin-top: 4px; padding-top: 8px; padding-bottom: 72px; }

    /* Filter mobile: horizontal scroll */
    .filter-row { flex-wrap: nowrap; }
    .filter-label { width: auto; padding-top: 6px; }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .card-title { font-size: 11px; margin-bottom: 2px; }
    .rating { font-size: 10px; padding: 2px 5px; top: 6px; right: 6px; }
    .badge-top-left { font-size: 10px; padding: 2px 8px; top: 6px; left: 6px; }
    .play-btn { width: 34px; height: 34px; font-size: 16px; }
    .detail-poster { width: 140px; }
    .detail-title { font-size: 20px; }
    .btn-play { padding: 10px 24px; font-size: 14px; }
    .btn-ghost { padding: 10px 18px; font-size: 14px; }
}

/* ===== Notice Bar ===== */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    color: #E5E7EB;
    font-size: 13px;
    box-sizing: border-box;
}
.notice-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(245, 185, 66, 0.14);
    color: #FBBF24;
}
.notice-text { flex: 1; min-width: 0; line-height: 1.5; word-break: break-all; }
.notice-actions { display: flex; gap: 6px; flex-shrink: 0; }
.notice-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #D1D5DB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.notice-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
@media (max-width: 480px) {
    .notice-bar { font-size: 12px; padding: 8px 10px; gap: 8px; }
    .notice-btn { width: 26px; height: 26px; }
}

/* ===== Notice Bar 轮播（内容流内，由 includes/notice_bar.php 输出） ===== */
.notice-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.notice-bar .notice-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.4s, transform 0.4s;
}
.notice-bar.switching .notice-text {
    opacity: 0;
    transform: translateY(6px);
}
.notice-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}
.notice-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s, background 0.3s;
}
.notice-dots i.active {
    width: 14px;
    border-radius: 3px;
    background: #FBBF24;
}

/* ===== Slide Puzzle Verification (message.php) ===== */
.puzzle-box {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.puzzle-bg {
    height: 120px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(135deg, rgba(var(--primary-rgb), 0.28) 0 14px, rgba(20, 18, 36, 0.9) 14px 28px),
        repeating-linear-gradient(45deg, rgba(var(--accent-rgb), 0.16) 0 10px, transparent 10px 20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.puzzle-hole {
    position: absolute;
    top: 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
}

.puzzle-track {
    position: relative;
    height: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.puzzle-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.puzzle-piece {
    position: absolute;
    top: -1px;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background:
        repeating-linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0 14px, rgba(109, 66, 224, 0.95) 14px 28px),
        repeating-linear-gradient(45deg, rgba(var(--accent-rgb), 0.3) 0 10px, transparent 10px 20px);
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: grab;
    z-index: 2;
    box-shadow: 0 2px 14px rgba(var(--primary-rgb), 0.45);
    transition: left 0.25s ease, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
}

.puzzle-piece.dragging {
    transition: none;
    cursor: grabbing;
    box-shadow: 0 2px 20px rgba(var(--primary-rgb), 0.65);
}

.puzzle-piece i {
    font-size: 22px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.puzzle-box.verified .puzzle-track {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.08);
}

.puzzle-box.verified .puzzle-piece {
    background: linear-gradient(135deg, #10B981, #34D399) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 14px rgba(52, 211, 153, 0.45);
}

.puzzle-box.verified .puzzle-status {
    color: #34D399;
    font-weight: 600;
}

/* ===== Message Replies (message.php) ===== */
.reply-btn {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.1);
    color: #c4b5fd;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.reply-btn:hover {
    background: rgba(var(--primary-rgb), 0.25);
    border-color: rgba(var(--primary-rgb), 0.6);
    transform: translateY(-1px);
}

.reply-btn:active {
    transform: translateY(0) scale(0.96);
}

.reply-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* ===== Footer: 仅保留版权行（隐藏 LOGO 与菜单栏） ===== */
.footer-brand,
.footer-nav {
    display: none !important;
}


/* 公告醒目色（hl-text-conch 兜底） */
.hl-text-conch {
    color: #ffb43d;
    font-style: normal;
    font-weight: 700;
}

/* ===== Parse Page ===== */
.parse-panel {
    background: var(--card-bg, #1c1f26);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg, 14px);
    padding: 22px 24px;
    margin-bottom: 28px;
}
.parse-title {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent, #e50914);
}
.parse-sub {
    font-size: 13px;
    color: var(--text-dim, #9aa0aa);
    margin: 6px 0 16px;
    line-height: 1.6;
}
.parse-form { display: flex; gap: 10px; }
.parse-input {
    flex: 1;
    min-width: 0;
    background: #14161b;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.parse-input:focus { border-color: var(--accent, #e50914); }
.parse-input::placeholder { color: #5a5f69; }
.parse-btn {
    background: var(--accent, #e50914);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: opacity .2s;
}
.parse-btn:hover { opacity: .88; }
.parse-btn:disabled { opacity: .55; cursor: not-allowed; }
.parse-btn.busy i { animation: spin 0.8s linear infinite; }
.parse-examples {
    margin-top: 12px;
    font-size: 13px;
    color: #8a909b;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.parse-examples a {
    color: #4a9eff;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(74,158,255,.1);
    border-radius: 6px;
    transition: background .2s;
}
.parse-examples a:hover { background: rgba(74,158,255,.22); }
.parse-status {
    margin-top: 14px;
    font-size: 13px;
    color: #ffb84a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.parse-status i { font-size: 15px; }

.parse-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    margin-bottom: 28px;
}
.parse-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.parse-iframe-tip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.72);
    color: #c9cdd4;
    font-size: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}
@media (max-width: 640px) {
    .parse-form { flex-direction: column; }
    .parse-btn { justify-content: center; padding: 12px; }
}
/* 搜索结果：导演/演员行 */
.card-crew { justify-content: flex-start; margin-top: 2px; max-width: 100%; }
.card-crew .crew-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 详情页导演/主演搜索链接 */
.crew-link { color: #6aa3ff; text-decoration: none; margin-right: 6px; }
.crew-link:hover { text-decoration: underline; color: #4f8cff; }


/* 豆瓣热评 */
.douban-comments { display:flex; flex-direction:column; gap:18px; margin-top:6px; }
.dc-item { padding-bottom:14px; border-bottom:1px dashed rgba(255,255,255,.12); }
.dc-item:last-child { padding-bottom:0; border-bottom:none; }
.dc-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.dc-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.25); }
.dc-avatar-fallback { display:inline-flex; align-items:center; justify-content:center; background:rgba(245,185,66,.18); color:#f5b942; font-weight:600; font-size:14px; }
.dc-name { font-size:14px; color:#e8e8e8; font-weight:500; }
.dc-stars { display:inline-flex; gap:1px; color:#f5b942; font-size:12px; }
.dc-time { margin-left:auto; font-size:12px; color:rgba(255,255,255,.4); }
.dc-text { font-size:14px; line-height:1.75; color:rgba(255,255,255,.85); }

/* 友情链接 */
.footer-links { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer-links .fl-label { color: var(--text-3); }
.footer-links a { color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--accent, #f5a623); }

/* 友情链接（美化版） */
.footer-links { margin: 18px 0 6px; text-align: center; }
.fl-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--text-muted); letter-spacing: 3px; margin-bottom: 12px; }
.fl-title::before, .fl-title::after { content: ""; width: 42px; height: 1px; }
.fl-title::before { background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .55)); }
.fl-title::after { background: linear-gradient(90deg, rgba(var(--primary-rgb), .55), transparent); }
.fl-title i {
    color: var(--primary);
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.10);
    border-radius: 8px;
}
.fl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.fl-list a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border: 1px solid var(--border-subtle); background: rgba(18, 18, 28, .65); border-radius: var(--radius-full); font-size: 12px; color: var(--text-secondary); text-decoration: none; transition: all .25s var(--transition-smooth); }
.fl-list a i { font-size: 13px; color: var(--primary); opacity: .7; transition: opacity .25s; }
.fl-list a:hover { border-color: var(--primary); color: #fff; background: rgba(var(--primary-rgb), .14); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--primary-rgb), .2); }
.fl-list a:hover i { opacity: 1; }

/* 友情链接修复：覆盖旧 flex 布局，标题/列表必须分行 */
.footer-links { display: block !important; }

/* Desktop: sub-category nav wraps instead of horizontal scroll */
@media (min-width: 769px) {
    .filter-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ============================================================
   主题配色方案（仅 default 主题生效，前端右侧栏/后台可切换）
   每套覆盖强调色与 rgb 派生变量；渐变/阴影/发光全部跟随
   ============================================================ */
html[data-theme="default"] body[data-color="blue"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --accent: #0EA5E9;
    --primary-rgb: 59, 130, 246;
    --accent-rgb: 14, 165, 233;
}
html[data-theme="default"] body[data-color="green"] {
    --primary: #10B981;
    --primary-dark: #059669;
    --accent: #22D3EE;
    --primary-rgb: 16, 185, 129;
    --accent-rgb: 34, 211, 238;
}
html[data-theme="default"] body[data-color="gold"] {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --accent: #FBBF24;
    --primary-rgb: 245, 158, 11;
    --accent-rgb: 251, 191, 36;
}
html[data-theme="default"] body[data-color="red"] {
    --primary: #EF4444;
    --primary-dark: #DC2626;
    --accent: #F59E0B;
    --primary-rgb: 239, 68, 68;
    --accent-rgb: 245, 158, 11;
}
html[data-theme="default"] body[data-color="pink"] {
    --primary: #EC4899;
    --primary-dark: #DB2777;
    --accent: #8B5CF6;
    --primary-rgb: 236, 72, 153;
    --accent-rgb: 139, 92, 246;
}

/* ============================================================
   白天模式（亮色主题）
   后台「默认显示模式」设全局默认（theme_mode），前台右侧悬浮栏可临时切换
   仅覆盖颜色变量与少量硬编码白色文字，结构/布局/动画不变
   ============================================================ */
html[data-theme="default"] body[data-mode="light"] {
    --bg-base: #F3F5F9;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-main: #101828;
    --text-secondary: #475569;
    --text-muted: #5B6575;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --shadow-neon: 0 0 30px rgba(var(--primary-rgb), 0.14);
}
/* 硬编码白色文字/输入框（深色下可见，亮色下需随模式覆盖） */
html[data-theme="default"] body[data-mode="light"] .ep-date,
html[data-theme="default"] body[data-mode="light"] .ep-btn.active .ep-date {
    color: var(--text-muted);
}
html[data-theme="default"] body[data-mode="light"] .notice-btn {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
}
html[data-theme="default"] body[data-mode="light"] .notice-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    color: var(--text-main);
}
html[data-theme="default"] body[data-mode="light"] .parse-input {
    background: #FFFFFF;
    border-color: var(--border-subtle);
    color: var(--text-main);
}
/* 白天模式下滚动条配色 */
html[data-theme="default"] body[data-mode="light"] ::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}
/* 硬编码深色半透明背景（导航/底部栏/悬浮按钮/公告条）在亮色下改为浅色 */
html[data-theme="default"] body[data-mode="light"] .navbar {
    background: rgba(243, 245, 249, 0.85);
}
html[data-theme="default"] body[data-mode="light"] .mobile-tabbar {
    background: rgba(243, 245, 249, 0.95);
}
html[data-theme="default"] body[data-mode="light"] .float-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border-subtle);
}
html[data-theme="default"] body[data-mode="light"] .notice-bar {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border-color: rgba(var(--primary-rgb), 0.14);
    box-shadow: 0 4px 18px rgba(59, 87, 156, 0.08);
    color: var(--text-secondary);
}
/* ===== 白天模式：卡片信息层（毛玻璃信息条，替代整片白雾） ===== */
html[data-theme="default"] body[data-mode="light"] .card-info {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
html[data-theme="default"] body[data-mode="light"] .card:hover .card-info {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="default"] body[data-mode="light"] .card-meta {
    color: var(--text-secondary);
}
html[data-theme="default"] body[data-mode="light"] .card:hover .card-meta {
    color: var(--text-muted);
}
/* ===== 白天模式：卡片阴影更柔和 ===== */
html[data-theme="default"] body[data-mode="light"] .card {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="default"] body[data-mode="light"] .card:hover {
    box-shadow: 0 14px 30px -10px rgba(var(--primary-rgb), 0.25), 0 4px 14px rgba(15, 23, 42, 0.08);
}
/* ===== 白天模式：搜索框白底 + 聚焦光晕 ===== */
html[data-theme="default"] body[data-mode="light"] .search-box input {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.10);
    color: var(--text-main);
}
html[data-theme="default"] body[data-mode="light"] .search-box input:focus {
    background: #FFFFFF;
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12), 0 4px 18px rgba(15, 23, 42, 0.08);
}
html[data-theme="default"] body[data-mode="light"] .search-box input::placeholder {
    color: var(--text-muted);
}

/* ===== 白天模式：通知栏 & 页脚细节美化 ===== */
html[data-theme="default"] body[data-mode="light"] .notice-icon {
    background: linear-gradient(135deg, #ffe08a, #f5b942);
    color: #6b4e00;
}
html[data-theme="default"] body[data-mode="light"] .notice-dots i {
    background: rgba(59, 87, 156, 0.16);
}
html[data-theme="default"] body[data-mode="light"] .notice-dots i.active {
    background: var(--primary);
}
html[data-theme="default"] body[data-mode="light"] .fl-list a {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
html[data-theme="default"] body[data-mode="light"] .fl-list a:hover {
    background: rgba(var(--primary-rgb), 0.07);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
}
html[data-theme="default"] body[data-mode="light"] .fl-list a i {
    color: var(--primary);
    opacity: 0.8;
}
html[data-theme="default"] body[data-mode="light"] .footer-copy {
    color: rgba(71, 85, 105, 0.9);
}

/* 白天模式：详情页导演/主演链接加深，选集按钮 hover 用主色 */
html[data-theme="default"] body[data-mode="light"] .crew-link { color: #1D4ED8; }
html[data-theme="default"] body[data-mode="light"] .crew-link:hover { color: #1E40AF; }
html[data-theme="default"] body[data-mode="light"] .ep-btn {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html[data-theme="default"] body[data-mode="light"] .ep-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary);
}
/* 当前集按钮：白天保持主色渐变 + 白字（特异性需高于上方 .ep-btn） */
html[data-theme="default"] body[data-mode="light"] .ep-btn.active,
html[data-theme="default"] body[data-mode="light"] .ep-btn.active:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--accent) 120%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html[data-theme="default"] body[data-mode="light"] .block-title i {
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.18);
}
html[data-theme="default"] body[data-mode="light"] .ep-count {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* 白天模式：内容页毛玻璃卡片（详情头部/简介/选集/筛选区） */
html[data-theme="default"] body[data-mode="light"] .detail-hero,
html[data-theme="default"] body[data-mode="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.06);
}

/* 白天模式：豆瓣评分徽章深绿 */
html[data-theme="default"] body[data-mode="light"] .detail-rating-source {
    color: #047857;
    background: rgba(0, 119, 34, 0.07);
    border-color: rgba(0, 119, 34, 0.18);
}
html[data-theme="default"] body[data-mode="light"] .detail-rating-source i { color: #047857; }

/* 白天模式：豆瓣热评文字变量化 */
html[data-theme="default"] body[data-mode="light"] .dc-item {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="default"] body[data-mode="light"] .dc-name { color: var(--text-main); }
html[data-theme="default"] body[data-mode="light"] .dc-time { color: var(--text-muted); }
html[data-theme="default"] body[data-mode="light"] .dc-text { color: var(--text-secondary); }
html[data-theme="default"] body[data-mode="light"] .dc-avatar {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.08);
}
html[data-theme="default"] body[data-mode="light"] .dc-avatar-fallback {
    background: rgba(245, 185, 66, 0.22);
    color: #B45309;
}

/* 白天模式：播放信息卡片 + 上下集按钮 */
html[data-theme="default"] body[data-mode="light"] .play-info-bar {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.06);
}
html[data-theme="default"] body[data-mode="light"] .tool-btn {
    color: var(--text-main);
    background: rgba(var(--primary-rgb), 0.07);
    border-color: rgba(var(--primary-rgb), 0.22);
}
html[data-theme="default"] body[data-mode="light"] .tool-btn:hover {
    color: #BE185D;
    background: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.38);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.18);
}

/* 白天模式：选集区块白毛玻璃 */
html[data-theme="default"] body[data-mode="light"] .ep-section {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.06);
}
html[data-theme="default"] body[data-mode="light"] .site-footer {
    background: rgba(243, 245, 249, 0.85);
    border-color: var(--border-subtle);
}

/* ===== 前端配色选择栏（并入右侧悬浮栏，与留言/关于对齐） ===== */
.color-switcher {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
.color-switcher .cs-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background: rgba(12, 12, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.color-switcher .cs-toggle:hover {
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.35);
}
.color-switcher .cs-toggle i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.color-switcher .cs-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    background: rgba(15, 15, 24, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.color-switcher .cs-panel.open { display: flex; }
.color-switcher .cs-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.color-switcher .cs-swatch:hover { background: rgba(255, 255, 255, 0.06); }
.color-switcher .cs-swatch.active {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.1);
}
.color-switcher .cs-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.color-switcher .cs-name {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}
.color-switcher .cs-check {
    margin-left: auto;
    font-size: 14px;
    color: rgba(var(--primary-rgb), 1);
    visibility: hidden;
}
.color-switcher .cs-swatch.active .cs-check { visibility: visible; }
/* Vue 挂载前隐藏模板插值残留（防 {{}} 乱码闪烁） */
[v-cloak] { display: none !important; }
/* ===== 2026-11-03 播放页兜底提示美化（注入主样式防 CDN 丢失；桌面+移动端，居中） ===== */
.player-placeholder{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:rgba(255,255,255,.55)}
.player-placeholder i.pp-icon{font-size:78px;opacity:.85}
.pp-title{font-size:23px !important;font-weight:600;color:#fff !important;letter-spacing:.4px;line-height:1.5}
.pp-sub{font-size:13px !important;color:rgba(255,255,255,.55) !important;line-height:1.5}
.vp-loading-text{font-size:15px;color:rgba(255,255,255,.85);letter-spacing:.3px}
@media (max-width:768px){
  .player-placeholder{gap:12px}
  .player-placeholder i.pp-icon{font-size:52px}
  .pp-title{font-size:17px !important;letter-spacing:.3px}
  .pp-sub{font-size:12px !important;padding:0 24px;text-align:center}
  .vp-loading-text{font-size:13px}
  .vp-retry-btn{padding:6px 18px;font-size:13px}
}
