:root {
  --canvas: #e9efec;
  --surface: #f5f8f6;
  --white: #fff;
  --ink: #18201e;
  --muted: #6d7975;
  --line: #cbd5d1;
  --line-strong: #9fada8;
  --signal: #00d7a0;
  --signal-dark: #007b61;
  --signal-soft: #c9f8e9;
  --dark: #15211e;
  --radius: 12px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0d1412;
  --surface: #151f1c;
  --white: #1b2824;
  --ink: #e5eeea;
  --muted: #9aaca5;
  --line: #2a3934;
  --line-strong: #455851;
  --signal-dark: #37e7b9;
  --signal-soft: #173e33;
  --dark: #09100e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgb(24 32 30/0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(24 32 30/0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--sans);
}
[data-theme="dark"] body {
  background-image:
    linear-gradient(rgb(0 215 160 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 215 160 / 0.045) 1px, transparent 1px);
}
a {
  color: inherit;
  text-decoration-color: var(--signal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
.skip {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 12px;
  padding: 12px 16px;
  border: 1px solid var(--signal);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  z-index: 2000;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 20px;
  padding: 10px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(159 173 168/0.7);
  background: rgb(233 239 236/0.88);
  backdrop-filter: blur(20px) saturate(130%);
}
.site-header::after {
  position: absolute;
  right: 18px;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  content: "";
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--dark);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgb(0 215 160/0.08);
}
.brand strong {
  font-size: 1rem;
  font-weight: 650;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.search-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  margin-left: 18px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font: 0.68rem var(--mono);
  cursor: pointer;
}
.search-button:hover {
  border-color: var(--signal-dark);
  color: var(--ink);
}
.search-button svg,
.search-head svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.search-button kbd {
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  font: inherit;
}
.for-you-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: 600 0.68rem var(--mono);
  text-decoration: none;
}
.for-you-link:hover,
.for-you-link[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--signal-soft);
  color: var(--ink);
}
.for-you-link svg {
  width: 17px;
  fill: none;
  stroke: var(--signal-dark);
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.league-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  justify-content: flex-start;
  border-color: color-mix(in srgb, var(--signal-dark) 55%, var(--line));
  background: linear-gradient(135deg, var(--surface), var(--signal-soft));
  box-shadow: inset 0 0 0 1px rgb(0 215 160 / 0.06);
}
.league-status {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 9px rgb(0 215 160 / 0.7);
}
.control-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 150ms ease;
}
.league-trigger[aria-expanded="true"] .control-chevron {
  transform: rotate(180deg);
}
.language-picker {
  position: relative;
}
.bets-picker {
  position: relative;
}
.bets-trigger {
  display: inline-flex;
  min-width: 118px;
  align-items: center;
  gap: 8px;
  border-color: color-mix(in srgb, var(--signal-dark) 40%, var(--line));
  background: linear-gradient(135deg, var(--surface), var(--signal-soft));
}
.bets-trigger > svg {
  width: 16px;
  fill: none;
  stroke: var(--signal-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.bets-trigger > b {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: auto;
  border-radius: 999px;
  background: var(--dark);
  color: var(--signal);
  font: 0.58rem var(--mono);
}
.bets-menu {
  width: min(370px, calc(100vw - 18px));
}
.bets-menu > p {
  padding: 18px 12px;
  margin: 0;
  color: var(--muted);
  font: 0.68rem var(--mono);
  text-align: center;
}
.bet-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: stretch;
  border-radius: 6px;
}
.bet-menu-item:hover {
  background: var(--signal-soft);
}
.bet-menu-item > a {
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
}
.bet-menu-item strong,
.bet-menu-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bet-menu-item strong {
  font-size: 0.74rem;
}
.bet-menu-item small {
  margin-top: 4px;
  color: var(--muted);
  font: 0.61rem var(--mono);
}
.bets-menu .bet-menu-item > button {
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.bets-menu .bet-menu-item > button:hover {
  color: var(--ink);
}
.language-trigger {
  display: inline-flex;
  min-width: 132px;
  align-items: center;
  gap: 9px;
  border-color: color-mix(in srgb, var(--signal-dark) 55%, var(--line));
  background: linear-gradient(135deg, var(--surface), var(--signal-soft));
}
.language-trigger > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--signal-dark);
  stroke-width: 1.5;
}
.language-trigger[aria-expanded="true"] .control-chevron {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 9px);
  right: 0;
  display: none;
  width: 190px;
  max-height: min(480px, calc(100vh - 90px));
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(245 248 246 / 0.98);
  box-shadow: 0 18px 50px rgb(21 33 30 / 0.16);
}
.language-menu.open {
  display: grid;
  gap: 3px;
}
.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: 600 0.74rem var(--mono);
  cursor: pointer;
}
.language-menu button:hover,
.language-menu button[aria-checked="true"] {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}
.language-menu small {
  color: var(--muted);
  font-size: 0.62rem;
}
.theme-toggle {
  position: relative;
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
  content: "";
  transition: transform 180ms ease;
}
.theme-toggle svg {
  position: absolute;
  z-index: 1;
  top: 7px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.sun-icon {
  left: 7px;
  color: var(--signal);
}
.moon-icon {
  right: 7px;
}
[data-theme="dark"] .theme-toggle::before {
  background: #dffcf3;
  box-shadow: 0 0 12px rgb(223 252 243 / 0.45);
  transform: translateX(20px);
}
[data-theme="dark"] .moon-icon {
  color: #075744;
}
[data-theme="dark"] .sun-icon {
  color: var(--muted);
}
.button,
select {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgb(245 248 246/0.8);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.button:hover,
select:hover {
  border-color: var(--signal-dark);
  background: var(--white);
}
.button.subtle {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--signal);
}
.button:focus-visible,
.theme-toggle:focus-visible,
select:focus-visible,
a:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
[data-theme="dark"] .site-header {
  border-color: rgb(69 88 81 / 0.75);
  background: rgb(13 20 18 / 0.88);
}
[data-theme="dark"] .button,
[data-theme="dark"] select,
[data-theme="dark"] .league-menu,
[data-theme="dark"] .language-menu,
[data-theme="dark"] .team-card,
[data-theme="dark"] .roster-player,
[data-theme="dark"] .stat-grid div,
[data-theme="dark"] .facts div,
[data-theme="dark"] dialog {
  background: rgb(21 31 28 / 0.94);
}
[data-theme="dark"] .card {
  background: rgb(21 31 28 / 0.82);
}
[data-theme="dark"] tbody tr:hover {
  background: rgb(0 215 160 / 0.09);
}
[data-theme="dark"] .player-profile .facts div,
[data-theme="dark"] .player-profile .stat-grid div {
  background: rgb(21 31 28 / 0.9);
}
.league-menu {
  position: absolute;
  z-index: 2100;
  top: 60px;
  right: 18px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 84px);
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(245 248 246/0.98);
  box-shadow: 0 18px 50px rgb(21 33 30/0.12);
}
.league-menu.open {
  display: grid;
  gap: 10px;
}
.league-group {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.league-group h3 {
  margin: 0 0 7px;
  padding: 7px 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.league-group a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.league-group a:hover {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}
.league-group a[aria-current="page"] {
  border-left-color: var(--signal);
  background: var(--signal-soft);
  color: var(--ink);
}
.league-group small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}
.status {
  padding: 9px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--signal-soft);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
}
.page {
  width: min(1120px, 100%);
  min-height: calc(100vh - 160px);
  padding: clamp(36px, 6vw, 76px) 20px 88px;
  margin: auto;
}
.page:has(> .section-nav) {
  padding-top: 12px;
}
.hero {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 22px;
  margin-bottom: 30px;
}
.hero::before {
  position: absolute;
  top: 5px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: var(--line-strong);
  content: "";
}
.hero::after {
  position: absolute;
  top: 5px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgb(0 215 160/0.7);
  content: "";
}
.eyebrow {
  margin: 0;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1,
.profile h1,
.empty h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.95;
}
.subhead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}
.section-nav {
  position: sticky;
  z-index: 20;
  top: 72px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgb(233 239 236 / 0.9);
  box-shadow: 0 8px 24px rgb(21 33 30 / 0.08);
  backdrop-filter: blur(16px) saturate(130%);
}
.section-nav a {
  background: transparent;
}
[data-theme="dark"] .section-nav {
  background: rgb(13 20 18 / 0.9);
}
[data-theme="dark"] .section-nav a:not([aria-current="page"]) {
  border-color: #52665f;
  background: #1d2b27;
  color: #f0f7f4;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.025);
}
[data-theme="dark"] .section-nav a:not([aria-current="page"]):hover {
  border-color: var(--signal);
  background: #253a34;
}
.tabs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(245 248 246/0.64);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}
.tabs a:hover {
  border-color: var(--line-strong);
  background: var(--white);
}
.tabs a[aria-current="page"] {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--signal);
}
.card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(245 248 246/0.88);
}
.scorers-stage {
  position: relative;
  isolation: isolate;
}
.scorers-stage .hero,
.scorers-stage .ad-slot,
.scorers-stage .scorers-card {
  position: relative;
  z-index: 1;
}
.scorer-feature {
  position: absolute;
  z-index: 0;
  top: -22px;
  right: 10px;
  display: flex;
  width: clamp(170px, 24vw, 255px);
  height: 330px;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.scorer-feature img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: 0.62;
}
.scorer-feature strong {
  position: relative;
  z-index: 1;
  max-width: 190px;
  padding: 6px 9px;
  margin: 0 6px 44px 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgb(245 248 246 / 0.82);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.3;
  text-align: right;
}
[data-theme="dark"] .scorer-feature strong {
  background: rgb(13 20 18 / 0.84);
}
.scorers-card {
  background: rgb(245 248 246 / 0.82);
}
.goals-column {
  border-left: 1px solid color-mix(in srgb, var(--signal-dark) 45%, var(--line));
  background: var(--signal-soft);
  color: var(--signal-dark);
}
td.goals-column strong {
  font-size: 1.08rem;
}
.scorer-player {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.scorer-player > a:first-child {
  min-width: 0;
}
.scorer-team-crest {
  display: inline-flex;
  flex: 0 0 auto;
}
.scorer-team-crest .crest {
  width: 28px;
  height: 28px;
}
.scorers-card th.goals-column,
.scorers-card td.goals-column {
  text-align: center;
}
[data-theme="dark"] .scorers-card {
  background: rgb(21 31 28 / 0.84);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
caption {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background-color 120ms ease;
}
tbody tr:hover {
  background: rgb(201 248 233/0.45);
}
.standings-table th,
.standings-table td {
  padding: 7px 10px;
}
.standings-table .crest {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.standings-table .entity {
  gap: 8px;
}
.standings-table tr[class^="zone-"] td:first-child {
  box-shadow: inset 4px 0 var(--zone-color);
}
.zone-champions {
  --zone-color: #3978f6;
}
.zone-europa {
  --zone-color: #f09a36;
}
.zone-conference {
  --zone-color: #32b875;
}
.zone-relegation {
  --zone-color: #e05261;
}
.qualification-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
}
.qualification-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.qualification-legend span::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--zone-color);
  content: "";
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.entity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.crest {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.crest img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.team-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.team-inline .crest {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.team-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(245 248 246/0.78);
  text-decoration: none;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.team-card:hover {
  border-color: var(--signal-dark);
  background: var(--white);
}
.team-card span:not(.crest),
.roster-player > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team-card small,
.roster-player small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: capitalize;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.news-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--dark);
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.news-card:hover .news-image img {
  transform: scale(1.025);
}
.news-image small {
  position: absolute;
  right: 7px;
  bottom: 6px;
  max-width: calc(100% - 14px);
  padding: 3px 5px;
  background: rgb(9 16 14 / 0.72);
  color: #dfe9e5;
  font: 0.46rem var(--mono);
}
.news-card > div {
  padding: 17px;
}
.news-meta,
.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font: 0.55rem var(--mono);
}
.news-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.18;
}
.news-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.news-card h2 a:hover,
.news-card h2 a:focus-visible {
  color: var(--signal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.news-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.news-footer small {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.profile {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.profile-back span {
  color: var(--signal-dark);
  font-size: 1rem;
  transition: transform 120ms ease;
}
.profile-back:hover {
  color: var(--ink);
}
.profile-back:hover span {
  transform: translateX(-3px);
}
.player-profile {
  min-height: 390px;
  overflow: hidden;
}
.player-portrait {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: clamp(150px, 21vw, 230px);
  height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, transparent, rgb(0 215 160 / 0.12));
}
.player-portrait::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgb(0 215 160 / 0.2) 45%,
    rgb(255 255 255 / 0.55) 50%,
    rgb(0 215 160 / 0.2) 55%,
    transparent 75%
  );
  background-size: 220% 100%;
  content: "";
  animation: portrait-scan 1.35s ease-in-out infinite;
  transition: opacity 260ms ease;
}
.player-portrait.is-loaded::before {
  opacity: 0;
  pointer-events: none;
}
.player-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: 0;
  transform: translateY(5px) scale(0.985);
  transition:
    opacity 320ms ease,
    transform 420ms ease;
}
.player-portrait.is-loaded img {
  opacity: 1;
  transform: none;
}
@keyframes portrait-scan {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -130% 0;
  }
}
.player-profile .profile-hero,
.player-profile .facts,
.player-profile .stat-grid {
  position: relative;
  z-index: 1;
}
.player-profile .profile-hero {
  min-height: 120px;
  padding-right: clamp(130px, 21vw, 230px);
}
.player-profile .facts div,
.player-profile .stat-grid div {
  background: rgb(245 248 246 / 0.9);
}
.profile::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 3px;
  background: var(--signal);
  content: "";
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.favorite-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: 600 0.68rem var(--mono);
  cursor: pointer;
}
.favorite-button span {
  color: var(--signal-dark);
  font-size: 1rem;
}
.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
  border-color: var(--signal-dark);
  background: var(--dark);
  color: var(--signal);
}
.favorite-button[aria-pressed="true"] span {
  color: var(--signal);
}
.for-you-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  text-decoration: none;
}
.for-you-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.for-you-team {
  padding: 18px;
}
.for-you-team > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.for-you-team .crest {
  width: 44px;
  height: 44px;
}
.for-you-team h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}
.for-you-team h2 a {
  color: var(--ink);
  text-decoration: none;
}
.for-you-position {
  color: var(--signal-dark);
  font: 700 1rem var(--mono);
}
.for-you-team > header > button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.for-you-team > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
}
.for-you-team h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font: 0.58rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.for-you-match {
  display: block;
  min-height: 74px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}
.for-you-match:hover {
  border-color: var(--signal-dark);
  background: var(--signal-soft);
}
.for-you-match span,
.for-you-match small {
  display: block;
  color: var(--muted);
  font: 0.58rem var(--mono);
}
.for-you-match strong {
  display: block;
  margin: 5px 0;
  font-size: 0.7rem;
  line-height: 1.35;
}
.for-you-none {
  color: var(--muted);
  font-size: 0.7rem;
}
.for-you-news {
  padding-top: clamp(34px, 6vw, 64px);
}
.for-you-news > header {
  margin-bottom: 18px;
}
.for-you-news > header h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.profile-hero .crest,
.avatar {
  width: 78px;
  height: 78px;
  font-size: 0.9rem;
}
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--dark);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.facts div {
  padding: 15px;
  background: var(--surface);
}
dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
dd {
  margin: 5px 0 0;
  font-weight: 580;
}
.roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.roster-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  text-decoration: none;
}
.roster-player:hover {
  border-color: var(--signal-dark);
}
.shirt {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  background: var(--dark);
  color: var(--signal);
  font-family: var(--mono);
  font-weight: 700;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.stat-grid div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 15px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}
.stat-grid strong {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
}
.stat-grid span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.empty {
  padding: clamp(42px, 9vw, 100px) 20px;
  text-align: center;
}
.empty h2 {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ball {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--signal-dark);
  font-size: 1.2rem;
}
.ad-slot {
  display: grid;
  max-width: 728px;
  min-height: 66px;
  place-items: center;
  margin: 0 auto 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgb(245 248 246/0.5);
  color: var(--muted);
}
.ad-slot span {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(20px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--line-strong);
  background: var(--dark);
  color: #c9d5d1;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.6;
}
footer > span:last-child {
  text-align: right;
}
.map-hero {
  padding-bottom: 28px;
}
.football-map {
  padding: 14px;
}
.map-canvas {
  display: grid;
  height: clamp(360px, 58vw, 590px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--dark));
}
.map-loading {
  color: var(--muted);
  font: 0.68rem var(--mono);
}
.map-canvas.leaflet-container {
  display: block;
  font-family: var(--sans);
}
.map-canvas .leaflet-popup-content-wrapper,
.map-canvas .leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
}
.map-canvas .leaflet-popup-content strong,
.map-canvas .leaflet-popup-content small,
.map-canvas .leaflet-popup-content a {
  display: block;
}
.map-canvas .leaflet-popup-content small {
  margin: 3px 0 9px;
  color: var(--muted);
}
.map-venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
}
.map-venue-grid > a {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.map-venue-grid > a:hover {
  border-color: var(--signal-dark);
  background: var(--signal-soft);
}
.map-venue-grid .crest {
  width: 34px;
  height: 34px;
}
.map-venue-grid strong,
.map-venue-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-venue-grid strong {
  font-size: 0.78rem;
}
.map-venue-grid small {
  margin-top: 3px;
  color: var(--muted);
  font: 0.61rem var(--mono);
}
.map-venue-grid b {
  color: var(--muted);
  font-weight: 400;
}
.link-button {
  padding: 0;
  margin-left: 8px;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
dialog {
  max-width: 420px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(21 33 30/0.2);
}
dialog::backdrop {
  background: rgb(21 33 30/0.72);
  backdrop-filter: blur(4px);
}
.search-dialog {
  width: min(620px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 1rem var(--sans);
}
.search-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.search-results {
  display: grid;
  max-height: min(60vh, 510px);
  padding: 8px;
  overflow-y: auto;
}
.search-results > a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}
.search-results > a:hover,
.search-results > a:focus-visible {
  background: var(--signal-soft);
  outline: none;
}
.search-results img,
.search-mark {
  display: grid;
  width: 30px;
  height: 30px;
  object-fit: contain;
  place-items: center;
}
.search-mark {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--signal-dark);
  font: 0.6rem var(--mono);
}
.search-results strong,
.search-results small {
  display: block;
}
.search-results small {
  margin-top: 2px;
  color: var(--muted);
  font: 0.6rem var(--mono);
}
.search-results b {
  color: var(--muted);
}
.search-results > p {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}
.matches-panel {
  display: grid;
  gap: 12px;
}
.match-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.match-modes {
  display: flex;
  gap: 4px;
}
.match-modes button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 0.65rem var(--mono);
  cursor: pointer;
}
.match-modes button.active {
  background: var(--dark);
  color: var(--signal);
}
.matchday-picker {
  position: relative;
}
.matchday-trigger {
  display: flex;
  min-width: 145px;
  align-items: center;
  gap: 12px;
  border-color: var(--signal-dark);
  background: linear-gradient(135deg, var(--signal-soft), var(--surface));
  box-shadow:
    inset 0 0 0 1px rgb(0 215 160 / 0.12),
    0 0 18px rgb(0 215 160 / 0.09);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
}
.matchday-trigger[aria-expanded="true"] .control-chevron {
  transform: rotate(180deg);
}
.matchday-menu {
  right: 0;
  left: auto;
  width: 190px;
  max-height: 340px;
  overflow-y: auto;
}
.matchday-menu button > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.current-matchday {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgb(0 215 160 / 0.75);
}
.match-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.match-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.match-card:hover,
.match-card:focus-visible {
  border-color: var(--signal-dark);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(21 33 30 / 0.1);
}
.match-card time,
.match-card small {
  color: var(--muted);
  font: 0.58rem var(--mono);
}
.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-status {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 0.52rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.match-status.is-upcoming {
  border-color: color-mix(in srgb, var(--signal-dark) 55%, var(--line));
  background: var(--signal-soft);
  color: var(--signal-dark);
}
.match-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.match-card .crest {
  width: 25px;
  height: 25px;
}
.match-card .team-inline {
  margin-left: -7px;
  padding: 5px 7px;
  border-radius: 7px;
  transition:
    background 130ms ease,
    color 130ms ease;
}
.match-card .team-inline:hover,
.match-card .team-inline:focus-visible {
  background: var(--signal-soft);
  color: var(--signal-dark);
  outline: 1px solid color-mix(in srgb, var(--signal-dark) 45%, transparent);
}
.match-card .team-inline:hover span:last-child,
.match-card .team-inline:focus-visible span:last-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.match-card > div > strong {
  font: 700 1rem var(--mono);
}
.match-profile {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 5vw, 48px);
  text-align: center;
}
.match-highlights {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.match-highlights > h2 {
  width: 100%;
}
.match-highlights > external-action-link {
  min-width: min(100%, 280px);
}
.article-page {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 5vw, 48px);
}
.article-page header {
  max-width: 860px;
}
.article-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}
.article-description {
  color: var(--muted);
  line-height: 1.6;
}
.article-frame {
  position: relative;
  min-height: min(76vh, 900px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}
.article-frame iframe {
  width: 100%;
  height: min(76vh, 900px);
  border: 0;
  background: var(--white);
}
.article-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background: var(--surface-strong);
}
.article-fallback[hidden] {
  display: none;
}
.article-fallback > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.62);
}
.article-fallback > div {
  position: absolute;
  bottom: 23%;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(88%, 440px);
  padding: 18px;
  border: 1px solid rgb(143 245 213 / 0.28);
  border-radius: 14px;
  background: rgb(9 25 20 / 0.86);
  color: var(--white);
  text-align: center;
  backdrop-filter: blur(8px);
}
.article-fallback p {
  margin: 0;
  color: var(--muted);
  font: 0.68rem var(--mono);
  line-height: 1.6;
  text-align: center;
}
.article-fallback external-action-link {
  width: min(100%, 300px);
}
.article-embed > external-action-link[hidden] {
  display: none;
}
.article-page > external-action-link {
  justify-self: start;
  width: min(100%, 340px);
}
.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.match-profile > header time {
  color: var(--muted);
  font: 0.68rem var(--mono);
}
.match-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 60px);
}
.match-score > div {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.match-score .crest {
  width: 82px;
  height: 82px;
}
.match-score a {
  color: var(--ink);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
}
.match-score small {
  color: var(--muted);
  font: 0.58rem var(--mono);
}
.match-score > strong {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 700 clamp(2rem, 7vw, 4.5rem) var(--mono);
}
.match-score > strong i {
  color: var(--muted);
  font-size: 0.5em;
  font-style: normal;
}
.match-profile > .match-status {
  justify-self: center;
}
.match-bet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--signal-dark) 40%, var(--line));
  border-radius: 10px;
  background: var(--signal-soft);
  text-align: left;
}
.match-bet h2 {
  margin: 4px 0 0;
  font-size: 1rem;
}
.match-bet .eyebrow {
  margin: 0;
}
.bet-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.bet-options button {
  display: grid;
  min-height: 58px;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.bet-options button:hover,
.bet-options button[aria-pressed="true"] {
  border-color: var(--signal-dark);
  background: var(--dark);
  color: var(--signal);
}
.bet-options button > span {
  color: var(--signal-dark);
  font: 700 0.9rem var(--mono);
  text-align: center;
}
.bet-options button[aria-pressed="true"] > span {
  color: var(--signal);
}
.bet-options strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.match-facts > div {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}
.match-facts dt {
  color: var(--muted);
  font: 0.53rem var(--mono);
  text-transform: uppercase;
}
.match-facts dd {
  margin: 5px 0 0;
  font-size: 0.82rem;
}
.match-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.match-section > h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}
.match-timeline {
  display: grid;
  gap: 7px;
}
.match-timeline > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 5px 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.match-timeline time,
.match-timeline small {
  color: var(--muted);
  font: 0.6rem var(--mono);
}
.match-timeline small {
  grid-column: 2;
}
.match-timeline a,
.match-lineups a {
  color: inherit;
  text-underline-offset: 3px;
}
.match-statistics {
  display: grid;
}
.match-statistics > div {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.match-statistics span {
  color: var(--muted);
  font: 0.6rem var(--mono);
}
.match-lineups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.match-lineups > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.match-lineups h3,
.match-lineups h4 {
  margin: 0 0 12px;
}
.match-lineups h4 {
  margin-top: 18px;
  color: var(--muted);
  font: 0.58rem var(--mono);
  text-transform: uppercase;
}
.match-lineups ol {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.match-lineups li {
  display: flex;
  gap: 9px;
  font-size: 0.76rem;
}
.match-lineups li > span {
  width: 22px;
  color: var(--muted);
  font-family: var(--mono);
}
.match-facts a {
  color: var(--signal-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}
.stadium-profile {
  overflow: hidden;
}
.stadium-photo {
  position: relative;
  display: grid;
  min-height: clamp(220px, 42vw, 460px);
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark), #20352f);
  color: var(--signal);
  font: 0.72rem var(--mono);
}
.stadium-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgb(9 16 14 / 0.48));
  content: "";
  pointer-events: none;
}
.stadium-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 500ms ease,
    transform 900ms ease;
}
.stadium-photo.is-loaded img {
  opacity: 1;
  transform: scale(1);
}
.stadium-profile > header {
  padding: clamp(22px, 5vw, 44px);
  border-bottom: 1px solid var(--line);
}
.stadium-profile > header h1 {
  margin: 5px 0;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.055em;
}
.stadium-profile > header p:last-child {
  margin: 0;
  color: var(--muted);
}
.stadium-profile .match-facts {
  padding: 0 clamp(12px, 4vw, 34px);
}
.stadium-profile .photo-credit {
  display: block;
  justify-content: initial;
  padding: 13px clamp(22px, 5vw, 44px);
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 0.55rem var(--mono);
  text-align: left;
}
.stadium-profile .photo-credit a {
  color: inherit;
}
.no-matches {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
.update-toast {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  padding: 14px 17px;
  border: 1px solid var(--signal);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  box-shadow: 0 15px 40px rgb(21 33 30/0.2);
}
@media (max-width: 800px) {
  .player-portrait {
    width: 150px;
  }
  .league-menu {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .site-header {
    gap: 5px;
    min-height: 62px;
    padding-right: 8px;
    padding-left: 8px;
  }
  .section-nav {
    top: 62px;
    flex-wrap: nowrap;
    width: calc(100% + 26px);
    max-width: none;
    padding: 5px 13px;
    margin-right: -13px;
    margin-left: -13px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
    scroll-padding-inline: 13px;
  }
  .section-nav::-webkit-scrollbar {
    display: none;
  }
  .section-nav a {
    min-height: 42px;
    flex: 0 0 auto;
    align-content: center;
    padding: 9px 12px;
    text-align: center;
    white-space: nowrap;
  }
  .scorer-feature {
    right: 0;
    width: 145px;
    height: 245px;
  }
  .scorer-feature strong {
    max-width: 130px;
    margin-bottom: 22px;
  }
  .brand strong {
    display: none;
  }
  .brand > span {
    width: 34px;
    height: 34px;
  }
  .search-button {
    width: 34px;
    justify-content: center;
    margin-left: 0;
    padding: 0;
  }
  .search-button span,
  .search-button kbd {
    display: none;
  }
  .for-you-link {
    width: 34px;
    min-width: 34px;
    justify-content: center;
    padding: 0;
  }
  .for-you-link span {
    display: none;
  }
  .map-canvas {
    height: 420px;
  }
  .map-venue-grid {
    grid-template-columns: 1fr;
  }
  .match-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .match-modes button {
    flex: 1;
  }
  .matchday-trigger {
    width: 100%;
  }
  .matchday-menu {
    right: 0;
    left: 0;
    width: 100%;
  }
  .match-list {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .match-score {
    gap: 10px;
  }
  .match-score .crest {
    width: 54px;
    height: 54px;
  }
  .match-score > strong {
    gap: 7px;
  }
  .match-bet {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .match-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-lineups {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 4px;
    min-width: 0;
  }
  .league-trigger {
    min-width: 0;
    width: min(94px, 26vw);
    max-width: 94px;
    gap: 6px;
    padding: 0 8px;
  }
  .league-trigger [data-league-label] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .language-trigger {
    width: 36px;
    min-width: 36px;
    padding: 0 9px;
  }
  .language-trigger [data-language-label],
  .language-trigger .control-chevron {
    display: none;
  }
  .bets-trigger {
    position: relative;
    width: 36px;
    min-width: 36px;
    padding: 0 9px;
  }
  .bets-trigger [data-bets-label],
  .bets-trigger .control-chevron {
    display: none;
  }
  .bets-trigger > b {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 17px;
    height: 17px;
  }
  .language-menu {
    position: fixed;
    top: 58px;
    right: 8px;
    width: min(240px, calc(100vw - 16px));
    max-height: calc(100dvh - 70px);
  }
  .bets-menu {
    width: min(370px, calc(100vw - 16px));
  }
  .theme-toggle {
    flex: 0 0 50px;
    width: 50px;
    min-width: 50px;
    height: 32px;
  }
  #install-button:not([hidden]) {
    position: fixed;
    z-index: 38;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 42px;
    border-color: var(--signal);
    background: var(--dark);
    color: var(--signal);
    box-shadow: 0 10px 30px rgb(9 16 14 / 0.25);
  }
  .button,
  select {
    padding: 0 9px;
  }
  .page {
    padding-top: 20px;
    padding-right: 13px;
    padding-left: 13px;
  }
  .page:has(> .section-nav) {
    padding-top: 0;
  }
  .league-menu {
    right: 9px;
    grid-template-columns: 1fr;
    width: calc(100vw - 18px);
  }
  .hero {
    padding-left: 17px;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .team-grid,
  .roster {
    grid-template-columns: 1fr;
  }
  .for-you-grid {
    grid-template-columns: 1fr;
  }
  .for-you-team > div {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .profile-hero {
    align-items: flex-start;
  }
  .profile-hero > div,
  .match-score > div {
    min-width: 0;
  }
  .profile-hero h1,
  .match-score a,
  .news-card h2 {
    overflow-wrap: anywhere;
  }
  .profile-hero .crest,
  .avatar {
    width: 62px;
    height: 62px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .news-footer > div {
    justify-content: flex-start;
  }
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  .standings-card,
  .scorers-card {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .standings-card .table-wrap,
  .scorers-card .table-wrap {
    overflow: visible;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  caption {
    padding: 16px;
  }
  tbody {
    padding: 10px;
  }
  tbody tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding: 11px;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
  }
  .standings-table tbody tr {
    padding: 7px;
  }
  .standings-table th,
  .standings-table td {
    padding: 3px 4px;
  }
  tbody tr:last-child {
    margin-bottom: 0;
  }
  tbody td {
    min-width: 0;
    padding: 4px;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  tbody td.num {
    text-align: left;
  }
  tbody td:not(.goals-column),
  tbody td:not(.goals-column) > a {
    background: transparent;
  }
  tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.55rem;
    text-transform: uppercase;
  }
  tbody td:nth-child(2) {
    grid-column: span 3;
  }
  .standings-table tbody td:nth-child(n + 3),
  .scorers-card tbody td:nth-child(n + 3) {
    display: flex;
    min-height: 43px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .standings-table tbody td:nth-child(10) {
    border-radius: 6px;
    background: var(--signal-soft);
    color: var(--signal-dark);
  }
  .scorers-card tbody td:nth-child(3) {
    grid-column: 1;
  }
  .scorers-card tbody td:nth-child(4) {
    grid-column: 2;
  }
  .scorers-card tbody td:nth-child(5) {
    grid-column: 3;
  }
  .scorers-card tbody td:nth-child(6) {
    grid-column: 4;
    border: 0;
    border-radius: 6px;
    text-align: center;
  }
  .scorers-card tbody td:nth-child(2) strong,
  .standings-table tbody td:nth-child(2) strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .standings-table .entity,
  .scorers-card tbody td:nth-child(2) a {
    min-width: 0;
    max-width: 100%;
  }
  .scorers-card .scorer-player {
    width: 100%;
    justify-content: space-between;
  }
  .scorers-card .scorer-team-crest .crest {
    width: 25px;
    height: 25px;
  }

  /* Keep standings as one compact table on small screens. These rules come
     last so the older mobile card styles cannot turn standings rows into cards. */
  .standings-card .table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    isolation: isolate;
  }

  .standings-card .table-wrap::-webkit-scrollbar {
    display: none;
  }

  .standings-card .standings-table {
    display: block;
    width: max-content;
    min-width: 680px;
  }

  .standings-card .standings-table thead {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .standings-card .standings-table tbody {
    display: block;
    padding: 0;
  }

  .standings-card .standings-table caption {
    display: block;
    width: 100%;
  }

  .standings-card .standings-table thead tr,
  .standings-card .standings-table tbody tr {
    display: grid;
    grid-template-columns: 42px 158px repeat(8, 64px);
    width: max-content;
    min-width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .standings-card .standings-table th,
  .standings-card .standings-table td {
    display: block;
    min-height: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
  }

  .standings-card .standings-table td::before {
    display: none;
  }

  .standings-card .standings-table tbody td:nth-child(2) {
    grid-column: auto;
  }

  .standings-card .standings-table tbody td:nth-child(n + 3) {
    display: block;
    min-height: 0;
    padding: 8px 10px;
    text-align: center;
  }

  .standings-card .standings-table th:nth-child(1),
  .standings-card .standings-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 42px;
    min-width: 42px;
    background: var(--surface);
    text-align: center;
  }

  .standings-card .standings-table th:nth-child(2),
  .standings-card .standings-table td:nth-child(2) {
    position: sticky;
    left: 42px;
    z-index: 3;
    width: 158px;
    min-width: 158px;
    background: var(--surface);
    box-shadow: 10px 0 15px -14px var(--ink);
    overflow: hidden;
  }

  .standings-card .standings-table th:nth-child(1),
  .standings-card .standings-table th:nth-child(2) {
    z-index: 4;
  }

  .standings-card .standings-table .entity {
    width: 100%;
    max-width: 158px;
    gap: 7px;
    font-size: 0.72rem;
  }

  footer {
    flex-direction: column;
  }
  footer > span:last-child {
    text-align: left;
  }
  .ad-slot {
    min-height: 56px;
  }
}
@media (max-width: 370px) {
  .search-button {
    display: none;
  }
  .league-status {
    display: none;
  }
  .league-trigger {
    width: 82px;
  }
  .facts,
  .match-facts {
    grid-template-columns: 1fr;
  }
  .match-score .crest {
    width: 46px;
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .player-portrait::before {
    animation: none;
  }
}
