* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: transparent;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Coordonnées mesurées par analyse de pixels sur background.png (1672×941). Logo Spotify,
   cœur et décor (feuilles, katana, kanji) restent dessinés dans le fond ; seuls pochette /
   titre / artiste / barres / temps / barre de progression sont dynamiques. Deux fonds opaques
   couvrent les zones concernées pour ne jamais laisser réapparaître le texte/exemple du fond. ── */

.content-backdrop {
  position: absolute;
  left: 51.88%;
  top: 43%;
  width: 29.46%;
  height: 15.7%;
  background: rgb(6,10,24);
}

.progress-backdrop {
  position: absolute;
  left: 42.46%;
  top: 58.9%;
  width: 43.07%;
  height: 2.7%;
  background: rgb(6,10,24);
}

.album-art {
  position: absolute;
  left: 42.64%;
  top: 43.78%;
  width: 8.07%;
  height: 14.66%;
  border-radius: 10px;
  object-fit: cover;
  background: rgb(6,10,24);
}
.album-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}
.album-art-fallback svg { width: 50%; height: 50%; }

.track-title {
  position: absolute;
  left: 51.88%;
  top: 43.57%;
  width: 27%;
  height: 3.72%;
  display: flex;
  align-items: center;
  font-size: 1.55vw;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(96,165,250,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  position: absolute;
  left: 51.88%;
  top: 48.88%;
  width: 27%;
  height: 2.92%;
  display: flex;
  align-items: center;
  font-size: 1.2vw;
  font-weight: 700;
  color: #bfe0ff;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bars {
  position: absolute;
  left: 51.88%;
  top: 54.2%;
  width: 29.46%;
  height: 4.25%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.bars .bar {
  flex: 1;
  min-width: 0;
  border-radius: 1px;
  background: rgba(96,165,250,.35);
  transform-origin: bottom;
  animation-name: bar-bounce;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-play-state: paused;
}
.bars.playing .bar { animation-play-state: running; }
.bars .bar.filled { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,.7); }
@keyframes bar-bounce {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1.3); }
}

.time {
  position: absolute;
  top: 59.24%;
  height: 2.13%;
  display: flex;
  align-items: center;
  font-size: 0.95vw;
  font-weight: 700;
  color: rgba(200,220,255,.85);
}
.time-cur { left: 42.46%; width: 3.89%; }
.time-tot { left: 82.54%; width: 2.99%; }

.progress-track {
  position: absolute;
  left: 46.5%;
  top: 60.7%;
  width: 35.58%;
  height: 4px;
  border-radius: 999px;
  background: rgba(96,165,250,.2);
}
.progress-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 6px rgba(96,165,250,.7);
  width: 0%;
}
.progress-thumb {
  position: absolute;
  top: 50%; left: 0%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(96,165,250,.9);
  transform: translate(-50%, -50%);
}
