/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------
   PLAYER WRAPPER
-------------------------------------------------- */
.player-wrapper {
  max-width: 480px;
  margin: 2rem auto;
  padding: 1rem;
  background: #111;
  color: #fff;
  border-radius: 12px;
  overflow: hidden; /* Prevent vertical growth */
}

/* --------------------------------------------------
   PLAYER MAIN LAYOUT
-------------------------------------------------- */
.player-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------
   ARTWORK + INFO
-------------------------------------------------- */
.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.album-art {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
}

.info span {
  display: block;
}

.amplitude-song-name {
  font-weight: 600;
  font-size: 1rem;
}

.amplitude-artist,
.amplitude-category {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --------------------------------------------------
   PLAYLIST (SCROLLABLE)
-------------------------------------------------- */
.playlist {
  margin-top: 0.5rem;
}

.scrollable-playlist {
  height: 200px; /* Shows ~5 tracks */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.playlist-item:hover {
  background: #222;
}

.playlist-item.active {
  background: #2563eb;
  color: #fff;
}

/* --------------------------------------------------
   TIME + VOLUME + CONTROLS
-------------------------------------------------- */
.time-row,
.volume-row,
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.volume-row input[type="range"] {
  width: 70%;
}

/* Base button styling */
.controls button {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.controls button:hover {
  background: #1d4ed8;
}

/* --------------------------------------------------
   PLAY/PAUSE BUTTON (ENLARGED)
-------------------------------------------------- */
.controls button.amplitude-play-pause {
  padding: 0.75rem 1.25rem; /* Larger click area */
  font-size: 3.00rem;       /* Larger icon/text */
  border-radius: 999px;
}

/* Playing state */
.controls button.amplitude-play-pause.amplitude-playing {
  background: #ef4444;
}

/* --------------------------------------------------
   WAVESURFER
-------------------------------------------------- */
#ws-waveform {
  margin-top: 1rem;
}