/* Electric Basement TV — reference channel styling.
   Late-night 90s-TV aesthetic. The design overhaul can replace this wholesale;
   only the element ids in channel.js are load-bearing. */

:root {
  --eb-bg: #06070a;
  --eb-green: #38e07a;
  --eb-red: #ff3b3b;
  --eb-cyan: #36d7d7;
  --eb-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, #120407 0%, transparent 60%),
    linear-gradient(160deg, #06070a, #0a0204 45%, #020807);
  color: var(--eb-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.eb-shell { max-width: 1100px; margin: 0 auto; padding: 28px 22px 60px; }

/* Header */
.eb-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eb-badge {
  font-weight: 900; font-size: 12px; letter-spacing: 1px;
  padding: 6px 10px; background: var(--eb-green); color: #000; border-radius: 4px;
}
.eb-badge.is-live { background: var(--eb-red); color: #fff; }
.eb-loc { font-size: 12px; font-weight: 700; color: var(--eb-green); letter-spacing: 1px; }
.eb-wordmark {
  flex-basis: 100%; margin: 10px 0 0; font-size: clamp(34px, 7vw, 54px);
  font-weight: 900; line-height: 0.95; letter-spacing: -1px;
}

/* Monitor */
.eb-monitor { position: relative; margin-top: 22px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: #000; aspect-ratio: 16 / 9; }
.eb-monitor video { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-monitor-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.eb-now-type { font-size: 12px; font-weight: 800; color: var(--eb-green); letter-spacing: 1px; }
.eb-now-title { margin: 6px 0 2px; font-size: clamp(20px, 3.4vw, 30px); font-weight: 900;
  font-family: "Courier New", monospace; }
.eb-status { margin: 0; font-size: 12px; color: rgba(255,255,255,0.6); }

/* Panels */
.eb-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.eb-panel { padding: 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; min-height: 90px; }
.eb-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 1px; color: var(--eb-green); }
.eb-eyebrow.eb-cyan { color: var(--eb-cyan); }
.eb-panel-title { margin: 10px 0 0; font-size: 18px; font-weight: 800; }

/* Programming log */
.eb-loghost { margin-top: 24px; }
.eb-log { margin-top: 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  background: rgba(0,0,0,0.32); overflow: hidden; }
.eb-log-row { display: flex; align-items: baseline; gap: 14px; padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08); }
.eb-log-row:last-child { border-bottom: 0; }
.eb-log-time { width: 64px; color: var(--eb-green); font: 700 12px "Courier New", monospace; }
.eb-log-title { flex: 1; font-weight: 700; font-size: 14px; }
.eb-log-type { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Full-screen takeover */
.eb-takeover { position: fixed; inset: 0; z-index: 50; display: none; background: #000; }
.eb-takeover.is-active { display: block; }
.eb-takeover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,59,59,0.28), transparent 35%, rgba(0,0,0,0.6));
  pointer-events: none;
}
.eb-takeover-bar { position: absolute; top: 18px; left: 22px; right: 22px; display: flex;
  align-items: center; gap: 10px; z-index: 2; }
.eb-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--eb-red);
  animation: eb-pulse 1.4s ease-in-out infinite; }
.eb-live-word { font-weight: 900; font-size: 16px; }
.eb-takeover-bar .eb-loc { margin-left: auto; color: rgba(255,255,255,0.7); }
.eb-takeover-caption { position: absolute; left: 22px; right: 22px; bottom: 26px; z-index: 2; }
.eb-signalbreak { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--eb-red); }
.eb-takeover-title { margin: 8px 0 6px; font-size: clamp(26px, 5vw, 40px); font-weight: 900;
  font-family: "Courier New", monospace; }
.eb-takeover-sub { margin: 0; color: rgba(255,255,255,0.75); font-size: 14px; }
.eb-scanlines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.18;
  background: repeating-linear-gradient(to bottom, #000 0 1px, transparent 1px 3px); }

@keyframes eb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 640px) { .eb-panels { grid-template-columns: 1fr; } }
