:root {
  --bg: #000000;
  --fg: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #ffb51a;
  --accent-dim: #9a6c00;
  --err: #ff5a5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", "Share Tech Mono", ui-monospace, monospace;
  font-size: 14px;
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0px,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  z-index: 2;
}

#vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px #000, inset 0 -70px 70px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

#slate {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: left;
  background: #000;
  z-index: 2;
  padding: 8vw;
}
#slate[hidden] { display: none; }
.slate-mark {
  color: var(--accent);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.slate-mark::before { content: "> "; }
.slate-title {
  color: var(--fg);
  font-size: clamp(14px, 2.2vw, 22px);
  letter-spacing: 0.16em;
  margin-top: 16px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.slate-sub {
  color: var(--accent);
  letter-spacing: 0.28em;
  margin-top: 18px;
  font-size: 11px;
  opacity: 0.85;
}

#top, #bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  font-size: 13px;
}

#top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
  border-bottom: 1px solid #1a1a1a;
}

#bar {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), transparent);
  justify-content: space-between;
  border-top: 1px solid #1a1a1a;
}

.logo {
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: var(--fg);
}
.logo span { color: var(--accent); }

#clock {
  margin-left: auto;
  color: var(--accent);
  font-size: 16px;
}

#live {
  color: #000;
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.22em;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.28em;
  font-size: 11px;
}
#now .title, #next .title {
  font-size: 15px;
  margin-top: 4px;
  color: var(--fg);
}
#next { text-align: right; max-width: 42%; }
#now { max-width: 52%; }

#unmute {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: inherit;
  letter-spacing: 0.18em;
  padding: 16px 24px;
  border: 1px solid var(--accent);
  background: #000;
  color: var(--accent);
  cursor: pointer;
}
#unmute:hover { background: var(--accent); color: #000; }
#unmute[hidden] { display: none; }

#cc {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 86px;
  font: inherit;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  background: #000;
  color: var(--accent);
  cursor: pointer;
}
#cc.on { background: var(--accent); color: #000; }
#cc[hidden] { display: none; }

body.gate {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: #000;
}
.gate-card {
  width: min(420px, 92vw);
  padding: 28px;
  border: 1px solid var(--accent);
  background: #000;
  display: grid;
  gap: 14px;
}
.gate-copy { color: var(--muted); margin: 0; }
.gate-card input, .gate-card button {
  font: inherit;
  padding: 12px;
  border-radius: 0;
}
.gate-card input {
  background: #000;
  border: 1px solid #333;
  color: var(--accent);
  caret-color: var(--accent);
}
.gate-card input:focus {
  outline: none;
  border-color: var(--accent);
}
.gate-card input::placeholder { color: var(--accent-dim); }
.gate-card button {
  letter-spacing: 0.16em;
  background: #000;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
}
.gate-card button:hover { background: var(--accent); color: #000; }
.err { color: var(--err); margin: 0; }
.admin-link {
  color: var(--accent);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.admin-link:hover { opacity: 1; }
