:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2ea043;
  --accent-h: #3fb950;
  --danger: #da3633;
  --live: #f85149;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wrap { width: 100%; max-width: 920px; padding: 32px 20px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 28px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
label { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
input[type=text] {
  width: 100%; padding: 11px 13px; font-size: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: ui-monospace, monospace;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > div { flex: 1; min-width: 180px; }
button {
  padding: 11px 18px; font-size: .95rem; font-weight: 600;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: white; transition: background .15s;
}
button:hover { background: var(--accent-h); }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
button.danger { background: var(--danger); }
button:disabled { opacity: .4; cursor: not-allowed; }
video {
  width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16/9;
  border: 1px solid var(--border);
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { display: block; text-decoration: none; color: inherit; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; color: var(--live);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.status { font-size: .9rem; color: var(--muted); margin-top: 12px; min-height: 1.2em; }
.mono { font-family: ui-monospace, monospace; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
a { color: var(--accent-h); }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
