:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121820;
  --bezel: #1a222c;
  --line: #242e39;
  --text: #e7edf2;
  --muted: #7c8fa0;
  --tally-live: #e14b3d;
  --tally-off: #4a5560;
  --amber: #d9a441;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 3px
    );
}

.console {
  width: min(94vw, 1040px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.console__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.tally {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tally__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tally-off);
  flex-shrink: 0;
}

.tally.is-live .tally__dot {
  background: var(--tally-live);
}

@media (prefers-reduced-motion: no-preference) {
  .tally.is-live .tally__dot {
    animation: tally-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes tally-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 75, 61, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(225, 75, 61, 0); }
}

.tally.is-live { color: var(--tally-live); }
.tally.is-offline { color: var(--muted); }

.console__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.console__meta strong {
  color: var(--amber);
  font-weight: 500;
}

.console__channel {
  color: var(--muted);
}

.screen {
  padding: 18px;
  background: var(--bezel);
}

.screen__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.screen__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.console__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 560px) {
  .console__strip { font-size: 11px; }
  .console__meta { gap: 12px; }
}
