/* Archivo, self-hosted (no requests to Google). Variable: weight 400-900, width 62-125%. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #edf1f6;
  --card: #ffffff;
  --ink: #0a1730;
  --muted: #5a6a82;
  --line: #dbe2ec;
  --soft: #f4f7fb;
  --red: #e2132f;
  --blue: #1a56db;
  --navy: #0a1730;
  --font: 'Archivo', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070e1c;
    --card: #0e1a2f;
    --ink: #eef2f8;
    --muted: #8c9ab0;
    --line: #1d2b44;
    --soft: #13213a;
    --red: #ff4058;
    --blue: #6b9bff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.rink { position: absolute; inset: 0; width: 100%; height: 100%; }
.rink * { fill: none; stroke-width: 2; }
.r-line { stroke: rgba(255, 255, 255, .10); }
.r-red { stroke: rgba(226, 19, 47, .55); stroke-width: 6 !important; }
.r-blue { stroke: rgba(70, 120, 255, .45); stroke-width: 6 !important; }
.r-thin { stroke-width: 2 !important; }
.r-dot { fill: rgba(255, 255, 255, .25) !important; stroke: none; }
.r-dotred { fill: rgba(226, 19, 47, .6) !important; stroke: none; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 25%, rgba(10, 23, 48, .55) 70%, rgba(10, 23, 48, .2));
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff8a9a;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 80px);
  white-space: nowrap;
  line-height: .9;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
h1 em { display: block; font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px;
  font-weight: 600;
}
.status b { font-stretch: 112%; font-weight: 800; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; }
.status .dot.live { background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 32px 0 0; }
.stats dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 800; font-stretch: 115%; }

/* Featured match */
.feature {
  background: #fff;
  color: #0a1730;
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.feature .label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e2132f; }
.feature .label span:last-child { color: #5a6a82; letter-spacing: .04em; font-weight: 600; text-transform: none; font-size: 13px; }
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 18px 0 16px; text-align: center; }
.versus .side { display: grid; justify-items: center; gap: 10px; font-weight: 700; font-size: 16px; line-height: 1.15; text-decoration: none; }
.versus a.side:hover { color: #1a56db; }
.versus .mid { font-weight: 900; font-stretch: 120%; font-size: 30px; line-height: 1; }
.versus .mid small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; font-stretch: 100%; color: #5a6a82; }
.feature { min-width: 0; }
.slides { min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -22px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; padding: 0 22px; scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #cfd8e3; cursor: pointer; transition: width .25s, background .25s; }
.dots button[aria-current='true'] { width: 24px; background: #e2132f; }
.versus .side > span { overflow-wrap: break-word; hyphens: auto; }
.feature .where { margin: 0; padding-top: 14px; border-top: 1px solid #e4e9f0; font-size: 14px; color: #5a6a82; text-align: center; }

/* ---------- Badges ---------- */
.badge {
  --size: 34px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: calc(var(--size) * 1.12);
  background: var(--c, #9aa6b8);
  color: var(--t, #fff);
  border-radius: 7px 7px 50% 50% / 7px 7px 34% 34%;
  font-size: calc(var(--size) * .3);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.badge.crest {
  height: var(--size);
  padding: calc(var(--size) * .09);
  background: #fff;
  border-radius: 24%;
  box-shadow: inset 0 0 0 1px rgba(10, 23, 48, .1);
}
.badge.crest img { width: 100%; height: 100%; object-fit: contain; }
.team-hero .badge.crest { background: #fff; }
.clogo { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; object-fit: contain; background: #fff; border-radius: 4px; padding: 1px; }
.badge.tbd { background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.feature .badge.tbd { background: #f4f7fb; color: #5a6a82; box-shadow: inset 0 0 0 1.5px #dbe2ec; }
.badge.lg { --size: 64px; }
.badge.xl { --size: 92px; border-radius: 12px 12px 50% 50% / 12px 12px 34% 34%; }
.badge.sm { --size: 24px; }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs-in { display: flex; align-items: center; gap: 16px; height: 72px; }
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.seg a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.seg a:hover { color: var(--ink); background: var(--card); }
.seg a[aria-current='page'] { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--red) 70%, transparent); }
.updated { margin-left: auto; padding-left: 16px; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.updated::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.updated.live::before { background: #19b36b; }

main { min-height: 60vh; }
section[data-view] { padding: 28px 0 24px; }

/* ---------- Matches ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.day {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 72px;
  padding: 10px 12px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  line-height: 1;
}
.day .wd { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day .dn { font-size: 26px; font-weight: 800; font-stretch: 115%; }
.day .mo { font-size: 12px; color: var(--muted); }
.day .ct { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.day:hover { border-color: var(--ink); }
.day[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-pressed='true'] .wd, .day[aria-pressed='true'] .mo, .day[aria-pressed='true'] .ct { color: rgba(255, 255, 255, .7); }
@media (prefers-color-scheme: dark) { .day[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); } }
.day.all .dn { font-size: 15px; padding: 8px 0 7px; text-transform: uppercase; letter-spacing: .04em; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--g); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--card); }
select {
  appearance: none;
  font: 600 14px/1 var(--font);
  color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6a82' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 38px 9px 16px;
  cursor: pointer;
}

.daygroup + .daygroup { margin-top: 34px; }
.daygroup > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; font-stretch: 112%; }
.daygroup > h3::first-letter { text-transform: uppercase; }
.daygroup > h3 small { font-size: 13px; font-weight: 600; font-stretch: 100%; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

.match {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 12px 18px;
  overflow: hidden;
}
.match::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g, var(--line)); }
.match.next { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.match-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.match-top .grp { flex: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g, var(--ink)); }
.match-top .venue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; }
.teams { display: grid; gap: 8px; min-width: 0; }
.trow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow .name { font-size: 16px; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow a.name:hover { color: var(--blue); }
.trow .name.tbd { font-weight: 500; font-style: italic; color: var(--muted); }
.trow .sc { margin-left: auto; font-size: 24px; font-weight: 800; font-stretch: 115%; min-width: 24px; text-align: right; }
.played .trow.lost .name, .played .trow.lost .sc { color: var(--muted); font-weight: 500; }
.played .trow.lost .badge { opacity: .55; }
.when { display: grid; justify-items: end; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line); min-width: 74px; }
.when b { font-size: 24px; font-weight: 800; font-stretch: 115%; line-height: 1; }
.when span { font-size: 12px; color: var(--muted); }
.when .next-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.match-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.match-foot .state { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.match-foot .state.live { color: var(--red); }
.match-foot a { font-weight: 700; text-decoration: none; color: var(--blue); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- Section head ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 34px; font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.section-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Tables ---------- */
.tables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; font-size: 18px; font-weight: 800; font-stretch: 115%; text-transform: uppercase; }
.table-card h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--g); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { padding: 9px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; background: var(--soft); }
td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
.tteam { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.tteam:hover { color: var(--blue); }
.tteam .rk { width: 16px; color: var(--muted); font-weight: 600; font-size: 13px; }
td.pts { font-weight: 900; font-size: 16px; }

/* ---------- Teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.team-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.team-tile { position: relative; }
.team-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.team-tile .tinfo { flex: 1; min-width: 0; }
.team-tile b { display: block; font-size: 16px; line-height: 1.2; }
.team-tile small { font-size: 13px; color: var(--muted); }
.search { position: relative; flex: 1; max-width: 420px; min-width: 240px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%;
  font: 500 15px/1 var(--font);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px 12px 42px;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.hits-note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

/* Player rows */
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.player {
  display: grid;
  position: relative;
  grid-template-columns: 42px 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s;
}
.player:hover { border-color: var(--blue); }
.player:hover .ep { background: var(--blue); color: #fff; border-color: var(--blue); }
.num {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 9px;
  background: var(--soft);
  font-size: 18px;
  font-weight: 900;
  font-stretch: 115%;
}
.player .badge { justify-self: center; }
.pinfo { min-width: 0; }
.pinfo b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmeta { display: grid; justify-items: end; font-size: 12px; color: var(--muted); line-height: 1.3; }
.pmeta b { font-size: 13px; color: var(--ink); }
.ep {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.ep.q { border-style: dashed; }

/* Team page */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }
.team-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--c);
  color: var(--t);
  overflow: hidden;
}
.team-hero::after { content: ''; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; border-radius: 50%; border: 20px solid currentColor; opacity: .1; }
.team-hero .badge { background: var(--t); color: var(--c); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }
.team-hero > div { min-width: 0; }
.team-hero h2 { overflow-wrap: anywhere; margin: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 900; font-stretch: 120%; text-transform: uppercase; line-height: .95; }
.team-hero p { margin: 8px 0 0; font-size: 15px; opacity: .85; }
.team-cols { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.team-cols h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.team-cols .plist { grid-template-columns: 1fr; margin-bottom: 26px; }
.team-cols .grid { grid-template-columns: 1fr; margin-bottom: 26px; }
.staff { list-style: none; margin: 0 0 26px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.staff li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14px; }
.staff li + li { border-top: 1px solid var(--line); }
.staff span { color: var(--muted); }

.foot { padding-top: 32px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 36px; gap: 28px; }
  .feature { max-width: 460px; }
  .tables, .team-cols, .plist { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .stats { gap: 18px; }
  .stats dd { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .updated { display: none; }
  .tabs-in { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .seg { flex: 1; }
  .seg a { flex: 1; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; font-size: 11px; }
  .seg svg { width: 20px; height: 20px; }
  .team-hero h2 { font-size: clamp(20px, 6.2vw, 34px); overflow-wrap: normal; }
  .team-hero p { font-size: 13px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .select, select { width: 100%; }
  .search { min-width: 100%; }
  th, td { padding-left: 5px; padding-right: 5px; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
  .hide-sm { display: none; }
  .player { grid-template-columns: 38px 1fr auto auto; gap: 10px; padding-right: 8px; }
  .player .ep { display: none; }
  .seg a .long { display: none; }
  .seg a .short { display: inline; }
  .seg a .count { position: absolute; top: 3px; right: 6px; margin: 0; }
  .seg a { position: relative; }
  .num { height: 38px; }
  .team-hero { padding: 20px; gap: 16px; }
  .team-hero .badge.xl { --size: 64px; }
  .feature { padding-left: 16px; padding-right: 16px; }
  .slides { margin: 0 -16px; }
  .slide { padding: 0 16px; }
  .versus { gap: 6px; }
  .versus .side { font-size: 14px; gap: 8px; }
  .versus .badge.lg { --size: 52px; }
  .versus .mid { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.foot p { margin: 0; }
.credit { margin-top: 10px !important; font-size: 14px; color: var(--ink); }
.credit b { font-weight: 800; font-stretch: 112%; }

/* ---------- Favourites & refinements ---------- */
.seg .short { display: none; }
.seg .count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 99px;
  background: #f5b301;
  color: #0a1730;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cover:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.star {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.star svg, .follow svg, .mini-star svg, .chip-star svg, .big-star svg, .toast svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star svg { width: 22px; height: 22px; }
.star:hover { background: var(--soft); color: #f5b301; }
.star[aria-pressed='true'] { color: #f5b301; }
.star[aria-pressed='true'] svg, .follow[aria-pressed='true'] svg, .mini-star svg, .chip-star svg, .big-star svg, .toast svg { fill: currentColor; }
.star:active { transform: scale(.85); }

.follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px 9px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--t);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.follow svg { width: 18px; height: 18px; }
.follow[aria-pressed='true'] { background: var(--t); color: var(--c); border-color: var(--t); }

.match.fav { background: linear-gradient(180deg, color-mix(in srgb, #f5b301 9%, var(--card)), var(--card) 60%); }
.mini-star { display: inline-grid; color: #f5b301; margin-left: -6px; }
.mini-star svg { width: 14px; height: 14px; }
.chip-star { display: inline-grid; color: #f5b301; }
.chip-star svg { width: 15px; height: 15px; }
tr.fav-row td { background: color-mix(in srgb, #f5b301 10%, transparent); }
tr.fav-row td:first-child { box-shadow: inset 3px 0 0 #f5b301; }

.scoring-head { margin-top: 40px; }
.scoring .sname { display: grid; min-width: 0; line-height: 1.2; }
.scoring .sname a { text-decoration: none; font-weight: 700; }
.scoring .sname a:hover { color: var(--blue); }
.scoring .sname small { font-size: 12px; font-weight: 500; color: var(--muted); }
#scoring .table-card { max-width: 640px; }

.fav-h { margin: 30px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fav-h:first-child { margin-top: 0; }
.fav-empty { padding: 40px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.fav-empty h3 { margin: 14px 0 6px; font-size: 22px; font-weight: 900; font-stretch: 115%; }
.fav-empty p { max-width: 460px; margin: 0 auto; color: var(--muted); }
.big-star { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, #f5b301 16%, transparent); color: #f5b301; }
.big-star svg { width: 34px; height: 34px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qteam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.qteam:hover { border-color: #f5b301; }
.qteam .plus { margin-left: 2px; font-weight: 900; color: #f5b301; }
.fteams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.fteam { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 6px 16px; box-shadow: inset 4px 0 0 #f5b301; }
.fteam-head { display: flex; align-items: center; gap: 14px; }
.fteam-head .tinfo { flex: 1; min-width: 0; display: grid; }
.fteam-head a { text-decoration: none; font-size: 18px; }
.fteam-head a:hover { color: var(--blue); }
.fteam-head small { color: var(--muted); font-size: 13px; }
.fteam-rows { margin: 12px 0 0; }
.fteam-rows div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fteam-rows dt { width: 54px; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fteam-rows dd { margin: 0; }
.wl { display: inline-block; padding: 1px 7px; border-radius: 6px; font-weight: 800; color: #fff; background: var(--muted); }
.wl.w { background: #14965a; }
.wl.l { background: var(--red); }
.more { margin-top: 30px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); }
.more .fav-h { display: none; }
.more .quick { margin-top: 14px; }
.empty.small { padding: 20px; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #0a1730;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .25s, opacity .25s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex: none; color: #f5b301; }
@media (prefers-color-scheme: dark) { .toast { background: #eef2f8; color: #0a1730; } }

/* Player stats */
.num { align-content: center; gap: 2px; line-height: 1; }
.num small { font-size: 9px; font-weight: 800; font-stretch: 100%; letter-spacing: .06em; color: var(--muted); }
.subtabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.subtabs button { padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; }
.subtabs button[aria-pressed='true'] { background: var(--ink); color: var(--card); }
.legend { margin: -12px 0 0; font-size: 12px; color: var(--muted); }
.pstats + .legend, .table-card + .legend { margin-top: 12px; }
#team .table-card + .table-card { margin-top: 14px; }
.pname { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.pname:hover { color: var(--blue); }
.pname .no { min-width: 22px; color: var(--muted); font-weight: 800; font-stretch: 110%; }

/* Combined player stats */
.ps-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.ps-controls .subtabs { margin: 0; }
.ps-search { max-width: 280px; min-width: 200px; }
.allstats th { white-space: nowrap; }
.allstats .rkh, .allstats .rk { width: 34px; color: var(--muted); font-size: 13px; }
.allstats td.rk { padding-left: 18px; }
.allstats .sname { display: grid; min-width: 0; line-height: 1.2; }
.allstats .sname b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allstats .sname small { font-size: 12px; font-weight: 500; color: var(--muted); }
.allstats td.sorted { font-weight: 900; background: color-mix(in srgb, var(--blue) 7%, transparent); }
.sortbtn { padding: 2px 4px; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-radius: 5px; }
.sortbtn:hover { color: var(--ink); background: var(--card); }
.sortbtn.on { color: var(--blue); }
.ps-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--blue); cursor: pointer; }
#scoring .table-card { max-width: none; overflow-x: auto; }
@media (max-width: 560px) {
  .ps-controls .select, .ps-search { width: 100%; max-width: none; }
  .allstats td.rk, .allstats .rkh { display: none; }
  .allstats td:nth-child(2) { padding-left: 12px; max-width: 170px; }
  .allstats th, .allstats td { padding-left: 4px; padding-right: 4px; }
}

/* Penalties */
.utv { color: var(--red); font-weight: 700; }
td.utv-col { color: var(--muted); }
.pen-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pen-sum div { display: grid; gap: 2px; min-width: 92px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pen-sum div:first-child { box-shadow: inset 3px 0 0 var(--red); }
.pen-sum b { font-size: 22px; font-weight: 900; font-stretch: 115%; line-height: 1; }
.pen-sum span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .pen-sum div { flex: 1 1 28%; min-width: 0; padding: 8px 10px; }
  .pen-sum b { font-size: 18px; }
}
.allstats th:nth-child(2), .allstats td:nth-child(2) { text-align: left; }
.privacy { margin-top: 10px !important; max-width: 640px; }

/* Official standings */
tr.cut td { border-bottom: 2px dashed var(--muted); }
.table-src { margin: 0; padding: 10px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.table-src a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* Unofficial badge */
.unofficial {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.foot b { color: var(--ink); }
