:root {
  --bg: #0e0f13;
  --panel: #1a1d24;
  --fg: #e7e9ee;
  --muted: #8b90a0;
  --accent: #4f8cff;
  --live: #ff4d4f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #23262f;
}

h1 { font-size: 18px; margin: 0; font-weight: 600; }

.status { color: var(--muted); font-size: 13px; }

main { padding: 24px; max-width: 1100px; margin: 0 auto; }

.hidden { display: none !important; }

/* ---- stream list ---- */
.stream-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.stream-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid #23262f;
  border-radius: 10px;
  padding: 12px 14px;
}

.stream-list a {
  color: var(--fg);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.stream-list a:hover { color: var(--accent); }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

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

/* ---- player ---- */
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--accent); }

.player-wrap {
  position: relative;
  margin-top: 16px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

video { width: 100%; height: 100%; display: block; background: #000; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #23262f;
  color: var(--accent);
}
