:root {
  --bg: #0e0e10;
  --card: #18181b;
  --line: #2f2f35;
  --text: #efeff1;
  --muted: #adadb8;
  --accent: #9147ff;
  --red: #eb0400;
  --green: #00c853;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, sans-serif;
}
h1 { margin: 0 0 16px; }
h2 { margin: 0 0 12px; font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.big { font-size: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.running { color: var(--green); }
.live-badge { display: inline-block; background: var(--red); color: #fff; border-radius: 4px; padding: 0 6px; font-size: .8rem; font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.row > .grow { flex: 1; min-width: 0; }
ol, ul { margin: 0; padding-left: 1.4em; }
li { padding: 4px 0; }
input, select, button { font: inherit; border-radius: 6px; border: 1px solid var(--line); padding: 6px 10px; }
input, select { background: var(--bg); color: var(--text); }
button { background: var(--accent); color: #fff; border: none; cursor: pointer; }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .5; cursor: default; }
button.stop { background: var(--red); }
.clip iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.clip { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Menü */
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Rangliste */
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list .pos { width: 2.5em; flex: none; text-align: center; font-weight: 700; color: var(--muted); }
.rank-list .name { flex: 2 1 0; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .bar { flex: 1 1 0; min-width: 40px; max-width: 220px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rank-list .bar span { display: block; height: 100%; background: var(--accent); }
.rank-list .cm { width: 4.5em; flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wide { width: 100%; margin-bottom: 12px; }
