/**
 * ===== MUSIC PLAYER — BLACK × PURPLE EDITION =====
 * Split layout: Player (left) + Lyrics scroll (right)
 * Centered card on all devices, deep purple-black aesthetic
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Background & Surfaces */
  --bg-deep: #08060e;
  --bg-primary: #0c0a14;
  --bg-card: rgba(18, 14, 30, 0.65);
  --bg-card-border: rgba(130, 80, 255, 0.12);

  /* Text */
  --text-primary: #f0eaff;
  --text-secondary: rgba(200, 185, 240, 0.55);
  --text-tertiary: rgba(180, 160, 220, 0.25);
  --text-active: #ffffff;

  /* Purple Palette */
  --purple-vivid: #a855f7;
  --purple-light: #c084fc;
  --purple-deep: #7c3aed;
  --purple-darker: #5b21b6;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --violet-pink: #d946ef;
  --violet-blue: #818cf8;

  /* Accents */
  --accent-primary: var(--purple-vivid);
  --accent-secondary: var(--violet-pink);

  /* Borders & Overlays */
  --border-subtle: rgba(130, 80, 255, 0.08);
  --border-light: rgba(130, 80, 255, 0.15);

  /* Shadows & Glows */
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  --glow-purple-strong: 0 0 60px rgba(168, 85, 247, 0.5);
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(100, 50, 200, 0.08);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== NOISE GRAIN ===== */
#noiseCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ===== AMBIENT BACKGROUND BLOBS ===== */
.bg-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(140px);
  border-radius: 50%;
  will-change: transform;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--purple-vivid), var(--purple-deeper, #4c1d95));
  top: -20%;
  right: -5%;
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--violet-blue), #1e1b4b);
  bottom: -15%;
  left: -10%;
  opacity: 0.12;
  animation: float 26s ease-in-out infinite reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--violet-pink), #581c87);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  animation: float 30s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.08);
  }

  66% {
    transform: translate(-30px, 20px) scale(0.95);
  }
}

/* ==========================================================
   APP LAYOUT — Centered card with two columns
   ========================================================== */
.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  width: 92vw;
  max-width: 1100px;
  height: 85vh;
  max-height: 720px;
  border-radius: 32px;
  overflow: hidden;

  /* Glassmorphism card */
  background: var(--bg-card);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-card);

  animation: cardEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== LEFT: PLAYER PANEL ===== */
.player-panel {
  width: 380px;
  min-width: 380px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  position: relative;
  border-right: 1px solid var(--border-subtle);

  /* Subtle left-side purple ambient */
  background: linear-gradient(160deg,
      rgba(100, 50, 200, 0.06) 0%,
      transparent 60%);
}

.player-panel-inner {
  width: 100%;
  max-width: 310px;
  animation: panelSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes panelSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== ALBUM ART ===== */
.album-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 24px;
  perspective: 1000px;
}

.vinyl-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  height: 96%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.album-wrapper.playing .vinyl-disc {
  transform: translate(-25%, -55%);
}

.vinyl-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1530, #080510);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vinyl-hole {
  position: absolute;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, #2a2040, #0d0a18);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.album-wrapper.playing .vinyl-inner,
.album-wrapper.playing .vinyl-hole {
  opacity: 1;
}

.album-wrapper.playing .vinyl-inner {
  animation: vinylSpin 6s linear infinite;
}

@keyframes vinylSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.album-cover-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}

.album-wrapper.playing .album-cover-container {
  transform: scale(1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-purple);
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-vivid), var(--purple-deep), var(--violet-pink));
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  color: white;
  font-weight: 700;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.cover-fallback-initial {
  font-size: 56px;
  margin-bottom: 4px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cover-fallback-title {
  font-size: 14px;
  opacity: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.album-gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  border-radius: 22px;
}

/* ===== SONG META ===== */
.song-meta {
  text-align: center;
  margin-bottom: 22px;
}

.song-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-active);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.song-artist {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== PROGRESS BAR ===== */
.progress-section {
  margin-bottom: 18px;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(130, 80, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: height 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  margin-bottom: 8px;
  outline: none;
}

.progress-bar-track:hover {
  height: 6px;
}

.progress-bar-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-vivid), var(--violet-pink));
  background-size: 200% 100%;
  animation: progressGlow 3s linear infinite;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--purple-glow);
}

@keyframes progressGlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.progress-thumb {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--text-active);
  border-radius: 50%;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0.7);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px var(--purple-glow);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.progress-bar-track:hover .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== CONTROLS ===== */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.ctrl-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.ctrl-sm {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.ctrl-md {
  width: 40px;
  height: 40px;
}

.ctrl-lg {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--purple-vivid), var(--violet-pink));
  border-radius: 50%;
  box-shadow: var(--glow-purple);
}

.ctrl-btn svg {
  width: 100%;
  height: 100%;
  padding: 7px;
}

.ctrl-lg svg {
  padding: 13px;
  fill: #ffffff;
}

.ctrl-lg .icon-play {
  transform: translateX(2px);
}

.ctrl-btn:hover {
  color: var(--purple-light);
  transform: scale(1.12);
}

.ctrl-lg:hover {
  box-shadow: var(--glow-purple-strong);
  transform: scale(1.08);
}

.play-btn.pulsing {
  animation: playPulse 2.5s ease-in-out infinite;
}

@keyframes playPulse {

  0%,
  100% {
    box-shadow: var(--glow-purple);
  }

  50% {
    box-shadow: var(--glow-purple-strong);
  }
}

/* ===== VOLUME ===== */
.volume-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-icon {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vol-icon:hover {
  color: var(--text-primary);
}

.vol-icon svg {
  width: 15px;
  height: 15px;
}

.volume-track {
  flex: 1;
  height: 3px;
  background: rgba(130, 80, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: height 0.2s ease;
  outline: none;
}

.volume-track:hover {
  height: 5px;
}

.volume-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet-blue), var(--purple-vivid));
  border-radius: 2px;
}

.volume-thumb {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  top: 50%;
  transition: transform 0.2s ease;
}

.volume-track:hover .volume-thumb {
  transform: translateY(-50%) scale(1);
}

/* ==========================================================
   RIGHT: LYRICS PANEL
   ========================================================== */
.lyrics-panel {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;

  /* Right-side ambient glow */
  background: linear-gradient(200deg,
      rgba(80, 40, 160, 0.04) 0%,
      transparent 50%);
}

/* Fade gradient overlays */
.lyrics-fade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 20;
}

.lyrics-fade-top {
  top: 0;
  height: 120px;
  background: linear-gradient(to bottom,
      rgba(12, 10, 20, 0.95) 0%,
      rgba(12, 10, 20, 0.6) 40%,
      transparent 100%);
}

.lyrics-fade-bottom {
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top,
      rgba(12, 10, 20, 0.95) 0%,
      rgba(12, 10, 20, 0.6) 40%,
      transparent 100%);
}

/* Scrollable lyrics */
.lyrics-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 0 48px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.lyrics-spacer {
  height: 42vh;
}

/* ===== LYRIC LINES ===== */
.lyric-line {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-tertiary);
  padding: 7px 0;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    text-shadow 0.45s ease;
  transform: scale(0.96) translateX(0);
  opacity: 0.25;
  filter: blur(0.5px);
}

.lyric-line:hover {
  opacity: 0.5;
  color: var(--text-secondary);
}

/* ACTIVE — bright white with purple glow */
.lyric-line.active {
  color: var(--text-active);
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  text-shadow:
    0 0 20px rgba(168, 85, 247, 0.25),
    0 0 40px rgba(168, 85, 247, 0.1);
}

/* NEAR — semi-visible */
.lyric-line.near {
  opacity: 0.5;
  color: var(--text-secondary);
  transform: scale(0.98);
  filter: blur(0px);
}

/* FAR — very dim + slight blur */
.lyric-line.far {
  opacity: 0.18;
  transform: scale(0.95);
  filter: blur(1.2px);
}

.lyric-line em {
  color: inherit;
  font-style: italic;
  font-weight: 400;
  opacity: 0.65;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet / narrower screens */
@media (max-width: 960px) {
  .app-layout {
    width: 96vw;
    height: 90vh;
    max-height: none;
    border-radius: 24px;
  }

  .player-panel {
    width: 320px;
    min-width: 320px;
    padding: 28px 24px;
  }

  .album-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
  }

  .lyrics-scroll {
    padding: 0 32px;
  }

  .lyric-line {
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  body {
    align-items: stretch;
    justify-content: stretch;
  }

  .app-layout {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
  }

  .player-panel {
    width: 100%;
    min-width: unset;
    height: auto;
    padding: 20px 24px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .player-panel-inner {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }

  .album-wrapper {
    width: 80px;
    height: 80px;
    margin: 0;
    flex-shrink: 0;
  }

  .cover-fallback-initial {
    font-size: 24px;
  }

  .cover-fallback-title {
    font-size: 9px;
  }

  .vinyl-disc {
    display: none;
  }

  .album-cover-container {
    border-radius: 14px;
    transform: scale(1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  }

  .song-meta {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
  }

  .song-title {
    font-size: 17px;
  }

  .song-artist {
    font-size: 11px;
  }

  .progress-section,
  .controls,
  .volume-section {
    width: 100%;
  }

  .progress-section {
    margin-bottom: 10px;
  }

  .controls {
    margin-bottom: 10px;
    gap: 14px;
  }

  .lyrics-panel {
    flex: 1;
    min-height: 0;
  }

  .lyrics-fade {
    height: 60px;
  }

  .lyrics-scroll {
    padding: 0 20px;
  }

  .lyric-line {
    font-size: 19px;
    padding: 5px 0;
  }

  .lyrics-spacer {
    height: 25vh;
  }
}

@media (max-width: 400px) {
  .player-panel {
    padding: 14px 16px 12px;
  }

  .album-wrapper {
    width: 64px;
    height: 64px;
  }

  .ctrl-lg {
    width: 46px;
    height: 46px;
  }

  .ctrl-md {
    width: 34px;
    height: 34px;
  }

  .lyric-line {
    font-size: 17px;
  }
}

/* Custom scrollbar hidden */
::-webkit-scrollbar {
  width: 0px;
}

/* ==========================================================
   ✨ MAGICAL EFFECTS
   ========================================================== */

/* Stars Canvas */
#starsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Aurora Northern Lights */
.aurora {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(168, 85, 247, 0.04) 30%,
    rgba(129, 140, 248, 0.06) 40%,
    rgba(217, 70, 239, 0.04) 50%,
    transparent 60%
  );
  animation: auroraDrift 12s ease-in-out infinite alternate;
  filter: blur(60px);
}

@keyframes auroraDrift {
  0% { transform: translateX(0) skewX(-5deg); }
  100% { transform: translateX(10%) skewX(5deg); }
}

/* Shooting Stars */
.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(200, 180, 255, 0.8),
              0 0 20px 4px rgba(168, 85, 247, 0.4);
  animation: shoot linear forwards;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 80px;
  height: 1.5px;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  transform: translateY(-50%);
}

@keyframes shoot {
  0% { transform: translate(0, 0) rotate(-35deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-600px, 400px) rotate(-35deg); opacity: 0; }
}

/* Floating Emojis */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: floatEmoji linear forwards;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
}

@keyframes floatEmoji {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 0.7; }
  50% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* Sparkle Cursor Trail */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  animation: sparkleFade 0.8s ease-out forwards;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: var(--purple-light);
  border-radius: 2px;
}

.sparkle::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.sparkle::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes sparkleFade {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0) rotate(90deg); opacity: 0; }
}

/* ===== KAWAII ENHANCEMENTS ===== */

/* Bouncy play button */
.ctrl-lg:active {
  transform: scale(0.9) !important;
  transition: transform 0.1s ease;
}

/* Cute bounce on album art */
.album-wrapper.playing .album-cover-container {
  animation: cuteBounce 2s ease-in-out infinite;
}

@keyframes cuteBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.02) rotate(0.5deg); }
  75% { transform: scale(1.02) rotate(-0.5deg); }
}

/* Glowing active lyric pulse */
.lyric-line.active {
  animation: lyricGlow 2s ease-in-out infinite;
}

@keyframes lyricGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.25),
                 0 0 40px rgba(168, 85, 247, 0.1);
  }
  50% {
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5),
                 0 0 60px rgba(168, 85, 247, 0.2),
                 0 0 80px rgba(217, 70, 239, 0.1);
  }
}

/* Rainbow border glow on card */
.app-layout::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 33px;
  background: linear-gradient(
    45deg,
    var(--purple-vivid),
    var(--violet-pink),
    var(--violet-blue),
    var(--purple-deep),
    var(--purple-vivid)
  );
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  z-index: -1;
  opacity: 0.3;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Progress bar sparkle */
.progress-bar-fill::after {
  content: '✦';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: white;
  text-shadow: 0 0 8px var(--purple-vivid);
  animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
  0% { transform: translateY(-50%) scale(0.8); }
  50% { transform: translateY(-50%) scale(1.2); }
  100% { transform: translateY(-50%) scale(0.8); }
}

/* Music note animation near title */
.song-title::after {
  content: '♪';
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  color: var(--purple-light);
  animation: noteFloat 2s ease-in-out infinite;
}

@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-6px) rotate(15deg); opacity: 1; }
}