/* Shared Radio-Player – sticky Bottom-Leiste
   Erwartet CSS-Variablen:
   --rp-accent
   --rp-accent-fg
   --rp-bg
   --rp-fg
   --rp-muted
   --rp-border
*/
.radio-player {
  --rp-accent: #00b8d4;
  --rp-accent-fg: #041219;
  --rp-bg: rgba(6,18,25,0.92);
  --rp-fg: #f5fbff;
  --rp-muted: rgba(245,251,255,0.62);
  --rp-border: rgba(255,255,255,0.12);
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  background: var(--rp-bg);
  color: var(--rp-fg);
  border: 1px solid var(--rp-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: inherit;
  transition: transform 0.25s ease, width 0.25s ease, padding 0.25s ease;
}
.radio-player__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}
.radio-player__play {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid var(--rp-accent);
  background: transparent;
  color: var(--rp-accent);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.radio-player__play:hover { background: rgba(0,184,212,0.15); }
.radio-player__play.is-playing {
  background: var(--rp-accent);
  color: var(--rp-accent-fg);
  box-shadow: 0 0 0 4px rgba(0,184,212,0.22);
}
.radio-player__meta {
  flex: 1;
  min-width: 0;
}
.radio-player__lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--rp-muted);
  text-transform: uppercase;
}
.radio-player__station {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-player__status {
  font-size: 11px;
  color: var(--rp-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-player__status.is-live { color: var(--rp-accent); }

.radio-player__stations {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.radio-player__stations button {
  background: transparent;
  border: 1px solid var(--rp-border);
  color: var(--rp-fg);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  min-height: 32px;
}
.radio-player__stations button:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
.radio-player__stations button.is-active {
  background: var(--rp-accent);
  color: var(--rp-accent-fg);
  border-color: var(--rp-accent);
}

.radio-player__vol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.radio-player__vol input[type="range"] {
  flex: 1;
  accent-color: var(--rp-accent);
  height: 22px;
}
.radio-player__vol span { font-size: 10px; letter-spacing: 0.12em; color: var(--rp-muted); text-transform: uppercase; }

.radio-player__toggle {
  background: transparent;
  border: 1px solid var(--rp-border);
  color: var(--rp-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
.radio-player__toggle:hover { color: var(--rp-fg); border-color: var(--rp-accent); }

/* Minimiert: nur Play-Button + Toggle */
.radio-player.is-minimized {
  left: auto;
  right: 12px;
  width: auto;
  max-width: 180px;
}
.radio-player.is-minimized .radio-player__meta,
.radio-player.is-minimized .radio-player__stations,
.radio-player.is-minimized .radio-player__vol {
  display: none;
}
.radio-player.is-minimized .radio-player__row { padding: 8px 10px; gap: 8px; }

/* Mobile */
@media (max-width: 760px) {
  .radio-player__stations { display: none; }
  .radio-player__vol { min-width: 90px; }
}
@media (max-width: 520px) {
  .radio-player__vol { display: none; }
  .radio-player__row { padding: 10px 12px; gap: 10px; }
  .radio-player__station { font-size: 13px; }
}

/* Platz am Seitenende, damit Footer nicht verdeckt wird */
body.has-radio-player { padding-bottom: 96px; }
@media (max-width: 520px) {
  body.has-radio-player { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .radio-player { transition: none; }
}
