/* ===========================================================================
   La colonna sonora — custom controls over a hidden YouTube player.
   Shared by /index.html and /campaign-book/index.html. Scoped under .soundtrack.
   Plays the official "Paolo Conte - Topic" upload (full track, click-to-play).
   =========================================================================== */
.soundtrack {
  --st-accent: #C8102E;
  --st-ink: #F5EFE0;
  display: block;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--st-ink);
  background: #121212;
}

/* the YouTube iframe is audio-only here — kept in the DOM but off-screen */
.soundtrack .st-yt {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  overflow: hidden;
  pointer-events: none;
}

.soundtrack .st-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 10px;
}

.soundtrack .st-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--st-accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.soundtrack .st-play:hover { transform: scale(1.06); }
.soundtrack .st-play:disabled { opacity: .45; cursor: progress; }

.soundtrack .st-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.soundtrack .st-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.soundtrack .st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soundtrack .st-artist {
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, .55);
}

/* now-playing equaliser */
.soundtrack .st-eq { display: none; gap: 2px; align-items: flex-end; height: 11px; }
.soundtrack .st-eq i { width: 2.5px; height: 100%; background: var(--st-accent); transform-origin: bottom; }
.soundtrack.is-playing .st-eq { display: inline-flex; }
.soundtrack .st-eq i:nth-child(1) { animation: st-bar .9s ease-in-out infinite; }
.soundtrack .st-eq i:nth-child(2) { animation: st-bar .9s ease-in-out infinite .25s; }
.soundtrack .st-eq i:nth-child(3) { animation: st-bar .9s ease-in-out infinite .5s; }
@keyframes st-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.soundtrack .st-vol-row { display: flex; align-items: center; gap: 9px; padding: 0 15px 11px; }
.soundtrack .st-mute {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--st-ink);
  opacity: .65;
  cursor: pointer;
}
.soundtrack .st-mute:hover { opacity: 1; }
.soundtrack .st-vol {
  flex: 1;
  min-width: 0;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(245, 239, 224, .25);
  border-radius: 3px;
  cursor: pointer;
}
.soundtrack .st-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--st-ink);
  cursor: pointer;
}
.soundtrack .st-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--st-ink);
  cursor: pointer;
}

.soundtrack .st-src {
  padding: 0 15px 11px;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, .38);
}
