/* -------------------------------------------------------
   LISTEN PAGE — AUDIO PLAYER + PLAYLIST LAYOUT
   Southbound Sinners
-------------------------------------------------------- */

/* Wrapper that contains the entire player section */
.listen-wrapper {
  padding: 0 1rem 3rem;
  color: #ffffff;
}

/* Layout: player on the left, playlist on the right */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .player-layout {
    grid-template-columns: 1fr;
  }
}

/* Main audio player box */
.player-main {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(245, 193, 108, 0.45); /* gold border */
}

/* Small label above current track */
.current-track-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 0.14em;
}

/* Track title shown above the audio controls */
.current-track-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.35rem 0 1rem;
  color: #ffffff;
}

/* HTML audio element */
.audio-player {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Instruction text below player */
.player-tip {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Playlist container */
.playlist {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(245, 193, 108, 0.45);
}

/* Playlist heading */
.playlist-heading {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  color: #ffffff;
}

/* UL reset */
.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each track item */
.track-item {
  margin-bottom: 0.35rem;
  border-radius: 8px;
  transition: background 0.2s ease, border-left-color 0.2s ease;
}

/* Active track */
.track-item.active {
  background: rgba(245, 193, 108, 0.18); /* gold tint */
  border-left: 3px solid #f5c16c; /* gold bar */
}

/* Track button wrapper */
.track-button {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.4rem;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

/* Track hover */
.track-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 01, 02, 03... */
.track-index {
  font-family: monospace;
  opacity: 0.65;
  margin-right: 0.7rem;
}

/* Track title text */
.track-title {
  flex: 1;
  color: #ffffff;
}

/* Track duration (optional) */
.track-duration {
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Fallback when no tracks exist */
.no-tracks {
  opacity: 0.75;
  font-style: italic;
  margin-top: 0.5rem;
}
