:root {
  --bg: #111115;
  --head: #15151b;
  --panel: #1c1c24;
  --panel-2: #24242e;
  --panel-3: #2e2e3a;
  --line: rgba(255, 255, 255, .06);
  --purple: #6d1fb8;
  --purple-2: #8b3be0;
  --purple-dark: #2a0f4a;
  --teal: #2ed3a3;
  --teal-2: #22b88c;
  --green: #4ade80;
  --red: #ef4444;
  --text: #ffffff;
  --muted: #9a9aaa;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 16px 36px rgba(0, 0, 0, .55);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: 14px; line-height: 1.45;
  color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 14px; font-style: normal; font-weight: 400; line-height: 1;
  user-select: none;
}
.ico--glyph { font-family: var(--font); font-weight: 700; font-size: 15px; }
.ico--mono { filter: grayscale(1) brightness(2.4); }

@media (min-width: 1100px) { .mobile-only { display: none !important; } }
@media (max-width: 1099px) { .desktop-only { display: none !important; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 4px;
  font-size: 16px; font-weight: 500; white-space: nowrap; letter-spacing: .02em;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn--outline:hover { background: #fff; color: var(--bg); }
.btn--teal { background: var(--teal); color: #08251c; }
.btn--teal:hover { background: #5fe6bd; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-2); }
.btn--lg { height: 46px; padding: 0 26px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--head); border-bottom: 3px solid var(--purple); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 20px; }
.burger { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; background: var(--panel-2); font-size: 18px; }
.logo { display: flex; flex: none; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a { padding: 8px 12px; font-size: 14.5px; color: #e6e6ee; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--teal); }
.nav a.is-active { color: var(--green); }
.header__auth { display: flex; gap: 10px; }

.subnav { background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; display: flex; align-items: center; height: 58px; padding: 0 20px; font-size: 17px; color: #d9d9e3; white-space: nowrap; transition: color .2s; }
.subnav a:hover { color: #fff; }
.subnav a.is-active { color: #fff; font-weight: 700; }
.subnav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--purple-2); }

.layout { display: grid; grid-template-columns: 370px minmax(0, 1fr) 310px; gap: 14px; align-items: start; width: 100%; padding: 14px 0 30px; }

.left { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 92px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.left > * { flex-shrink: 0; }
.blk { border-radius: var(--radius-sm); background: var(--panel); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.toggle button { height: 50px; border-radius: 6px; font-size: 17px; font-weight: 500; color: #e6e6ee; transition: background .2s; }
.toggle button.is-active { background: #101015; font-weight: 700; color: #fff; }
.fav { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 14px; font-size: 17px; text-align: left; }
.fav__star { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1.5px solid #fff; border-radius: 50%; font-size: 15px; }
.fav__chev { margin-left: auto; font-size: 16px; transition: transform .25s; }
.fav[aria-expanded="true"] .fav__chev { transform: rotate(180deg); }
.fav__list { padding: 0 14px 12px; font-size: 13px; color: var(--muted); }
.fav__list[hidden] { display: none; }
.search { display: flex; align-items: center; min-height: 58px; padding: 0 14px 0 20px; }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: #fff; font-size: 17px; outline: none; }
.search input::placeholder { color: #e6e6ee; }
.search .ico { font-size: 18px; }
.tools { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.select { position: relative; }
.select select { height: 38px; padding: 0 30px 0 10px; border: 0; border-radius: 6px; background: var(--panel-2); color: #fff; font-size: 14.5px; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
.select select option { background: var(--panel-2); }
.select::after { content: "⌄"; position: absolute; right: 10px; top: 50%; margin-top: -12px; font-size: 15px; font-weight: 700; pointer-events: none; }
.iconbtn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; background: var(--panel-2); font-size: 17px; font-weight: 700; transition: background .2s; }
.iconbtn:hover { background: var(--panel-3); }
.tools .iconbtn:first-of-type { margin-left: auto; }

.league { overflow: hidden; border-radius: var(--radius-sm); background: var(--panel); }
.league[hidden] { display: none; }
.league__head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px 0 10px; background: var(--panel-2); font-size: 17px; text-align: left; }
.league__chev { margin-left: auto; font-size: 15px; transition: transform .25s; }
.league.is-closed .league__chev { transform: rotate(180deg); }
.league.is-closed .ev { display: none; }
.flag { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag--sm { width: 18px; height: 18px; }
.flag--ro { background: linear-gradient(90deg, #002b7f 0 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%); }
.flag--ar { background: linear-gradient(180deg, #74acdf 0 33.3%, #fff 33.3% 66.6%, #74acdf 66.6%); }
.flag--br { background: radial-gradient(circle at 50% 50%, #002776 0 22%, transparent 23%), linear-gradient(135deg, transparent 28%, #ffdf00 28% 72%, transparent 72%), linear-gradient(45deg, transparent 28%, #ffdf00 28% 72%, transparent 72%), #009c3b; }
.flag--en { background: linear-gradient(90deg, transparent 40%, #ce1124 40% 60%, transparent 60%), linear-gradient(0deg, transparent 38%, #ce1124 38% 62%, transparent 62%), #fff; }
.flag--es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag--it { background: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.flag--de { background: linear-gradient(180deg, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag--us { background: linear-gradient(90deg, #3c3b6e 0 45%, transparent 45%) 0 0 / 100% 50% no-repeat, repeating-linear-gradient(180deg, #b22234 0 3px, #fff 3px 6px); }
.flag--eu { background: radial-gradient(circle, #ffcc00 0 18%, transparent 19%), #003399; }
.flag--world { background: radial-gradient(circle at 35% 35%, #4ade80, #0e7490); }

.ev { display: block; width: 100%; border-top: 1px solid var(--line); text-align: left; transition: background .2s; }
.ev:hover { background: rgba(255, 255, 255, .02); }
.ev.is-active { box-shadow: inset 4px 0 0 var(--purple-2); background: rgba(139, 59, 224, .08); }
.ev[hidden] { display: none; }
.ev__top { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px 16px; font-size: 14.5px; }
.ev__live { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ev__star { margin-left: auto; font-size: 17px; color: #fff; transition: color .2s, transform .2s; }
.ev__star.is-on { color: #ffc83d; }
.ev__more { font-size: 14px; color: #ddd; }
.ev__body { display: grid; grid-template-columns: minmax(0, 1fr) 28px auto; align-items: center; gap: 8px; padding: 4px 8px 10px 16px; }
.ev__teams { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 14.5px; }
.ev__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev__team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest { flex: none; width: 22px; height: 24px; border-radius: 4px 4px 11px 11px; background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ev__score { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ev__score span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 4px; background: var(--panel-2); font-size: 14px; }
.ev__odds { display: grid; grid-template-columns: repeat(3, 54px); gap: 4px; }
.ev__odds .odd { height: 62px; }
.ev__odds--2 { grid-template-columns: repeat(2, 54px); }

.odd { border-radius: 6px; background: var(--panel-3); font-size: 15px; font-weight: 700; transition: background .15s, color .15s, box-shadow .15s; }
.odd:hover { background: #3a3a48; }
.odd.is-selected { background: var(--purple); color: #fff; box-shadow: inset 0 0 0 1.5px var(--purple-2); }

.center { min-width: 0; }
.sports { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
.sports__track { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.sports__track::-webkit-scrollbar { display: none; }
.sport { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 136px; height: 98px; border-radius: 8px; font-size: 14.5px; color: #e6e6ee; transition: background .2s; }
.sport:hover { background: var(--panel); }
.sport.is-active { background: var(--purple-dark); color: #fff; }
.sport .ico { width: 42px; height: 42px; font-size: 32px; filter: grayscale(1) brightness(2.6); }
.sports__next { position: absolute; right: 0; top: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--panel-2); font-size: 22px; box-shadow: -10px 0 20px var(--bg); }

.board { position: relative; overflow: hidden; border-radius: var(--radius); background: #1e5a24 url("../img/pitch.jpg") center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.board::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 12, .35); }
.board > * { position: relative; }
.board__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.board__time { margin-left: auto; padding: 2px 10px; border-radius: 3px; background: var(--red); font-size: 14px; }
.board__time--pre { background: var(--purple); }
.board__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; }
.board__teams { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.board__teams .ev__team { gap: 14px; }
.board__teams .crest { width: 26px; height: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 16px; align-items: center; text-align: center; font-size: 15px; font-weight: 700; }
.stats > span:nth-child(-n+4) { font-size: 11.5px; font-weight: 400; color: #dfe; }
.stats__sep { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 16px; }
.board__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 12px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.timeline-btn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 4px; background: rgba(255, 255, 255, .25); font-size: 16px; transition: background .2s; }
.timeline-btn:hover { background: rgba(255, 255, 255, .35); }
.timeline { padding: 4px 16px 14px; }
.timeline[hidden] { display: none; }
.timeline ol { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.timeline li { display: flex; gap: 10px; }
.timeline b { min-width: 34px; color: #dfe; }

.mtabs { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px; border-radius: var(--radius-sm); background: var(--panel); overflow-x: auto; scrollbar-width: none; }
.mtabs::-webkit-scrollbar { display: none; }
.mtab { flex: none; height: 38px; padding: 0 15px; border-radius: 6px; background: var(--panel-2); font-size: 15.5px; color: #e6e6ee; transition: background .2s; }
.mtab:hover { background: var(--panel-3); }
.mtab.is-active { background: var(--purple); color: #fff; }
.mtab--icon { width: 40px; padding: 0; }
.mtabs .iconbtn { margin-left: auto; flex: none; }

.market { margin-top: 6px; overflow: hidden; border-radius: var(--radius-sm); background: var(--panel); }
.market[hidden] { display: none; }
.market__head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px 0 10px; font-size: 15.5px; font-weight: 700; text-align: left; }
.market__icons { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 15px; font-weight: 400; }
.market__cash { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-2); color: #08251c; font-size: 12px; font-weight: 900; }
.market__chev { transition: transform .25s; }
.market.is-closed .market__chev { transform: rotate(180deg); }
.market.is-closed .market__body { display: none; }
.market__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 10px 12px; }
.market__body--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 6px; background: var(--panel-2); font-size: 14.5px; text-align: left; transition: background .15s, box-shadow .15s; }
.sel b { flex: none; font-size: 15px; }
.sel span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel:hover { background: var(--panel-3); }
.sel.is-selected { background: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple-2); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 6px; }
.mini { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel); }
.mini__icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 30px; border-radius: 4px; background: var(--panel-2); font-size: 13px; font-weight: 700; color: #ddd; }
.mini__row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.mini__row span:first-child, .mini__row span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__row .crest { width: 18px; height: 20px; }
.mini__score { flex: none; color: var(--purple-2); }
.slip { overflow: hidden; border-radius: var(--radius-sm); background: var(--panel); }
.slip__head { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 14px; background: var(--purple-dark); font-size: 17px; font-weight: 700; }
.slip__count { font-size: 14px; font-weight: 500; }
.slip__clear { position: absolute; right: 14px; font-size: 12px; font-weight: 400; color: #cfc6e8; text-decoration: underline; }
.slip__headwrap { position: relative; }
.slip__close { position: absolute; left: 14px; top: 50%; margin-top: -12px; display: none; font-size: 18px; }
.slip__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; }
.slip__mode { position: relative; }
.slip__mode select { height: 40px; padding: 0 34px 0 12px; border: 0; border-radius: 4px; background: var(--purple); color: #fff; font-size: 17px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.slip__mode::after { content: "⌄"; position: absolute; right: 12px; top: 50%; margin-top: -13px; color: #fff; font-size: 16px; font-weight: 700; pointer-events: none; }
.slip__gear { margin-left: auto; font-size: 20px; filter: grayscale(1) brightness(.4); }
.slip__empty { padding: 26px 18px 28px; text-align: center; }
.slip__empty img { width: 220px; margin: 0 auto 18px; }
.slip__empty p { margin: 0; font-size: 18px; font-weight: 500; }
.slip__empty small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.slip__body { padding: 12px; }
.slip [hidden] { display: none !important; }
.slip__list { list-style: none; margin: 0; padding: 0; }
.slip__item { position: relative; padding: 9px 26px 9px 11px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 3px 0 0 var(--purple-2); }
.slip__item + .slip__item { margin-top: 6px; }
.slip__pick { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; font-weight: 700; }
.slip__pick b { color: var(--teal); }
.slip__match { font-size: 12px; color: var(--muted); }
.slip__remove { position: absolute; top: 7px; right: 8px; font-size: 12px; color: var(--muted); }
.slip__remove:hover { color: var(--red); }
.slip__row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13.5px; }
.slip__stake { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.slip__stake label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.slip__stake input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: #0c0c10; color: #fff; text-align: right; font-weight: 700; outline: none; box-shadow: inset 0 0 0 1px var(--panel-3); }
.slip__stake input:focus { box-shadow: inset 0 0 0 1.5px var(--purple-2); }
.slip__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.slip__quick button { height: 32px; border-radius: 6px; background: var(--panel-2); font-size: 13px; font-weight: 700; }
.slip__quick button:hover { background: var(--panel-3); }
.slip__win b { color: var(--teal); font-size: 16px; }
.slip__submit { width: 100%; margin-top: 12px; }
.slip__warn { margin: 8px 0 0; font-size: 12px; color: #fbbf24; }
.slip__warn[hidden] { display: none; }

.slip-fab { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; border-radius: 8px; background: var(--purple); box-shadow: var(--shadow); font-size: 15px; font-weight: 700; }
.slip-fab[hidden] { display: none; }
.slip-fab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: 8px; padding: 0 7px; border-radius: 12px; background: var(--teal); color: #08251c; font-size: 12px; }

.content {
  min-width: 0;
  margin: 0 0 30px; padding: 34px 36px;
  border-radius: var(--radius); background: var(--panel);
  font-size: 15.5px; line-height: 1.75; color: #d6d6e0;
  overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #fff; font-weight: 700; line-height: 1.3; }
.content h1 { font-size: 30px; margin: 0 0 18px; }
.content h2 { font-size: 23px; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--purple); }
.content h3 { font-size: 19px; margin: 28px 0 12px; color: var(--teal); }
.content h4 { font-size: 17px; margin: 22px 0 10px; }
.content h5, .content h6 { font-size: 15px; margin: 18px 0 8px; }
.content p { margin: 0 0 16px; }
.content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #6ff0c6; }
.content strong, .content b { color: #fff; font-weight: 700; }
.content mark { padding: 0 4px; border-radius: 3px; background: var(--teal); color: #08251c; }
.content small { font-size: 13px; color: var(--muted); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--purple-2); }
.content ol li::marker { color: var(--purple-2); font-weight: 700; }
.content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius); }
.content figure { margin: 24px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--muted); }
.content table {
  width: 100%; margin: 24px 0;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--panel-3); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--panel-2); font-size: 14.5px; line-height: 1.5;
}
.content caption { padding: 0 0 10px; font-size: 13px; color: var(--muted); text-align: left; }
.content th { padding: 12px 14px; text-align: left; font-weight: 700; background: var(--purple); color: #fff; }
.content td { padding: 11px 14px; border-top: 1px solid var(--panel-3); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.content tbody tr:hover { background: rgba(139, 59, 224, .1); }
.content blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--panel-2); font-style: italic; }
.content blockquote p:last-child { margin-bottom: 0; }
.content hr { height: 1px; margin: 32px 0; border: 0; background: var(--panel-3); }
.content code { padding: 2px 6px; border-radius: 4px; background: var(--panel-3); font-size: .9em; }
.content pre { margin: 24px 0; padding: 16px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--bg); }
.content pre code { padding: 0; background: none; }
.content iframe, .content video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 24px 0; border: 0; border-radius: var(--radius); }
.content dl { margin: 0 0 18px; }
.content dt { font-weight: 700; color: #fff; }
.content dd { margin: 0 0 10px 18px; color: var(--muted); }
.content details { margin: 0 0 8px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--panel-2); }
.content summary { cursor: pointer; font-weight: 700; color: #fff; }
.content details[open] summary { margin-bottom: 10px; color: var(--teal); }

.container { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 10px; }

.footer { margin-top: auto; padding: 36px 0 22px; background: var(--head); color: var(--muted); border-top: 3px solid var(--purple); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.4fr; gap: 28px; }
.footer__about { margin: 14px 0; font-size: 13px; }
.footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { font-size: 13.5px; transition: color .2s; }
.footer__list a:hover { color: var(--teal); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--panel-2); font-size: 12.5px; font-weight: 700; color: #fff; }
.orgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-18 { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--purple-2); border-radius: 50%; font-size: 13px; font-weight: 900; color: #fff; }
.org { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 4px; background: var(--panel-2); font-size: 12.5px; font-weight: 700; color: #fff; transition: background .2s; }
.org:hover { background: var(--purple); }
.footer__note { margin: 14px 0 0; font-size: 12.5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }

.drawer { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: min(84vw, 300px); background: var(--head); box-shadow: var(--shadow); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.drawer > * { flex-shrink: 0; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer__top img { height: 32px; }
.drawer__close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--panel-2); font-size: 15px; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.drawer__actions .btn { height: 40px; font-size: 14px; }
.drawer__title { margin: 8px 16px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.drawer__nav { list-style: none; margin: 0; padding: 0 0 10px; }
.drawer__nav a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; transition: background .2s, color .2s; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--panel); color: var(--teal); }
.overlay { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.menu-open, body.slip-open { overflow: hidden; }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .overlay, body.slip-open .overlay { opacity: 1; visibility: visible; }

.to-top {
  position: fixed; right: 18px; bottom: 20px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: #fff; box-shadow: var(--shadow); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, bottom .3s;
}
.to-top:hover { background: var(--purple-2); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
body.has-fab .to-top { bottom: 74px; }

.error-page { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 70px 16px; text-align: center; }
.error-page__code { display: flex; align-items: center; gap: .05em; font-size: clamp(100px, 18vw, 180px); font-weight: 900; font-style: italic; line-height: 1; }
.error-ball {
  width: .66em; height: .66em; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #111 0 14%, transparent 15%), radial-gradient(circle at 18% 30%, #111 0 9%, transparent 10%), radial-gradient(circle at 82% 30%, #111 0 9%, transparent 10%), radial-gradient(circle at 30% 85%, #111 0 9%, transparent 10%), radial-gradient(circle at 70% 85%, #111 0 9%, transparent 10%), radial-gradient(circle at 35% 30%, #fff, #c9c9c9);
  box-shadow: 0 0 0 .04em var(--purple-2), 0 16px 34px rgba(0, 0, 0, .5);
  animation: roll 4s linear infinite;
}
@keyframes roll { to { transform: rotate(360deg); } }
.error-page h1 { margin: 24px 0 10px; font-size: clamp(24px, 4vw, 32px); }
.error-page p { max-width: 520px; margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.error-page__links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--panel); font-size: 13px; }
.error-page__links a:hover { color: var(--teal); }

.page--single { max-width: 1100px; padding-top: 20px; }

@media (max-width: 1600px) {
  .layout { grid-template-columns: 330px minmax(0, 1fr) 290px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
  .sport { width: 112px; }
}

@media (max-width: 1360px) {
  .layout { grid-template-columns: 320px minmax(0, 1fr); }
  .right { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .nav { display: none; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1099px) {
  .header__inner { gap: 12px; padding: 0 12px; height: 56px; }
  .logo img { height: 32px; }
  .header__auth { margin-left: auto; }
  .header__auth .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .subnav a { height: 48px; padding: 0 14px; font-size: 15px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
  .center { order: 1; }
  .left { order: 2; position: static; max-height: none; overflow: visible; padding-right: 0; }
  .right { order: 0; display: block; }
  .mini { display: none; }
  .slip {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    max-height: 84vh; overflow-y: auto; border-radius: 12px 12px 0 0;
    transform: translateY(105%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  body.slip-open .slip { transform: none; visibility: visible; }
  .slip__close { display: flex; }
  .sports__next { display: none; }
  .sport { width: 96px; height: 84px; font-size: 13px; }
  .sport .ico { width: 34px; height: 34px; font-size: 26px; }
}

@media (max-width: 768px) {
  .content { padding: 22px 16px; font-size: 15px; line-height: 1.7; }
  .content h1 { font-size: 25px; }
  .content h2 { font-size: 20px; margin-top: 28px; }
  .content h3 { font-size: 17.5px; }
  .content h4 { font-size: 16px; }
  .content table {
    display: block; width: 100%; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; font-size: 14px;
  }
  .content th, .content td { padding: 10px 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .market__body { grid-template-columns: minmax(0, 1fr); }
  .market__body--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .board__main { grid-template-columns: minmax(0, 1fr); }
  .stats { justify-content: start; }
  .board__foot { flex-wrap: wrap; }
  .mtab { height: 34px; padding: 0 12px; font-size: 14px; }
  .ev__odds { grid-template-columns: repeat(3, 48px); }
  .ev__odds--2 { grid-template-columns: repeat(2, 48px); }
  .ev__odds .odd { height: 56px; font-size: 14px; }
  .toggle button { height: 44px; font-size: 15px; }
  .fav, .search { min-height: 50px; }
  .search input, .fav { font-size: 15px; }
  .league__head { font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 400px) {
  .logo img { height: 26px; }
  .header__auth { gap: 6px; }
  .header__auth .btn { height: 34px; padding: 0 10px; font-size: 13px; }
  .burger { width: 34px; height: 34px; }
  .ev__body { padding-left: 10px; gap: 6px; }
  .ev__odds { grid-template-columns: repeat(3, 44px); gap: 3px; }
  .ev__odds--2 { grid-template-columns: repeat(2, 44px); }
  .ev__teams, .ev__top { font-size: 13.5px; }
}

@media (max-width: 340px) {
  .header__auth .btn--outline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.left-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 14px; }
.left-empty[hidden] { display: none; }
.slip__head { margin: 0; }
button.ev__teams { text-align: left; }
.ev__teams:hover .ev__team span:last-child { color: var(--teal); }
.fav__list div { padding: 4px 0; color: #e6e6ee; }
