:root {
  --bg: #1b1740;
  --bg2: #2a2466;
  --card: #ffffff14;
  --text: #fff;
  --muted: #c9c4f5;
  --accent: #ffcc33;
  --live: #ff3b5c;
  --ok: #3ddc97;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, var(--bg2), var(--bg) 60%) fixed;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); letter-spacing: .5px; }
h2 { margin: 0 0 10px; font-size: 18px; color: var(--accent); }
.tag { color: var(--muted); margin: 4px 0 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; backdrop-filter: blur(6px); }
button {
  font: inherit; font-weight: 700; color: #231a00; background: var(--accent);
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; min-height: 44px;
}
button.secondary { background: #ffffff26; color: var(--text); }
button.danger { background: var(--live); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--text); background: #00000040;
  border: 2px solid #ffffff30; border-radius: 12px; padding: 10px 12px;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
label { display: block; margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { min-height: 1.4em; color: var(--muted); margin-top: 8px; }
.msg.err { color: #ff9aa8; }

/* On-air light */
.light { width: 18px; height: 18px; border-radius: 50%; background: #666; display: inline-block; vertical-align: middle; margin-right: 8px; }
.light.on { background: var(--live); box-shadow: 0 0 0 0 #ff3b5c99; animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px #ff3b5c00; } 100% { box-shadow: 0 0 0 0 #ff3b5c00; } }
.status { font-size: 22px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .light.on { animation: none; } }

/* Listener */
.listen-card { text-align: center; padding: 32px 16px; }
.big { font-size: 20px; padding: 18px 36px; }
.sched { margin-top: 14px; color: var(--muted); }

/* Meter */
.meter { height: 14px; border-radius: 999px; background: #00000050; overflow: hidden; }
.meter > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--accent), var(--live)); transition: width .06s linear; }

/* Teleprompter */
.prompter {
  height: 42vh; min-height: 220px; overflow: hidden; position: relative;
  background: #000; border-radius: var(--radius); border: 2px solid #ffffff22;
}
.prompter-inner { padding: 40vh 20px; text-align: center; white-space: pre-wrap; line-height: 1.5; font-weight: 700; }
.prompter::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 3px; background: #ffcc3366; pointer-events: none; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
/* Next-show banner */
.banner { text-align: center; border: 2px solid var(--accent); background: #ffcc3322; }
.banner-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.banner-topic { font-size: clamp(20px, 5vw, 28px); font-weight: 800; margin: 6px 0; overflow-wrap: anywhere; }
.banner-time { color: var(--muted); font-size: 16px; }

/* Soundboard */
.pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 84px; border-radius: 16px; background: #ffffff1f; color: var(--text); font-size: 15px;
  border: 2px solid #ffffff2b; padding: 10px 6px;
}
.pad span { font-size: 30px; line-height: 1; }
.pad:active, .pad.hit { background: var(--accent); color: #231a00; transform: scale(.96); }
.hidden { display: none !important; }
audio { width: 100%; margin-top: 10px; }
