/* ── Ambient Music Player Modal ───────────────────────────────────────────── */

.music-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 12, 0.92);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: bosIn 0.25s ease-out;
}

.music-player-modal {
  background: #0e0818;
  border-radius: 14px;
  box-shadow: 0 0 70px rgba(60, 20, 140, 0.55), 0 4px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(140, 80, 255, 0.25);
  width: min(420px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.music-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(120, 70, 220, 0.18);
  flex-shrink: 0;
}

.music-player-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(210, 180, 255, 0.95);
}

.music-player-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: rgba(210, 180, 255, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.music-player-close:hover {
  background: rgba(180, 100, 255, 0.12);
  color: #c8a8ff;
}

/* Body / track list scroll area */
.music-player-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 60, 200, 0.4) transparent;
}
.music-player-body::-webkit-scrollbar { width: 4px; }
.music-player-body::-webkit-scrollbar-thumb {
  background: rgba(120, 60, 200, 0.4);
  border-radius: 3px;
}

/* Track groups */
.music-track-group {
  margin-bottom: 4px;
}

.music-track-group-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(210, 180, 255, 0.95);
  padding: 8px 18px 6px;
  border-bottom: 1px solid rgba(120, 70, 220, 0.18);
  margin: 0 0 2px;
}

.music-track-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 9px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.84rem;
  color: #c8b8e8;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.music-track-btn:hover {
  background: rgba(130, 70, 230, 0.22);
  color: #ece4ff;
}
.music-track-selected {
  background: rgba(120, 60, 210, 0.32);
  color: #fff;
  border-left-color: #b88aff;
  font-weight: 600;
}

/* Footer controls */
.music-player-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(120, 70, 220, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Now playing */
.music-now-playing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}
.music-now-playing-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(210, 180, 255, 0.95);
  white-space: nowrap;
}
.music-now-playing-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #c8b8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Playback icon buttons */
.music-controls-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.music-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(140, 80, 255, 0.35);
  background: rgba(80, 30, 160, 0.18);
  color: rgba(200, 170, 255, 0.8);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.music-ctrl-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.music-ctrl-btn:not(:disabled):hover {
  background: rgba(130, 60, 220, 0.38);
  border-color: rgba(180, 120, 255, 0.6);
  color: #ece4ff;
}
.music-btn-play:not(:disabled) {
  border-color: rgba(180, 120, 255, 0.5);
  color: #c8a8ff;
}
.music-btn-play:not(:disabled):hover {
  background: rgba(130, 60, 220, 0.5);
}

/* Volume */
.music-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.music-volume-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(210, 180, 255, 0.95);
  white-space: nowrap;
}
.music-volume-slider {
  flex: 1;
  accent-color: #9060d0;
  cursor: pointer;
  height: 4px;
}

/* Note */
.music-note {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  color: rgba(170, 140, 220, 0.6);
  text-align: center;
  font-style: italic;
  margin: 0;
  padding-bottom: 2px;
}
