/* ═══════════════════════════════════════════════════════════════════
   BigTimeFM — Design-System „Neon Glass"
   Themes: Dunkel (Standard) & Hell — umschaltbar via <html data-theme>,
   ohne Attribut entscheidet prefers-color-scheme.
   Layout: Kopfzeile + Menü · Feed (Twitch → Grußbox → Sendeplan) ·
   Player-Leiste unten (Spotify-Stil). Desktop: Electron 700 × 530.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Design-Tokens ─────────────────────────────────────────────── */

:root {
  /* Neon-Orange-Akzent */
  --accent:        #ff8a00;
  --accent-soft:   #ffb04d;
  --accent-deep:   #e06c00;
  --accent-grad:   linear-gradient(135deg, #ffa326 0%, #ff7300 100%);
  --on-accent:     #2b1500;

  /* Dunkles Theme (Standard) */
  --bg:            #0b0b0f;
  --bg-layer:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 122, 0, 0.08), transparent 55%),
    radial-gradient(500px 300px at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%);
  --surface:       rgba(22, 22, 28, 0.66);
  --surface-strong: rgba(14, 14, 18, 0.92);
  --field:         rgba(8, 8, 12, 0.55);
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(255, 138, 0, 0.42);
  --text:          #f4f4f6;
  --text-muted:    #9a9aa6;
  --ok:            #5ad17c;
  --ok-bg:         rgba(60, 190, 100, 0.12);
  --err:           #ff7a7a;
  --err-bg:        rgba(230, 70, 70, 0.12);

  --glow:          0 0 8px rgba(255, 138, 0, 0.75), 0 0 24px rgba(255, 138, 0, 0.4), 0 0 48px rgba(255, 138, 0, 0.15);
  --glow-soft:     0 0 14px rgba(255, 138, 0, 0.35);
  --glow-purple:   0 0 8px rgba(145, 70, 255, 0.8), 0 0 22px rgba(145, 70, 255, 0.45);
  --shadow-card:   0 10px 30px rgba(0, 0, 0, 0.45);

  /* Liquid Glass: satter Blur + Sättigung, Glanzkante oben */
  --glass-blur:      blur(34px) saturate(185%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);

  --radius-card:   20px;
  --radius-btn:    12px;
  --radius-field:  10px;
}

/* Helles Theme: explizit gewählt … */
:root[data-theme="light"] {
  --bg:            #f6f2ec;
  --bg-layer:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 0, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 150, 40, 0.08), transparent 55%);
  --surface:       rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --field:         rgba(255, 255, 255, 0.85);
  --border:        rgba(25, 20, 35, 0.09);
  --border-accent: rgba(225, 108, 0, 0.45);
  --text:          #1c1a22;
  --text-muted:    #6e6c78;
  --accent:        #e06c00;
  --accent-soft:   #ff9933;
  --on-accent:     #ffffff;
  --ok:            #1d8f45;
  --ok-bg:         rgba(40, 160, 80, 0.1);
  --err:           #c43c3c;
  --err-bg:        rgba(200, 60, 60, 0.08);
  --glow:          0 0 10px rgba(255, 138, 0, 0.35), 0 0 28px rgba(255, 138, 0, 0.18);
  --glow-soft:     0 0 12px rgba(255, 138, 0, 0.2);
  --shadow-card:   0 10px 26px rgba(140, 100, 50, 0.14);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}

/* … oder automatisch nach Systemeinstellung */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg:            #f6f2ec;
    --bg-layer:
      radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 0, 0.12), transparent 60%),
      radial-gradient(700px 500px at -10% 110%, rgba(255, 150, 40, 0.08), transparent 55%);
    --surface:       rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --field:         rgba(255, 255, 255, 0.85);
    --border:        rgba(25, 20, 35, 0.09);
    --border-accent: rgba(225, 108, 0, 0.45);
    --text:          #1c1a22;
    --text-muted:    #6e6c78;
    --accent:        #e06c00;
    --accent-soft:   #ff9933;
    --on-accent:     #ffffff;
    --ok:            #1d8f45;
    --ok-bg:         rgba(40, 160, 80, 0.1);
    --err:           #c43c3c;
    --err-bg:        rgba(200, 60, 60, 0.08);
    --glow:          0 0 10px rgba(255, 138, 0, 0.35), 0 0 28px rgba(255, 138, 0, 0.18);
    --glow-soft:     0 0 12px rgba(255, 138, 0, 0.2);
    --shadow-card:   0 10px 26px rgba(140, 100, 50, 0.14);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
  }
}

/* ── 2. Basis ─────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 700px;
  height: 100vh;
  overflow: hidden;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-layer);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  width: 700px;
  height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 10px 12px 12px;
  gap: 10px;
  position: relative;
}

/* ── 3. Kopfbereich: Eyebrow-Marke + großer Tab-Titel ─────────────── */

.app-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  padding: 0 4px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.eyebrow em {
  font-style: normal;
  color: var(--accent);
  text-shadow: var(--glow-soft);
}

#page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  animation: live-pulse 2.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

@keyframes menu-in {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── 4. Einstellungen-Tab: Links & Theme-Schalter ─────────────────── */

.menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.menu-link:hover:not(:disabled) {
  background: rgba(255, 138, 0, 0.12);
  color: var(--accent);
}

.menu-link:disabled { cursor: default; }

.menu-soon { color: var(--text-muted); }

.soon-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 2px 8px;
}

.theme-switch {
  display: flex;
  gap: 2px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  width: fit-content;
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  min-width: 38px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}

.theme-btn.active {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: var(--glow-soft);
}

/* ── 5. Feed (Hauptansicht) ───────────────────────────────────────── */

.app-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.app-feed::-webkit-scrollbar { width: 6px; }
.app-feed::-webkit-scrollbar-track { background: transparent; }
.app-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 0, 0.45);
  border-radius: 4px;
}
.app-feed::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--glass-highlight);
  flex: none;
}

.panel-title {
  font-size: 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* Nächste Sendung (Zeile über dem Sendeplan) */
.next-show-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.next-show-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#next-show {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── 6. Buttons (geteilt) ─────────────────────────────────────────── */

.orange-btn,
.toggle-btn {
  width: 100%;
  height: 36px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.2s, box-shadow 0.2s, color 0.15s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orange-btn:hover,
.toggle-btn:hover {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
}

.orange-btn:active,
.toggle-btn:active {
  background: rgba(255, 138, 0, 0.22);
}

.toggle-btn.active {
  background: var(--accent-grad);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--glow-soft);
}

.btn-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 4px;
}

/* Twitch-Banner (nur sichtbar, wenn live) */
.twitch-btn {
  background: transparent;
  color: #a06cff;
  font-weight: 650;
  border: 1.5px solid rgba(145, 70, 255, 0.5);
  border-radius: var(--radius-card);
  padding: 0 12px;
  width: 100%;
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}

.twitch-btn:hover {
  border-color: rgba(145, 70, 255, 0.95);
  box-shadow: var(--glow-purple);
}

/* Vollbild-Player-Buttons (Mobile) */
.ctrl-btn {
  height: 44px;
  flex: 1;
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.ctrl-play {
  background: var(--accent-grad);
  border-color: transparent;
}

.ctrl-play:hover { box-shadow: var(--glow); }
body.playing .ctrl-play { box-shadow: var(--glow); }

.ctrl-stop { color: var(--accent); }

.ctrl-stop:hover {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
}

.ctrl-btn .btn-icon { margin: 0; width: 16px; height: 16px; }

/* ── 7. Player-Leiste (unten, Spotify-Stil) ───────────────────────── */

.player-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 12px;
  min-height: 62px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--glass-highlight);
}

#cover-img {
  width: 46px;
  height: 46px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--field);
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#cover-img:hover {
  box-shadow: var(--glow-soft);
  transform: scale(1.04);
}

.pb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#current-dj {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#current-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Equalizer: animiert nur, wenn hörbar gespielt wird (body.playing) */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  flex-shrink: 0;
}

.eq i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.35;
  transition: opacity 0.3s;
}

body.playing .eq i {
  opacity: 1;
  box-shadow: var(--glow-soft);
  animation: eq-bounce 0.9s ease-in-out infinite alternate;
}

body.playing .eq i:nth-child(2) { animation-delay: 0.18s; }
body.playing .eq i:nth-child(3) { animation-delay: 0.36s; }
body.playing .eq i:nth-child(4) { animation-delay: 0.54s; }

@keyframes eq-bounce {
  from { height: 4px; }
  to   { height: 16px; }
}

/* Play / Stop in der Pill */
.pb-controls {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.pb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-accent);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.pb-btn:hover {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
}

.pb-btn:active { transform: scale(0.94); }

.pb-btn .btn-icon { margin: 0; width: 15px; height: 15px; }

.pb-play {
  background: var(--accent-grad);
  border-color: transparent;
}

.pb-play:hover { box-shadow: var(--glow); }
body.playing .pb-play { box-shadow: var(--glow); }

/* ── 8. Tab-Bar (Apple-Music-Stil) ────────────────────────────────── */

/* Schwebende Liquid-Glass-Kapsel (Position/Maße in ios.css) */
/* Flex statt Grid: ausgeblendete Tabs (z. B. Grußbox zu) verteilen sich sauber */
#tab-bar {
  flex: none;
  display: flex;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--glass-highlight);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 7px 6px;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.2s;
}

.tab-btn svg {
  width: 24px;
  height: 24px;
}

.tab-label {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(255, 138, 0, 0.13);
  box-shadow: var(--glass-highlight);
}

.tab-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(255, 138, 0, 0.45));
}

/* Status-Punkt am Grußbox-Tab (sichtbar, wenn die Box offen ist) */
.tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.tab-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-soft);
}

/* Tab-Inhalte */
.tab-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Flüssiger Tab-Wechsel (Apple-Music-Gefühl) */
.tab-anim { animation: tab-in 0.30s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes tab-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tab-anim-rev { animation: tab-in-rev 0.30s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes tab-in-rev {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Voting-Tab: aktueller Song */
.vote-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.vote-now-cover {
  width: min(58vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--field);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), var(--glass-highlight);
}

.vote-now-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vote-now-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.vote-rank {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--field);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Sendungs-Alarm: Zeitstufen-Chips */
.settings-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.settings-hint:empty { display: none; }

.notify-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notify-btn {
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--field);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.notify-btn.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: var(--glow-soft);
}

/* Schalter-Zeile (Toggle) */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.switch:checked {
  background: var(--accent-grad);
  border-color: transparent;
}

.switch:checked::after { transform: translateX(18px); }

.settings-note {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 11px;
}

/* ── Team ──────────────────────────────────────────────────────────── */

.team-group { margin-bottom: 18px; }

/* Oberkategorie: Main Team / Junior Team */
.team-maincat {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 18px 4px 12px;
}
.team-maincat:first-child { margin-top: 4px; }

.team-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 4px 8px;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--glass-highlight);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--field);
}

.team-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.team-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-role {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-follow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.team-follow.on {
  color: var(--accent);
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
}

/* ── Bio-Sheet ─────────────────────────────────────────────────────── */

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 4px auto 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.bio-role {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.bio-info {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.bio-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.bio-info-row:last-child { border-bottom: none; }
.bio-info-row span:first-child { color: var(--text-muted); }
.bio-info-row span:last-child { color: var(--text); text-align: right; }

.bio-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.bio-text p { margin-bottom: 8px; }

/* ── 9. Discord-Verknüpfung ───────────────────────────────────────── */

.dc-hello {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.dc-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 4px 0;
}

.dc-note-err { color: var(--err); }

.dc-steps {
  font-size: 12px;
  color: var(--text);
  line-height: 1.65;
  padding-left: 18px;
  margin: 6px 0;
}

.dc-steps a { color: var(--accent); }

.dc-key {
  display: inline-block;
  max-width: 100%;
  background: var(--field);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-field);
  padding: 4px 9px;
  margin-top: 3px;
  font-size: 12px;
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
  /* immer im sichtbaren Bereich umbrechen statt rauszulaufen */
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Kopier-Button für den /link-Befehl (bleibt im sichtbaren Bereich) */
.dc-copy {
  display: inline-block;
  margin-top: 6px;
  max-width: 100%;
  padding: 8px 14px;
  background: var(--accent-grad);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.15s;
}

.dc-copy:hover { box-shadow: var(--glow-soft); }
.dc-copy:active { opacity: 0.85; }
.dc-copy.copied { background: var(--ok); color: #fff; }

/* ── 10. Sendeplan ────────────────────────────────────────────────── */

.sp-day { margin-bottom: 14px; }

.sp-day-header {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.sp-item {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.sp-item:last-child { border-bottom: none; }

.sp-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.sp-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-show {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
}

.sp-dj {
  font-size: 11px;
  color: var(--text-muted);
}

.sp-empty,
.tl-empty,
.wb-loading {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
}

/* ── 11. Trackliste (Overlay, öffnet per Tipp aufs Cover) ─────────── */

.tl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tl-overlay.open {
  display: flex;
  animation: menu-in 0.18s ease;
}

.tl-sheet {
  width: min(440px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.tl-head .panel-title { margin-bottom: 8px; }

.tl-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tl-close:hover {
  background: rgba(255, 138, 0, 0.12);
  color: var(--accent);
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.scroll-content::-webkit-scrollbar { width: 6px; }
.scroll-content::-webkit-scrollbar-track { background: transparent; }
.scroll-content::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 0, 0.45);
  border-radius: 4px;
}

/* Eintrag der Hör-Historie: Cover · Titel/DJ · Uhrzeit */
.tl-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.tl-item:last-child { border-bottom: none; }

.tl-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--field);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tl-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
}

.tl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tl-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.tl-artist {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.tl-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ── 12. Wunschbox ────────────────────────────────────────────────── */

.wb-notice {
  font-size: 11px;
  padding: 7px 9px;
  border-radius: var(--radius-field);
  margin-bottom: 8px;
  line-height: 1.45;
}

.wb-notice-warn {
  background: rgba(255, 138, 0, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 138, 0, 0.25);
}

.wb-notice-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-bg);
}

.wb-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.wb-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.wb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.wb-label {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wb-input,
.wb-select,
.wb-textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  color: var(--text);
  font-size: 12px;
  padding: 7px 9px;
  outline: none;
  font-family: inherit;
  resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wb-input:focus,
.wb-select:focus,
.wb-textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
}

.wb-select option { background: var(--surface-strong); color: var(--text); }

.wb-charcount {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

.wb-status {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-field);
  text-align: center;
  margin-bottom: 8px;
}

.wb-status-ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-bg);
  color: var(--ok);
}

.wb-status-err {
  background: var(--err-bg);
  border: 1px solid var(--err-bg);
  color: var(--err);
}

.wb-submit {
  background: var(--accent-grad);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.15s;
  width: 100%;
}

.wb-submit:hover { box-shadow: var(--glow); }
.wb-submit:active { opacity: 0.85; }
.wb-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Voicemail */
.wb-voice-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.wb-rec-btn {
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.15s;
}

.wb-rec-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.wb-rec-start {
  background: var(--accent-grad);
  color: var(--on-accent);
}

.wb-rec-start:hover:not(:disabled) { box-shadow: var(--glow); }

.wb-rec-stop {
  background: rgba(220, 60, 60, 0.88);
  color: #fff;
}

.wb-rec-stop:hover:not(:disabled) {
  box-shadow: 0 0 8px rgba(220, 60, 60, 0.9), 0 0 18px rgba(220, 60, 60, 0.5);
}

.wb-rec-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
}

.wb-preview {
  width: 100%;
  height: 32px;
  margin-bottom: 8px;
  border-radius: var(--radius-field);
  accent-color: var(--accent);
}

/* ── Song-Voting ───────────────────────────────────────────────────── */

.vote-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.vote-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--field);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.vote-btn:active { transform: scale(0.92); }

.js-vote-up.on {
  color: var(--accent);
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
}

.js-vote-down.on {
  color: #6aa9ff;
  border-color: rgba(106, 169, 255, 0.5);
  box-shadow: 0 0 12px rgba(106, 169, 255, 0.35);
}

/* Kompaktes Voting in der Player-Leiste (immer sichtbar) */
.pb-vote {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vote-btn-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.vote-btn-sm:active { transform: scale(0.9); }

.pb-karma {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.vote-karma {
  min-width: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Karma-Badge in der Trackliste */
.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.tl-karma {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.tl-karma.pos { color: var(--accent); }
.tl-karma.neg { color: #6aa9ff; }

/* ── 13. Vollbild-Player: Basis (sichtbar nur auf Mobile, s. ios.css) ── */

#player-overlay { display: none; }
