/* ============================================================
   Leue Records — Audio Player
   ============================================================ */

/* ── Sticky Bottom-Player ─────────────────────────────────── */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(14,14,28,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,162,39,.2);
  box-shadow: 0 -8px 32px rgba(0,0,0,.5);
  transform: translateY(100%);
  transition: transform 350ms cubic-bezier(.4,0,.2,1);
  padding: 0;
}
.audio-player.is-visible { transform: translateY(0); }

.player-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: .875rem 1.5rem;
  max-width: 1280px;
  margin-inline: auto;
}

/* Linke Spalte: Titel-Info */
.player-info {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-width: 0;
}
.player-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(201,162,39,.2);
}
.player-meta { min-width: 0; }
.player-track {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #e8e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-release {
  font-size: .75rem;
  color: #888899;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mittlere Spalte: Steuerung */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.player-buttons { display: flex; align-items: center; gap: .875rem; }

.ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888899;
  transition: color 200ms, transform 200ms;
}
.ctrl-btn:hover { color: #e8e8f0; transform: scale(1.1); }
.ctrl-btn svg { width: 18px; height: 18px; }

.ctrl-btn--play {
  width: 48px;
  height: 48px;
  background: #c9a227;
  color: #000;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(201,162,39,.4);
}
.ctrl-btn--play:hover { background: #e8c147; color: #000; transform: scale(1.08); box-shadow: 0 0 30px rgba(201,162,39,.6); }
.ctrl-btn--play svg { width: 20px; height: 20px; }

/* Fortschrittsleiste */
.player-progress {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 400px;
}
.player-time {
  font-size: .6875rem;
  color: #888899;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #e8c147);
  border-radius: 4px;
  position: relative;
  min-width: 0;
  transition: width .1s linear;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #c9a227;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,162,39,.8);
  opacity: 0;
  transition: opacity 200ms;
}
.progress-bar:hover .progress-fill::after { opacity: 1; }

/* Rechte Spalte: Lautstärke */
.player-volume {
  display: flex;
  align-items: center;
  gap: .625rem;
  justify-content: flex-end;
}
.volume-icon { width: 20px; height: 20px; color: #888899; cursor: pointer; }
.volume-icon:hover { color: #e8e8f0; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9a227;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(201,162,39,.5);
}

.player-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #888899;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
  margin-left: .5rem;
}
.player-close:hover { background: rgba(255,255,255,.12); color: #e8e8f0; }
.player-close svg { width: 14px; height: 14px; }

/* Ausgeblendet: native audio element */
#audio-element { display: none; }

/* ── Responsive Player ────────────────────────────────────── */
@media (max-width: 900px) {
  .player-inner { grid-template-columns: 1fr auto; }
  .player-volume { display: none; }
  .player-progress { width: 260px; }
}
@media (max-width: 600px) {
  .player-inner { grid-template-columns: 1fr; gap: .5rem; padding: .75rem 1rem; }
  .player-progress { width: 100%; }
  .player-volume { display: none; }
  .player-info { display: none; }
}
