@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #ffffff;
  --paper-2: #efede8;
  --ink: #1a1814;
  --ink-2: #5e5a52;
  --ink-3: #8f897d;
  --line: #e6e1d6;
  --gold: #c29a3f;
  --gold-ink: #8c6a22;
  --gold-hi: #e2b85c;
  --sand: #f4ecda;
  --black: #000;
  --live: #d4402b;
  --ok: #2f7d4f;
  --r: 14px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px -12px rgba(40, 30, 10, .18);
  --f: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); color: var(--ink); font-size: 15px; line-height: 1.5;
  background: radial-gradient(120% 80% at 50% 0%, var(--paper) 0%, var(--paper-2) 100%) fixed, var(--paper-2);
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.top { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.3px; font-size: 17px; }
.brand img { height: 46px; width: auto; display: block; }
.brand span b { color: var(--gold-hi); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #d9d4c8; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav .sm { display: none; }
.nav a.on { background: linear-gradient(180deg, #f3d58e, #e2b85c); color: #1a1408; }
.lang { display: flex; border: 1px solid #3a352b; border-radius: 999px; padding: 2px; flex: none; }
.lang button { background: none; border: 0; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #bdb6a6; cursor: pointer; }
.lang button.on { background: #fff; color: #000; }
@media (max-width: 860px) {
  .top .wrap { height: 56px; }
  .brand img { height: 40px; }
  .brand span { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: #000; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; margin: 0; border-top: 1px solid #222; }
  .nav a { padding: 8px 2px; font-size: 11.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  .lang { margin-left: auto; }
  .nav .lg { display: none; } .nav .sm { display: inline; }
  .livebar { grid-auto-columns: min(86vw, 340px); }
  body { padding-bottom: 70px; }
}

/* ---------- category bar ---------- */
.cats { display: flex; gap: 8px; padding: 14px 0 4px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.chip.on small { color: #bdb6a6; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(40px, 7vw, 88px); line-height: .95; letter-spacing: -3px; font-weight: 800; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold-hi); display: block; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #d9d4c8; font-weight: 600; }
.hero .meta b { color: #fff; }
.hero .logo { width: 100%; max-width: 360px; justify-self: end; }
.ring { position: absolute; border: 1px solid rgba(226, 184, 92, .35); border-radius: 50%; pointer-events: none; }
.countdown { margin-top: 26px; display: inline-flex; gap: 18px; align-items: baseline; border-top: 1px solid #2c281f; padding-top: 16px; }
.countdown b { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--gold-hi); }
.countdown span { color: #bdb6a6; font-weight: 600; font-size: 13px; margin-left: 4px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; }
  .hero .logo { order: -1; max-width: 150px; justify-self: start; margin-left: -12px; }
}

/* ---------- live strip ---------- */
.livebar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 12px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }

/* ---------- sections ---------- */
main { padding-bottom: 48px; }
.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.sec-h h2 { font-size: 26px; letter-spacing: -.8px; margin: 0; font-weight: 800; }
.sec-h .more { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--gold-ink); text-decoration: none; }
.sec-h .more:hover { text-decoration: underline; }
h3.cat-title { font-size: 20px; letter-spacing: -.5px; margin: 28px 0 10px; font-weight: 800; }
.muted { color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }

.panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.panel-h .tag { margin-left: auto; }

/* ---------- match row ---------- */
.match { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.match:last-child { border-bottom: 0; }
.match .when { font-weight: 800; font-size: 15px; line-height: 1.2; }
.match .when small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-3); }
.match .sides { display: grid; gap: 3px; min-width: 0; }
.match .side { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.match .side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .side.ph .nm { color: var(--ink-3); font-weight: 600; font-style: italic; }
.match .side.win .nm { color: var(--ink); }
.match .side.lose .nm { color: var(--ink-2); font-weight: 600; }
.match .score { display: grid; gap: 3px; text-align: right; font-weight: 800; font-size: 16px; min-width: 26px; }
.match .score .pen { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.match .info { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--gold-ink); white-space: nowrap; }
.tag.grey { background: #f1efea; color: var(--ink-2); }
.tag.live { background: var(--live); color: #fff; }
.tag.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 1px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .tag.live::before { animation: none; } }

/* scoreboard card for live/next */
.board { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; display: block; position: relative; }
.board.is-live { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.board .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; font-weight: 700; padding: 3px 0; }
.board .row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .row b { font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.board .top-l { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.board .top-l .t { font-weight: 800; margin-right: auto; }

/* ---------- schedule board ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.day { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: left; min-width: 92px; }
.day b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.day small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small { color: #bdb6a6; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { white-space: nowrap; flex: none; border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--sand); color: var(--gold-ink); }

.sched { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; }
.sched table { border-collapse: collapse; width: 100%; min-width: calc(80px + var(--cols) * 210px); }
.sched th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); font-weight: 800; }
.sched td { vertical-align: top; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; width: calc((100% - 80px) / var(--cols)); }
.sched td.t { border-left: 0; font-weight: 800; font-size: 17px; padding: 12px; width: 80px; letter-spacing: -.4px; position: sticky; left: 0; background: #fff; }
.cell { display: block; text-decoration: none; border-radius: 10px; padding: 8px 10px; background: #faf8f4; border: 1px solid transparent; }
.cell:hover { border-color: var(--gold); }
.cell.is-live { background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.cell .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-weight: 700; font-size: 14px; }
.cell .r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .r.ph span { color: var(--ink-3); font-style: italic; font-weight: 600; }
.cell .r b { font-weight: 800; }
.cell .meta { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.cell .meta .tag { font-size: 10.5px; padding: 1px 7px; }

/* ---------- standings ---------- */
table.st { width: 100%; border-collapse: collapse; font-size: 14px; }
table.st th { font-size: 12px; color: var(--ink-3); font-weight: 700; text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.st th:nth-child(2) { text-align: left; }
table.st td { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--line); }
table.st tr:last-child td { border-bottom: 0; }
table.st td.pos { width: 34px; font-weight: 800; color: var(--ink-3); }
table.st td.tm { text-align: left; font-weight: 700; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
table.st td.tm a { text-decoration: none; }
table.st td.tm a:hover { text-decoration: underline; }
table.st td.tm.ph { color: var(--ink-3); font-style: italic; font-weight: 600; }
table.st td.pts { font-weight: 800; font-size: 15px; }
table.st tr.q td.pos { color: var(--gold-ink); box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 480px) { table.st .hm { display: none; } }

/* ---------- bracket ---------- */
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 20px; overflow-x: auto; padding: 4px 2px 16px; }
.bcol { display: flex; flex-direction: column; gap: 8px; }
.bstack { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bcol h4 { margin: 0 0 2px; font-size: 14px; font-weight: 800; color: var(--gold-ink); }
.bm { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px 12px; text-decoration: none; display: block; }
.bm.final { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.bm .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 4px 0; font-weight: 700; font-size: 14px; }
.bm .r + .r { border-top: 1px solid var(--line); }
.bm .r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm .r.ph span { color: var(--ink-3); font-style: italic; font-weight: 600; }
.bm .r.lose { color: var(--ink-3); }
.bm .when { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }

/* ---------- scorers ---------- */
.scorers { list-style: none; margin: 0; padding: 0; }
.scorers li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.scorers li:last-child { border-bottom: 0; }
.scorers .pos { font-weight: 800; color: var(--ink-3); }
.scorers .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorers .nm small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12.5px; }
.scorers .g { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.scorers li.lead .pos { color: var(--gold-ink); }
.scorers li.lead .g { color: var(--gold-ink); }

/* ---------- team ---------- */
.team-hero { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
.crest { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); flex: none; }
.team-hero h1 { margin: 0; font-size: clamp(26px, 5vw, 40px); letter-spacing: -1.2px; line-height: 1.05; }
.roster { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 0; }
.roster li { display: flex; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); break-inside: avoid; align-items: center; }
.roster li .no { width: 26px; font-weight: 800; color: var(--gold-ink); }
.roster li .gl { margin-left: auto; font-weight: 800; }
.teams-list a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.teams-list a:last-child { border-bottom: 0; }
.teams-list a:hover { background: #faf8f4; }
.teams-list a small { margin-left: auto; color: var(--ink-3); font-weight: 600; }
.mini-crest { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; flex: none; }

/* ---------- empty ---------- */
.empty { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 22px; }
.empty img { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.empty h3 { margin: 0 0 4px; font-size: 18px; }
.empty p { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .empty { grid-template-columns: 72px 1fr; } .empty img { width: 72px; height: 72px; } }

footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--gold-ink); }
.sponsors { font-weight: 700; color: var(--ink); }

.plink { text-decoration: none; color: inherit; }
.plink:hover { color: var(--gold-ink); text-decoration: underline; }
.kc { display: inline-block; width: 9px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.kc.y { background: #f2c230; }
.kc.r { background: #d4402b; }
