/**
 * radiokiste — app.css
 * Neumorphes Design-System (Handoff) + Mood-System + Player-Bar + DSGVO + Legal.
 * Schriften selbst gehostet (DSGVO: keine Google-Fonts-Anfrage).
 *
 * Theming: Das Mood-System (app.js -> setMood) injiziert <style id="rk-mood">,
 * das die Farb-Tokens in :root ueberschreibt. Die :root-Werte hier sind Fallback.
 */
@import url('/assets/fonts/fonts.css');

/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Fonts */
  --font-display: 'Chakra Petch', 'Arial Black', sans-serif;
  --font-body:    'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Cascadia Code', monospace;

  /* Type scale */
  --text-xs:   0.6875rem;  --text-sm:   0.8125rem;  --text-md:   0.9375rem;
  --text-base: 1rem;       --text-lg:   1.125rem;   --text-xl:   1.25rem;
  --text-2xl:  1.5rem;     --text-3xl:  1.875rem;   --text-4xl:  2.25rem;

  /* Spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 28px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-14: 56px; --sp-16: 64px; --sp-20: 80px;

  /* Radii */
  --r-sm: 5px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 9999px;

  /* Farben — Fallback "Day" (hell); Moods ueberschreiben via #rk-mood */
  --bg:              #F0F3FA;
  --bg-subtle:       #F8F9FD;
  --surface-1:       #FFFFFF;
  --surface-2:       #F0F3FA;
  --surface-3:       #E4E8F2;
  --surface-overlay: rgba(240, 243, 250, 0.92);
  --border:          rgba(0, 0, 0, 0.07);
  --border-strong:   rgba(0, 0, 0, 0.13);
  --text-1:          #0D1740;
  --text-2:          #4A5580;
  --text-3:          #8892AA;
  --accent:          #2460ED;
  --accent-subtle:   rgba(36, 96, 237, 0.10);
  --accent-glow:     rgba(36, 96, 237, 0.20);
  --live:            #00C9B8;
  --live-subtle:     rgba(0, 201, 184, 0.12);

  /* Shadows */
  --shadow-1: 0 1px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12);
  --shadow-2: 0 4px 12px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.10);
  --glow-accent: 0 0 20px var(--accent-glow), 0 0 48px var(--accent-glow);
  --neo-raised:  6px 6px 18px rgba(174,190,224,.65),-4px -4px 14px rgba(255,255,255,.95);
  --neo-pressed: inset 4px 4px 10px rgba(174,190,224,.7),inset -3px -3px 8px rgba(255,255,255,.9);
  --neo-flat:    3px 3px 8px rgba(174,190,224,.5),-2px -2px 6px rgba(255,255,255,.9);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET + BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text-1); font-family: var(--font-body);
  font-size: 15px; -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--accent); margin-top: -4.5px; }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent); }

/* ═══════════════════════════════════════════════════════════
   3. APP SHELL
   ═══════════════════════════════════════════════════════════ */
.rk-app  { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg); }
.rk-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }

/* Sidebar (desktop) */
.rk-sidebar {
  width: 72px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; padding: var(--sp-4) 0 var(--sp-3); gap: var(--sp-1);
  border-right: 1px solid var(--border); background: var(--bg);
}
.rk-sidebar__logo { margin-bottom: var(--sp-4); display: block; }
.rk-sidebar__spacer { flex: 1; }

/* Topbar (mobile) */
.rk-topbar {
  height: var(--sp-14); flex-shrink: 0; display: none;
  align-items: center; justify-content: space-between;
  padding: 0 var(--sp-4); border-bottom: 1px solid var(--border); background: var(--bg);
}
.rk-topbar__brand { display: flex; align-items: center; gap: var(--sp-2); }
.rk-topbar__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text-1); }
.rk-topbar__wordmark span { color: var(--accent); }
.rk-topbar__nav { display: flex; gap: 2px; }
.rk-install-btn { color: var(--accent); }

/* 6 Nav-Icons: auf schmalen Screens Wortmarke ausblenden und Buttons verkleinern,
   damit die Topbar nicht überläuft. Padding verhindert, dass der Scroll-Container
   die Button-Schatten abschneidet; Scrollbar bleibt als Fallback unsichtbar. */
@media (max-width: 560px) {
  .rk-topbar__wordmark { display: none; }
  .rk-topbar__nav { overflow-x: auto; padding: 6px 3px; scrollbar-width: none; }
  .rk-topbar__nav::-webkit-scrollbar { display: none; }
  .rk-topbar__nav .rk-nav-btn { width: 38px; height: 38px; flex-shrink: 0; }
}

/* iOS-Installations-Anleitung (Safari kann nicht automatisch prompten) */
.rk-ios-install {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.5); padding: var(--sp-4);
  animation: rk-fadeInUp .2s ease;
}
.rk-ios-install__card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px); box-shadow: var(--neo-raised);
  padding: var(--sp-6); margin-bottom: var(--sp-6);
}
.rk-ios-install__close {
  position: absolute; top: 8px; right: 12px; border: none; background: none;
  font-size: 26px; line-height: 1; color: var(--text-3); cursor: pointer;
}
.rk-ios-install__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg, 18px); color: var(--text-1); margin-bottom: var(--sp-2); }
.rk-ios-install__text { font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; }
.rk-ios-install__text strong { color: var(--text-1); }

@media (max-width: 767px) {
  .rk-sidebar { display: none; }
  .rk-topbar  { display: flex; }
}

/* Content */
.rk-content { flex: 1; overflow-y: auto; background: var(--bg-subtle); scroll-behavior: smooth; }

/* Nav button (neumorph) */
.rk-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: transparent; color: var(--text-3); box-shadow: var(--neo-flat);
  outline: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, outline-color .15s ease;
}
.rk-nav-btn:hover  { color: var(--text-1); }
.rk-nav-btn--active{ color: var(--accent); box-shadow: var(--neo-raised); outline-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   4. PLAYER BAR (persistent, unten)
   ═══════════════════════════════════════════════════════════ */

/* Adhoc-Laufband (radio_announcements) — sitzt direkt über der Player-Leiste,
   komplett ausgeblendet solange keine Meldung aktiv ist. */
.rk-ticker {
  flex-shrink: 0; overflow: hidden;
  padding: 5px 0;
  background: var(--accent-subtle);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-1);
}
.rk-ticker__track {
  display: flex; width: max-content; will-change: transform;
  animation: rk-ticker-scroll var(--rk-ticker-dur, 30s) linear infinite;
}
.rk-ticker:hover .rk-ticker__track { animation-play-state: paused; }
.rk-ticker__seq { display: flex; align-items: center; white-space: nowrap; }
.rk-ticker__item { display: inline-flex; align-items: center; gap: 7px; padding: 0 var(--sp-5); }
.rk-ticker__icon { flex-shrink: 0; }
.rk-ticker__sep  { color: var(--accent); font-weight: 700; letter-spacing: 2px; }
@keyframes rk-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rk-ticker__track { animation: none; }
}

.rk-player {
  height: var(--sp-16); flex-shrink: 0;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--sp-4); padding: 0 var(--sp-5);
  background: var(--surface-overlay);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
}
.rk-player__info { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.rk-player__titles { min-width: 0; }
.rk-player__title  { font-weight: 600; font-size: var(--text-md); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-player__artist { font-size: var(--text-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-player__play {
  position: relative; overflow: hidden;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .2s ease, transform .1s ease;
}
.rk-player__play:active { transform: scale(.95); }
.rk-player__play--active { box-shadow: var(--glow-accent); }

/* Cover-Hintergrund im Play-Button (zwei Layer für Crossfade) */
.rk-player__pcover {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.rk-player__picon { position: relative; z-index: 2; display: flex; transition: opacity .25s ease; }
.rk-player__play.is-playing .rk-player__picon { opacity: 0; }
.rk-player__badge {
  position: absolute; right: 1px; bottom: 1px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.45);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.rk-player__badge svg { width: 12px; height: 12px; }
.rk-player__play.is-playing .rk-player__badge { opacity: 1; transform: scale(1); }
.rk-player__volume { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
.rk-player__volume input[type="range"] {
  width: 110px; height: 4px; -webkit-appearance: none; appearance: none;
  border-radius: var(--r-full); outline: none; cursor: pointer;
}
@media (max-width: 767px) { .rk-player__volume { display: none; } .rk-player { grid-template-columns: 1fr auto; } }

/* ═══════════════════════════════════════════════════════════
   5. PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */
.rk-page { padding: var(--sp-8) var(--sp-6) var(--sp-12); max-width: 720px; margin: 0 auto; animation: rk-fadeInUp .25s ease; }
.rk-section { margin-bottom: var(--sp-8); }
.rk-section__label {
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-3);
}
.rk-page__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); color: var(--text-1); margin-bottom: var(--sp-2); }
.rk-page__subtitle { font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--sp-7); }

/* ═══════════════════════════════════════════════════════════
   6. HERO POWER BUTTON + MOODS
   ═══════════════════════════════════════════════════════════ */
.rk-hero { text-align: center; margin-bottom: var(--sp-8); }
.rk-power-btn {
  position: relative;
  width: 196px; height: 196px; border-radius: 50%; border: none;
  background: var(--bg); box-shadow: var(--neo-raised);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; transition: transform .2s ease;
}
.rk-power-btn:hover { transform: scale(1.03); }
.rk-power-btn:active { transform: scale(.98); }

/* Cover-Hintergrund im Power-Button beim Spielen */
.rk-power-btn__cover {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background-size: cover; background-position: center;
  animation: rk-power-cover-in .45s ease both;
}
@keyframes rk-power-cover-in { from { opacity: 0; } to { opacity: 1; } }
.rk-power-btn--cover .rk-power-btn__ring { display: none; }
.rk-power-btn__badge {
  position: absolute; z-index: 3; right: 18px; bottom: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  animation: rk-power-cover-in .45s ease both;
}
.rk-power-btn__ring {
  width: 156px; height: 156px; border-radius: 50%;
  border: 2.5px solid var(--accent); background: var(--bg); box-shadow: var(--neo-pressed);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
}
.rk-power-btn__label { font-family: var(--font-body); font-size: 15px; color: var(--accent); font-weight: 600; }
.rk-hero__track { margin-top: var(--sp-6); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rk-hero__title  { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--text-1); margin-top: var(--sp-2); }
.rk-hero__artist { font-size: var(--text-md); color: var(--text-2); }
.rk-vote-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-2); font-size: var(--text-sm); font-weight: 600; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--border); border-radius: var(--r-full); padding: 5px 14px; text-decoration: none; transition: border-color .15s ease; }
.rk-vote-link:hover { border-color: var(--accent); }
.rk-hero__volume { display: flex; align-items: center; gap: var(--sp-2); justify-content: center; max-width: 220px; margin: var(--sp-4) auto 0; }
.rk-hero__volume input[type="range"] { flex: 1; height: 4px; -webkit-appearance: none; appearance: none; border-radius: var(--r-full); outline: none; cursor: pointer; }

/* Mood-Switcher */
.rk-mood-row { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-6); }
.rk-mood-btn {
  width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--bg);
  box-shadow: var(--neo-flat), 0 0 14px -5px var(--mood-c, transparent), inset 0 0 10px -6px var(--mood-c, transparent);
  outline: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: box-shadow .18s ease, outline-color .18s ease, transform .18s ease;
  position: relative; overflow: hidden; isolation: isolate;
}
.rk-mood-btn:hover { transform: translateY(-2px); box-shadow: var(--neo-raised); }
.rk-mood-btn--active {
  box-shadow: var(--neo-raised), 0 0 20px var(--accent-glow), 0 0 48px var(--accent-glow), inset 0 0 14px var(--accent-subtle);
  outline: 2.5px solid var(--accent); transform: scale(1.1);
  animation: rk-mood-glow 2.2s ease-in-out infinite;
}
/* Drehendes Licht-Sweep */
.rk-mood-btn--active::before {
  content: ''; position: absolute; inset: -110%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 320deg, rgba(255,255,255,.22) 320deg 355deg, transparent 355deg);
  animation: rk-shimmer-spin 2.6s linear infinite;
  pointer-events: none;
}
/* Innerer Glanz-Ring */
.rk-mood-btn--active::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); pointer-events: none;
  animation: rk-ring-pulse 2.4s ease-in-out infinite;
}
.rk-mood-btn__emoji { font-size: 17px; line-height: 1; position: relative; z-index: 1; filter: drop-shadow(0 0 5px var(--mood-c, transparent)); }
.rk-mood-btn__label { font-family: var(--font-body); font-weight: 800; font-size: 10px; letter-spacing: .05em; color: var(--text-2); position: relative; z-index: 1; }
.rk-mood-btn--active .rk-mood-btn__label { color: var(--accent); }

/* Nicht-Day-Moods dauerhaft leuchten + blinken (Aufmerksamkeit), versetzt getaktet.
   Aktiver Button behält den stärkeren Shimmer (rk-mood-glow). */
.rk-mood-btn[data-mood="day"]     { --mood-c: #2460ED; }
.rk-mood-btn[data-mood="party"]   { --mood-c: #FFC21A; }
.rk-mood-btn[data-mood="ambient"] { --mood-c: #00C9B8; }
.rk-mood-btn[data-mood="rock"]    { --mood-c: #FF2D6B; }
.rk-mood-btn[data-mood="party"]:not(.rk-mood-btn--active),
.rk-mood-btn[data-mood="ambient"]:not(.rk-mood-btn--active),
.rk-mood-btn[data-mood="rock"]:not(.rk-mood-btn--active) {
  animation: rk-mood-blink 1.9s ease-in-out infinite;
}
.rk-mood-btn[data-mood="ambient"]:not(.rk-mood-btn--active) { animation-delay: .63s; }
.rk-mood-btn[data-mood="rock"]:not(.rk-mood-btn--active)    { animation-delay: 1.26s; }
.rk-mood-btn[data-mood="party"]:not(.rk-mood-btn--active)   .rk-mood-btn__emoji,
.rk-mood-btn[data-mood="ambient"]:not(.rk-mood-btn--active) .rk-mood-btn__emoji,
.rk-mood-btn[data-mood="rock"]:not(.rk-mood-btn--active)    .rk-mood-btn__emoji {
  animation: rk-mood-emoji 1.9s ease-in-out infinite;
}
.rk-mood-btn[data-mood="ambient"]:not(.rk-mood-btn--active) .rk-mood-btn__emoji { animation-delay: .63s; }
.rk-mood-btn[data-mood="rock"]:not(.rk-mood-btn--active)    .rk-mood-btn__emoji { animation-delay: 1.26s; }

/* EQ-Visualizer */
.rk-eq-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: var(--sp-5); animation: rk-fadeInUp .3s ease; }
.rk-eq-name { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.rk-eq-svg { display: block; overflow: visible; transition: opacity .25s ease; }
.rk-eq-svg--off { opacity: .35; }
.rk-eq-fill { animation: rk-eq-fade .45s ease both; }
.rk-eq-line { animation: rk-eq-draw .5s cubic-bezier(.4,0,.2,1) both; stroke-dasharray: 600; stroke-dashoffset: 0; }
.rk-eq-dot  { animation: rk-eq-pop .35s cubic-bezier(.34,1.56,.64,1) both; }
/* EQ Bypass-Toggle + Extra Bass */
.rk-eq-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.rk-eq-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 4px 10px 4px 4px; background: none; border: none; cursor: pointer; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.rk-eq-toggle__track { position: relative; width: 34px; height: 18px; border-radius: 9999px; background: var(--surface-3); box-shadow: var(--neo-pressed); transition: background .2s ease; }
.rk-eq-toggle__thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-3); transition: transform .2s ease, background .2s ease; }
.rk-eq-toggle--on .rk-eq-toggle__track { background: var(--accent-subtle); }
.rk-eq-toggle--on .rk-eq-toggle__thumb { transform: translateX(16px); background: var(--accent); }
.rk-eq-toggle--on .rk-eq-toggle__label { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   7. LIVE BADGE
   ═══════════════════════════════════════════════════════════ */
.rk-live-badge { display: inline-flex; align-items: center; gap: var(--sp-2); }
.rk-live-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex-shrink: 0; animation: rk-pulse 1.8s ease-in-out infinite; box-shadow: 0 0 8px rgba(0,201,184,.4); }
.rk-live-badge__text  { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--live); }
.rk-live-badge__count { font-size: var(--text-sm); color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════
   8. TRACK ROW
   ═══════════════════════════════════════════════════════════ */
.rk-track-list { display: flex; flex-direction: column; gap: 2px; }
.rk-track-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); transition: background .15s ease; border-left: 2px solid transparent; }
.rk-track-row:hover { background: var(--surface-2); }
.rk-track-row--playing { border-left-color: var(--accent); }
.rk-track-row__index  { width: 22px; text-align: right; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); flex-shrink: 0; }
.rk-track-row--playing .rk-track-row__index { color: var(--accent); animation: rk-pulse 1.2s ease-in-out infinite; }
.rk-track-row__info   { flex: 1; min-width: 0; }
.rk-track-row__title  { font-weight: 600; font-size: var(--text-md); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-track-row--playing .rk-track-row__title { color: var(--accent); }
.rk-track-row__artist { font-size: var(--text-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.rk-track-row__time   { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); flex-shrink: 0; }
.rk-track-row__meta   { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.rk-track-row__vote   { font-size: var(--text-xs); font-weight: 600; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--border); border-radius: var(--r-full); padding: 3px 10px; flex-shrink: 0; text-decoration: none; white-space: nowrap; transition: border-color .15s ease; }
.rk-track-row__vote:hover { border-color: var(--accent); }

/* „Jetzt im Radio" (Charts-Tab) */
.rk-onair-head { margin-bottom: var(--sp-4); }
.rk-onair-head__name { font-weight: 700; font-size: var(--text-lg); color: var(--text-1); }
.rk-onair-head__stats { font-size: var(--text-sm); color: var(--text-2); margin-top: 2px; }
.rk-onair-head__hint { font-size: var(--text-xs); color: var(--text-3); margin-top: var(--sp-2); }
.rk-onair-row--played { opacity: .45; }
.rk-onair-row--current { background: var(--accent-subtle); border-left-color: var(--accent); }
.rk-onair-row--current .rk-track-row__title { color: var(--accent); }
.rk-onair-row--current .rk-track-row__time { color: var(--accent); }
.rk-onair-row__meta { color: var(--text-3); font-size: var(--text-xs); }

/* ═══════════════════════════════════════════════════════════
   9. INFO CARD (Über Künstler & Song)
   ═══════════════════════════════════════════════════════════ */
.rk-info-card { background: var(--surface-1); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-1); }
.rk-info-card__artist { display: flex; gap: var(--sp-4); padding: var(--sp-4); align-items: flex-start; border-bottom: 1px solid var(--border); }
.rk-info-card__bio    { flex: 1; min-width: 0; }
.rk-info-card__name   { font-weight: 700; font-size: var(--text-md); color: var(--text-1); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.rk-info-card__verified { color: var(--accent); display: inline-flex; }
.rk-info-card__bio-text { font-size: var(--text-sm); color: var(--text-2); line-height: 1.55; }
.rk-info-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--sp-2); }
.rk-tag { font-size: var(--text-xs); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); padding: 2px 9px; }
.rk-tag--link { color: var(--accent); text-decoration: none; }
.rk-tag--link:hover { border-color: var(--accent); }

/* KI-Kennzeichnung (EU AI Act Art. 50) in der Info-Karte */
.rk-ai-notice { display: flex; align-items: center; gap: 8px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-3); line-height: 1.4; }
.rk-ai-notice__badge { flex-shrink: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 5px; }
/* Einklappbare Künstler-Info: Kopfzeile als Schalter, Chevron dreht beim Öffnen;
   KI-Kennzeichnung steht zugeklappt ohne Karten-Trennlinie direkt unter der Zeile */
.rk-info-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0; margin-bottom: var(--sp-3); cursor: pointer; color: var(--text-3); }
.rk-info-toggle__label { margin-bottom: 0; }
.rk-info-toggle__chev { transition: transform .2s ease; }
.rk-info-toggle__chev--open { transform: rotate(180deg); }
.rk-ai-notice--solo { margin-top: 0; padding-top: 0; border-top: 0; }
.rk-info-card__meta   { display: grid; grid-template-columns: 1fr 1fr; }
.rk-info-card__meta-cell { padding: 14px var(--sp-4); }
.rk-info-card__meta-cell:first-child { border-right: 1px solid var(--border); }
.rk-info-card__meta-cell--cover { display: flex; gap: 10px; align-items: center; }
.rk-info-card__meta-cell--cover .rk-info-card__meta-text { flex: 1; min-width: 0; }
.rk-info-card__meta-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.rk-info-card__meta-value { font-weight: 600; font-size: var(--text-sm); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-info-card__meta-sub   { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   10. CHARTS (Hitparade)
   ═══════════════════════════════════════════════════════════ */
.rk-chart-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); transition: background .15s ease; }
.rk-chart-row:hover { background: var(--surface-2); }
.rk-chart-rank { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--text-3); width: 34px; text-align: center; flex-shrink: 0; }
.rk-chart-row--top .rk-chart-rank { color: var(--accent); }
.rk-chart-info { flex: 1; min-width: 0; }
.rk-chart-title { font-weight: 600; font-size: var(--text-md); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-chart-artist { font-size: var(--text-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.rk-chart-stat { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); flex-shrink: 0; text-align: right; }
.rk-chart-stat strong { color: var(--accent); font-weight: 700; display: block; font-size: var(--text-sm); }

/* ═══════════════════════════════════════════════════════════
   11. DAY/GENRE TABS
   ═══════════════════════════════════════════════════════════ */
.rk-tabs { display: flex; gap: var(--sp-1); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.rk-tab { padding: 6px 14px; border-radius: var(--r-full); border: none; background: transparent; color: var(--text-3); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; transition: all .15s ease; }
.rk-tab:hover { color: var(--text-1); }
.rk-tab--active { background: var(--accent-subtle); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   12. SETTINGS
   ═══════════════════════════════════════════════════════════ */
.rk-settings-card { background: var(--surface-1); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: var(--sp-8); box-shadow: var(--shadow-1); }
.rk-settings-row { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); border-bottom: 1px solid var(--border); }
.rk-settings-row:last-child { border-bottom: none; }
.rk-settings-row a { display: flex; align-items: center; justify-content: space-between; flex: 1; text-decoration: none; color: var(--text-1); font-size: var(--text-md); }
.rk-theme-toggle { display: flex; background: var(--surface-3); border-radius: var(--r-md); padding: 2px; gap: 2px; }
.rk-theme-option { padding: 6px 14px; border-radius: var(--r-sm); border: none; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; background: transparent; color: var(--text-3); transition: all .15s ease; }
.rk-theme-option--active { background: var(--surface-1); color: var(--text-1); box-shadow: var(--shadow-1); }
.rk-btn-outline { padding: 7px 14px; border-radius: var(--r-md); border: 1.5px solid var(--border-strong); background: transparent; color: var(--text-2); font-size: var(--text-sm); font-weight: 600; }
.rk-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   13. SEARCH
   ═══════════════════════════════════════════════════════════ */
.rk-search-wrap { position: relative; margin-bottom: var(--sp-6); }
.rk-search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.rk-search-input { width: 100%; padding: 12px 16px 12px 44px; border-radius: var(--r-lg); border: 1.5px solid var(--border-strong); background: var(--surface-1); color: var(--text-1); font-family: var(--font-body); font-size: var(--text-md); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.rk-search-input:focus { border-color: var(--accent); box-shadow: var(--glow-accent); }
.rk-search-empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.rk-search-count { font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--sp-3); }

/* ═══════════════════════════════════════════════════════════
   14. COVER ART FALLBACK
   ═══════════════════════════════════════════════════════════ */
.rk-cover { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.rk-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.rk-cover__initials { font-family: var(--font-display); font-weight: 700; color: rgba(255,255,255,.92); user-select: none; line-height: 1; }

/* ═══════════════════════════════════════════════════════════
   15. DSGVO BANNER
   ═══════════════════════════════════════════════════════════ */
#rk-dsgvo { position: fixed; bottom: calc(var(--sp-16) + 12px); left: 50%; transform: translateX(-50%); z-index: 100; width: min(460px, calc(100vw - 32px)); }
.rk-dsgvo-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-2); font-size: var(--text-sm); animation: rk-fadeInUp 250ms ease; }
.rk-dsgvo-banner svg { flex-shrink: 0; color: var(--text-3); }
.rk-dsgvo-banner__text { color: var(--text-2); flex: 1; }
.rk-dsgvo-banner__text a { color: var(--accent); text-decoration: none; font-weight: 600; }
.rk-dsgvo-ok { padding: 6px 14px; background: var(--accent); color: #fff; border: none; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 700; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   16. OFFLINE HINT
   ═══════════════════════════════════════════════════════════ */
#rk-offline-hint { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface-3); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--text-sm); font-family: var(--font-body); }
#rk-offline-hint[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════
   17. LEGAL FOOTER
   ═══════════════════════════════════════════════════════════ */
.rk-legal-footer { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--border); text-align: center; }
.rk-legal-footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-bottom: var(--sp-2); }
.rk-legal-footer__links a { color: var(--text-3); text-decoration: none; font-size: var(--text-sm); transition: color .15s; }
.rk-legal-footer__links a:hover { color: var(--accent); }
.rk-legal-footer__sep { color: var(--text-3); opacity: .5; }
.rk-legal-footer__copy { color: var(--text-3); font-family: var(--font-mono); font-size: var(--text-xs); }

/* ═══════════════════════════════════════════════════════════
   18. MEHR-SEITE
   ═══════════════════════════════════════════════════════════ */
.rk-nav-btn--external { position: relative; }
.rk-nav-btn--external::after {
  content: '↗'; position: absolute; top: 4px; right: 4px;
  font-size: 8px; color: var(--accent); line-height: 1;
}

.rk-mehr-tile {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--border);
  box-shadow: var(--shadow-1); text-decoration: none; color: var(--text-1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rk-mehr-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rk-mehr-tile--charts { border-color: var(--accent); background: var(--accent-subtle); }
.rk-mehr-tile__icon { color: var(--accent); flex-shrink: 0; }
.rk-mehr-tile__text { flex: 1; min-width: 0; }
.rk-mehr-tile__title { font-weight: 700; font-size: var(--text-md); color: var(--accent); }
.rk-mehr-tile__sub   { font-size: var(--text-sm); color: var(--text-2); margin-top: 2px; }
.rk-mehr-tile__arrow { color: var(--accent); flex-shrink: 0; }

.rk-wetter-card {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-1);
}
.rk-wetter-card--loading { display: flex; align-items: center; gap: var(--sp-3); min-height: 64px; }
.rk-wetter-card__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--surface-3); border-top-color: var(--accent);
  animation: rk-spin .8s linear infinite; flex-shrink: 0;
}
.rk-wetter-main  { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.rk-wetter-emoji { font-size: 36px; line-height: 1; flex-shrink: 0; }
.rk-wetter-temp  { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); color: var(--text-1); }
.rk-wetter-desc  { font-size: var(--text-sm); color: var(--text-2); margin-top: 2px; }
.rk-wetter-loc   { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }
.rk-wetter-meta  { display: flex; gap: var(--sp-5); font-size: var(--text-sm); color: var(--text-2); }
.rk-wetter-meta strong { color: var(--text-1); }

.rk-artist-day { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.rk-artist-day__info { flex: 1; min-width: 0; }
.rk-artist-day__name { font-weight: 700; font-size: var(--text-md); color: var(--text-1); }
.rk-artist-day__bio  { font-size: var(--text-sm); color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.rk-artist-day__songs { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-2); }
.rk-artist-day__song  { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--text-2); }

.rk-mehr-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.rk-mehr-link  {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: var(--text-md); font-family: var(--font-body); color: var(--text-1);
  text-align: left; transition: background .15s ease, border-color .15s ease;
}
.rk-mehr-link:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   19. NEWS-SEITE
   ═══════════════════════════════════════════════════════════ */
.rk-news-feed { display: flex; flex-direction: column; gap: var(--sp-5); }
.rk-news-item {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rk-news-item:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rk-news-item__link { display: block; text-decoration: none; color: inherit; }

.rk-news-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rk-news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* News-Bilder: Blur-Kopie füllt das Fenster, davor das Bild komplett sichtbar (contain) */
.rk-news-media img.rk-news-media__bg { filter: blur(18px) brightness(.65); transform: scale(1.12); }
.rk-news-media img.rk-news-media__img { object-fit: contain; z-index: 1; }
.rk-news-media__emoji { font-size: 44px; opacity: .9; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.rk-news-play {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.8); transition: transform .15s ease;
}
.rk-news-item:hover .rk-news-play { transform: scale(1.08); }

.rk-news-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.rk-news-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.rk-news-badge {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-subtle); border-radius: var(--r-full); padding: 3px 10px;
}
.rk-news-date  { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); }
.rk-news-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--text-1); line-height: 1.25; }
.rk-news-text  { font-size: var(--text-sm); color: var(--text-2); line-height: 1.6; margin-top: var(--sp-2); }

/* Aufklappbarer Artikel-Volltext (radio_news aus dem nobpm-Admin) */
.rk-news-more { margin-top: var(--sp-3); }
.rk-news-more summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: var(--text-sm); font-weight: 600; color: var(--accent);
}
.rk-news-more summary::-webkit-details-marker { display: none; }
.rk-news-more summary::after { content: ' ▾'; font-size: .8em; }
.rk-news-more[open] summary::after { content: ' ▴'; }
.rk-news-more p {
  font-size: var(--text-sm); color: var(--text-2); line-height: 1.6;
  margin-top: var(--sp-2);
}

/* Programm-Karte in der News-Sektion */
.rk-prog-list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 6px; }
.rk-prog-row {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: var(--text-sm); color: var(--text-2);
  padding: 5px 8px; border-radius: var(--r-sm);
}
.rk-prog-row--now { background: rgba(124,58,237,.1); color: var(--text-1); font-weight: 600; }
.rk-prog-time { font-family: var(--font-mono); font-size: var(--text-xs); flex-shrink: 0; min-width: 7rem; }
.rk-prog-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-prog-now {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7C3AED; background: rgba(124,58,237,.15); border-radius: var(--r-full); padding: 2px 8px; flex-shrink: 0;
}
.rk-prog-updated { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); margin-left: auto; }

/* ═══════════════════════════════════════════════════════════
   20.5 MOOD ATMOSPHERE
   ═══════════════════════════════════════════════════════════ */
/* Licht-Overlay: position:fixed, pointer-events:none → kein Einfluss auf Layout/Klicks.
   Opacity + Gradient werden pro Mood via setMood() in #rk-mood injiziert. */
#rk-atmo {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}

/* ═══════════════════════════════════════════════════════════
   20. ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes rk-spin         { to{transform:rotate(360deg)} }
@keyframes rk-pulse        { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.82)} }
@keyframes rk-fadeInUp     { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes rk-shimmer-spin { to{transform:rotate(360deg)} }
@keyframes rk-mood-glow {
  0%,100% { box-shadow: var(--neo-raised), 0 0 16px var(--accent-glow), inset 0 0 10px var(--accent-subtle); }
  50%     { box-shadow: var(--neo-raised), 0 0 34px var(--accent-glow), 0 0 64px var(--accent-glow), inset 0 0 18px var(--accent-subtle); }
}
@keyframes rk-ring-pulse {
  0%,100% { opacity: .18; transform: scale(1); }
  50%     { opacity: .5;  transform: scale(1.04); }
}
@keyframes rk-mood-blink {
  0%,100% { box-shadow: var(--neo-flat), 0 0 6px -2px var(--mood-c); outline-color: transparent; }
  50%     { box-shadow: var(--neo-flat), 0 0 20px var(--mood-c), 0 0 40px var(--mood-c); outline-color: var(--mood-c); }
}
@keyframes rk-mood-emoji {
  0%,100% { transform: scale(1);    filter: none; }
  50%     { transform: scale(1.18); filter: drop-shadow(0 0 6px var(--mood-c)); }
}
@keyframes rk-eq-fade { from{opacity:0} to{opacity:1} }
@keyframes rk-eq-pop  { from{opacity:0;transform:scale(0)} to{opacity:.85;transform:scale(1)} }

@keyframes rk-atmo-breathe {
  0%,100% { opacity: .65; }
  50%     { opacity: 1; }
}
@keyframes rk-power-glow-rock {
  0%,100% { box-shadow: var(--neo-raised), 0 0 32px rgba(255,45,107,.45); }
  50%     { box-shadow: var(--neo-raised), 0 0 70px rgba(255,45,107,.8), 0 0 120px rgba(255,45,107,.3); }
}
@keyframes rk-power-glow-party {
  0%,100% { box-shadow: var(--neo-raised), 0 0 32px rgba(255,194,26,.4); }
  50%     { box-shadow: var(--neo-raised), 0 0 70px rgba(255,194,26,.7), 0 0 120px rgba(255,194,26,.25); }
}
@keyframes rk-power-glow-ambient {
  0%,100% { box-shadow: var(--neo-raised), 0 0 32px rgba(0,201,184,.4); }
  50%     { box-shadow: var(--neo-raised), 0 0 70px rgba(0,201,184,.7), 0 0 120px rgba(0,201,184,.25); }
}

@media (prefers-reduced-motion: reduce) {
  /* Pauschal-Stopp, ABER die sanften Ambient-Glows (Atmo-Overlay + Power-Button)
     bleiben erlaubt: reine Opacity-/Glow-Pulse ohne störende Bewegung. */
  *:not(#rk-atmo):not(.rk-power-btn), *::before, *::after { animation: none !important; transition: none !important; }
}
