/* Ninety+ design tokens: midnight, mist and signal lime. */
:root {
  --bg: #0A0D12;
  --ink: #12161D;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --solid: #12161D;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .17);
  --text: #F2F5F8;
  --text-2: #C2CAD5;
  --muted: #8892A2;
  --gold: #C6F432;            /* accent */
  --gold-ink: #0A0E13;
  --gold-soft: rgba(198, 244, 50, .12);
  --live: #FF5C6C;
  --live-soft: rgba(255, 92, 108, .14);
  --win: #3DDC84;
  --draw: #7F8898;
  --loss: #FF5C6C;
  --yellow: #FFC83D;
  --aur-1: rgba(198, 244, 50, .07);
  --aur-2: rgba(56, 132, 255, .13);
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --r: 20px;
  --r-sm: 12px;
  --serif: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;      /* display + numerals */
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: 66px;
  --rail: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F4F7;
  --ink: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: rgba(14, 24, 40, .05);
  --surface-3: rgba(14, 24, 40, .09);
  --solid: #FFFFFF;
  --line: rgba(14, 24, 40, .1);
  --line-2: rgba(14, 24, 40, .2);
  --text: #0D1218;
  --text-2: #3A4450;
  --muted: #647082;
  --gold: #3C7A00;
  --gold-ink: #FFFFFF;
  --gold-soft: rgba(96, 160, 0, .13);
  --live: #DE2439;
  --live-soft: rgba(222, 36, 57, .09);
  --win: #12924B;
  --loss: #DE2439;
  --yellow: #E0A200;
  --aur-1: rgba(198, 244, 50, .3);
  --aur-2: rgba(56, 132, 255, .12);
  --shadow: 0 30px 80px rgba(20, 30, 50, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--gold-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; font-optical-sizing: auto; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Atmosphere */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 12% -8%, var(--aur-1), transparent 70%),
    radial-gradient(55vw 55vh at 96% 4%, var(--aur-2), transparent 70%),
    radial-gradient(70vw 50vh at 50% 110%, var(--aur-1), transparent 70%);
}
.aurora::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Pointer-follow glow */
.glow { position: relative; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--gold-soft), transparent 70%); }
.glow:hover::after { opacity: 1; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 max(18px, env(safe-area-inset-left));
  background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: radial-gradient(120% 120% at 22% 12%, #E2FF7A 0%, #C6F432 46%, #A9D61C 100%); color: #0A0E13; display: inline-flex; align-items: center; justify-content: center; font: 800 18px/1 var(--serif); letter-spacing: -.055em; box-shadow: inset 0 -1px 2px rgba(0,0,0,.12), 0 4px 14px -6px rgba(198,244,50,.55); transition: transform .4s var(--ease); -webkit-font-smoothing: antialiased; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-mark { position: relative; font-size: 22px; letter-spacing: 0; }
.brand-mark .bm-ball { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: url('/icons/ball.svg?v=sy2') center / cover; box-shadow: 0 0 0 1.5px #C6F432; }
.brand-name { font: 700 20px/1 var(--serif); letter-spacing: -.02em; }
.brand-name span { color: var(--gold); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.seg a { height: 34px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: color .2s, background .25s var(--ease); }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--text); color: var(--bg); }
.seg svg.i { width: 15px; height: 15px; }
.search { flex: 1; min-width: 0; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--gold); background: var(--surface-2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 600 12px var(--sans); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s, transform .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn[aria-pressed="true"] { color: var(--gold); }
.only-mobile { display: none; }
.pulse { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.pulse b { color: var(--text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot.on { box-shadow: 0 0 0 0 var(--live); animation: ping 1.8s ease-out infinite; }
.dot.off { background: var(--muted); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* Sports rail */
.sports { position: sticky; top: var(--top); z-index: 29; height: var(--rail); display: flex; align-items: center; gap: 4px; padding: 0 max(14px, env(safe-area-inset-left)); overflow-x: auto; scrollbar-width: none;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.sports::-webkit-scrollbar { display: none; }
.sp { position: relative; height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.sp:hover { color: var(--text); background: var(--surface); }
.sp.on { color: var(--text); }
.sp.on svg { color: var(--gold); }
.sp.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -7px; height: 2px; border-radius: 2px; background: var(--gold); animation: grow .4s var(--ease); }

/* Layout */
.app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1600px; margin: 0 auto; padding: 16px; }
.main { min-width: 0; outline: 0; }
.sidebar { min-width: 0; }
.app.news { max-width: 1180px; }
.app.news .sidebar, .app.news .toolbar, .app.news .detail:not(.open) { display: none; }

/* Sidebar (mobile: chips) */
.side-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.side-list::-webkit-scrollbar { display: none; }
.side-title { display: none; }
.lg-item { display: flex; align-items: center; gap: 9px; flex: none; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--text-2); transition: background .2s, border-color .2s, color .2s; }
.lg-item:hover { color: var(--text); border-color: var(--line-2); }
.lg-item.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.lg-name small { display: none; }
.lg-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }
.lg-all-ico { width: 24px; height: 24px; display: grid; place-items: center; }
.pin-btn { display: none; }

/* Crests & avatars */
.crest { width: 24px; height: 24px; object-fit: contain; flex: none; }
.crest.fb { display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font: 700 10px/1 var(--sans); letter-spacing: .02em; }
.lg-logo { background: #fff; border-radius: 7px; padding: 2px; }
.crest.flag { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
:root:not([data-theme="light"]) img.crest:not(.lg-logo):not(.flag) { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)); }

/* Toolbar */
.toolbar { padding: 2px 0 12px; }
.datebar { display: flex; align-items: center; gap: 4px; }
.days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; min-width: 0; }
.day { height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: background .25s var(--ease), color .2s; }
.day b { font: 600 22px/1 var(--serif); color: var(--text-2); letter-spacing: 0; }
.day:hover { background: var(--surface); }
.day.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold); }
.day.sel b { color: var(--text); font-weight: 600; }
.day.today b::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 3px auto 0; }
.date-pick { position: relative; }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.filters { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 15px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip:active { transform: scale(.96); }
.chip.sel { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip .count { font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }
.chip svg.i { width: 14px; height: 14px; }
.chip.sel .dot { background: currentColor; animation: none; }

/* Section label — editorial serif */
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 22px 4px 12px; }
.section-h h2 { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; }
.section-h span { font-size: 13px; color: var(--muted); }
.section-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); align-self: center; }
.section-h .dot { align-self: center; }

/* Spotlight hero */
.hero { display: block; width: 100%; text-align: left; border-radius: 26px; padding: 22px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(70% 130% at 0% 0%, color-mix(in srgb, var(--ca, var(--gold)) 34%, transparent), transparent 62%),
    radial-gradient(70% 130% at 100% 100%, color-mix(in srgb, var(--cb, #7A5CBE) 34%, transparent), transparent 62%),
    var(--surface);
  transition: transform .35s var(--ease), border-color .25s; }
.hero:hover { transform: translateY(-2px); border-color: var(--line-2); }
.hero-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.hero-top .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.badge.live { background: var(--live-soft); color: var(--live); }
.hero-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 22px 0 16px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.hero-team .crest { width: 68px; height: 68px; transition: transform .5s var(--ease); }
.hero:hover .hero-team .crest { transform: scale(1.07) rotate(-2deg); }
.hero:hover .hero-team:last-child .crest { transform: scale(1.07) rotate(2deg); }
.hero-team .crest.fb { font-size: 18px; }
.hero-team b { font: 600 19px/1.2 var(--serif); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hero-team small { color: var(--muted); font-size: 13px; }
.hero-score { font: 600 clamp(52px, 9vw, 84px)/1 var(--serif); letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums lining-nums; }
.hero-score i { font-style: normal; color: var(--gold); font-size: .42em; transform: translateY(-.1em); }
.hero-score.ko { font-size: clamp(34px, 6vw, 52px); }
.hero-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); min-height: 18px; }
.hero-foot span { display: inline-flex; align-items: center; gap: 6px; }
.hero-foot svg.i { width: 13px; height: 13px; color: var(--gold); }

/* Live strip */
.feat { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.feat-card { scroll-snap-align: start; text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); display: grid; gap: 10px; transition: transform .3s var(--ease), border-color .2s; }
.feat-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.feat-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.feat-top .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-top .badge { padding: 3px 9px; font-size: 12.5px; }
.feat-row { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.feat-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-row b { font: 600 21px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; color: var(--live); }

/* Groups & rows */
.group { border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; overflow: hidden; background: var(--surface); }
.group-h { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; min-height: 58px; border-bottom: 1px solid var(--line); }
.group-h .gtitle { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-align: left; }
.group-h h3 { font: 600 16px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.group-h small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.group-h a.gtitle:hover h3 { color: var(--gold); }
.group-h.solo { border-bottom: 0; }
.link-btn { height: 36px; padding: 0 12px; border-radius: 999px; color: var(--text-2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.link-btn:hover { background: var(--surface-2); color: var(--text); }
.star { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; transition: color .2s, background .2s, transform .3s var(--ease); }
.star:hover { color: var(--text); background: var(--surface-2); }
.star.on { color: var(--gold); }
.star.on svg { fill: currentColor; animation: starpop .45s var(--ease); }
@keyframes starpop { 0% { transform: scale(.4) rotate(-30deg); } 60% { transform: scale(1.25) rotate(8deg); } }
.star:active { transform: scale(.85); }

.row { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 46px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); transition: background .2s; }
.row:last-child { border-bottom: 0; }
.row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--gold); transform: scaleY(0); transition: transform .3s var(--ease); }
.row:hover { background: var(--surface); }
.row.sel { background: var(--surface-2); }
.row.sel::before, .row:hover::before { transform: scaleY(1); }
.row-main { position: absolute; inset: 0 46px 0 0; z-index: 1; }
.row-main:focus-visible { outline-offset: -3px; }
.st { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; line-height: 1.25; }
.st.live { color: var(--live); }
.teams { display: grid; gap: 7px; min-width: 0; padding: 12px 0; }
.t { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 600; color: var(--text); transition: transform .3s var(--ease); }
.row:hover .t { transform: translateX(3px); }
.t .crest { width: 22px; height: 22px; }
.t .crest.fb { font-size: 8.5px; }
.t .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t small { color: var(--muted); font-weight: 500; font-size: 12.5px; flex: none; }
.t.lose { color: var(--muted); font-weight: 500; }
.rc { width: 8px; height: 11px; border-radius: 2px; background: var(--live); flex: none; }
.sc { display: grid; gap: 7px; padding: 0 14px 0 10px; text-align: right; font: 600 19px/22px var(--serif); font-variant-numeric: tabular-nums lining-nums; min-width: 36px; }
.sc > span { display: flex; justify-content: flex-end; align-items: baseline; gap: 9px; }
.sc .lose { color: var(--muted); font-weight: 400; }
.sc.live { color: var(--live); }
.sc sub { font: 600 11px var(--sans); color: var(--muted); }
.sc .ln { font: 500 13.5px var(--sans); color: var(--muted); min-width: 9px; text-align: center; }
.sc .ln.w { color: var(--text-2); font-weight: 700; }
.sc .wmark { font: 700 12px var(--sans); color: var(--gold); }
.row .star { position: relative; z-index: 2; }
.row.goal { animation: goalflash 6s ease-out; }
@keyframes goalflash { 0%, 30% { background: var(--gold-soft); } 100% { background: transparent; } }

/* Ranked events (motorsport, golf) */
.rk { display: block; width: 100%; text-align: left; padding: 6px 16px 12px; }
.rk-row { display: grid; grid-template-columns: 30px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rk-row:last-child { border-bottom: 0; }
.rk-row .pos { font: 600 17px var(--serif); color: var(--muted); text-align: center; }
.rk-row.p1 .pos { color: var(--gold); }
.rk-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row .v { font: 600 16px var(--serif); font-variant-numeric: tabular-nums lining-nums; color: var(--text-2); }
.rk-more { font-size: 13px; color: var(--gold); font-weight: 600; padding: 8px 0 0; }

/* States */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); margin-top: 14px; }
.empty h3 { color: var(--text); font: 600 22px var(--serif); margin: 12px 0 6px; }
.empty .btn { margin-top: 16px; }
.empty svg.i { width: 30px; height: 30px; color: var(--gold); }
.btn { height: 42px; padding: 0 20px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform .2s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sk { border-radius: var(--r); margin-top: 14px; height: 180px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.foot { color: var(--muted); font-size: 13px; padding: 36px 4px 48px; text-align: center; }
.foot em { font: 700 15px var(--serif); color: var(--text-2); }

/* Tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; overflow: hidden; background: var(--surface); }
.table-wrap > h4 { padding: 14px 16px; font: 600 17px var(--serif); border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 11px 7px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 7px; text-align: center; border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--surface); }
.tbl .tl { text-align: left; }
.tbl td.pos { width: 42px; position: relative; font: 600 16px var(--serif); color: var(--text); }
.tbl td.pos i { position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; }
.tbl td.team { min-width: 150px; }
.tbl td.team div { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.tbl td.team .crest { width: 20px; height: 20px; }
.tbl td.pts { font: 600 16px var(--serif); color: var(--text); }
.tbl tr.hl td { background: var(--gold-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }

/* News */
.news-lead { display: grid; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .35s var(--ease); }
.news-lead:hover { border-color: var(--line-2); transform: translateY(-2px); }
.news-lead .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-lead img, .ncard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-lead:hover img, .ncard:hover img { transform: scale(1.045); }
.news-lead .tx { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.news-lead h2 { font: 600 clamp(24px, 3.4vw, 38px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.news-lead p { color: var(--text-2); font-size: 16px; max-width: 60ch; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: flex; gap: 10px; align-items: center; }
.kicker span { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.ncard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .35s var(--ease); }
.ncard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ncard .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ncard .tx { padding: 14px 16px 18px; display: grid; gap: 8px; }
.ncard h3 { font: 600 18px/1.22 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.ncard p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read { font-size: 13.5px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.read svg.i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
a:hover .read svg.i { transform: translate(3px, -3px); }
.stories a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stories a:last-child { border-bottom: 0; }
.stories img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.stories b { font: 600 16px/1.25 var(--serif); display: block; transition: color .2s; }
.stories a:hover b { color: var(--gold); }
.stories small { color: var(--muted); font-size: 12.5px; }

/* Detail panel */
.detail { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.detail.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 4, 8, .72); }
.d-head { padding: 8px 14px 20px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--ca, var(--gold)) 30%, transparent), transparent 60%),
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--cb, #7A5CBE) 30%, transparent), transparent 60%),
    var(--solid); }
.d-bar { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.d-bar .lname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.d-bar .lname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; margin-top: 10px; }
.d-team { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; min-width: 0; }
.d-team .crest { width: 64px; height: 64px; }
.d-team .crest.fb { font-size: 17px; }
.d-team .nm { font: 600 17px/1.2 var(--serif); }
.d-team .rec { font-size: 12.5px; color: var(--muted); }
.d-team .fav { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.d-team .fav:hover { background: var(--surface-2); }
.d-team .fav svg.i { width: 12px; height: 12px; }
.d-team .fav.on { color: var(--gold); border-color: var(--gold); }
.d-team .fav.on svg { fill: currentColor; }
.d-mid { text-align: center; padding-top: 8px; }
.d-mid .big { font: 600 60px/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; display: flex; gap: 10px; justify-content: center; align-items: center; }
.d-mid .big i { font-style: normal; color: var(--gold); font-size: 26px; }
.d-mid .ko { font: 600 36px/1.2 var(--serif); }
.d-mid .state { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.d-mid .state.live { background: var(--live-soft); color: var(--live); }
.d-mid .pens { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form { display: flex; gap: 3px; justify-content: center; }
.form i { width: 17px; height: 17px; border-radius: 50%; font: 700 10px/17px var(--sans); font-style: normal; text-align: center; color: #fff; }
.form .W { background: var(--win); color: #06281A; } .form .D { background: var(--draw); } .form .L { background: var(--loss); }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.scorers div:first-child { text-align: right; }
.scorers p { line-height: 1.7; }
.tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 2px; padding: 0 10px; background: var(--solid); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; height: 48px; padding: 0 13px; font-weight: 600; font-size: 14px; color: var(--muted); flex: none; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .35s var(--ease); }
.tab.sel { color: var(--text); }
.tab.sel::after { transform: scaleX(1); }
.d-body { padding: 16px 14px 44px; animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; background: var(--surface); }
.card > h4 { font: 600 17px var(--serif); margin-bottom: 14px; }
.note { color: var(--muted); text-align: center; padding: 30px 12px; }
.d-empty { padding: 26px 18px; }
.d-empty .intro { text-align: center; padding: 26px 10px 30px; color: var(--muted); }
.d-empty .intro svg.i { width: 34px; height: 34px; color: var(--gold); margin-bottom: 10px; }
.d-empty .intro h3 { font: 600 24px var(--serif); color: var(--text); margin-bottom: 6px; }

/* Timeline */
.tl-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 8px; padding: 7px 0; }
.tl-min { text-align: center; font: 600 15px var(--serif); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 0; }
.ev { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ev.home { flex-direction: row-reverse; text-align: right; }
.ev b { display: block; font-weight: 600; font-size: 14px; }
.ev small { display: block; color: var(--muted); font-size: 12.5px; }
.ev-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.ev-ico svg.i { width: 15px; height: 15px; }
.ev-ico.goal { background: var(--gold); color: var(--gold-ink); }
.ev-ico.sub { color: var(--muted); }
.card-y, .card-r { width: 10px; height: 14px; border-radius: 2px; background: var(--yellow); }
.card-r { background: var(--live); }
.tl-div { text-align: center; font: 600 15px var(--serif); color: var(--muted); padding: 8px 0; display: flex; align-items: center; gap: 12px; }
.tl-div::before, .tl-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.info { display: grid; gap: 11px; }
.info div { display: flex; justify-content: space-between; gap: 12px; }
.info span { color: var(--muted); }
.info b { font-weight: 600; text-align: right; }

/* Stats */
.poss { margin-bottom: 20px; }
.poss-bar { display: flex; height: 38px; border-radius: 999px; overflow: hidden; font: 600 18px/38px var(--serif); border: 1px solid var(--line); }
.poss-bar span:first-child { background: var(--gold); color: var(--gold-ink); padding-left: 14px; text-align: left; }
.poss-bar span:last-child { background: var(--surface-2); color: var(--text); padding-right: 14px; text-align: right; flex: 1; }
.stat { margin-bottom: 14px; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 7px; gap: 8px; }
.stat-top b { font: 600 17px var(--serif); min-width: 40px; font-variant-numeric: tabular-nums lining-nums; }
.stat-top b:last-child { text-align: right; }
.stat-top span { color: var(--text-2); text-align: center; }
.stat-top b.lead { color: var(--gold); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bars div { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: flex; }
.bars div:first-child { justify-content: flex-end; }
.bars i { display: block; height: 100%; border-radius: 4px; background: var(--muted); animation: grow .7s var(--ease) both; transform-origin: left; }
.bars div:first-child i { transform-origin: right; }
.bars i.lead { background: var(--gold); }
@keyframes grow { from { transform: scaleX(0); } }
.ls { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ls th { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; padding: 6px 4px; text-align: center; }
.ls td { padding: 10px 4px; text-align: center; border-top: 1px solid var(--line); color: var(--text-2); font: 600 16px var(--serif); }
.ls td:first-child { text-align: left; font: 600 14px var(--sans); color: var(--text); }
.ls td:first-child div { display: flex; align-items: center; gap: 9px; }
.ls td:last-child { font-weight: 700; color: var(--text); font-size: 17px; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.leaders h5 { margin: 0 0 10px; font: 600 14px var(--sans); display: flex; align-items: center; gap: 8px; }
.ld { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 7px 0; }
.ld b { display: block; font-size: 14px; }
.ld small { color: var(--muted); font-size: 12.5px; }
.ld strong { font: 600 16px var(--serif); color: var(--gold); margin-right: 5px; }

/* Avatars */
.av { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; font: 600 16px var(--serif); color: var(--text-2); flex: none; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; } }

/* Lineups */
.pitch { position: relative; width: 100%; aspect-ratio: 68 / 108; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1D5B3A 0 8.333%, #216643 8.333% 16.666%); }
.pitch::before { content: ""; position: absolute; inset: 3%; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 4px; }
.pitch::after { content: ""; position: absolute; left: 3%; right: 3%; top: 50%; height: 1.5px; background: rgba(255, 255, 255, .28); }
.pitch .circle { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.pitch .box { position: absolute; left: 25%; right: 25%; height: 11%; border: 1.5px solid rgba(255, 255, 255, .28); }
.pitch .box.top { top: 3%; border-top: 0; } .pitch .box.bot { bottom: 3%; border-bottom: 0; }
.pitch .tag { position: absolute; left: 5.5%; font: 600 13px var(--serif); color: rgba(255, 255, 255, .9); z-index: 1; }
.pitch .tag.top { top: 4.2%; } .pitch .tag.bot { bottom: 4.2%; }
.pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; z-index: 1; transition: transform .3s var(--ease); }
.pl:hover, .pl:focus-visible { transform: translate(-50%, -50%) scale(1.14); z-index: 2; }
.pl .n { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 16px/1 var(--serif); color: #14121A; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.pl .n .ph { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.pl.h .n .ph { background: #E4F9A0; box-shadow: inset 0 0 0 2px #C6F432; }
.pl.a .n .ph { background: #F3EFE6; box-shadow: inset 0 0 0 2px #fff; }
.pl .n .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; animation: fadein .5s ease both; }
.pl.h .n .ph:has(img) { box-shadow: 0 0 0 2px #C6F432; } .pl.a .n .ph:has(img) { box-shadow: 0 0 0 2px #fff; }
.pl .jn { position: absolute; left: -5px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #14121A; color: #F3EFE6; font: 700 11px/18px var(--sans); text-align: center; display: none; }
.pl .n:has(img) .jn { display: block; }
.pl .nm { font-size: 11.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .85); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .mk { position: absolute; display: flex; gap: 1px; z-index: 1; }
.pl .mk.tr { top: -4px; right: -7px; } .pl .mk.br { bottom: -4px; right: -6px; } .pl .mk.tl { top: -4px; left: -5px; }
.mk .g { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #14121A; }
.mk .y, .mk .r { width: 9px; height: 12px; border-radius: 2px; background: #F2C84B; border: 1px solid rgba(0, 0, 0, .4); }
.mk .r { background: #FF6A52; }
.mk .o { width: 14px; height: 14px; border-radius: 50%; background: #FF6A52; color: #fff; display: grid; place-items: center; font: 700 10px/1 var(--sans); }
.squads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.squads h5 { margin: 0 0 8px; font: 600 14px var(--sans); display: flex; align-items: center; gap: 8px; }
.sq { display: flex; gap: 10px; padding: 6px 4px; font-size: 14px; align-items: center; width: 100%; text-align: left; border-radius: 12px; transition: background .2s; }
.sq:hover { background: var(--surface-2); }
.sq .av { width: 32px; height: 32px; font-size: 13px; }
.sq small { display: block; color: var(--muted); font-size: 12px; }
.sq .in { color: var(--win); font-weight: 700; }
.hint { font-size: 12.5px; color: var(--muted); text-align: center; margin: -4px 0 12px; }

/* Commentary */
.cm { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.cm:last-child { border-bottom: 0; }
.cm b { font: 600 15px var(--serif); color: var(--gold); }
.cm.key { color: var(--text); font-weight: 600; }

/* Player modal */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 8, .78); animation: fadein .25s ease; }
.modal[hidden] { display: none; }
.pcard { position: relative; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 28px; border: 1px solid var(--line-2); background: var(--solid); box-shadow: var(--shadow); animation: cardin .45s var(--ease); }
@keyframes cardin { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.pcard .hd { position: relative; height: 250px; overflow: hidden; border-radius: 28px 28px 0 0;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--ca, var(--gold)) 55%, transparent), transparent 75%), var(--surface-2); }
.pcard .hd .bignum { position: absolute; right: 14px; top: -8px; font: 600 150px/1 var(--serif); color: var(--text); opacity: .1; letter-spacing: -.05em; }
.pcard .hd img.shot { position: absolute; left: 50%; bottom: 0; height: 232px; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); animation: rise .6s var(--ease); }
.pcard .hd .mono { position: absolute; inset: 0; display: grid; place-items: center; font: 600 90px var(--serif); color: var(--text); opacity: .5; }
.pcard .close { position: absolute; right: 10px; top: 10px; z-index: 2; background: color-mix(in srgb, var(--solid) 70%, transparent); }
.pcard .bd { padding: 18px 22px 24px; }
.pcard h3 { font: 600 28px/1.1 var(--serif); letter-spacing: -.02em; }
.pcard .sub { display: flex; align-items: center; gap: 8px; color: var(--text-2); margin-top: 8px; font-size: 14px; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.pgrid div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pgrid span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.pgrid b { font: 600 18px var(--serif); }
.pcard h4 { font: 600 16px var(--serif); margin: 20px 0 10px; }
.pcard .fine { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* Toasts */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--solid); border: 1px solid var(--gold); box-shadow: var(--shadow); animation: cardin .4s var(--ease); }
.toast .gball { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.toast b { display: block; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.toast span { font: 600 16px var(--serif); }
.toast u { text-decoration: none; color: var(--gold); }

/* Tablet+ */
@media (min-width: 720px) {
  .detail { inset: 0 0 0 auto; width: 500px; border-left: 1px solid var(--line); transform: translateX(100%); box-shadow: var(--shadow); }
  .news-lead { grid-template-columns: 1.25fr 1fr; }
  .news-lead .ph { aspect-ratio: auto; min-height: 320px; }
  .hero { padding: 26px 30px; }
}
/* Desktop */
@media (min-width: 1024px) {
  .app { grid-template-columns: 256px minmax(0, 1fr); gap: 22px; padding: 22px; }
  .sidebar { position: sticky; top: calc(var(--top) + var(--rail) + 22px); align-self: start; max-height: calc(100vh - var(--top) - var(--rail) - 44px); overflow: hidden auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: var(--surface); }
  .side-title { display: block; font: 600 16px var(--serif); color: var(--muted); padding: 14px 12px 6px; }
  .side-list { display: grid; gap: 2px; overflow: visible; padding: 0; }
  .lg-wrap { position: relative; }
  .lg-item { width: 100%; border: 0; background: none; border-radius: 14px; height: 50px; padding: 0 44px 0 10px; gap: 11px; }
  .lg-item:hover { background: var(--surface-2); }
  .lg-item.active { background: var(--gold-soft); color: var(--text); }
  .lg-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .lg-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  .pin-btn { display: grid; position: absolute; right: 2px; top: 4px; width: 42px; height: 42px; place-items: center; color: var(--muted); border-radius: 50%; opacity: 0; transition: opacity .2s, color .2s; }
  .pin-btn svg.i { width: 14px; height: 14px; }
  .lg-wrap:hover .pin-btn, .pin-btn:focus-visible, .pin-btn.on { opacity: 1; }
  .pin-btn.on { color: var(--gold); } .pin-btn.on svg { fill: currentColor; }
  .lg-wrap:hover .lg-meta, .lg-wrap:has(.pin-btn.on) .lg-meta { visibility: hidden; }
  .row { grid-template-columns: 74px minmax(0, 1fr) auto 50px; }
  .row-main { right: 50px; }
}
/* Wide: docked detail */
@media (min-width: 1320px) {
  .app:not(.news) { grid-template-columns: 256px minmax(0, 1fr) 460px; }
  .app:not(.news) .detail {
    position: sticky; inset: auto; top: calc(var(--top) + var(--rail) + 22px); align-self: start; z-index: 1; width: auto;
    height: calc(100vh - var(--top) - var(--rail) - 44px); transform: none; visibility: visible; box-shadow: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); scrollbar-width: thin; }
  .app:not(.news) ~ .scrim { display: none; }
  .app:not(.news) .d-close { display: none; }
  .app:not(.news) .d-head { border-radius: var(--r) var(--r) 0 0; }
}
@media (max-width: 1319px) { html.lock, html.lock body { overflow: hidden; } }
@media (max-width: 719px) {
  :root { --top: 58px; --rail: 50px; }
  .search, .pulse .txt { display: none; }
  .only-mobile { display: grid; }
  .topbar { gap: 10px; padding: 0 12px; }
  .brand-name { display: none; }
  .seg a { padding: 0 12px; height: 32px; }
  .seg svg.i { display: none; }
  .top-actions { margin-left: auto; gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .topbar.searching .brand, .topbar.searching .seg, .topbar.searching #soundBtn, .topbar.searching #themeBtn, .topbar.searching .pulse { display: none; }
  .topbar.searching .search { display: flex; max-width: none; margin: 0; }
  .topbar.searching .search kbd { display: none; }
  .sp { padding: 0 11px; }
  .datebar [data-act=shift] { display: none; }
  .hero-team .crest { width: 52px; height: 52px; }
  .hero-team b { font-size: 16px; }
  .leaders { grid-template-columns: 1fr; }
  .pl { width: 66px; }
  .pl .n { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
#content.enter { animation: rise .5s var(--ease); }
.app.news { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 719px) {
  .pulse b { display: none; }
  .pulse { margin-right: 2px; }
  .seg a { padding: 0 10px; }
  .topbar { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* Coaches */
.coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coach { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coach .av { width: 52px; height: 52px; }
.coach b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.coach small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.coach small .crest { width: 16px; height: 16px; }

/* Article reader */
.article { max-width: 760px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); margin-bottom: 18px; transition: background .2s, color .2s; }
.back:hover { background: var(--surface-2); color: var(--text); }
.article h1 { font: 700 clamp(30px, 4.6vw, 46px)/1.1 var(--serif); letter-spacing: -.025em; margin: 14px 0 14px; text-wrap: balance; }
.article .dek { font-size: 19px; line-height: 1.5; color: var(--text-2); margin-bottom: 20px; }
.article figure { margin: 0 0 26px; }
.article figure img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.article figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font: 700 24px/1.25 var(--serif); letter-spacing: -.01em; margin: 1.6em 0 .6em; }
.prose h3, .prose h4 { font-size: 20px; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--text-2); font-size: 20px; }
.prose strong { font-weight: 700; }
.article .src { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.article .src a { color: var(--gold); font-weight: 600; }
.pgrid .wide { grid-column: 1 / -1; }

/* Settings */
.field { display: grid; gap: 6px; }
.field span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; outline: 0; width: 100%; }
.field input:focus { border-color: var(--gold); }
@media (max-width: 719px) { #soundBtn { display: none; } }

/* Recent form, scorers, folding */
.rf { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.rf i { width: 22px; height: 22px; border-radius: 50%; font: 700 11px/22px var(--sans); font-style: normal; text-align: center; color: #fff; background: var(--draw); }
.rf i.W { background: var(--win); color: #06281A; } .rf i.L { background: var(--loss); }
.rf span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.rf b { font: 600 16px var(--serif); font-variant-numeric: tabular-nums; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.rk-row .nm small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fold svg { transition: transform .3s var(--ease); }
.fold.shut svg { transform: rotate(-90deg); }
.group-h .fold { width: 38px; height: 38px; color: var(--muted); }
.toast > div > span:only-child { font: 600 15px var(--sans); }
.d-bar [data-act=share] { flex: none; }

/* Sign-up & favourites */
.onboard { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: var(--bg); animation: fadein .3s ease; }
.onboard[hidden] { display: none; }
.ob-card { width: min(780px, 100%); height: min(760px, calc(100vh - 32px)); display: flex; flex-direction: column; border-radius: 28px; border: 1px solid var(--line-2); background: var(--solid); box-shadow: var(--shadow); overflow: hidden; animation: cardin .45s var(--ease); }
.ob-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 34px; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .3s; }
.ob-dots i.on { background: var(--gold); }
.ob-body { flex: 1; overflow-y: auto; padding: 14px 24px 20px; outline: 0; }
.ob-body h2 { font: 700 clamp(26px, 4vw, 34px)/1.15 var(--serif); letter-spacing: -.02em; }
.ob-lead { color: var(--text-2); font-size: 16px; margin: 8px 0 20px; max-width: 56ch; }
.ob-body h4 { display: flex; align-items: center; gap: 9px; font: 700 15px var(--sans); margin: 22px 0 10px; color: var(--text-2); }
.ob-body h4 svg.i { color: var(--gold); }
.ob-body .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.ob-body .field input { height: 54px; font-size: 18px; }
.ob-search { max-width: none; margin: 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.pick:hover { border-color: var(--line-2); }
.pick:active { transform: scale(.97); }
.pick > span { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .crest { width: 28px; height: 28px; }
.pick i { color: var(--line-2); display: grid; }
.pick.on { border-color: var(--gold); background: var(--gold-soft); }
.pick.on i { color: var(--gold); }
.pick.on i svg { fill: currentColor; animation: starpop .45s var(--ease); }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ob-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.me { width: 30px; height: 30px; border-radius: 50%; background: #C6F432; color: #0A0E13; display: grid; place-items: center; font: 800 14px var(--serif); }
.pl.fav .n { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 719px) {
  .onboard { padding: 0; }
  .ob-card { height: 100%; border-radius: 0; border: 0; }
  .ob-body { padding: 10px 16px 16px; }
  .picks { grid-template-columns: 1fr 1fr; }
}

/* Predictions */
.card > h4 .badge { float: right; margin: -3px 0 0; font: 700 11.5px var(--sans); }
.pred-head { font: 600 19px/1.3 var(--serif); margin-bottom: 14px; }
.pred-head b { color: var(--gold); }
.pbar { display: flex; gap: 3px; height: 40px; border-radius: 12px; overflow: hidden; font: 700 16px/40px var(--serif); font-variant-numeric: tabular-nums; }
.pbar span { min-width: 44px; text-align: center; background: var(--surface-3); color: var(--text-2); transition: flex .6s var(--ease); }
.pbar span.dr { background: var(--surface-2); }
.pbar span.top { background: var(--gold); color: var(--gold-ink); }
.pkey { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.pkey span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.pkey .crest { width: 18px; height: 18px; }
.pscore { display: flex; align-items: center; gap: 20px; }
.pscore .big { font: 700 56px/1 var(--serif); letter-spacing: -.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.pscore .alts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; flex: 1; }
.pscore .alts span { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.pscore .alts b { font: 600 15px var(--serif); color: var(--text); }
.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--gold); animation: grow .7s var(--ease) both; transform-origin: left; }
.why { display: grid; gap: 9px; padding-left: 18px; list-style: disc; color: var(--text-2); font-size: 14px; }
.card .fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* Language picker */
.langs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.langs .pick { min-height: 68px; }
.langs .pick b { font-size: 17px; }
.lang-code { flex: none !important; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; font: 700 13px var(--serif); color: var(--text-2); }
.pick.on .lang-code { background: var(--gold); color: var(--gold-ink); }

/* ===== Accounts, premium, adverts ===== */
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--live-soft); color: var(--live); font-size: 14px; font-weight: 600; }
.ob-seg { display: inline-flex; margin-bottom: 18px; }
.ob-seg button { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .2s, color .2s; }
.ob-seg button.on { background: var(--text); color: var(--bg); }
.ob-body .field + .field { margin-top: 14px; }
.fine a { color: var(--gold); font-weight: 600; }
.badge.gold { background: var(--gold); color: var(--gold-ink); }
.btn.danger { background: var(--live); color: #fff; }
a.chip { text-decoration: none; }
.perks { display: grid; gap: 12px; margin: 20px 0; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.perks svg.i { color: var(--gold); fill: var(--gold); width: 16px; height: 16px; }
.price { font: 700 34px/1.1 var(--serif); letter-spacing: -.02em; margin: 6px 0 18px; }
.prem .fine { text-align: center; }
.lock-card { text-align: center; padding: 26px 18px; background: radial-gradient(120% 120% at 50% 0%, var(--gold-soft), transparent 70%), var(--surface); }
.lock-card > svg.i { width: 28px; height: 28px; color: var(--gold); fill: var(--gold); margin-bottom: 8px; }
.lock-card h4 { margin-bottom: 6px; }
.ad { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 16px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--surface); transition: border-color .2s; }
a.ad:hover { border-color: var(--gold); }
.ad img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); }
.ad small, .adslot small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ad b { display: block; font: 600 16px/1.3 var(--serif); margin-top: 2px; }
.ad p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.adslot { margin: 0 0 14px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-height: 90px; overflow: hidden; }
.banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); font-weight: 600; font-size: 14px; }
.banner[hidden], .adslot[hidden] { display: none; }
.banner span { flex: 1; }
.banner .icon-btn { width: 34px; height: 34px; }

/* ===== Phones & tablets: tab bar, safe areas, touch ===== */
html { -webkit-tap-highlight-color: transparent; }
button, a, .chip, .pick, .row-main { touch-action: manipulation; }
.topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top) + env(safe-area-inset-top)); padding-right: max(18px, env(safe-area-inset-right)); }
.sports { top: calc(var(--top) + env(safe-area-inset-top)); padding-right: max(14px, env(safe-area-inset-right)); }
.tabbar { display: none; }
.ob-card { height: min(760px, calc(100dvh - 32px)); }
.pcard { max-height: calc(100dvh - 32px); }
@supports not (height: 100dvh) { .ob-card { height: min(760px, calc(100vh - 32px)); } }
@media (max-width: 719px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: var(--bg); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: color .2s, transform .2s var(--ease); }
  .tabbar a:active, .tabbar button:active { transform: scale(.94); }
  .tabbar .on { color: var(--text); }
  .tabbar .on svg.i { color: var(--gold); }
  .tabbar svg.i { width: 22px; height: 22px; }
  .app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
  #setBtn, #themeBtn { display: none; }                 /* Profile lives in the tab bar; theme in the profile sheet */
  .seg { display: none; }
  .seg.ob-seg { display: inline-flex; width: 100%; }                 /* Sign up / Log in switch must stay visible on phones */
  .ob-seg button { flex: 1; height: 42px; }
  .brand-name { display: block; font-size: 19px; }
  .field input, .search input, .ob-body input { font-size: 16px; }   /* stops iOS zooming into focused fields */
  .detail { padding-bottom: env(safe-area-inset-bottom); }
  .modal { padding: 0; place-items: end center; }
  .pcard { width: 100%; border-radius: 26px 26px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); animation: sheetup .4s var(--ease); }
  .d-head { padding-top: max(8px, env(safe-area-inset-top)); }
  .ob-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .ob-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .onboard { background: var(--solid); animation: none; }
  .ob-card { height: 100vh; height: 100dvh; box-shadow: none; }     /* welcome screen fills the whole phone screen */
  .hero { padding: 16px; border-radius: 22px; }
  .hero-score { font-size: clamp(44px, 14vw, 60px); }
  .news-lead .tx { padding: 16px 16px 20px; }
  .prose { font-size: 17px; }
}
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) and (max-width: 1023px) {            /* tablets: roomier single column */
  .app { padding: 20px 24px; }
  .picks { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 380px) {                                   /* small phones */
  .row { grid-template-columns: 52px minmax(0, 1fr) auto 42px; }
  .day b { font-size: 19px; }
  .hero-team b { font-size: 14px; }
  .picks { grid-template-columns: 1fr; }
}
@media (hover: none) {                                        /* touch screens: no sticky hover effects */
  .row:hover { background: none; } .row:hover::before { transform: scaleY(0); } .row.sel::before { transform: scaleY(1); }
  .row:hover .t { transform: none; }
  .hero:hover, .feat-card:hover, .ncard:hover, .news-lead:hover { transform: none; }
  .glow::after { display: none; }
}
@media (orientation: landscape) and (max-height: 480px) {     /* phones held sideways */
  .tabbar { display: none; } .app { padding-bottom: 16px; }
  .seg { display: flex; } #setBtn { display: grid; }
}

/* ===== Worldwide leagues ===== */
.gcount { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.side-more { display: flex; align-items: center; justify-content: space-between; }
.side-more .link-btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.side-more .link-btn svg.i { width: 13px; height: 13px; }
.lg-item.country svg.i { width: 15px; height: 15px; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.lg-item.country.open svg.i { transform: rotate(180deg); }
.country-list { padding-left: 10px; margin: 2px 0 6px 14px; border-left: 1px solid var(--line-2); display: grid; gap: 2px; }
.side-browse { display: none; }
.br-list { display: grid; gap: 2px; max-height: 52dvh; overflow-y: auto; margin: 0 -6px; }
.br-list .sq { text-decoration: none; padding: 8px 10px; }
.br-list .sq > span:nth-child(2) { flex: 1; min-width: 0; }
.br-list .crest { width: 28px; height: 28px; }
.lg-logo.flag { border-radius: 50%; padding: 0; }
@media (max-width: 1023px) {
  .side-countries, .side-more { display: none; }
  .side-browse { display: flex; }
}
@media (min-width: 1024px) {
  .lg-item.country { padding-right: 12px; }
  .lg-item.country .lg-meta { margin-left: auto; visibility: visible !important; }
}

/* ===== Player images: one consistent frame everywhere, never stretched ===== */
.av, .pl .n .ph { background-color: var(--surface-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='25' r='11' fill='%23808a98' fill-opacity='.45'/%3E%3Cpath d='M10 64c0-13 10-21 22-21s22 8 22 21z' fill='%23808a98' fill-opacity='.45'/%3E%3C/svg%3E"); background-size: cover; background-position: center; }
.pl.h .n .ph, .pl.a .n .ph { background-image: none; }
.av { aspect-ratio: 1; }
.av img, .pl .n .ph img, .coach .av img, .ld .av img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 14%; border-radius: 50%; background: var(--surface-3); }
.av:has(img) { color: transparent; }
.pl .n .ph:has(img) { color: transparent; }
.av img[src*="espncdn.com/i/headshots"], .pl .n .ph img[src*="espncdn.com/i/headshots"] { object-fit: cover; object-position: 50% 0%; transform: scale(1.18); transform-origin: 50% 0%; }  /* ESPN studio headshots: centre the face */
.pcard .hd { height: 270px; background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--ca, var(--gold)) 55%, transparent), transparent 75%), var(--surface-2); }
.pcard .hd img.shot { position: absolute; max-width: none; animation: fadein .45s ease both; }
.pcard .hd img.shot.cut { left: 50%; bottom: 0; top: auto; height: 250px; width: auto; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.pcard .hd img.shot.photo { inset: 0; left: 0; bottom: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: 50% 18%; filter: none; }
.pcard .hd:has(img.shot.photo)::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, var(--solid)); pointer-events: none; }
.pcard .hd .mono { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='24' r='11' fill='%23808a98' fill-opacity='.35'/%3E%3Cpath d='M8 64c0-14 11-22 24-22s24 8 24 22z' fill='%23808a98' fill-opacity='.35'/%3E%3C/svg%3E") center bottom / auto 86% no-repeat; font-size: 0; opacity: 1; }
.crest { aspect-ratio: 1; }
img.crest { object-fit: contain; }

/* ===== Premium: tips, colour themes ===== */
:root[data-accent="ocean"] { --gold: #4FC3F7; --gold-ink: #04161F; --gold-soft: rgba(79, 195, 247, .14); }
:root[data-accent="ember"] { --gold: #FF8A4C; --gold-ink: #1F0A00; --gold-soft: rgba(255, 138, 76, .14); }
:root[data-accent="violet"] { --gold: #B49CFF; --gold-ink: #130B2B; --gold-soft: rgba(180, 156, 255, .15); }
:root[data-accent="gold"] { --gold: #F2C14E; --gold-ink: #1F1600; --gold-soft: rgba(242, 193, 78, .14); }
:root[data-theme="light"][data-accent="ocean"] { --gold: #0277BD; --gold-ink: #fff; }
:root[data-theme="light"][data-accent="ember"] { --gold: #C2410C; --gold-ink: #fff; }
:root[data-theme="light"][data-accent="violet"] { --gold: #6D28D9; --gold-ink: #fff; }
:root[data-theme="light"][data-accent="gold"] { --gold: #A16207; --gold-ink: #fff; }
.accents { display: flex; gap: 10px; flex-wrap: wrap; }
.accent { width: 44px; height: 44px; border-radius: 50%; background: var(--c); display: grid; place-items: center; color: #0A0E13; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15); transition: transform .2s var(--ease); }
.accent:active { transform: scale(.92); }
.accent.sel { border-color: var(--text); }
.accent svg.i { width: 16px; height: 16px; opacity: .75; }
#setBtn.prem .me { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tip { position: relative; display: grid; gap: 10px; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.tip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tip-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 0; }
.tip-top > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-teams { display: grid; gap: 6px; font-weight: 600; }
.tip-teams span { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-teams .crest { width: 22px; height: 22px; }
.tip-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tip-pick b { font: 600 16px/1.3 var(--serif); }
.tip-pct { font: 700 24px var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.tip-more { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.tip.locked .tip-pick, .tip.locked .tip-more { visibility: hidden; user-select: none; }
.tip-lock { position: absolute; right: 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12.5px; }
.tip-lock svg.i { width: 14px; height: 14px; }
.perks li { align-items: flex-start; }
.perks li svg.i { margin-top: 3px; }
@media (max-width: 719px) { .tabbar { grid-template-columns: repeat(5, 1fr); } .tabbar a, .tabbar button { font-size: 10.5px; } .tips { grid-template-columns: 1fr; } }

/* ===== Premium gates ===== */
.locked-group .group-h { border-bottom: 0; opacity: .85; }
.prem-chip { border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold); }
.prem-chip svg.i { width: 13px; height: 13px; }
.lg-lock { display: grid; color: var(--muted); flex: none; }
.lg-lock svg.i { width: 13px; height: 13px; }
.perf { align-items: center; }
.perf > span:nth-child(3) { flex: 1; min-width: 0; }
.perf b { display: block; font-weight: 600; }
.perf small { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; }
.perf small .crest { width: 14px; height: 14px; }
.perf-rank { width: 22px; text-align: center; font: 700 15px var(--serif); color: var(--gold); flex: none; }
.perf .av { width: 40px; height: 40px; }
.card > h4 .badge.gold { float: none; margin: 0 0 0 6px; vertical-align: 2px; }

/* Optional account card (Profile, signed out) */
.acct-card { margin-top: 14px; padding: 16px; background: radial-gradient(120% 120% at 0% 0%, var(--gold-soft), transparent 70%), var(--surface); }
.acct-card b { font: 700 16px var(--serif); }

/* ===== Lineup list (Flashscore-style, both teams side by side) ===== */
.lu { padding: 6px 0 4px; overflow: hidden; }
.lu-teams { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px 6px; font: 600 14px var(--serif); }
.lu-teams span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.lu-teams .crest { width: 22px; height: 22px; }
.lu-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.lu-head b { font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lu-head span { font: 600 13px var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.lu-head span:last-child { text-align: right; }
.lu-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.lu-row:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.lu-cell { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; text-align: left; transition: background .15s; }
.lu-cell + .lu-cell { border-left: 1px solid var(--line); }
.lu-cell.a { flex-direction: row-reverse; text-align: right; }
.lu-cell:not(.empty):hover, .lu-cell:not(.empty):active { background: var(--surface-2); }
.lu-cell.fav .lu-name b { color: var(--gold); }
.lu-no { flex: none; width: 20px; font: 600 13px var(--serif); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lu-av { flex: none; width: 34px !important; height: 34px !important; font-size: 12px; }
.lu-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lu-cell.a .lu-name { align-items: flex-end; }
.lu-name b { font: 600 14px/1.25 var(--sans); color: var(--text); max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lu-tag { color: var(--muted); font-weight: 600; font-size: 12px; }
.lu-ev { display: flex; flex-wrap: wrap; gap: 4px; }
.lu-cell.a .lu-ev { justify-content: flex-end; }
.ev { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.ev i { font-style: normal; display: inline-grid; place-items: center; line-height: 1; }
.ev em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
.ev sub { font-size: 9px; color: var(--muted); }
.ev-goal i svg, .ev-og i svg { width: 13px; height: 13px; display: block; }
.ev-og i svg circle { fill: #E5484D; }
.ev-ast i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); font-size: 9px; color: var(--text); }
.ev-yc i, .ev-rc i { width: 9px; height: 12px; border-radius: 2px; background: #F5C518; }
.ev-rc i { background: #E5484D; }
.ev-in i { color: var(--win, #3DD68C); font-size: 9px; }
.ev-out i { color: var(--live, #E5484D); font-size: 9px; }
.lu-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); margin: 0; }
.lu-key span:not(.ev) { margin-left: -2px; }
@media (max-width: 420px) {
  .lu-cell { gap: 6px; padding: 8px 6px; }
  .lu-no { width: 16px; font-size: 12px; }
  .lu-av { width: 28px !important; height: 28px !important; }
  .lu-name b { font-size: 13px; }
}

/* ===== Player card: this match ===== */
.pm-vs { font: 600 13px var(--sans); color: var(--muted); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.pm-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pm-top div { background: var(--surface-2); border-radius: 14px; padding: 12px 8px; text-align: center; }
.pm-top b { display: block; font: 700 24px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.pm-top b.live-t { color: var(--live); }
.pm-top span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pm-events { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pm-events div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; }
.pm-events div + div { border-top: 1px solid var(--line); }
.pm-events span:not(.ev) { flex: 1; color: var(--text-2); }
.pm-events b { font-variant-numeric: tabular-nums; }
.pm-events .ev { width: 18px; justify-content: center; }
.pm-h { margin: 16px 0 6px; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pm-rows div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.pm-rows b { color: var(--text); font-variant-numeric: tabular-nums; }
.pm-rows b small { color: var(--muted); font-weight: 600; }

/* ===== Pitch, Flashscore style: dark pitch, formation header, photo + "No. Name" labels ===== */
.pitch-card { padding: 0; overflow: hidden; }
.pitch-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pitch-head span { font: 700 14px var(--serif); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text); }
.pitch-head span:last-child { text-align: right; }
.pitch-head b { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pitch { border-radius: 0; aspect-ratio: 68 / 126; background: linear-gradient(180deg, #17302A, #142A25 50%, #17302A); }
.pitch::before { inset: 2.5% 3%; border-color: rgba(255, 255, 255, .2); border-radius: 2px; }
.pitch::after { background: rgba(255, 255, 255, .2); }
.pitch .circle { width: 28%; border-color: rgba(255, 255, 255, .2); }
.pitch .spot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pitch .box { left: 22%; right: 22%; height: 13%; border-color: rgba(255, 255, 255, .2); }
.pitch .box.top { top: 2.5%; } .pitch .box.bot { bottom: 2.5%; }
.pitch .six { position: absolute; left: 37%; right: 37%; height: 5%; border: 1.5px solid rgba(255, 255, 255, .2); }
.pitch .six.top { top: 2.5%; border-top: 0; } .pitch .six.bot { bottom: 2.5%; border-bottom: 0; }
.pitch .tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sans); color: rgba(255, 255, 255, .75); }
.pitch .tag.top { top: 3.6%; left: 5%; } .pitch .tag.bot { bottom: 3.6%; left: auto; right: 5%; }
.pitch .tag .crest { width: 20px; height: 20px; }
.pitch .tag span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-hint { margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.pl { width: 86px; gap: 4px; }
.pl .n { width: 48px; height: 48px; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.pl.h .n .ph, .pl.a .n .ph { background-color: #2A3A36; box-shadow: none; }
.pl.h .n .ph:has(img), .pl.a .n .ph:has(img) { box-shadow: none; }
.pl.fav .n { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 50%; }
.pl .nm { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 7px; border-radius: 7px; background: rgba(8, 12, 16, .72); font: 600 12px/1.3 var(--sans); text-shadow: none; max-width: 100%; }
.pl .nm b { font-weight: 700; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.pl .mk.tl { top: -5px; left: -8px; } .pl .mk.tr { top: -4px; right: -6px; } .pl .mk.br { bottom: -3px; right: -7px; }
.mk .g { width: 17px; height: 17px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.mk .g svg { width: 17px; height: 17px; display: block; }
.mk .as { width: 17px; height: 17px; border-radius: 50%; background: #E8EDF2; color: #0A0E13; display: grid; place-items: center; font: 800 10px/1 var(--sans); font-style: normal; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.mk .o { width: 16px; height: 16px; font-size: 8px; background: #E5484D; }
@media (max-width: 719px) {
  .pl { width: 74px; }
  .pl .n { width: 42px; height: 42px; }
  .pl .nm { font-size: 11px; padding: 2px 5px; }
}
@media (max-width: 380px) {
  .pl { width: 64px; }
  .pl .n { width: 38px; height: 38px; }
}

/* ===== Ninety+ ratings (Flashscore-style coloured boxes) ===== */
.rt { display: inline-grid; place-items: center; min-width: 30px; height: 19px; padding: 0 4px; border-radius: 5px; font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; flex: none; }
.rt.r5 { background: #E5484D; } .rt.r6 { background: #F08A24; } .rt.r7 { background: #2FA36B; } .rt.r8 { background: #1E7BF2; }
.rt.on-pitch { position: absolute; right: -16px; bottom: -4px; min-width: 28px; height: 17px; font-size: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); z-index: 2; }
.pl .mk.bl { bottom: -3px; left: -7px; }
.rt.in-list { margin-left: auto; }
.lu-cell.a .rt.in-list { margin-left: 0; margin-right: auto; }
.pitch .tag .avg { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.pm-top.four { grid-template-columns: repeat(4, 1fr); }
.pm-rate { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rt.big { min-width: 50px; height: 30px; font-size: 17px; border-radius: 8px; margin-bottom: 2px; }
.pm-note { margin: 10px 0 0 !important; }
.pm-top span.rt { color: #fff; font-weight: 700; }

/* ===== Get the app ===== */
.get-app { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 700 13.5px var(--sans); white-space: nowrap; transition: transform .2s var(--ease), filter .2s; }
.get-app:hover { filter: brightness(1.06); transform: translateY(-1px); }
.get-app[hidden] { display: none; }
.get-app .ga-ico svg.i { width: 17px; height: 17px; stroke-width: 2.4; }
.get-app .ga-short { display: none; }
@media (max-width: 719px) { .get-app { height: 32px; padding: 0 11px 0 9px; font-size: 13px; } .get-app .ga-long { display: none; } .get-app .ga-short { display: inline; } }
.app-promo { position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 34; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; border-radius: 18px;
  background: var(--solid); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6); animation: sheetup .4s var(--ease); }
.app-promo[hidden] { display: none; }
.app-promo div { flex: 1; min-width: 0; }
.app-promo b { display: block; font: 700 15px var(--serif); }
.app-promo small { color: var(--muted); font-size: 12.5px; }
.app-promo .btn { height: 36px; padding: 0 16px; }
.app-promo .icon-btn { width: 34px; height: 34px; }
@media (min-width: 720px) { .app-promo { display: none !important; } }
.ins-head { display: flex; align-items: center; gap: 14px; }
.ins-head img { border-radius: 16px; flex: none; }
.ins-steps { list-style: none; padding: 0; margin: 20px 0 14px; display: grid; gap: 12px; }
.ins-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.ins-steps b { color: var(--text); }
.ins-steps svg.i { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold); }
.st-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font: 800 13px var(--sans); }

/* ===== Share sheet ===== */
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.share-btn span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #fff; font: 800 19px var(--sans); transition: transform .2s var(--ease); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.share-btn:hover span { transform: translateY(-2px) scale(1.05); }
.share-copy { display: flex; gap: 8px; margin-top: 20px; }
.share-copy input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 14px; }
.share-copy .btn { flex: none; }
@media (max-width: 380px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Notifications settings ===== */
.nt-warn { margin: 0 0 10px !important; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--text-2) !important; }
.nt-kinds { margin-top: 12px; }
.btn.on { background: var(--surface-3); color: var(--text); }
.linkish { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Goalscorers: a clear ball on the player's photo (×2, ×3 for braces and hat-tricks) */
.pl .mk.gl { top: -7px; left: -10px; align-items: center; gap: 0; }
.mk .g { width: 20px; height: 20px; box-shadow: 0 0 0 2px #0A0E13, 0 2px 6px rgba(0, 0, 0, .6); }
.mk .g svg { width: 20px; height: 20px; }
.mk.gl em { font: 800 11px/1 var(--sans); font-style: normal; color: #fff; background: #0A0E13; border-radius: 6px; padding: 2px 4px; margin-left: -3px; }
.pl .mk.ml { top: 16px; left: -10px; }
.ev-goal i svg, .ev-og i svg { width: 15px; height: 15px; }
/* Notifications check */
.nt-check { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.nt-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.nt-check li b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: #2FA36B; }
.nt-check li.bad b { background: #E5484D; }
.nt-check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* No frosted-glass blur anywhere: bars and overlays are solid; images are fetched at ~3x their on-screen size. */

/* Coaches: tappable, with a career card */
button.coach { width: 100%; text-align: left; border-radius: 14px; padding: 6px; margin: -6px; transition: background .2s; }
button.coach:hover, button.coach:active { background: var(--surface-2); }
.coach .coach-go { margin-left: auto; color: var(--muted); display: grid; place-items: center; font-style: normal; }
.coach .coach-go svg.i { width: 16px; height: 16px; }
.hint-inline { font: 500 12px var(--sans); color: var(--muted); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.career { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.career div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.career div + div { border-top: 1px solid var(--line); }
.career b { font-weight: 600; color: var(--text); }
.career span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.career div.now { background: var(--gold-soft); }
.career div.now span { color: var(--gold); font-weight: 700; }
.coach-card .hd .mono { font-size: 54px; }
