/* =========================================================
   Regio360 VoiceOver Mini Player
   - flach (25px)
   - graublau
   - Play/Stop per CSS
   - kugelige LED links, blinkt grün bei Play
   ========================================================= */

:root {
  --player-height: 25px;
  --button-size: 25px;
  --icon-size: 10px;

  /* Farben */
  --bg: rgba(30, 70, 120, 0.18);
  --bg-hover: rgba(30, 70, 120, 0.28);
  --border: rgba(30, 70, 120, 0.30);
  --text: rgba(10, 20, 35, 0.95);
  --icon: rgba(10, 20, 35, 0.95);
  --shadow: rgba(0, 0, 0, 0.12);

  /* LED */
  --led-size: 12px;
  --led-on-core: #00e676;
  --led-on-glow: rgba(0, 230, 118, 0.65);
}

/* =========================================================
   Player Container
   ========================================================= */
.audio-player {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  transform: translateX(-50%);
  height: var(--player-height);
  z-index: 999999;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 2px 8px var(--shadow);
  box-sizing: border-box;
}

/* =========================================================
   LED (kugelig)
   ========================================================= */
.audio-led {
  width: var(--led-size);
  height: var(--led-size);
  border-radius: 50%;
  flex-shrink: 0;

  background: radial-gradient(
    circle at 30% 30%,
    #555 0%,
    #333 40%,
    #111 100%
  );

  box-shadow:
    inset -1px -1px 2px rgba(0,0,0,0.6),
    inset 1px 1px 2px rgba(255,255,255,0.15);

  opacity: 0.9;
}

/* LED AN */
.audio-led.is-on {
  background: radial-gradient(
    circle at 30% 30%,
    #c8ffe8 0%,
    var(--led-on-core) 35%,
    #009a55 70%,
    #006d3a 100%
  );

  box-shadow:
    0 0 6px var(--led-on-glow),
    0 0 12px var(--led-on-glow),
    inset -1px -1px 2px rgba(0,0,0,0.4),
    inset 1px 1px 2px rgba(255,255,255,0.35);

  animation: ledBlink 1.1s infinite;
}

@keyframes ledBlink {
  0%   { opacity: 0.35; }
  40%  { opacity: 1; }
  100% { opacity: 0.35; }
}

/* =========================================================
   Button
   ========================================================= */
.audio-button {
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.18);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.audio-button:hover {
  background: var(--bg-hover);
}

/* Play Icon */
.audio-button:not(.is-playing) .symbol {
  width: 0;
  height: 0;
  border-top: calc(var(--icon-size) * 0.6) solid transparent;
  border-bottom: calc(var(--icon-size) * 0.6) solid transparent;
  border-left: var(--icon-size) solid var(--icon);
  margin-left: 1px;
}

/* Stop Icon */
.audio-button.is-playing .symbol {
  width: var(--icon-size);
  height: var(--icon-size);
  background: var(--icon);
  border-radius: 2px;
}

/* Label */
.audio-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}

/* Audio verstecken */
.audio-player audio {
  display: none;
}

