/* =============================================
   Apollo Rewind 2025 - Mobile-First Styles
   Inspired by Spotify Wrapped & Trakt Year Review
   ============================================= */

:root {
    /* Color Palette - Original */
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252542;
    --accent-primary: #e94560;
    --accent-secondary: #7b2cbf;
    --accent-tertiary: #0ead69;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Bold Primaries - Distinctive palette */
    --coral-hot: #ff6b6b;
    --amber-glow: #f59e0b;
    --mint-electric: #10b981;
    --cyan-deep: #06b6d4;
    --magenta-vivid: #d946ef;
    --lime-acid: #a3e635;

    /* Rich Darks - More character than pure black */
    --void-blue: #0a0f1a;
    --charcoal-warm: #1c1917;
    --ink-purple: #1e1b4b;
    --forest-deep: #052e16;
    --wine-dark: #450a0a;
    --slate-cold: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #7b2cbf 100%);
    --gradient-secondary: linear-gradient(135deg, #7b2cbf 0%, #0ead69 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    --gradient-night: linear-gradient(180deg, #0d0d1a 0%, #1a1a4e 50%, #2d1b4e 100%);
    --gradient-sunrise: linear-gradient(180deg, #1a1a2e 0%, #e94560 50%, #ff6b35 100%);
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y;
    overscroll-behavior: none;
}

/* =============================================
   Desktop Warning Screen
   ============================================= */

.desktop-warning {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-xl);
}

.desktop-warning.hidden {
    display: none;
}

.desktop-warning-content {
    text-align: center;
    max-width: 400px;
}

.phone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xl);
    color: var(--accent-primary);
    animation: phone-bounce 2s ease-in-out infinite;
}

@keyframes phone-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.desktop-warning h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.desktop-warning p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.continue-anyway {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.continue-anyway:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* =============================================
   Main App Container
   ============================================= */

.app {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.app.hidden {
    display: none;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--transition-medium);
}

/* =============================================
   Slides Container
   ============================================= */

.slides-container {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slide {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Labels */
.slide-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-lg);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* =============================================
   Slide 0: Welcome
   ============================================= */

.slide-welcome {
    background: var(--ink-purple);
    position: relative;
    overflow: hidden;
}

/* Animated mesh gradient orbs */
.slide-welcome::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255, 107, 107, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 75% 70%, rgba(6, 182, 212, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 45% 45% at 50% 50%, rgba(245, 158, 11, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 85% 20%, rgba(217, 70, 239, 0.35) 0%, transparent 45%);
    animation: welcome-mesh-drift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes welcome-mesh-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(5%, 3%) scale(1.05) rotate(2deg);
    }
    66% {
        transform: translate(-4%, 5%) scale(0.98) rotate(-1deg);
    }
}

.slide-welcome .slide-content {
    position: relative;
    z-index: 1;
}

.logo-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-xl);
}

.logo-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ring-pulse 2s ease-in-out infinite;
}

.logo-ring:nth-child(1) { animation-delay: 0s; }
.logo-ring:nth-child(2) { animation-delay: 0.4s; }
.logo-ring:nth-child(3) { animation-delay: 0.8s; }

@keyframes ring-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.title-main {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0;
}

.title-sub {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.year-badge {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-xxl);
}

.tap-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* =============================================
   Slide 1: Total Watch Time
   ============================================= */

.slide-total-time {
    background: linear-gradient(135deg, var(--slate-cold) 0%, #0d1a2e 50%, #051520 100%);
    position: relative;
    overflow: hidden;
}

/* Isometric grid pattern */
.slide-total-time::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(30deg, transparent 49.5%, rgba(6, 182, 212, 0.08) 49.5%, rgba(6, 182, 212, 0.08) 50.5%, transparent 50.5%),
        linear-gradient(150deg, transparent 49.5%, rgba(6, 182, 212, 0.08) 49.5%, rgba(6, 182, 212, 0.08) 50.5%, transparent 50.5%);
    background-size: 50px 50px;
    opacity: 0.6;
    animation: grid-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Cyan glow accent */
.slide-total-time::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.slide-total-time .slide-content {
    position: relative;
    z-index: 1;
}

.big-stat {
    margin: var(--spacing-xl) 0 0;
}

.stat-number {
    display: block;
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-unit {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.stat-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.tiktok-comparison {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0 var(--spacing-xxl);
    opacity: 0.8;
    white-space: pre-line;
}

.stat-breakdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.breakdown-item {
    text-align: center;
}

.breakdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.breakdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   User Spotlight Cards
   ============================================= */

.user-spotlight {
    margin: var(--spacing-xl) 0;
}

.user-avatar-container {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    object-fit: cover;
    background: var(--bg-card);
}

.crown-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: crown-bounce 1s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: var(--spacing-md) 0;
}

.user-stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-stat-big .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stat-big .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-pill {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

.stat-pill span {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Pie Chart */
.pie-chart-container {
    margin-top: var(--spacing-xl);
}

.pie-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item.tv .dot { background: var(--accent-primary); }
.legend-item.movies .dot { background: var(--accent-secondary); }

/* =============================================
   Slide 2: Top Viewer
   ============================================= */

.slide-top-viewer {
    background: var(--charcoal-warm);
    position: relative;
    overflow: hidden;
}

/* Golden conic rays emanating from top */
.slide-top-viewer::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    width: 200%;
    height: 150%;
    transform: translateX(-50%);
    background: conic-gradient(
        from 180deg at 50% 0%,
        transparent 0deg,
        rgba(245, 158, 11, 0.08) 15deg,
        transparent 30deg,
        transparent 45deg,
        rgba(245, 158, 11, 0.06) 60deg,
        transparent 75deg,
        transparent 90deg,
        rgba(245, 158, 11, 0.1) 105deg,
        transparent 120deg,
        transparent 135deg,
        rgba(245, 158, 11, 0.05) 150deg,
        transparent 165deg,
        transparent 180deg
    );
    animation: top-viewer-rays 45s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Warm glow at bottom */
.slide-top-viewer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes top-viewer-rays {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.slide-top-viewer .slide-content {
    position: relative;
    z-index: 1;
}

/* =============================================
   Slide 3: Podium
   ============================================= */

.slide-podium {
    background: var(--void-blue);
    position: relative;
    overflow: hidden;
}

/* Vertical metallic streaks */
.slide-podium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            transparent 20%,
            rgba(192, 192, 192, 0.03) 22%,
            rgba(192, 192, 192, 0.05) 23%,
            rgba(192, 192, 192, 0.03) 24%,
            transparent 26%,
            transparent 45%,
            rgba(255, 215, 0, 0.05) 47%,
            rgba(255, 215, 0, 0.08) 48%,
            rgba(255, 215, 0, 0.1) 50%,
            rgba(255, 215, 0, 0.08) 52%,
            rgba(255, 215, 0, 0.05) 53%,
            transparent 55%,
            transparent 74%,
            rgba(205, 127, 50, 0.03) 76%,
            rgba(205, 127, 50, 0.05) 77%,
            rgba(205, 127, 50, 0.03) 78%,
            transparent 80%
        );
    animation: podium-sheen 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Metallic glow from bottom */
.slide-podium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background:
        radial-gradient(ellipse 40% 50% at 30% 100%, rgba(192, 192, 192, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 50% 100%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 70% 100%, rgba(205, 127, 50, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes podium-sheen {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(3%);
        opacity: 0.8;
    }
}

.slide-podium .slide-content {
    position: relative;
    z-index: 1;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-medium);
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    background: var(--bg-card);
}

.podium-item:nth-child(1) .podium-avatar { border-color: #c0c0c0; }
.podium-item:nth-child(2) .podium-avatar { width: 80px; height: 80px; }
.podium-item:nth-child(3) .podium-avatar { border-color: #cd7f32; }

.podium-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.podium-stand {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
}

.podium-item:nth-child(1) .podium-stand {
    height: 70px;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    color: #1a1a2e;
}

.podium-item:nth-child(2) .podium-stand {
    height: 100px;
    background: var(--gradient-gold);
    color: #1a1a2e;
}

.podium-item:nth-child(3) .podium-stand {
    height: 50px;
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #fff;
}

/* =============================================
   Slide 4: Night Owl
   ============================================= */

.slide-night-owl {
    background: linear-gradient(180deg, #050510 0%, #0a0f1a 30%, var(--ink-purple) 70%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

/* Aurora waves at horizon */
.slide-night-owl::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background:
        radial-gradient(ellipse 80% 100% at 25% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 70% 100% at 50% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 80% 100% at 75% 100%, rgba(217, 70, 239, 0.12) 0%, transparent 60%);
    animation: aurora-wave 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora-wave {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.7;
    }
    33% {
        transform: translateX(3%) scaleY(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translateX(-2%) scaleY(0.95);
        opacity: 0.8;
    }
}

.slide-night-owl .slide-content {
    position: relative;
    z-index: 1;
}

.night-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.moon {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd89b 0%, #f5f5dc 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 216, 155, 0.5);
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: star-twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 40%; left: 10%; animation-delay: 1s; }
.star:nth-child(4) { top: 60%; left: 70%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 80%; left: 40%; animation-delay: 0.3s; }

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.night-theme .user-avatar {
    border-color: var(--accent-gold);
}

/* =============================================
   Slide 5: Binger
   ============================================= */

.slide-binger {
    background: linear-gradient(160deg, var(--ink-purple) 0%, #2d1b4e 50%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

/* Film strip perforations on left */
.slide-binger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 100%;
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 20px,
            rgba(255, 255, 255, 0.06) 20px,
            rgba(255, 255, 255, 0.06) 32px,
            transparent 32px,
            transparent 52px
        );
    animation: filmstrip-scroll 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Film strip perforations on right */
.slide-binger::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 20px,
            rgba(255, 255, 255, 0.06) 20px,
            rgba(255, 255, 255, 0.06) 32px,
            transparent 32px,
            transparent 52px
        );
    animation: filmstrip-scroll 10s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes filmstrip-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 -520px; }
}

.slide-binger .slide-content {
    position: relative;
    z-index: 1;
}

.binge-animation {
    position: relative;
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.couch-emoji, .popcorn-emoji {
    position: absolute;
    font-size: 2.5rem;
}

.couch-emoji {
    left: 50%;
    transform: translateX(-70%);
}

.popcorn-emoji {
    left: 50%;
    transform: translateX(30%);
    animation: popcorn-bounce 0.5s ease-in-out infinite;
}

@keyframes popcorn-bounce {
    0%, 100% { transform: translateX(30%) translateY(0); }
    50% { transform: translateX(30%) translateY(-5px); }
}

.binge-stat {
    margin: var(--spacing-xl) 0;
}

.big-number {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-text {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.show-card {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--accent-secondary);
}

.show-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.show-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =============================================
   Slide 6: Direct Play List
   ============================================= */

.slide-direct-play {
    background: linear-gradient(180deg, var(--void-blue) 0%, #0a1a14 50%, #051510 100%);
    position: relative;
    overflow: hidden;
}

/* Matrix-style vertical data lines */
.slide-direct-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.15) 0%,
            rgba(16, 185, 129, 0.08) 20%,
            rgba(16, 185, 129, 0.02) 50%,
            transparent 70%
        ) 10% 0 / 2px 100% no-repeat,
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.1) 0%,
            rgba(16, 185, 129, 0.05) 30%,
            transparent 60%
        ) 25% 0 / 1px 100% no-repeat,
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.2) 0%,
            rgba(16, 185, 129, 0.1) 15%,
            rgba(16, 185, 129, 0.03) 40%,
            transparent 65%
        ) 42% 0 / 2px 100% no-repeat,
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.08) 0%,
            rgba(16, 185, 129, 0.04) 25%,
            transparent 55%
        ) 58% 0 / 1px 100% no-repeat,
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.12) 0%,
            rgba(16, 185, 129, 0.06) 20%,
            rgba(16, 185, 129, 0.02) 45%,
            transparent 70%
        ) 75% 0 / 2px 100% no-repeat,
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.18) 0%,
            rgba(16, 185, 129, 0.08) 18%,
            transparent 50%
        ) 90% 0 / 1px 100% no-repeat;
    animation: matrix-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Data transfer glow */
.slide-direct-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes matrix-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.slide-direct-play .slide-content {
    position: relative;
    z-index: 1;
}

.direct-play-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.direct-play-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: left;
}

.direct-play-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-tertiary);
    object-fit: cover;
    background: var(--bg-card);
}

.direct-play-info {
    flex: 1;
}

.direct-play-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.direct-play-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.direct-play-percent {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-tertiary);
}

/* Wall of Shame (Transcoders) */
.wall-of-shame {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shame-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: #ff6b6b;
}

.shame-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.shame-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.shame-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    text-align: left;
}

.shame-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff6b6b;
    object-fit: cover;
    background: var(--bg-card);
}

.shame-info {
    flex: 1;
}

.shame-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.shame-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shame-percent {
    font-size: 1rem;
    font-weight: 700;
    color: #ff6b6b;
}

/* =============================================
   Slide 7: Streaks
   ============================================= */

.slide-streaks {
    background: linear-gradient(180deg, var(--wine-dark) 0%, #2e1a1a 40%, #1a0a0a 100%);
    position: relative;
    overflow: hidden;
}

/* Rising flame shapes */
.slide-streaks::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background:
        radial-gradient(ellipse 25% 60% at 15% 100%, rgba(255, 107, 107, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 20% 50% at 35% 100%, rgba(255, 165, 0, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 30% 70% at 55% 100%, rgba(255, 107, 107, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 22% 55% at 75% 100%, rgba(255, 140, 0, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 18% 45% at 90% 100%, rgba(220, 53, 69, 0.15) 0%, transparent 70%);
    animation: flames-rise 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Heat shimmer overlay */
.slide-streaks::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
    animation: heat-shimmer 3s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes flames-rise {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-2%) scaleY(1.08);
        opacity: 1;
    }
    50% {
        transform: translateY(-1%) scaleY(1.03);
        opacity: 0.95;
    }
    75% {
        transform: translateY(-3%) scaleY(1.1);
        opacity: 1;
    }
}

@keyframes heat-shimmer {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.slide-streaks .slide-content {
    position: relative;
    z-index: 1;
}

.streak-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.streak-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.streak-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    object-fit: cover;
    background: var(--bg-card);
}

.streak-info {
    flex: 1;
    text-align: left;
}

.streak-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.streak-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.streak-days {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streak-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.streak-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.fire-emoji {
    font-size: 1.5rem;
    margin-left: var(--spacing-sm);
}

/* =============================================
   Slide 8 & 9: Content Cards
   ============================================= */

.slide-movie {
    background: linear-gradient(180deg, #1a1812 0%, #2a2418 50%, #1a1510 100%);
    position: relative;
    overflow: hidden;
}

/* Anamorphic lens flare streak */
.slide-movie::before {
    content: '';
    position: absolute;
    top: 35%;
    left: -30%;
    right: -30%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 15%,
        rgba(245, 158, 11, 0.2) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(217, 70, 239, 0.2) 60%,
        rgba(255, 255, 255, 0.05) 85%,
        transparent 100%
    );
    filter: blur(2px);
    animation: lens-flare-drift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Film grain texture simulation */
.slide-movie::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
}

@keyframes lens-flare-drift {
    0%, 100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(40px) scaleX(1.1);
        opacity: 0.9;
    }
}

.slide-tv {
    background: linear-gradient(180deg, #0a1520 0%, #0d1a2e 50%, #051015 100%);
    position: relative;
    overflow: hidden;
}

/* CRT scan lines */
.slide-tv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    animation: scanlines-scroll 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* RGB chromatic aberration at edges */
.slide-tv::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow:
        inset 4px 0 20px rgba(255, 0, 0, 0.04),
        inset -4px 0 20px rgba(0, 100, 255, 0.04),
        inset 0 4px 15px rgba(0, 255, 100, 0.02),
        inset 0 0 60px rgba(6, 182, 212, 0.08);
    pointer-events: none;
    z-index: 0;
}

@keyframes scanlines-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

.content-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.content-poster {
    width: 150px;
    height: 225px;
    margin: 0 auto var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.content-year {
    font-size: 1rem;
    color: var(--text-muted);
}

.content-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-stat {
    text-align: center;
}

.content-stat .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.content-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.watched-by {
    margin-top: var(--spacing-lg);
}

.watched-by-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.watched-by-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    transition: opacity 0.3s ease;
}

.watched-by-featured.fade-out {
    opacity: 0;
}

.watched-by-featured-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    background: var(--bg-secondary);
}

.watched-by-featured-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.watched-by-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.watched-by-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    object-fit: cover;
    background: var(--bg-secondary);
}

/* =============================================
   Floating Avatar Bubbles (Movie & TV Slides)
   ============================================= */

.avatar-bubbles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.avatar-bubble {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    will-change: transform, opacity;
    animation: bubble-float var(--bubble-duration, 8s) ease-in-out infinite;
    animation-delay: var(--bubble-delay, 0s);
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.avatar-bubble.visible {
    opacity: var(--bubble-opacity, 0.4);
}

@keyframes bubble-float {
    0% {
        transform: translate(0, 0) scale(var(--bubble-scale-start, 0.8));
        opacity: var(--bubble-opacity, 0.4);
    }
    25% {
        transform: translate(var(--bubble-x1, 10px), var(--bubble-y1, -20px)) scale(var(--bubble-scale-mid, 1));
        opacity: calc(var(--bubble-opacity, 0.4) * 1.2);
    }
    50% {
        transform: translate(var(--bubble-x2, -5px), var(--bubble-y2, -30px)) scale(var(--bubble-scale-end, 1.1));
        opacity: var(--bubble-opacity, 0.4);
    }
    75% {
        transform: translate(var(--bubble-x3, -15px), var(--bubble-y3, -15px)) scale(var(--bubble-scale-mid, 1));
        opacity: calc(var(--bubble-opacity, 0.4) * 0.8);
    }
    100% {
        transform: translate(0, 0) scale(var(--bubble-scale-start, 0.8));
        opacity: var(--bubble-opacity, 0.4);
    }
}

/* Alternative bubble animations for variety */
@keyframes bubble-float-alt {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: var(--bubble-opacity, 0.3);
    }
    33% {
        transform: translate(var(--bubble-x1, -15px), var(--bubble-y1, 20px)) scale(1.15) rotate(5deg);
        opacity: calc(var(--bubble-opacity, 0.3) * 1.3);
    }
    66% {
        transform: translate(var(--bubble-x2, 10px), var(--bubble-y2, -10px)) scale(0.9) rotate(-3deg);
        opacity: calc(var(--bubble-opacity, 0.3) * 0.7);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: var(--bubble-opacity, 0.3);
    }
}

@keyframes bubble-pulse {
    0%, 100% {
        transform: scale(var(--bubble-scale-start, 0.9));
        opacity: var(--bubble-opacity, 0.35);
    }
    50% {
        transform: scale(var(--bubble-scale-end, 1.15));
        opacity: calc(var(--bubble-opacity, 0.35) * 1.4);
    }
}

/* Slide content should be above bubbles */
.slide-movie .slide-content,
.slide-tv .slide-content {
    position: relative;
    z-index: 1;
}

/* =============================================
   Slide 10: Genres - Packed Bubble Chart
   ============================================= */

.slide-genres {
    background: linear-gradient(135deg, #0a0f14 0%, #0f1a1a 50%, #0a1410 100%);
    position: relative;
    overflow: hidden;
}

/* Overlapping translucent circles */
.slide-genres::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 25%, rgba(217, 70, 239, 0.12) 0%, transparent 22%),
        radial-gradient(circle at 25% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 70% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.08) 0%, transparent 30%);
    animation: genres-circles-pulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes genres-circles-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.slide-genres .slide-content {
    position: relative;
    z-index: 1;
}

.genre-bubbles {
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.genre-bubble {
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.genre-bubble.visible {
    opacity: 1;
    transform: scale(1);
}

/* Large bubbles (center) */
.bubble-large {
    position: relative;
    z-index: 2;
}

.bubble-1 { background-color: var(--accent-primary); }
.bubble-1.visible { transform: scale(1) translateY(-15px); }

.bubble-2 { background-color: var(--accent-secondary); }
.bubble-2.visible { transform: scale(1) translateY(20px); }

/* Small bubbles (satellites) */
.bubble-small {
    position: absolute;
    z-index: 1;
}

.bubble-3 {
    background-color: var(--accent-tertiary);
    top: 0;
    left: 0;
}

.bubble-4 {
    background-color: var(--accent-gold);
    top: 0;
    right: 0;
}

.bubble-5 {
    background-color: var(--accent-orange);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bubble-5.visible {
    transform: scale(1) translateX(-50%);
}

/* Float animations - unique for each bubble for natural movement */

/* Large bubble animations - gentle drift */
.bubble-1.floating {
    animation: float-drift-1 12s ease-in-out infinite;
}

.bubble-2.floating {
    animation: float-drift-2 14s ease-in-out infinite;
    animation-delay: 2s;
    animation-fill-mode: backwards;
}

@keyframes float-drift-1 {
    0%, 100% {
        transform: translateY(-15px) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translate(8px, -5px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-15px) translate(4px, -10px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) translate(-4px, -4px) rotate(-1.5deg);
    }
}

@keyframes float-drift-2 {
    0%, 100% {
        transform: translateY(20px) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translateY(20px) translate(-6px, -8px) rotate(-1deg);
    }
    50% {
        transform: translateY(20px) translate(-2px, -12px) rotate(0deg);
    }
    75% {
        transform: translateY(20px) translate(6px, -4px) rotate(1deg);
    }
}

/* Small bubble animations - gentle drift, slightly faster */
.bubble-3.floating {
    animation: float-drift-3 9s ease-in-out infinite;
}

.bubble-4.floating {
    animation: float-drift-4 11s ease-in-out infinite;
    animation-delay: 1.5s;
    animation-fill-mode: backwards;
}

.bubble-5.floating {
    animation: float-drift-5 10s ease-in-out infinite;
    animation-delay: 3s;
    animation-fill-mode: backwards;
}

@keyframes float-drift-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(6px, -8px) rotate(2deg);
    }
    50% {
        transform: translate(10px, -4px) rotate(0deg);
    }
    75% {
        transform: translate(3px, 4px) rotate(-2deg);
    }
}

@keyframes float-drift-4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-5px, -6px) rotate(-1.5deg);
    }
    50% {
        transform: translate(-8px, -10px) rotate(0deg);
    }
    75% {
        transform: translate(-3px, -3px) rotate(1.5deg);
    }
}

@keyframes float-drift-5 {
    0%, 100% {
        transform: translateX(-50%) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translate(7px, -5px) rotate(1deg);
    }
    50% {
        transform: translateX(-50%) translate(3px, -12px) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) translate(-5px, -6px) rotate(-1deg);
    }
}

/* Text inside bubbles */
.bubble-name {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    word-break: break-word;
}

.bubble-hours {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

.bubble-large .bubble-name { font-size: 0.9rem; }
.bubble-large .bubble-hours { font-size: 0.8rem; }

/* Poster background support */
.genre-bubble.has-poster {
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: overlay;
}

.genre-bubble.has-poster .bubble-name,
.genre-bubble.has-poster .bubble-hours {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

/* =============================================
   Slide 11: Hours Chart
   ============================================= */

.slide-hours {
    background: linear-gradient(200deg, #1a1508 0%, #2a2010 50%, #151005 100%);
    position: relative;
    overflow: hidden;
}

/* Concentric clock circles */
.slide-hours::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 50% 50%, transparent 18%, rgba(245, 158, 11, 0.08) 19%, rgba(245, 158, 11, 0.08) 20%, transparent 21%),
        radial-gradient(circle at 50% 50%, transparent 38%, rgba(245, 158, 11, 0.06) 39%, rgba(245, 158, 11, 0.06) 40%, transparent 41%),
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(245, 158, 11, 0.04) 59%, rgba(245, 158, 11, 0.04) 60%, transparent 61%),
        radial-gradient(circle at 50% 50%, transparent 78%, rgba(245, 158, 11, 0.03) 79%, rgba(245, 158, 11, 0.03) 80%, transparent 81%);
    pointer-events: none;
    z-index: 0;
}

/* Clock hand suggestion */
.slide-hours::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20%;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.4) 0%, transparent 100%);
    transform-origin: bottom center;
    animation: clock-hand-rotate 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes clock-hand-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.slide-hours .slide-content {
    position: relative;
    z-index: 1;
}

.clock-chart {
    margin: var(--spacing-xl) auto;
    position: relative;
}

.peak-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
}

.peak-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.peak-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: var(--spacing-xs);
}

/* =============================================
   Slide 12: Platforms
   ============================================= */

.slide-platforms {
    background: linear-gradient(180deg, var(--slate-cold) 0%, #0d1a2e 50%, #051525 100%);
    position: relative;
    overflow: hidden;
}

/* Horizontal device-width bands */
.slide-platforms::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg,
            transparent 0%,
            transparent 18%,
            rgba(6, 182, 212, 0.03) 18%,
            rgba(6, 182, 212, 0.03) 22%,
            transparent 22%,
            transparent 38%,
            rgba(6, 182, 212, 0.04) 38%,
            rgba(6, 182, 212, 0.04) 42%,
            transparent 42%,
            transparent 58%,
            rgba(6, 182, 212, 0.03) 58%,
            rgba(6, 182, 212, 0.03) 62%,
            transparent 62%,
            transparent 78%,
            rgba(6, 182, 212, 0.02) 78%,
            rgba(6, 182, 212, 0.02) 82%,
            transparent 82%,
            transparent 100%
        );
    animation: bands-brighten 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Cyan glow */
.slide-platforms::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes bands-brighten {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.slide-platforms .slide-content {
    position: relative;
    z-index: 1;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.platform-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 8px;
    box-sizing: border-box;
}

.platform-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.platform-info {
    flex: 1;
    text-align: left;
}

.platform-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.platform-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.platform-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.platform-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: right;
}

/* =============================================
   Slide 13: Growth
   ============================================= */

.slide-growth {
    background: linear-gradient(180deg, #0a1410 0%, #0d2818 50%, #051a0d 100%);
    position: relative;
    overflow: hidden;
}

/* Rising chevron pattern */
.slide-growth::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 45%, rgba(16, 185, 129, 0.06) 45%, rgba(16, 185, 129, 0.06) 50%, transparent 50%),
        linear-gradient(225deg, transparent 45%, rgba(16, 185, 129, 0.06) 45%, rgba(16, 185, 129, 0.06) 50%, transparent 50%);
    background-size: 60px 30px;
    animation: chevrons-rise 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Green glow from bottom */
.slide-growth::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes chevrons-rise {
    0% { background-position: 0 0; }
    100% { background-position: 0 -300px; }
}

.slide-growth .slide-content {
    position: relative;
    z-index: 1;
}

.growth-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.growth-big {
    text-align: center;
}

.growth-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.growth-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.growth-chart-container {
    margin-top: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--spacing-md);
}

.growth-chart-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.growth-peak {
    margin-top: var(--spacing-md);
    text-align: center;
}

.growth-peak-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.growth-peak-month {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.growth-peak-stats {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.growth-projection {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.growth-projection-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.growth-projection-value {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 var(--spacing-sm);
}

.growth-projection-dvd {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

/* =============================================
   Slide 14: Library
   ============================================= */

.slide-library {
    background: linear-gradient(180deg, var(--forest-deep) 0%, #0a2010 50%, #051a0d 100%);
    position: relative;
    overflow: hidden;
}

/* Bookshelf horizontal lines */
.slide-library::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 90px,
        rgba(255, 255, 255, 0.03) 90px,
        rgba(255, 255, 255, 0.03) 92px
    );
    animation: shelves-shimmer 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Book spine color suggestions */
.slide-library::after {
    content: '';
    position: absolute;
    left: 5%;
    top: 8%;
    right: 5%;
    height: 70px;
    background:
        linear-gradient(90deg,
            rgba(255, 107, 107, 0.08) 0%,
            rgba(255, 107, 107, 0.08) 8%,
            transparent 8%,
            transparent 12%,
            rgba(217, 70, 239, 0.06) 12%,
            rgba(217, 70, 239, 0.06) 18%,
            transparent 18%,
            transparent 22%,
            rgba(16, 185, 129, 0.08) 22%,
            rgba(16, 185, 129, 0.08) 32%,
            transparent 32%,
            transparent 36%,
            rgba(245, 158, 11, 0.06) 36%,
            rgba(245, 158, 11, 0.06) 42%,
            transparent 42%,
            transparent 48%,
            rgba(6, 182, 212, 0.07) 48%,
            rgba(6, 182, 212, 0.07) 55%,
            transparent 55%
        );
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

@keyframes shelves-shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.slide-library .slide-content {
    position: relative;
    z-index: 1;
}

.library-total {
    margin: var(--spacing-xl) 0;
}

.library-size {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.library-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.library-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.library-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.library-item-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.library-item-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: var(--spacing-xs) 0;
}

.library-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* =============================================
   Slide: Biggest Titles (Carousel)
   ============================================= */
.slide-biggest-titles {
    background: linear-gradient(180deg, var(--forest-deep) 0%, #0a2010 50%, #051a0d 100%);
    position: relative;
    overflow: hidden;
}

/* Expanding ripples suggesting size/storage */
.slide-biggest-titles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    animation: size-ripple 4s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

.slide-biggest-titles::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    animation: size-ripple 4s ease-out infinite 2s;
    pointer-events: none;
    z-index: 0;
}

@keyframes size-ripple {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.6;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

.slide-biggest-titles .slide-content {
    position: relative;
    z-index: 1;
}

.biggest-titles-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    margin: 1.5rem -1.5rem 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
}

.biggest-titles-container::-webkit-scrollbar {
    display: none;
}

.biggest-title-item {
    flex: 0 0 auto;
    width: 280px;
    height: 380px;
    border-radius: 16px;
    scroll-snap-align: center;
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.biggest-title-item.has-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
}

.biggest-title-item > * {
    position: relative;
    z-index: 1;
}

.biggest-title-item.has-poster .biggest-title-library,
.biggest-title-item.has-poster .biggest-title-name,
.biggest-title-item.has-poster .biggest-title-size {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.biggest-title-library {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.biggest-title-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.4rem 0;
}

.biggest-title-size {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Carousel dot indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.carousel-dot.active {
    opacity: 1;
    transform: scale(1.2);
    background: var(--accent-primary);
}

/* =============================================
   Slide: Finale
   ============================================= */

.slide-finale {
    background: var(--ink-purple);
    position: relative;
    overflow: hidden;
}

/* Animated mesh gradient - similar to welcome but with celebration burst */
.slide-finale::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 55% 55% at 30% 25%, rgba(255, 107, 107, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 75%, rgba(6, 182, 212, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 55% 45%, rgba(245, 158, 11, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 65% 45% at 20% 80%, rgba(217, 70, 239, 0.35) 0%, transparent 45%);
    animation: finale-mesh-drift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes finale-mesh-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-3%, 4%) scale(1.03) rotate(-1deg);
    }
    50% {
        transform: translate(4%, -2%) scale(1.06) rotate(2deg);
    }
    75% {
        transform: translate(-2%, -3%) scale(0.97) rotate(-1deg);
    }
}

/* Celebration burst from center */
.slide-finale::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    animation: celebration-burst 3s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes celebration-burst {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.slide-finale .slide-content {
    position: relative;
    z-index: 1;
}

/* Background image fading from bottom */
.finale-bg-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background-image: url('images/apollo-2026.jpeg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.finale-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    inset: 0;
}

.finale-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.finale-message {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    white-space: pre-line;
}

.restart-button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.restart-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 360px) {
    .stat-number {
        font-size: 4.5rem;
    }
    
    .big-number {
        font-size: 4rem;
    }
    
    .title-main {
        font-size: 2.8rem;
    }
    
    .library-size {
        font-size: 2.8rem;
    }
}

@media (min-height: 800px) {
    .slide {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }
}

/* Hide scrollbar but allow scrolling */
.slides-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============================================
   Accessibility: Reduced Motion
   ============================================= */

/* Reduced motion - can be bypassed with ?animations=on (adds .force-animations to html) */
@media (prefers-reduced-motion: reduce) {
    html:not(.force-animations) .slide::before,
    html:not(.force-animations) .slide::after,
    html:not(.force-animations) .slide-welcome::before,
    html:not(.force-animations) .slide-finale::before,
    html:not(.force-animations) .slide-finale::after,
    html:not(.force-animations) .slide-top-viewer::before,
    html:not(.force-animations) .slide-top-viewer::after,
    html:not(.force-animations) .slide-podium::before,
    html:not(.force-animations) .slide-podium::after,
    html:not(.force-animations) .slide-night-owl::before,
    html:not(.force-animations) .slide-binger::before,
    html:not(.force-animations) .slide-binger::after,
    html:not(.force-animations) .slide-streaks::before,
    html:not(.force-animations) .slide-streaks::after,
    html:not(.force-animations) .slide-direct-play::before,
    html:not(.force-animations) .slide-direct-play::after,
    html:not(.force-animations) .slide-movie::before,
    html:not(.force-animations) .slide-movie::after,
    html:not(.force-animations) .slide-tv::before,
    html:not(.force-animations) .slide-total-time::before,
    html:not(.force-animations) .slide-total-time::after,
    html:not(.force-animations) .slide-hours::before,
    html:not(.force-animations) .slide-hours::after,
    html:not(.force-animations) .slide-genres::before,
    html:not(.force-animations) .slide-platforms::before,
    html:not(.force-animations) .slide-platforms::after,
    html:not(.force-animations) .slide-growth::before,
    html:not(.force-animations) .slide-growth::after,
    html:not(.force-animations) .slide-library::before,
    html:not(.force-animations) .slide-library::after,
    html:not(.force-animations) .slide-biggest-titles::before,
    html:not(.force-animations) .slide-biggest-titles::after {
        animation: none !important;
    }

    html:not(.force-animations) .logo-ring,
    html:not(.force-animations) .crown-badge,
    html:not(.force-animations) .popcorn-emoji,
    html:not(.force-animations) .star,
    html:not(.force-animations) .phone-icon,
    html:not(.force-animations) .genre-bubble.floating,
    html:not(.force-animations) .avatar-bubble {
        animation: none !important;
    }

    html:not(.force-animations) .slide-content {
        transition: none !important;
    }
}
