html[data-theme="stephanus"] {
  --ink: #17130f;
  --wine: #8b2b2e;
  --wine-dark: #5f1a1c;
  --sand: #f7f1e7;
  --mist: #f2efe9;
  --stone: #e6ddd0;
  --cloud: #fcfbf8;
  --muted: #6f6760;
  --stroke: rgba(27, 19, 15, 0.12);
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 28px 60px rgba(25, 18, 14, 0.16);
  --shadow-soft: 0 18px 36px rgba(25, 18, 14, 0.12);
  --page-bg-top: #fbf7f0;
  --page-bg-bottom: #efe5d6;
  --page-glow-1: rgba(139, 43, 46, 0.18);
  --page-glow-2: rgba(245, 210, 157, 0.25);
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --switch-track: #d9d1c7;
  --ghost-bg: rgba(255, 255, 255, 0.7);
  --radius-lg: 22px;
  --radius-md: 16px;
}
html[data-theme="ocean"] {
  --ink: #0d1b24;
  --wine: #1b8e7e;
  --wine-dark: #0e5c52;
  --sand: #ecf6f4;
  --mist: #e6f0ee;
  --stone: #d7e7e3;
  --cloud: #f7fbfb;
  --muted: #4d6a6a;
  --stroke: rgba(13, 27, 36, 0.12);
  --glass: rgba(255, 255, 255, 0.84);
  --shadow: 0 28px 60px rgba(10, 30, 36, 0.16);
  --shadow-soft: 0 18px 36px rgba(10, 30, 36, 0.12);
  --page-bg-top: #f2fbfb;
  --page-bg-bottom: #d8f1ed;
  --page-glow-1: rgba(27, 142, 126, 0.18);
  --page-glow-2: rgba(94, 211, 196, 0.2);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --switch-track: #c9ddd8;
  --ghost-bg: rgba(255, 255, 255, 0.7);
}
html[data-theme="midnight"] {
  --ink: #e7edf2;
  --wine: #57b8ff;
  --wine-dark: #2d79a5;
  --sand: #101821;
  --mist: #121c27;
  --stone: #1a2532;
  --cloud: #16212e;
  --muted: #a4b2c1;
  --stroke: rgba(231, 237, 242, 0.12);
  --glass: rgba(13, 19, 27, 0.74);
  --shadow: 0 28px 60px rgba(3, 8, 12, 0.55);
  --shadow-soft: 0 18px 36px rgba(3, 8, 12, 0.45);
  --page-bg-top: #0a1118;
  --page-bg-bottom: #121b26;
  --page-glow-1: rgba(87, 184, 255, 0.2);
  --page-glow-2: rgba(80, 255, 200, 0.12);
  --panel: rgba(16, 24, 33, 0.9);
  --panel-strong: rgba(20, 29, 39, 0.96);
  --panel-solid: #101b26;
  --switch-track: #2a3a4a;
  --ghost-bg: rgba(17, 27, 38, 0.7);
}
html[data-theme="bethaus"] {
  --ink: #1f2937;
  --wine: #3b82f6;
  --wine-dark: #14213d;
  --sand: #f5f3ef;
  --mist: #f5f7fb;
  --stone: #e2ecff;
  --cloud: #ffffff;
  --muted: #6b7280;
  --stroke: #d9e2ec;
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 40px rgba(12, 74, 110, 0.16);
  --shadow-soft: 0 12px 30px rgba(12, 74, 110, 0.12);
  --page-bg-top: #f5f7fb;
  --page-bg-bottom: #f5f3ef;
  --page-glow-1: rgba(59, 130, 246, 0.2);
  --page-glow-2: rgba(34, 211, 238, 0.18);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --panel-solid: #ffffff;
  --switch-track: #d9e2ec;
  --ghost-bg: rgba(255, 255, 255, 0.78);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  background: linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 100%);
  color: var(--ink);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: -25% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(40% 50% at 20% 30%, var(--page-glow-1), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, var(--page-glow-2), transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fadeUp 0.6s ease both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand img {
  height: clamp(56px, 7vw, 82px);
  width: auto;
  display: block;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
  mix-blend-mode: multiply;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--wine);
  font-weight: 600;
}
.brand h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0;
  color: var(--ink);
}
.sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--ghost-bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 18px rgba(25, 18, 14, 0.08);
}
.ghost:hover {
  transform: translateY(-1px);
  background: var(--cloud);
  box-shadow: 0 14px 24px rgba(25, 18, 14, 0.12);
}
.ghost.small {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.player-card {
  background: var(--glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: clamp(14px, 2vw, 18px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.08s;
}
.player {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
}
.player.offline-mode { background: transparent; }
.player-locked {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}
.player-locked-card {
  max-width: 360px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.player-locked-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 18px;
}
.player-locked-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
video {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  background: #000;
}
audio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  display: none;
  opacity: 0;
  pointer-events: none;
  background: #111;
}
.player.audio-only {
  background: linear-gradient(135deg, #0f0d0b 0%, #1d1712 100%);
}
.player.audio-only video { display: none; }
.player.audio-only audio { display: block; }
.player.audio-only audio { display: block; }
.offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.offline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.offline-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(18, 13, 10, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  max-width: 80%;
}
.offline-title {
  font-family: "Fraunces", serif;
  font-size: 20px;
  margin: 0 0 6px;
}
.offline-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
}
.offline.hidden { display: none; }
.unmute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.unmute button {
  background: var(--panel-strong);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.unmute button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.unmute svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.unmute.hidden { display: none; }
.audio-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  pointer-events: none;
}
.audio-controls.hidden { display: none; }
.audio-controls.idle {
  opacity: 0.7;
  filter: grayscale(0.15);
}
.audio-controls button {
  pointer-events: auto;
  width: min(150px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  position: relative;
  overflow: visible;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 20%, rgba(180, 180, 180, 0.26), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(64, 64, 64, 0.4), transparent 60%),
    rgba(18, 13, 10, 0.7);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.audio-toggle-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: none;
}
.audio-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}
.audio-orbit {
  --audio-orbit-dash: 12deg;
  --audio-orbit-gap: 12deg;
}
@supports (background: conic-gradient(#fff 0 10deg, transparent 10deg 20deg)) {
  .audio-orbit {
    border: none;
    background: repeating-conic-gradient(
      rgba(255, 255, 255, 0.28) 0 var(--audio-orbit-dash),
      transparent var(--audio-orbit-dash) calc(var(--audio-orbit-dash) + var(--audio-orbit-gap))
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  }
}
.audio-controls button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
}
.audio-toggle-icon {
  width: 55px;
  height: 55px;
  fill: currentColor;
}
.audio-controls button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.audio-volume {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 20, 24, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.audio-volume-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.audio-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.audio-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.audio-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.audio-volume input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.audio-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  width: max-content;
  height: 34px;
  padding-top: 4px;
  box-sizing: border-box;
  overflow: hidden;
  transform-origin: bottom center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.audio-eq span {
  width: 6px;
  height: var(--eq-min, 8px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  animation: eq var(--eq-speed, 0.9s) ease-in-out infinite;
  animation-play-state: paused;
  animation-delay: var(--eq-delay, 0s);
}
.audio-eq span:nth-child(1) { --eq-min: 6px; --eq-max: 24px; --eq-speed: 0.78s; --tape-delay: 0s; --eq-delay: 0s; }
.audio-eq span:nth-child(2) { --eq-min: 8px; --eq-max: 30px; --eq-speed: 1.05s; --tape-delay: -0.16s; --eq-delay: -0.12s; }
.audio-eq span:nth-child(3) { --eq-min: 5px; --eq-max: 22px; --eq-speed: 0.9s; --tape-delay: -0.32s; --eq-delay: -0.18s; }
.audio-eq span:nth-child(4) { --eq-min: 7px; --eq-max: 28px; --eq-speed: 1.18s; --tape-delay: -0.48s; --eq-delay: -0.26s; }
.audio-eq span:nth-child(5) { --eq-min: 6px; --eq-max: 30px; --eq-speed: 0.96s; --tape-delay: -0.64s; --eq-delay: -0.32s; }
.audio-eq span:nth-child(6) { --eq-min: 9px; --eq-max: 26px; --eq-speed: 0.84s; --tape-delay: -0.8s; --eq-delay: -0.4s; }
.audio-eq span:nth-child(7) { --eq-min: 5px; --eq-max: 29px; --eq-speed: 1.12s; --tape-delay: -0.96s; --eq-delay: -0.48s; }
.audio-eq span:nth-child(8) { --eq-min: 8px; --eq-max: 25px; --eq-speed: 0.88s; --tape-delay: -1.12s; --eq-delay: -0.58s; }
.audio-eq span:nth-child(9) { --eq-min: 6px; --eq-max: 30px; --eq-speed: 1.24s; --tape-delay: -1.28s; --eq-delay: -0.66s; }
.audio-eq span:nth-child(10) { --eq-min: 7px; --eq-max: 23px; --eq-speed: 0.82s; --tape-delay: -1.44s; --eq-delay: -0.76s; }
.audio-eq span:nth-child(11) { --eq-min: 5px; --eq-max: 27px; --eq-speed: 1s; --tape-delay: -1.6s; --eq-delay: -0.84s; }
.audio-eq span:nth-child(12) { --eq-min: 8px; --eq-max: 30px; --eq-speed: 1.14s; --tape-delay: -1.76s; --eq-delay: -0.92s; }
.audio-eq span:nth-child(13) { --eq-min: 6px; --eq-max: 28px; --eq-speed: 0.86s; --tape-delay: -1.92s; --eq-delay: -1s; }
.audio-eq span:nth-child(14) { --eq-min: 9px; --eq-max: 30px; --eq-speed: 1.2s; --tape-delay: -2.08s; --eq-delay: -1.08s; }
.audio-eq span:nth-child(15) { --eq-min: 5px; --eq-max: 24px; --eq-speed: 0.92s; --tape-delay: -2.24s; --eq-delay: -1.16s; }
.audio-eq span:nth-child(16) { --eq-min: 7px; --eq-max: 30px; --eq-speed: 1.08s; --tape-delay: -2.4s; --eq-delay: -1.24s; }
.audio-eq span:nth-child(17) { --eq-min: 6px; --eq-max: 29px; --eq-speed: 0.9s; --tape-delay: -2.56s; --eq-delay: -1.32s; }
.audio-eq span:nth-child(18) { --eq-min: 8px; --eq-max: 30px; --eq-speed: 1.26s; --tape-delay: -2.72s; --eq-delay: -1.4s; }
.audio-eq span:nth-child(19) { --eq-min: 5px; --eq-max: 23px; --eq-speed: 0.82s; --tape-delay: -2.88s; --eq-delay: -1.48s; }
.audio-eq span:nth-child(20) { --eq-min: 7px; --eq-max: 30px; --eq-speed: 1.1s; --tape-delay: -3.04s; --eq-delay: -1.56s; }
.audio-controls.playing .audio-eq span {
  animation-play-state: running;
}
.audio-controls.playing .audio-eq {
  transform: scaleY(1.75);
}
.audio-controls.playing #audio-toggle .audio-orbit {
  opacity: 0.9;
  animation: slow-rotate 18s linear infinite;
}
.audio-controls.idle .audio-eq {
  transform: scaleY(0.35);
  opacity: 0.75;
}
.audio-controls.idle .audio-eq span {
  animation: none;
  height: var(--eq-min, 8px);
  opacity: 0.6;
}
.audio-eq.live span {
  animation: none;
  height: var(--eq-max, 26px);
  opacity: 0.9;
  transform-origin: bottom center;
  transform: scaleY(var(--eq-scale, 0.2));
  will-change: transform;
}
.meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.badges {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
}
.status-online {
  color: #1c7a4a;
  border-color: #bfe2cb;
  background: #e8f4ed;
}
.status-online::before {
  animation: pulse 1.6s ease infinite;
}
.status-offline {
  color: var(--wine);
  border-color: #e7c1c1;
  background: #f7e8e8;
}
.clients {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.toggle.hidden { display: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .switch {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: var(--switch-track);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}
.toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--cloud);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.toggle input:checked + .switch {
  background: var(--wine);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.toggle input:checked + .switch::after { transform: translateX(22px); }
.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.8s ease both;
}
.info-card:nth-child(1) { animation-delay: 0.16s; }
.info-card:nth-child(2) { animation-delay: 0.22s; }
.info-card:nth-child(3) { animation-delay: 0.28s; }
.info-card h2,
.info-card h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink);
}
.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.info-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.info-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--wine);
  flex-shrink: 0;
}
.stats {
  display: flex;
}
.stats-card {
  width: 100%;
}
.stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stats-range {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}
.stats-body {
  position: relative;
}
#stats-canvas {
  width: 100%;
  height: 120px;
  display: block;
}
.stats-empty {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.schedule-card { gap: 12px; }
.schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.schedule-head .tz {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}
.schedule {
  display: grid;
  gap: 12px;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.schedule-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(25, 18, 14, 0.12);
}
.schedule-item.is-today {
  border-color: rgba(139, 43, 46, 0.35);
  background: rgba(255, 246, 246, 0.9);
}
.schedule-item.is-live {
  border-color: rgba(28, 122, 74, 0.4);
  background: rgba(232, 244, 237, 0.9);
}
.schedule-date {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--panel-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--wine);
  font-weight: 700;
  flex-shrink: 0;
}
.schedule-date strong { font-size: 18px; line-height: 1; }
.schedule-date span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.schedule-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.schedule-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.schedule-time {
  font-size: 12px;
  color: var(--muted);
}
.schedule-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--wine);
}
.schedule-item.is-live .schedule-tag { color: #1c7a4a; }
.schedule-note,
.schedule-empty {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer a {
  color: var(--wine-dark);
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover { text-decoration: underline; }
.debug-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(139, 43, 46, 0.45);
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow: auto;
}
.debug-panel.hidden { display: none; }
.hidden { display: none !important; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(28, 122, 74, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(28, 122, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 122, 74, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes eq {
  0%, 100% { height: var(--eq-min, 8px); opacity: 0.6; }
  50% { height: var(--eq-max, 26px); opacity: 1; }
}
@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes counter-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .top,
  .player-card,
  .info-card {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
  .audio-eq span {
    animation: none;
  }
  .audio-controls.playing #audio-toggle .audio-orbit {
    animation: none;
  }
}
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
  .top-actions { width: 100%; }

}
@media (max-width: 640px) {
  .brand { flex-direction: column; align-items: flex-start; }
  .meta { flex-direction: column; align-items: flex-start; }
  .controls { width: 100%; justify-content: space-between; }
  .badges { width: 100%; }
  .schedule-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .schedule-date {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 10px;
  }
  .schedule-meta { width: 100%; }
  .audio-controls {
    gap: 14px;
  }

  .audio-volume {
    width: min(260px, 80vw);
    justify-content: space-between;
  }
  .audio-volume input[type="range"] {
    width: min(160px, 50vw);
  }
  .audio-only {
    aspect-ratio: 1 / 1;
  }
}
