:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a64;
  --line: #e2e0d8;
  --accent: #c8781a;
  --accent-text: #ffffff;
  --error-bg: #fbe9e7;
  --error-text: #8a1c0f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171716;
    --surface: #222220;
    --text: #ecebe6;
    --muted: #a3a29b;
    --line: #36352f;
    --accent: #e8a24a;
    --accent-text: #1a1206;
    --error-bg: #3a1c17;
    --error-text: #ffb4a6;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
main, .top, footer { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
form { display: flex; gap: 8px; flex-wrap: wrap; }
input {
  font: inherit; padding: 8px 12px; min-width: 0; flex: 1 1 160px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text);
  text-transform: uppercase;
}
input::placeholder { text-transform: none; color: var(--muted); }
button {
  font: inherit; font-weight: 600; padding: 8px 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); cursor: pointer;
}
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-box { padding: 48px 0 24px; }
.hero-box h1 { font-size: 2rem; margin: 0 0 8px; }
.big-search { margin: 24px 0; max-width: 520px; }
.big-search input { font-size: 1.15rem; padding: 12px 14px; }
.big-search button { font-size: 1.05rem; padding: 12px 18px; }
.hint, .muted { color: var(--muted); font-size: 0.92rem; }
.error {
  background: var(--error-bg); color: var(--error-text);
  padding: 10px 14px; border-radius: 8px; max-width: 520px;
}
.player h1 { margin: 24px 0 4px; font-size: 1.7rem; }
.tag { color: var(--muted); font-weight: 400; font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card h2 { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 600; }
.big { font-size: 2.2rem; font-weight: 700; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 12px; }
section h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody th, thead tr th:first-child { text-align: left; font-weight: 500; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
tr.total th, tr.total td { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 4px 18px 12px; margin-top: 32px; }
footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
