:root {
  --accent: #d7263d;
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1e222b;
  --line: #2a2f3a;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --win: #2fbf71;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-size: 16px; color: #fff; }
.tagline { margin: 0; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-top: 10px; padding-bottom: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.chip { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search { flex: 1 1 200px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; min-width: 0; }

h2.section { font-size: 18px; margin: 22px 0 10px; }
h3.sub { font-size: 15px; margin: 18px 0 8px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.event { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; overflow: hidden; }
.event > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.event > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.date { text-align: center; background: var(--panel2); border-radius: 10px; padding: 6px 0; line-height: 1.15; }
.date b { display: block; font-size: 20px; }
.date span { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ev-name { font-weight: 700; }
.ev-meta { color: var(--muted); font-size: 13px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.badge.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.card { border-top: 1px solid var(--line); padding: 4px 14px 12px; }

.fight { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fight:last-child { border-bottom: 0; }
.f { min-width: 0; }
.f.right { text-align: right; }
.f .n { font-weight: 600; overflow-wrap: anywhere; }
.f .r { color: var(--muted); font-size: 12px; }
.f.win .n { color: var(--win); }
.f.win .n::after { content: " ✓"; }
.f.right.win .n::after { content: ""; }
.f.right.win .n::before { content: "✓ "; }
.rk { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); margin: 0 5px; vertical-align: 1px; }
.f img { width: 16px; height: 11px; object-fit: cover; vertical-align: -1px; margin: 0 4px; border-radius: 2px; }
.mid { text-align: center; font-size: 12px; color: var(--muted); max-width: 120px; }
.mid b { display: block; color: var(--text); font-size: 12px; }

.tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.champ td { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 14px; }

.news { list-style: none; padding: 0; margin: 0; }
.news li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; }
.news a { display: block; padding: 12px 14px; text-decoration: none; }
.news a:hover .t { text-decoration: underline; }
.news .t { font-weight: 600; }
.news .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; margin-right: 6px; background: var(--panel2); border: 1px solid var(--line); }

.src { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; margin: 10px 0; }
.src ul { padding-left: 18px; margin: 6px 0; }
.src li { margin: 4px 0; }

.state { padding: 30px 0; text-align: center; color: var(--muted); }
.err { color: #ff8a8a; }
.btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; cursor: pointer; }

.foot { color: var(--muted); font-size: 12px; padding-top: 30px; padding-bottom: 40px; }

@media (max-width: 560px) {
  .event > button { grid-template-columns: 54px 1fr; }
  .event > button .badge { grid-column: 2; justify-self: start; }
  .tagline { display: none; }
  .fight { grid-template-columns: 1fr 70px 1fr; gap: 6px; }
  .mid { max-width: 70px; }
}
