/* ============================================================
   tilitili - Tesla B站 Web Player
   Design system: Dark automotive minimalist, B站 pink accent
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 5
   Shape lock: 12px radius (cards, containers, buttons)
   Color lock: #fb7299 accent everywhere
   ============================================================ */

:root {
    /* Surface - off-black, cool undertone (no pure #000) */
    --surface-base: #0a0a0c;
    --surface-raised: #131316;
    --surface-elevated: #1c1c20;
    --surface-hover: #25252a;

    /* Text - zinc scale */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    /* Accent - B站 brand pink, locked across all sections */
    --accent: #fb7299;
    --accent-hover: #fc8aab;
    --accent-active: #e8688f;
    --accent-dim: rgba(251, 114, 153, 0.12);
    --accent-glow: rgba(251, 114, 153, 0.25);

    /* Status */
    --status-gold: #f5a623;
    --status-red: #ff453a;
    --status-green: #30d158;

    /* Border */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(251, 114, 153, 0.4);

    /* Overlay */
    --overlay-light: rgba(0, 0, 0, 0.3);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-heavy: rgba(0, 0, 0, 0.75);

    /* Radius - one system: 12px soft */
    --r: 12px;
    --r-sm: 8px;
    --r-full: 999px;

    /* Layout */
    --header-h: 60px;
    --max-width: 1600px;

    /* Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows - tinted to background hue */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-accent: 0 4px 20px rgba(251, 114, 153, 0.15);
}

/* ==================== Light Theme ==================== */
[data-theme="light"] {
    --surface-base: #fafafa;
    --surface-raised: #ffffff;
    --surface-elevated: #ffffff;
    --surface-hover: #f4f4f5;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;

    --accent: #fb7299;
    --accent-hover: #fc5d8a;
    --accent-active: #e85680;
    --accent-dim: rgba(251, 114, 153, 0.08);
    --accent-glow: rgba(251, 114, 153, 0.15);

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-accent: rgba(251, 114, 153, 0.35);

    --overlay-light: rgba(0, 0, 0, 0.15);
    --overlay-medium: rgba(0, 0, 0, 0.35);
    --overlay-heavy: rgba(0, 0, 0, 0.6);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 20px rgba(251, 114, 153, 0.12);
}

/* ==================== Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    background: var(--surface-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

/* ==================== Header ==================== */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 20px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] #header {
    background: rgba(250, 250, 250, 0.8);
}

.header-left { flex-shrink: 0; }

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-center {
    flex: 1;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.search-box {
    display: flex;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface-raised);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}

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

.search-box button {
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s var(--ease);
}

.search-box button:hover { background: var(--accent-hover); }
.search-box button:active { background: var(--accent-active); transform: scale(0.97); }

/* Nav tabs */
#navTabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: var(--surface-raised);
    border-radius: var(--r);
    padding: 3px;
    border: 1px solid var(--border);
}

.nav-tab {
    padding: 6px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
    border: none;
    background: transparent;
}

.nav-tab:hover { color: var(--text-primary); }

.nav-tab.active {
    color: #fff;
    background: var(--accent);
}

[data-theme="light"] .nav-tab.active { color: #fff; }

/* Header right */
.header-right {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

#themeToggle {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    line-height: 1;
}

#themeToggle:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

#themeToggle:active { transform: scale(0.95); }

#themeToggle svg { width: 18px; height: 18px; fill: currentColor; }

/* ==================== Main ==================== */
#main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 28px;
    min-height: calc(100vh - var(--header-h));
}

/* ==================== Section Headers ==================== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ==================== Video Grid ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px 16px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s var(--ease);
}

.video-card:hover { transform: translateY(-4px); }
.video-card:active { transform: translateY(-2px) scale(0.99); }

.video-card .cover {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface-raised);
    transition: box-shadow 0.25s var(--ease);
}

.video-card:hover .cover {
    box-shadow: var(--shadow-md);
}

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

.video-card:hover .cover img { transform: scale(1.05); }

/* Badges on cover */
.video-card .cover .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-card .cover .play-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-card .cover .play-count svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* Play overlay */
.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}

.video-card:hover .play-overlay { opacity: 1; }

.video-card .play-overlay svg {
    width: 48px;
    height: 48px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Card info */
.video-card .info { padding: 10px 2px 0; }

.video-card .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.video-card .up {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-card .up-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--r-sm);
    background: var(--accent-dim);
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==================== Video Page ==================== */
.video-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 900px) {
    .video-page { grid-template-columns: 1fr; }
}

.player-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.player-container .wc-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info { margin-top: 20px; }

.video-info h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.video-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-raised);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s var(--ease);
}

.video-actions button:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    color: var(--text-primary);
}

.video-actions button:active { transform: scale(0.96); }

.video-desc {
    background: var(--surface-raised);
    border-radius: var(--r);
    border: 1px solid var(--border);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.up-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px 16px;
    background: var(--surface-raised);
    border-radius: var(--r);
    border: 1px solid var(--border);
}

.up-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.up-info .up-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.up-info .up-fans {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ==================== Sidebar ==================== */
.sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item {
    display: flex;
    gap: 10px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r);
    transition: background 0.2s var(--ease);
}

.related-item:hover { background: var(--surface-raised); }

.related-item .cover {
    width: 120px;
    aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-raised);
}

.related-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item .info { flex: 1; min-width: 0; }

.related-item .title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.related-item .meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ==================== Search Page ==================== */
.search-header { margin-bottom: 20px; }

.search-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.search-header .count {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ==================== Skeleton Loading ==================== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px 16px;
}

.skeleton-card .sk-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r);
    background: var(--surface-raised);
    position: relative;
    overflow: hidden;
}

.skeleton-card .sk-line {
    height: 14px;
    border-radius: var(--r-sm);
    background: var(--surface-raised);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.skeleton-card .sk-line.short { width: 60%; }

.skeleton-card .sk-cover::after,
.skeleton-card .sk-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

[data-theme="light"] .skeleton-card .sk-cover::after,
[data-theme="light"] .skeleton-card .sk-line::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.04) 50%,
        transparent 100%
    );
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== Loading ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    gap: 20px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--surface-elevated);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 80px;
    color: var(--text-tertiary);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ==================== Ranking ==================== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border-radius: var(--r);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.rank-item:hover { background: var(--surface-raised); }

.rank-num {
    width: 32px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.rank-item:nth-child(1) .rank-num { color: var(--status-gold); }
.rank-item:nth-child(2) .rank-num { color: #c0c0c0; }
.rank-item:nth-child(3) .rank-num { color: #cd7f32; }

.rank-item .cover {
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-raised);
}

.rank-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item .info { flex: 1; min-width: 0; }

.rank-item .title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.rank-item .meta {
    font-size: 12px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); }

/* ==================== Load More (infinite scroll sentinel) ==================== */
.scroll-sentinel {
    height: 1px;
    width: 100%;
}

.scroll-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.scroll-loading .spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.scroll-end {
    text-align: center;
    padding: 28px;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    #header { padding: 0 16px; gap: 10px; }
    .header-center { max-width: none; gap: 8px; }
    .logo { font-size: 1rem; }
    .nav-tab { padding: 5px 10px; font-size: 12px; }
    #main { padding: 16px; }
    .video-grid, .skeleton-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px 10px;
    }
    .video-card .title { font-size: 13px; }
    .video-page { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    #header { padding: 0 12px; gap: 8px; }
    .logo { font-size: 0.9rem; }
    .nav-tab { padding: 4px 8px; font-size: 11px; }
    .search-box { height: 34px; }
    .search-box input { font-size: 12px; padding: 0 10px; }
    .search-box button { padding: 0 12px; font-size: 12px; }
    #themeToggle { width: 34px; height: 34px; }
}

/* ============================================================
   WebCodecs Player
   ============================================================ */
.wc-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

.wc-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wc-danmaku {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Loading overlay */
.wc-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-base);
    z-index: 10;
    gap: 16px;
}

.wc-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--surface-elevated);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: wc-spin 0.7s linear infinite;
}

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

.wc-loading-text {
    color: var(--text-tertiary);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Controls */
.wc-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 40px 20px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 5;
    transition: opacity 0.25s var(--ease);
}

.wc-player:not(.wc-controls-visible) .wc-controls {
    opacity: 0;
    pointer-events: none;
}

/* Control buttons */
.wc-play-btn,
.wc-mute-btn,
.wc-fullscreen-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s var(--ease), transform 0.1s var(--ease);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wc-play-btn:hover,
.wc-mute-btn:hover,
.wc-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wc-play-btn:active,
.wc-mute-btn:active,
.wc-fullscreen-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.2);
}

/* Time display */
.wc-time {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
}

/* Progress bar */
.wc-progress {
    flex: 1;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.wc-progress-bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: height 0.15s var(--ease);
}

.wc-progress:hover .wc-progress-bg { height: 6px; }

.wc-progress-buffered {
    position: absolute;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    transition: height 0.15s var(--ease);
}

.wc-progress:hover .wc-progress-buffered { height: 6px; }

.wc-progress-filled {
    position: absolute;
    left: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.15s var(--ease);
}

.wc-progress:hover .wc-progress-filled { height: 6px; }

.wc-progress-thumb {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
    transition: opacity 0.15s var(--ease), transform 0.12s var(--ease);
    box-shadow: 0 0 8px var(--accent-glow);
}

.wc-progress:hover .wc-progress-thumb {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Volume slider */
.wc-volume {
    width: 64px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.wc-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.wc-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Fullscreen */
.wc-player:fullscreen { width: 100vw; height: 100vh; }
.wc-player:fullscreen .wc-video-wrap { width: 100vw; height: 100vh; }

/* Play overlay */
.wc-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-light);
    z-index: 8;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s var(--ease);
}

.wc-play-overlay:hover { background: rgba(0, 0, 0, 0.25); }

.wc-play-overlay svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--r);
    padding: 12px;
    box-sizing: content-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
