/*!
 * GENX MUSIC — Sound-Umschalter
 * Teil der Website https://www.genxpodcast.de
 *
 * Copyright (c) 2026 Markus Lach. Alle Rechte vorbehalten.
 *
 * Dieser Quelltext ist urheberrechtlich geschuetzt. Vervielfaeltigung,
 * Verbreitung, Bearbeitung oder oeffentliche Zugaenglichmachung — ganz
 * oder in Teilen — nur mit ausdruecklicher schriftlicher Zustimmung des
 * Urhebers. Das Auslesen im Browser ist technisch bedingt und stellt
 * keine Freigabe zur Weiterverwendung dar.
 */
/* ============================================================
   GENX MUSIC — Sound-Umschalter in der Kopfzeile
   ============================================================ */

.genx-music {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Weiter- und Loop-Button */
.genx-music-next,
.genx-music-loop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #cbb8d8;
  background: rgba(12, 3, 48, .55);
  border: 1px solid #3a3048;
  border-radius: 999px;
  transition: border-color .18s ease, background .18s ease;
}
.genx-music-next:hover,
.genx-music-loop:hover { border-color: #29c5f6; }
.genx-music-loop.on {
  border-color: #29c5f6;
  background: linear-gradient(180deg, rgba(127, 227, 255, .35), rgba(41, 197, 246, .35));
  box-shadow: 0 0 8px rgba(41, 197, 246, .4);
}

.genx-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  cursor: pointer;
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a90b6;
  background: rgba(12, 3, 48, .55);
  border: 1px solid #3a3048;
  border-radius: 999px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.genx-music-btn:hover { color: #ffd23f; border-color: #29c5f6; }
.genx-music.playing .genx-music-btn {
  color: #17101f;
  border-color: #29c5f6;
  background: linear-gradient(180deg, #7fe3ff, #29c5f6);
}

/* Equalizer-Balken (zeigen den Ein/Aus-Zustand) */
.genx-music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.genx-music-eq i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  opacity: .7;
}
.genx-music.playing .genx-music-eq i {
  opacity: 1;
  animation: genxMusicEq .85s ease-in-out infinite;
}
.genx-music.playing .genx-music-eq i:nth-child(1) { animation-delay: 0s; }
.genx-music.playing .genx-music-eq i:nth-child(2) { animation-delay: .2s; }
.genx-music.playing .genx-music-eq i:nth-child(3) { animation-delay: .38s; }
.genx-music.playing .genx-music-eq i:nth-child(4) { animation-delay: .12s; }
@keyframes genxMusicEq {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Auf schmalen Screens nur die Balken zeigen (Platz in der Kopfzeile) */
@media (max-width: 560px) {
  .genx-music-label { display: none; }
  .genx-music-btn { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .genx-music.playing .genx-music-eq i { animation: none; height: 10px; }
  .genx-music-btn { transition: none; }
}
