/* CSS généré par IA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Body global --- */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #121212, #191919);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}
/* --- Au desssus dee la bulle---*/
.intro {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: #1db954;
  letter-spacing: 0.5px;
}

/* --- Conteneur principal --- */
#track {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#track:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- Titre de la chanson --- */
#track h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
  color: #1db954; /* vert Spotify */
}

/* --- Artiste et album --- */
#track p {
  font-size: 0.95rem;
  margin: 0.3em 0;
  opacity: 0.9;
}

/* --- Image de l’album --- */
#track img {
  width: 100%;
  border-radius: 12px;
  margin-top: 1em;
  transition: opacity 0.3s ease;
}

#track img:hover {
  opacity: 0.85;
}

/* --- Message d’erreur / vide --- */
#track.error,
#track.empty {
  color: #aaa;
  font-style: italic;
}

/* --- Texte de mise à jour --- */
#updated {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 12px;
}

/* --- Animation de chargement --- */
@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.loading {
  animation: pulse 1.5s infinite;
}
