/* Fond global sombre inspiré de la cover */
body {
  background: radial-gradient(
    ellipse at center,          /* forme elliptique centrée */
    #3a0000 0%,                 /* rouge sombre au centre */
    #2a0000 30%,                /* transition progressive */
    #100000 60%,                /* presque noir */
    #000000 100%                /* noir absolu aux bords */
  );
  background-attachment: fixed; /* pour que le dégradé reste fixe au scroll (optionnel mais immersif) */
  font-family: 'Libre Baskerville', serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}
h1 {
  color: #da8b14;          /* doré pour le nom */
  font-size: 3em;
  margin: 0.3em 0;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); /* glow subtil doré */
}

h2 {
  color: #da8b14;          /* doré pour le nom */
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); /* glow subtil doré */
}

h3 {
  color: #da8b14;          /* doré pour le nom */
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); /* glow subtil doré */
}

header p {
  color: #c69b01;
  font-style: italic;
  font-size: 1.2em;
}
li {
  color:#da8b14;
  margin: 5px 0;
  padding: 2px;
}
main {
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}

main p {
  color:#d4af37
}

.wav-button {
  display: inline-block;
  margin: 15px auto;
  padding: 12px 28px;
  background: #4a0000;
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Libre Baskerville', serif;
  font-weight: bold;
  font-size: 1.2em;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative; /* important pour le pseudo-élément glow */

  /* Halo noir de base (très prononcé comme tu l'as ajusté) */
  box-shadow: 
    0 0 6px 2px rgba(0, 0, 0, 0.4),
    0 0 18px 6px rgba(0, 0, 0, 0.85),
    0 0 35px 12px rgba(0, 0, 0, 0.95),
    0 0 60px 20px rgba(0, 0, 0, 0.7);

  /* Animation pulsation lente sur le halo noir */
  animation: pulse-halo 2s infinite ease-in-out;
}

/* L'animation pulsation (ralentie à 6 secondes pour être très calme) */
@keyframes pulse-halo {
  0%, 100% {
    box-shadow: 
      0 0 6px 2px rgba(0, 0, 0, 0.4),
      0 0 18px 6px rgba(0, 0, 0, 0.85),
      0 0 35px 12px rgba(0, 0, 0, 0.95),
      0 0 60px 20px rgba(0, 0, 0, 0.7);
  }
  50% {
    box-shadow: 
      0 0 8px 3px rgba(0, 0, 0, 0.5),
      0 0 22px 8px rgba(0, 0, 0, 0.92),
      0 0 42px 16px rgba(0, 0, 0, 0.97),
      0 0 75px 28px rgba(0, 0, 0, 0.8); /* halo extérieur plus large et intense au pic */
  }
}

/* Hover : on garde la pulsation + on ajoute le glow doré */
.wav-button:hover,
.wav-button:focus {
  background: #5c0f0f;
  color: #e8c547;
  transform: translateY(-2px);

  box-shadow: 
    0 0 6px 2px rgba(0, 0, 0, 0.4),
    0 0 18px 6px rgba(0, 0, 0, 0.85),
    0 0 15px 15px rgba(212, 175, 55, 0.6);

  /* On conserve la pulsation (l'animation continue) */
  animation: pulse-glow-gold 1s infinite ease-in-out;
}
  @keyframes pulse-glow-gold {
  0%, 100% {
    box-shadow: 
      0 0 6px 2px rgba(0, 0, 0, 0.4),
      0 0 18px 6px rgba(0, 0, 0, 0.85),
      0 0 25px 12px rgba(212, 175, 55, 0.24);
  }
  50% {
    box-shadow:
      0 0 8px 3px rgba(0, 0, 0, 0.5), 
      0 0 22px 8px rgba(0, 0, 0, 0.92),
      0 0 30px 16px rgba(212, 175, 55, 0.36);  /* pic très doux */
  }
}

/* Selecteur d'album */
.album-selector {
  margin: 25px 0;
}
label {
  color: #d4af37;
  font-weight: 700;
}
select {
  background: #1a0000;     /* rouge-noir sombre */
  color: #e8d9c5;
  border: 1px solid #4a0000;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: 'Libre Baskerville', serif;
}
select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Cover album */
#album-cover {
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(74, 0, 0, 0.6); /* ombre rouge sombre */
  border: 2px solid #4a0000;
  transition: transform 0.3s ease;
}
#album-cover:hover {
  transform: scale(1.03);
}

/* Waveform */
#waveform {
  background: #0f0000;     /* noir-rouge très sombre */
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(74, 0, 0, 0.5);
}

/* Contrôles */
.controls {
  margin: 25px 0;
}
button#playPause {
  background: #4a0000;     /* rouge sombre */
  color: #d4af37;          /* doré pour le texte */
  border: 1px solid #d4af37;
  padding: 14px 32px;
  font-size: 1.3em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
button#playPause:hover {
  background: #5c0f0f;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
#current-track {
  color: #d4af37;
  font-size: 1.4em;
  margin-left: 20px;
}

/* Playlist */
#playlist {
  max-width: 700px;
  margin: 0 auto;
}
#playlist li {
  background: #100000;
  margin: 8px 0;
  padding: 14px 18px;
  border-radius: 6px;
  cursor: pointer;
  border-left: 4px solid #4a0000;
  transition: all 0.25s;
}
#playlist li:hover {
  background: #1a0000;
  border-left-color: #d4af37;
}
#playlist li.playing {
  background: #2a0000;
  border-left-color: #d4af37;
  color: #fff;
  box-shadow: 0 0 12px rgba(74, 0, 0, 0.7);
}
#playlist li span {
  color: #a89f8f;
  font-weight: bold;
}