/* youni box Radio – Mithören per Link. Nachtstudio: dunkles Blau, Gold der Show-Cover,
   Rot nur für „live“. Je Show eine eigene Akzentfarbe (Jimmy: Krawatten-Lila, Buck: Chicago-Blau). */
:root {
  --bg: #0c0f1d;
  --surface: #151a2e;
  --surface-2: #1d2340;
  --line: rgba(243, 239, 230, .1);
  --ink: #f3efe6;
  --muted: #aeacbd;
  --gold: #e8c47e;
  --live: #ff4d5e;
  --jimmy: #a184e6;
  --buck: #6f9cf0;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--body);
  padding: env(safe-area-inset-top, 0px) 16px calc(110px + env(safe-area-inset-bottom, 0px));
  background-image: radial-gradient(90% 50% at 50% -10%, rgba(232, 196, 126, .12), transparent 70%);
  min-height: 100vh;
}
main { max-width: 980px; margin: 0 auto; display: grid; gap: 44px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.top { max-width: 980px; margin: 0 auto; padding: 18px 0 22px; }
.brand { font: 600 15px var(--display); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.brand b { color: var(--gold); font-weight: 600; }
.brand-mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.brand-mark i { width: 3px; background: var(--gold); border-radius: 1px; height: 6px; }
.brand-mark i:nth-child(2) { height: 14px; } .brand-mark i:nth-child(3) { height: 9px; }

/* Live-Bereich */
.onair {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.onair.offline, .onair:not(:has(.onair-cover)) { grid-template-columns: minmax(0, 1fr); }
.onair-cover { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); max-width: 100%; }
.onair-body { display: grid; gap: 12px; min-width: 0; }
.kicker { margin: 0; font: 600 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.onair.live .kicker { color: var(--live); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 77, 94, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
h1 { margin: 0; font: 700 clamp(30px, 6vw, 52px)/1.05 var(--display); letter-spacing: .01em; text-wrap: balance; }
.slogan { margin: 0; font: 600 20px var(--display); color: var(--gold); letter-spacing: .03em; }
.now { margin: 0; color: var(--muted); }
.now b { color: var(--ink); font-weight: 600; }
.cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--gold); color: #1a1406; font: 700 17px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.cta.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta[aria-pressed="true"] { background: var(--ink); }
.meta { margin: 0; font: 500 13px var(--mono); color: var(--muted); }

/* Shows */
.block { display: grid; gap: 18px; }
.block-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline; justify-content: space-between; }
h2 { margin: 0; font: 600 26px var(--display); letter-spacing: .02em; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.show { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-items: start; }
.show img { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; }
.show h3 { margin: 0 0 2px; font: 600 20px/1.15 var(--display); }
.show .slogan { font-size: 16px; color: var(--accent); }
.show p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.show .badge { display: inline-block; margin-top: 8px; font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--live); }

/* Archiv */
.filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.recordings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rec { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rec img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.rec-text { min-width: 0; display: grid; gap: 2px; }
.rec-title { font-weight: 700; }
.rec-title small { font: 500 13px var(--mono); color: var(--muted); margin-left: 6px; }
.rec-with { color: var(--muted); font-size: 15px; }
.rec-motto { color: var(--muted); font-size: 14px; font-style: italic; overflow-wrap: anywhere; }
.rec-play { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; }
.rec.playing { border-color: var(--gold); }
.empty { color: var(--muted); margin: 0; }

/* Player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 48px; grid-template-areas: "cover text toggle" "progress progress progress";
  gap: 6px 12px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 26, 46, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.player[hidden] { display: none; }
.player-cover { grid-area: cover; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.player-text { grid-area: text; min-width: 0; display: grid; }
.player-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-kicker { font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.player-kicker.live { color: var(--live); }
.player-toggle { grid-area: toggle; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: #1a1406; font-size: 15px; }
.player-progress { grid-area: progress; display: flex; align-items: center; gap: 10px; }
.player-progress[hidden] { display: none; }
.player-progress input { flex: 1; accent-color: var(--gold); min-width: 0; }
.player-time { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .onair { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .onair-cover { max-width: 320px; }
  .show { grid-template-columns: 84px minmax(0, 1fr); }
  .show img { width: 84px; height: 84px; }
  .rec { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .rec img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
