/* ============================================================
   SPOTIFY WRAPPED – SLIDE ANIMATIONS & STYLES (14 slides)
   SCALED 2-3x — MAXIMUM VISUAL IMPACT
   ============================================================ */

/* ─── A) BACKGROUND GRADIENTS ─────────────────────────────── */
.s-bg-sp-intro      { background: linear-gradient(135deg, #191414 0%, #1DB954 100%); }
.s-bg-sp-artist     { background: linear-gradient(135deg, #1DB954 0%, #6B2FA0 100%); }
.s-bg-sp-track      { background: linear-gradient(135deg, #E8115B 0%, #191414 100%); }
.s-bg-sp-toptracks  { background: linear-gradient(135deg, #1DB954 0%, #191414 100%); }
.s-bg-sp-genre      { background: linear-gradient(135deg, #8338EC 0%, #191414 100%); }
.s-bg-sp-loyalty    { background: linear-gradient(135deg, #191414 0%, #1DB954 80%); }
.s-bg-sp-library    { background: linear-gradient(135deg, #FF006E 0%, #3A86FF 100%); }
.s-bg-sp-clock      { background: linear-gradient(135deg, #191414 0%, #1DB954 100%); }
.s-bg-sp-latenight  { background: linear-gradient(135deg, #0A1628 0%, #1DB954 100%); }
.s-bg-sp-mainstream { background: linear-gradient(135deg, #C31432 0%, #240B36 100%); }
.s-bg-sp-tier       { background: linear-gradient(135deg, #1DB954 0%, #8338EC 100%); }
.s-bg-sp-hoarding   { background: linear-gradient(135deg, #191414 0%, #1DB954 100%); }
.s-bg-sp-addiction  { background: linear-gradient(135deg, #1DB954 0%, #E8115B 100%); }
.s-bg-sp-persona    { background: linear-gradient(135deg, #8338EC, #FF006E, #3A86FF); }

/* ─── B) SCENE SHAPES (ALL 2-3x SCALED) ─────────────────── */

/* === Vinyl Record === */
.shape-vinyl {
    position: absolute;
    border-radius: 50%;
    background: #111;
    box-shadow:
        inset 0 0 0 16px #222,
        inset 0 0 0 32px #181818,
        inset 0 0 0 48px #222,
        inset 0 0 0 64px #181818,
        inset 0 0 0 80px #222;
}
.shape-vinyl::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22%;
    height: 22%;
    background: #1DB954;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.shape-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6%;
    height: 6%;
    background: #111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* === Music Note === */
.shape-note {
    position: absolute;
    width: 40px;
    height: 100px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}
.shape-note::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: -18px;
    width: 42px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}
.shape-note::after {
    content: '';
    position: absolute;
    top: 0;
    right: -32px;
    width: 32px;
    height: 7px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

/* === Headphones === */
.shape-headphones {
    position: absolute;
    width: 150px;
    height: 85px;
    border: 12px solid rgba(255,255,255,0.2);
    border-bottom: none;
    border-radius: 75px 75px 0 0;
}
.shape-headphones::before,
.shape-headphones::after {
    content: '';
    position: absolute;
    bottom: -44px;
    width: 40px;
    height: 55px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
}
.shape-headphones::before { left: -12px; }
.shape-headphones::after  { right: -12px; }

/* === Equalizer Bars === */
.shape-eq {
    position: absolute;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 130px;
}
.shape-eq span {
    display: block;
    width: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}
.shape-eq span:nth-child(1) { height: 30%; animation: eqBounce 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.shape-eq span:nth-child(2) { height: 60%; animation: eqBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s infinite alternate; }
.shape-eq span:nth-child(3) { height: 100%; animation: eqBounce 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s infinite alternate; }
.shape-eq span:nth-child(4) { height: 50%; animation: eqBounce 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s infinite alternate; }
.shape-eq span:nth-child(5) { height: 80%; animation: eqBounce 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s infinite alternate; }

/* === Speaker === */
.shape-speaker {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 6px solid rgba(255,255,255,0.15);
}
.shape-speaker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    border: 6px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.shape-speaker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22%;
    height: 22%;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* === Sound Waves === */
.shape-wave {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 7px solid rgba(255,255,255,0.15);
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-radius: 0 50% 50% 0;
}
.shape-wave::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 14px;
    width: 50px;
    height: 72px;
    border: 7px solid rgba(255,255,255,0.12);
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-radius: 0 50% 50% 0;
}
.shape-wave::after {
    content: '';
    position: absolute;
    top: -36px;
    left: 32px;
    width: 64px;
    height: 108px;
    border: 7px solid rgba(255,255,255,0.08);
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-radius: 0 50% 50% 0;
}

/* === CD Disc === */
.shape-cd {
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255,255,255,0.08),
        rgba(29,185,84,0.12),
        rgba(131,56,236,0.12),
        rgba(255,0,110,0.12),
        rgba(58,134,255,0.12),
        rgba(255,255,255,0.08)
    );
    border: 4px solid rgba(255,255,255,0.1);
}
.shape-cd::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24%;
    height: 24%;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255,255,255,0.1);
}

/* === Microphone === */
.shape-mic {
    position: absolute;
    width: 55px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border-radius: 28px 28px 8px 8px;
}
.shape-mic::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 10px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    transform: translateX(-50%);
}
.shape-mic::after {
    content: '';
    position: absolute;
    bottom: -38px;
    left: 50%;
    width: 44px;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    transform: translateX(-50%);
}

/* === Playlist Card === */
.shape-playlist {
    position: absolute;
    width: 140px;
    height: 170px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    border: 4px solid rgba(255,255,255,0.1);
    padding: 24px 18px;
}
.shape-playlist::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 18px;
    right: 18px;
    height: 7px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    box-shadow:
        0 18px 0 rgba(255,255,255,0.15),
        0 36px 0 rgba(255,255,255,0.1),
        0 54px 0 rgba(255,255,255,0.07);
}

/* ─── C) KEYFRAMES ─────────────────────────────────────────── */

@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(60px); }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-160px); }
}

@keyframes floatDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(20px, -40px) rotate(8deg); }
    50%  { transform: translate(-10px, -80px) rotate(-5deg); }
    75%  { transform: translate(16px, -120px) rotate(6deg); }
    100% { transform: translate(0, -160px) rotate(0deg); }
}

@keyframes pulseBeat {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50%      { transform: scale(1.15); opacity: 0.3; }
}

@keyframes eqBounce {
    0%   { height: 15%; }
    100% { height: 100%; }
}

@keyframes waveExpand {
    0%   { transform: scale(0.6); opacity: 0.3; }
    100% { transform: scale(2.0); opacity: 0; }
}

@keyframes orbitSlow {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes slideFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-40px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes swayX {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(30px); }
    100% { transform: translateX(0); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.1; }
    50%      { opacity: 0.3; }
}

@keyframes driftDown {
    0%   { transform: translateY(-40px) rotate(-8deg); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(120px) rotate(8deg); opacity: 0; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes bobUpDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-24px); }
}

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

@keyframes slideEnter {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes staggerIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes noteFloat {
    0%   { opacity: 0; transform: translateY(40px) rotate(0deg); }
    20%  { opacity: 0.6; }
    80%  { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-200px) rotate(35deg); }
}

@keyframes spotlightCone {
    0%, 100% { opacity: 0.12; transform: scaleX(1); }
    50%      { opacity: 0.25; transform: scaleX(1.15); }
}

@keyframes glowRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 0.35; }
}

@keyframes moonGlow {
    0%   { box-shadow: 0 0 60px rgba(255,215,0,0.4), 0 0 120px rgba(255,215,0,0.2); }
    100% { box-shadow: 0 0 100px rgba(255,215,0,0.6), 0 0 180px rgba(255,215,0,0.3); }
}

@keyframes starBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1; transform: scale(1.4); }
}

@keyframes headphonesSway {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-30px) rotate(8deg); }
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 50px rgba(29,185,84,0.4); transform: scale(1); }
    50%      { box-shadow: 0 0 100px rgba(29,185,84,0.7); transform: scale(1.08); }
}

@keyframes sparkleFloat {
    0%   { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50%  { opacity: 1; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(360deg); }
}

@keyframes cardStack {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-30px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes addictionPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50%      { transform: scale(1.5); opacity: 0.4; }
}

@keyframes confettiDrift {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50%  { transform: translateY(-70px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0) rotate(360deg); opacity: 0.5; }
}

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

/* ─── SLIDE-SPECIFIC SCENE ELEMENTS (ALL 2-3x SCALED) ────── */

/* -- Slide 0: Intro -- */
#slide-0 .scene .vinyl-main {
    width: 340px; height: 340px;
    top: 4%; left: -60px;
    animation: spinVinyl 8s linear infinite;
    opacity: 0.2;
}
#slide-0 .scene .note-1 {
    top: 14%; right: 8%;
    animation: floatDrift 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.2;
}
#slide-0 .scene .note-2 {
    bottom: 18%; left: 5%;
    animation: floatDrift 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s infinite;
    opacity: 0.15;
    transform: scale(1.4);
}
#slide-0 .scene .eq-main {
    bottom: 10%; right: 6%;
    animation: fadePulse 3s ease infinite;
}
#slide-0 .scene .wave-1 {
    top: 50%; left: 3%;
    animation: waveExpand 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* -- Slide 1: Top Artist -- */
#slide-1 .scene .vinyl-1 {
    width: 260px; height: 260px;
    top: 3%; right: -40px;
    animation: spinVinyl 10s linear infinite;
    opacity: 0.18;
}
#slide-1 .scene .headphones-1 {
    top: 10%; left: 3%;
    animation: slideFloat 5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.2;
}
#slide-1 .scene .note-a {
    bottom: 22%; right: 5%;
    animation: floatUp 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.2;
}
#slide-1 .scene .speaker-1 {
    width: 160px; height: 160px;
    bottom: 6%; left: 5%;
    animation: pulseBeat 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
#slide-1 .scene .note-b {
    top: 55%; left: 75%;
    animation: floatUp 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s infinite;
    opacity: 0.15;
    transform: scale(1.2);
}

/* -- Slide 2: Top Track -- */
#slide-2 .scene .cd-main {
    width: 300px; height: 300px;
    top: 2%; left: -50px;
    animation: spinSlow 12s linear infinite;
    opacity: 0.2;
}
#slide-2 .scene .mic-1 {
    top: 8%; right: 6%;
    animation: bobUpDown 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.2;
}
#slide-2 .scene .eq-1 {
    bottom: 12%; left: 3%;
    animation: fadePulse 2.5s ease infinite;
}
#slide-2 .scene .note-c {
    bottom: 24%; right: 3%;
    animation: floatDrift 4.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.15;
}
#slide-2 .scene .wave-2 {
    top: 45%; right: 1%;
    animation: waveExpand 3.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s infinite;
}

/* -- Slide 3: Top 5 Tracks — Vinyl spinning + music note particles -- */
#slide-3 .scene .vinyl-tt {
    width: 320px; height: 320px;
    top: 2%; right: -50px;
    animation: spinVinyl 6s linear infinite;
    opacity: 0.2;
}
.tt-note {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(29,185,84,0.5);
    border-radius: 50%;
    animation: noteFloat 3.5s ease-in-out infinite;
}
.tt-n1 { top: 12%; left: 5%; animation-delay: 0s; }
.tt-n2 { top: 25%; left: 15%; width: 20px; height: 20px; animation-delay: 0.6s; }
.tt-n3 { top: 8%; left: 40%; width: 24px; height: 24px; animation-delay: 1.2s; }
.tt-n4 { bottom: 20%; right: 6%; width: 34px; height: 34px; animation-delay: 0.9s; }
.tt-n5 { bottom: 10%; left: 10%; width: 22px; height: 22px; animation-delay: 1.8s; }

/* -- Slide 4: Genre Identity -- */
#slide-4 .scene .vinyl-genre {
    width: 220px; height: 220px;
    bottom: 8%; right: -30px;
    animation: spinVinyl 9s linear infinite;
    opacity: 0.15;
}
#slide-4 .scene .playlist-1 {
    top: 4%; left: 3%;
    animation: slideFloat 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.2;
}
#slide-4 .scene .note-g1 {
    top: 15%; right: 6%;
    animation: floatUp 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.18;
}
#slide-4 .scene .speaker-g {
    width: 130px; height: 130px;
    bottom: 24%; left: 2%;
    animation: pulseBeat 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

/* -- Slide 5: Artist Loyalty — Spotlight cone on microphone -- */
.loyalty-spotlight {
    position: absolute;
    top: 0; left: 50%;
    width: 0; height: 0;
    border-left: 280px solid transparent;
    border-right: 280px solid transparent;
    border-top: 700px solid rgba(29,185,84,0.12);
    transform: translateX(-50%);
    animation: spotlightCone 4s ease-in-out infinite;
}
.loyalty-mic {
    position: absolute;
    bottom: 10%; left: 50%;
    width: 70px; height: 110px;
    background: rgba(255,255,255,0.25);
    border-radius: 35px 35px 8px 8px;
    transform: translateX(-50%);
    animation: bobUpDown 3s ease-in-out infinite;
}
.loyalty-mic::before {
    content: '';
    position: absolute;
    bottom: -34px;
    left: 50%;
    width: 10px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    transform: translateX(-50%);
}
.loyalty-mic::after {
    content: '';
    position: absolute;
    bottom: -44px;
    left: 50%;
    width: 54px;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    transform: translateX(-50%);
}
.loyalty-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 7px solid rgba(29,185,84,0.2);
    animation: glowRingPulse 3s ease-in-out infinite;
}
.lr-1 {
    width: 400px; height: 400px;
    top: 50%; left: 50%;
    animation-delay: 0s;
}
.lr-2 {
    width: 580px; height: 580px;
    top: 50%; left: 50%;
    animation-delay: 1s;
}

/* -- Slide 6: Library -- */
#slide-6 .scene .playlist-lib {
    top: 3%; right: 4%;
    animation: slideFloat 5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.22;
}
#slide-6 .scene .cd-lib {
    width: 200px; height: 200px;
    bottom: 6%; left: -30px;
    animation: spinSlow 15s linear infinite;
    opacity: 0.15;
}
#slide-6 .scene .playlist-lib2 {
    bottom: 16%; right: 2%;
    animation: slideFloat 7s cubic-bezier(0.37, 0, 0.63, 1) 1s infinite;
    opacity: 0.15;
    transform: scale(1.6);
}
#slide-6 .scene .vinyl-lib {
    width: 180px; height: 180px;
    top: 35%; left: 1%;
    animation: spinVinyl 11s linear infinite;
    opacity: 0.12;
}

/* -- Slide 7: Listening Clock -- */
#slide-7 .scene .headphones-clk {
    top: 3%; right: 4%;
    animation: swayX 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.18;
    transform: scale(2.0);
}
#slide-7 .scene .eq-clk {
    bottom: 8%; left: 2%;
    animation: fadePulse 2s ease infinite;
}
#slide-7 .scene .note-clk {
    top: 20%; left: 2%;
    animation: floatDrift 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.18;
}
#slide-7 .scene .wave-clk {
    bottom: 24%; right: 2%;
    animation: waveExpand 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
#slide-7 .scene .vinyl-clk {
    width: 180px; height: 180px;
    bottom: 4%; right: 8%;
    animation: spinVinyl 12s linear infinite;
    opacity: 0.12;
}

/* -- Slide 8: Late Night Listening — Moon + headphones in starfield -- */
.sp-ln-moon {
    position: absolute;
    top: 3%; right: 5%;
    width: 220px; height: 220px;
    background: radial-gradient(circle at 35% 35%, #FFF8DC, #FFD700);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255,215,0,0.5), 0 0 160px rgba(255,215,0,0.25);
    animation: moonGlow 3s ease-in-out infinite alternate;
}
.sp-ln-moon::before {
    content: '';
    position: absolute;
    top: 22px; right: 12px;
    width: 150px; height: 150px;
    background: #0A1628;
    border-radius: 50%;
}
.sp-ln-headphones {
    position: absolute;
    bottom: 10%; left: 5%;
    width: 175px; height: 100px;
    border: 12px solid rgba(29,185,84,0.4);
    border-bottom: none;
    border-radius: 88px 88px 0 0;
    animation: headphonesSway 4s ease-in-out infinite;
}
.sp-ln-headphones::before,
.sp-ln-headphones::after {
    content: '';
    position: absolute;
    bottom: -50px;
    width: 44px; height: 60px;
    background: rgba(29,185,84,0.3);
    border-radius: 14px;
}
.sp-ln-headphones::before { left: -12px; }
.sp-ln-headphones::after  { right: -12px; }

.sp-ln-star {
    position: absolute;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starBlink 2s ease-in-out infinite;
}
.sps-1 { top: 5%; left: 12%; width: 34px; height: 34px; animation-delay: 0s; }
.sps-2 { top: 16%; left: 26%; width: 24px; height: 24px; animation-delay: 0.4s; }
.sps-3 { top: 3%; left: 45%; width: 30px; height: 30px; animation-delay: 0.8s; }
.sps-4 { top: 20%; right: 20%; width: 20px; height: 20px; animation-delay: 1.2s; }
.sps-5 { top: 8%; left: 5%; width: 24px; height: 24px; animation-delay: 1.6s; }
.sps-6 { bottom: 25%; right: 5%; width: 28px; height: 28px; animation-delay: 0.3s; }
.sps-7 { bottom: 18%; right: 18%; width: 18px; height: 18px; animation-delay: 1.0s; }

/* -- Slide 9: Mainstream vs Underground -- */
#slide-9 .scene .speaker-ms {
    width: 180px; height: 180px;
    top: 4%; left: 2%;
    animation: pulseBeat 2.5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
#slide-9 .scene .mic-ms {
    top: 8%; right: 5%;
    animation: bobUpDown 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.2;
}
#slide-9 .scene .vinyl-ms {
    width: 260px; height: 260px;
    bottom: 2%; left: -40px;
    animation: spinVinyl 10s linear infinite;
    opacity: 0.15;
}
#slide-9 .scene .wave-ms {
    bottom: 20%; right: 1%;
    animation: waveExpand 3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s infinite;
}
#slide-9 .scene .eq-ms {
    bottom: 6%; right: 6%;
    animation: fadePulse 2.8s ease infinite;
}

/* -- Slide 10: Listening Tier Badge — Badge/shield shape with glow -- */
.tier-badge-shape {
    position: absolute;
    top: 50%; left: 50%;
    width: 440px; height: 500px;
    transform: translate(-50%, -50%);
    background: rgba(29,185,84,0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: badgeGlow 3s ease-in-out infinite;
}
.tier-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 5px solid rgba(29,185,84,0.15);
    animation: glowRingPulse 4s ease-in-out infinite;
}
.tgr-1 {
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    animation-delay: 0s;
}
.tgr-2 {
    width: 720px; height: 720px;
    top: 50%; left: 50%;
    animation-delay: 1.5s;
}
.tier-sparkle {
    position: absolute;
    width: 24px; height: 24px;
    background: #1DB954;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleFloat 2.5s ease-in-out infinite;
}
.ts-1 { top: 10%; left: 15%; animation-delay: 0s; }
.ts-2 { top: 20%; right: 10%; width: 34px; height: 34px; animation-delay: 0.8s; }
.ts-3 { bottom: 15%; left: 24%; width: 20px; height: 20px; animation-delay: 1.6s; }

/* -- Slide 11: Playlist Hoarding — Stacked playlist cards overflowing -- */
.hoard-card {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,0.12);
    animation: cardStack 4s ease-in-out infinite;
}
.hoard-card::before {
    content: '';
    position: absolute;
    top: 28px; left: 22px; right: 22px;
    height: 7px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    box-shadow:
        0 18px 0 rgba(255,255,255,0.12),
        0 36px 0 rgba(255,255,255,0.08);
}
.hoard-card::after {
    content: '';
    position: absolute;
    bottom: 22px; left: 22px;
    width: 48px; height: 48px;
    background: rgba(29,185,84,0.3);
    border-radius: 10px;
}
.hc-1 { top: 2%; left: 2%; width: 200px; height: 220px; animation-delay: 0s; }
.hc-2 { top: 5%; left: 8%; width: 200px; height: 220px; animation-delay: 0.15s; opacity: 0.7; }
.hc-3 { top: 8%; left: 14%; width: 200px; height: 220px; animation-delay: 0.3s; opacity: 0.5; }
.hc-4 { bottom: 6%; right: 2%; width: 175px; height: 200px; animation-delay: 0.8s; }
.hc-5 { bottom: 9%; right: 8%; width: 175px; height: 200px; animation-delay: 0.95s; opacity: 0.6; }

/* -- Slide 12: Addiction Meter — Meter bar with Spotify Green gradient -- */
.addiction-bar-bg-shape {
    position: absolute;
    top: 50%; left: 50%;
    width: 700px; height: 90px;
    background: linear-gradient(90deg, rgba(29,185,84,0.15), rgba(232,17,91,0.15));
    border-radius: 45px;
    transform: translate(-50%, -50%);
}
.addiction-pulse {
    position: absolute;
    border-radius: 50%;
    background: rgba(29,185,84,0.1);
    animation: addictionPulse 3s ease-in-out infinite;
}
.ap-1 { width: 300px; height: 300px; top: 5%; left: 4%; animation-delay: 0s; }
.ap-2 { width: 200px; height: 200px; bottom: 8%; right: 6%; animation-delay: 1s; }
.ap-3 { width: 150px; height: 150px; top: 24%; right: 4%; animation-delay: 2s; }

/* -- Slide 13: Persona -- */
#slide-13 .scene .cd-persona {
    width: 260px; height: 260px;
    top: 1%; right: -40px;
    animation: spinSlow 14s linear infinite;
    opacity: 0.15;
}
#slide-13 .scene .headphones-p {
    bottom: 4%; left: 2%;
    animation: slideFloat 5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.18;
    transform: scale(2.2);
}
#slide-13 .scene .note-p1 {
    top: 10%; left: 3%;
    animation: floatUp 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 0.18;
}
#slide-13 .scene .eq-persona {
    bottom: 14%; right: 3%;
    animation: fadePulse 3s ease infinite;
}
#slide-13 .scene .vinyl-p {
    width: 160px; height: 160px;
    top: 45%; left: -20px;
    animation: spinVinyl 8s linear infinite;
    opacity: 0.1;
}

/* ─── D) STANDARD ENTRANCE / LAYOUT / PROGRESS ────────────── */

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

.s-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.s-watermark {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
    z-index: 2;
}

.s-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.s-big-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 6px 30px rgba(0,0,0,0.3);
}

.s-caption {
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

.s-subtitle {
    font-size: 1.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

.s-roast {
    font-size: 1.9rem;
    color: rgba(255,255,255,0.85);
    margin-top: 1.5rem;
    max-width: 420px;
    line-height: 1.5;
    font-style: italic;
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.s-next {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s;
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
}
.s-next:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.s-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 14vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ─── SLIDE PROGRESS DOTS ──────────────────────────────────── */
.slide-progress {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}
.slide-progress.visible { opacity: 1; }

.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.slide-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 3px;
}

/* ─── ENTRANCE ANIMATIONS ──────────────────────────────────── */
.slide.active {
    animation: slideEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.slide.active .anim-in {
    animation: slideInUp 0.6s ease both;
}

.d1 { animation-delay: 0.1s !important; opacity: 0; }
.d2 { animation-delay: 0.35s !important; opacity: 0; }
.d3 { animation-delay: 0.6s !important; opacity: 0; }
.d4 { animation-delay: 0.85s !important; opacity: 0; }
.d5 { animation-delay: 1.1s !important; opacity: 0; }
.d6 { animation-delay: 1.35s !important; opacity: 0; }

.slide.active .d1,
.slide.active .d2,
.slide.active .d3,
.slide.active .d4,
.slide.active .d5,
.slide.active .d6 {
    animation-fill-mode: both;
}

/* ─── MIGRATED INLINE STYLES ───────────────────────────────── */

/* Top list (artists / tracks — ol style) */
ol.top-list {
    list-style: none;
    width: 100%;
    max-width: 340px;
    margin: 1rem auto;
    text-align: left;
}
ol.top-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
}
ol.top-list li:last-child {
    border-bottom: none;
}
.top-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    min-width: 24px;
}
.top-name {
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-detail {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Top list (div style — ranked items like UberEats) */
div.top-list {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.top-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 10px;
    animation: staggerIn 0.4s ease both;
    backdrop-filter: blur(10px);
}
.top-list-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1DB954;
    min-width: 24px;
}
.top-list-name {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-list-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clock ring */
.clock-ring {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    position: relative;
}
.clock-ring svg {
    width: 100%;
    height: 100%;
}
.clock-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.clock-peak-hour {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.clock-peak-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mainstream bar */
.mainstream-bar-container {
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto;
}
.mainstream-bar-bg {
    width: 100%;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.mainstream-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s ease;
}
.mainstream-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.4rem;
}
.mainstream-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

/* Genre breakdown */
.genre-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 420px;
}
.genre-tag {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 24px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}
.genre-tag:first-child {
    background: rgba(255,0,110,0.3);
    color: #fff;
}

/* Slide icon display (tier badge etc) */
.slide-icon-display {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ─── ADDICTION METER ──────────────────────────────────────── */
.meter-bar-wrap {
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}
.meter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.meter-track {
    width: 100%;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter-fill.sp-meter {
    background: linear-gradient(90deg, #1DB954, #FFD700, #FF8C00, #FF4500, #DC143C);
}
.meter-level {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-top: 6px;
    text-align: center;
}

/* Loading & error */
.loading-content {
    text-align: center;
    padding: 2rem;
    max-width: 560px;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}
.loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.loading-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}
.error-content {
    text-align: center;
    padding: 2rem;
    max-width: 560px;
}
.error-msg {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ─── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .s-big-num { font-size: clamp(4rem, 14vw, 7rem); }
    .s-title { font-size: clamp(3rem, 12vw, 5rem); }
    .s-eyebrow { font-size: 1.1rem; }
    .s-caption { font-size: 1.5rem; }
    .s-subtitle { font-size: 1.4rem; }
    .s-roast { font-size: 1.4rem; max-width: 340px; }
    .s-next { bottom: 2.5rem; }
    .sp-ln-moon { width: 130px; height: 130px; }
    .sp-ln-moon::before { width: 86px; height: 86px; }
    .sp-ln-headphones { width: 110px; height: 62px; }
    .tier-badge-shape { max-width: 280px; width: 60vw; height: 320px; }
    .loyalty-spotlight { border-left-width: 140px; border-right-width: 140px; border-top-width: 400px; }
    .loyalty-mic { width: 55px; height: 88px; }
    .hc-1, .hc-2, .hc-3 { width: 130px; height: 150px; }
    .hc-4, .hc-5 { width: 115px; height: 130px; }
    .meter-bar-wrap { max-width: 260px; }
    .addiction-bar-bg-shape { width: 90vw; max-width: 400px; height: 55px; }
    .slide-icon-display { font-size: 6rem; }
    .genre-tag { font-size: 0.95rem; padding: 0.4rem 0.9rem; }
    .lr-1 { width: 200px; height: 200px; }
    .lr-2 { width: 200px; height: 200px; }
    .tgr-1 { width: 200px; height: 200px; }
    .tgr-2 { width: 200px; height: 200px; }
    .shape-vinyl { max-width: 180px; max-height: 180px; }
    #slide-0 .scene .vinyl-main { width: 180px; height: 180px; }
    #slide-1 .scene .vinyl-1 { width: 170px; height: 170px; }
    #slide-2 .scene .cd-main { width: 180px; height: 180px; }
    #slide-3 .scene .vinyl-tt { width: 180px; height: 180px; }
    #slide-1 .scene .speaker-1 { width: 120px; height: 120px; }
    #slide-4 .scene .speaker-g { width: 100px; height: 100px; }
    #slide-9 .scene .speaker-ms { width: 130px; height: 130px; }
    #slide-13 .scene .cd-persona { width: 180px; height: 180px; }
    .persona-glow { width: 80vw; height: 85vh; }
    .addiction-pulse.ap-1 { width: 180px; height: 180px; }
    .addiction-pulse.ap-2 { width: 140px; height: 140px; }
}

/* ─── SMALL MOBILE ──────────────────────────────────────── */
@media (max-width: 360px) {
    .lr-1 { width: 150px; height: 150px; }
    .lr-2 { width: 150px; height: 150px; }
    .tgr-1 { width: 150px; height: 150px; }
    .tgr-2 { width: 150px; height: 150px; }
    .tier-badge-shape { max-width: 210px; height: 240px; }
    .loyalty-spotlight { border-left-width: 105px; border-right-width: 105px; border-top-width: 300px; }
    .loyalty-mic { width: 42px; height: 66px; }
    .sp-ln-moon { width: 98px; height: 98px; }
    .sp-ln-moon::before { width: 65px; height: 65px; }
    .sp-ln-headphones { width: 83px; height: 47px; }
    #slide-0 .scene .vinyl-main { width: 135px; height: 135px; }
    #slide-1 .scene .vinyl-1 { width: 128px; height: 128px; }
    #slide-2 .scene .cd-main { width: 135px; height: 135px; }
    #slide-3 .scene .vinyl-tt { width: 135px; height: 135px; }
    .hc-1, .hc-2, .hc-3 { width: 98px; height: 112px; }
    .hc-4, .hc-5 { width: 86px; height: 98px; }
    .persona-glow { width: 75vw; height: 80vh; }
    .addiction-bar-bg-shape { width: 85vw; height: 42px; }
}
