:root {
  --bg: #0d1117;
  --surface: #161b22;
  --card: #1c2129;
  --ink: #e6e8eb;
  --ink-2: #9aa4b2;
  --muted: #6b7686;
  --line: #2a313c;
  --accent: #4f8ff7;
  --accent-ink: #0d1117;
  --good: #3fb968;
  --bad: #e05d5d;
  --warn: #d9a13b;
  --radius: 10px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --card: #ffffff;
    --ink: #1a2230;
    --ink-2: #4a5568;
    --muted: #8a94a6;
    --line: #e2e6ec;
    --accent: #2563eb;
    --accent-ink: #ffffff;
    --good: #1e8e4a;
    --bad: #c23c3c;
    --warn: #b07d1e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
code { padding: 1px 6px; }
pre { padding: 12px 14px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }

nav {
  display: flex; align-items: center; gap: 4px;
  padding: 10px max(16px, calc(50vw - 520px));
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
nav .brand {
  font-weight: 700; letter-spacing: .2px; margin-right: 18px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
nav .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
nav a.item {
  color: var(--ink-2); padding: 6px 12px; border-radius: 7px; font-weight: 500;
}
nav a.item:hover { color: var(--ink); text-decoration: none; background: var(--card); }
nav a.item.active { color: var(--ink); background: var(--card); }

main { max-width: 1040px; margin: 0 auto; padding: 28px 16px 64px; }
h1 { font-size: 26px; margin: 8px 0 6px; }
h2 { font-size: 18px; margin: 30px 0 10px; }
.sub { color: var(--ink-2); margin: 0 0 24px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.grid { display: grid; gap: 14px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile .label { color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tile .value { font-size: 30px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 3px; }

.player-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.player-wrap iframe, .player-wrap video, .player-wrap > div.fill {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.placeholder { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }

.tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.tabs button {
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; color: var(--ink-2); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status.ok { color: var(--good); }
.status.down { color: var(--bad); }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
footer { color: var(--muted); font-size: 13px; text-align: center; margin-top: 48px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 9px 16px; border-radius: 8px; font-weight: 600;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
