:root {
  color-scheme: light;
  accent-color: #242424;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  font-optical-sizing: auto;
  line-height: 1.5;
  --canvas: #f5f5f5;
  --paper: #fff;
  --wash: #f2f2f2;
  --ink: #171717;
  --accent: #0c6847;
  --muted: #606060;
  --line: #e5e5e5;
  --edge: #d4d4d4;
  --radius: 1.5rem;
  --shell: 74rem;
  --shadow: 0 1px 2px #00000006, 0 8px 30px #00000005;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body { min-width: 0; margin: 0; }
body, button, input, select { color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { color: #171717; background: #d6d6d6; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 680;
  line-height: 1.09;
}
h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.036em; }
h3 { font-size: 1.17rem; letter-spacing: -.025em; }

:where(a, button, input, select):focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .7rem auto auto .8rem;
  padding: .7rem 1rem;
  transform: translateY(-180%);
  border-radius: .7rem;
  background: #171717;
  color: #fff;
}

.skip-link:focus { transform: none; outline-color: #646464; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 4;
  background: #fbfbfbf0;
  border-bottom: 1px solid #00000013;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 3.8rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .52rem;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 730;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand-mark {
  width: 2.45rem;
  height: 1.7rem;
  object-fit: contain;
}
.brand-text > span { color: var(--accent); }

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .12rem;
}

.site-nav a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding-inline: .72rem;
  border-radius: 1rem;
  color: #555;
  font-size: .845rem;
  font-weight: 560;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover { color: var(--ink); background: #ededed; }
.site-nav [aria-current="page"] { color: var(--ink); background: #eaeaea; font-weight: 680; }

.button, .header-action {
  width: fit-content;
  min-height: 2.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.02rem;
  border: 1px solid transparent;
  border-radius: 100vmax;
  font-size: .9rem;
  font-weight: 660;
  letter-spacing: -.014em;
  line-height: 1.25;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, transform 160ms ease;
}

.header-action {
  justify-self: end;
  min-height: 2.25rem;
  padding: .44rem .98rem;
  font-size: .82rem;
}

.button.primary, .header-action { color: #fff; background: #191919; }
.button.primary:hover, .header-action:hover { background: #383838; }
.button.primary[aria-pressed="true"] { color: var(--ink); border-color: var(--edge); background: var(--wash); }
.button.secondary { color: var(--ink); border-color: var(--edge); background: #fff; }
.button.secondary:hover { border-color: #b5b5b5; background: #f8f8f8; }
.button:active, .header-action:active { transform: scale(.97); transition-duration: 75ms; }

main.shell { padding-block: clamp(1.25rem, 3.2vw, 2.9rem) 5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  grid-template-areas: "copy media";
  min-height: clamp(23rem, 37vw, 30rem);
  padding: .65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-content {
  grid-area: copy;
  align-self: center;
  padding: clamp(1.6rem, 4.8vw, 4.1rem);
}

.hero-image {
  grid-area: media;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.45rem;
  background: #17211b;
}

.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 64%;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .008em;
}

.hero h1, .page-intro h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 710;
  letter-spacing: -.067em;
  line-height: .965;
}

.hero h1 { margin-block: .47rem 1rem; font-size: clamp(3.02rem, 5.55vw, 5.35rem); }
.hero .eyebrow { color: var(--accent); }

.hero-content p:not(.eyebrow), .page-intro p:not(.eyebrow) {
  color: #555;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  letter-spacing: -.018em;
  line-height: 1.42;
  text-wrap: pretty;
}

.hero-content p:not(.eyebrow) { max-width: 28ch; }

.hero-actions, .page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .75rem;
}

.hero-actions { margin-top: 1.52rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.15rem;
  margin-top: 1.22rem;
}

.main-column, .side-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 1.15rem;
}

.panel, .info-card, .market-card, .game-promo {
  min-width: 0;
  padding: clamp(1.05rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

main > .panel + .panel, main > .panel-grid + .panel,
main > .panel + .panel-grid, main > .panel + .game-promo,
.dashboard-grid + .panel, .dashboard-grid + .game-promo,
.game-promo + .panel, [data-filter-region] > .panel + .panel {
  margin-top: 1.15rem;
}

.section-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: .85rem;
}

.section-head h2, .section-head h3 { min-width: 0; }
.section-head > a { flex: none; }
.text-link {
  width: fit-content;
  color: #3b3b3b;
  font-size: .855rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #b7b7b7;
  text-underline-offset: .17em;
  overflow-wrap: anywhere;
}

.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.match-list, .market-list {
  display: grid;
  gap: .6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.match-list { gap: .08rem; }
.match-row {
  min-width: 0;
  display: grid;
  gap: .52rem;
  padding: .68rem .72rem .76rem;
  border-radius: .78rem;
  background: #f8f8f8;
  transition: background-color 150ms ease;
}

.match-list :is(.match-row, [data-filter-item]) + :is(.match-row, [data-filter-item]) { margin-top: .35rem; }
a.match-row:hover, .match-row:focus-within { background: #ededed; }

.match-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 580;
}

.match-sides {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.32rem, 1.2vw, .75rem);
}

.club-inline, .team-cell {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 635;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.match-sides > .club-inline:last-child { justify-content: flex-end; text-align: right; }
.match-sides > .club-inline:last-child .club-crest { order: 1; }

.match-score, .match-time {
  min-width: 3.3rem;
  padding: .2rem .41rem;
  border-radius: .43rem;
  background: #e9e9e9;
  color: #2b2b2b;
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.match-score { background: #252525; color: #fff; }

.club-crest {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  object-fit: contain;
}

.table-wrap { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.standings-table :is(th, td) {
  padding: .6rem .42rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.standings-table :is(th, td):first-child { padding-left: .1rem; }
.standings-table :is(th, td):last-child { padding-right: .1rem; }
.standings-table thead th { color: var(--muted); font-size: .76rem; font-weight: 630; }
.standings-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.standings-table tbody tr:hover { background: #f8f8f8; }
.standings-table a:hover { text-decoration: underline; text-underline-offset: .17em; }
.standings-table .rank { color: var(--muted); }
.standings-table .team-cell .club-crest { width: 1.65rem; height: 1.65rem; flex-basis: 1.65rem; }

.page-intro {
  max-width: 54rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.35rem);
  padding-block: clamp(1rem, 3.7vw, 3rem) .25rem;
}

.page-intro h1 {
  margin-block: .46rem .78rem;
  font-size: clamp(2.65rem, 5.6vw, 5rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.page-intro p:not(.eyebrow) { max-width: 60ch; }
.page-actions { margin-bottom: 1.15rem; }

.detail-list, .market-meta, .match-hero-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}
.detail-list { align-items: stretch; margin-bottom: 1rem; }
.detail-list > span {
  min-width: min(100%, 8rem);
  display: grid;
  align-content: start;
  gap: .2rem;
  padding: .65rem .75rem;
  border-radius: .65rem;
  background: var(--wash);
}
.detail-list > span > strong { color: var(--muted); font-size: .78rem; }
.match-hero-score {
  justify-content: center;
  margin-bottom: 1rem;
  padding: 1rem .7rem;
  border-radius: .8rem;
  background: var(--wash);
}
.match-hero-score > strong {
  padding: .25rem .65rem;
  border-radius: .45rem;
  background: #252525;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.panel-grid, .story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .86rem;
}

.club-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  border-top: 2px solid color-mix(in srgb, var(--team-accent) 43%, #e5e5e5);
}
.club-card:has(> div:first-child) { grid-template-columns: minmax(0, 1fr); }
.club-card h2 { margin-bottom: .18rem; font-size: 1.12rem; }
.club-card-crest { width: 2.95rem; height: 2.95rem; object-fit: contain; }
.spotlight-grid .club-card { padding: .8rem; border-radius: 1rem; box-shadow: none; }
.club-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .85rem 1.8rem; }
.club-intro-crest { width: clamp(3.2rem, 10vw, 7rem); height: auto; object-fit: contain; }

.player-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.6rem), 1fr)); }
.player-card { padding: .47rem; gap: 0; border-radius: 1.18rem; }
.player-card-copy { padding: .65rem .52rem .55rem; }
.player-card-copy .eyebrow { margin-bottom: .16rem; }
.player-card h2 { margin-bottom: .14rem; font-size: 1.08rem; overflow-wrap: anywhere; }
.player-visual {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  aspect-ratio: 1.57;
  overflow: hidden;
  border-radius: .8rem;
  background:
    linear-gradient(147deg, #ffffffb3, transparent 57%),
    repeating-linear-gradient(125deg, transparent 0 10px, #ffffff3d 10px 11px),
    color-mix(in srgb, var(--team-accent) 21%, #f4f4f4);
}
.player-shirt {
  display: grid;
  place-items: center;
  width: clamp(3.3rem, 7vw, 5.2rem);
  aspect-ratio: 1;
  padding-top: .55rem;
  clip-path: polygon(27% 5%, 37% 0, 43% 9%, 57% 9%, 63% 0, 73% 5%, 99% 24%, 88% 46%, 77% 40%, 77% 98%, 23% 98%, 23% 40%, 12% 46%, 1% 24%);
  background: linear-gradient(115deg, color-mix(in srgb, var(--team-accent) 62%, #151515), color-mix(in srgb, var(--team-accent) 30%, #151515));
  color: #fff;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 720;
}
.player-crest {
  position: absolute;
  inset: auto .45rem .42rem auto;
  width: 1.76rem;
  height: 1.76rem;
  object-fit: contain;
}
.player-profile-grid { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.player-profile-grid .player-visual { aspect-ratio: 1.25; }
.player-profile-grid .player-shirt { width: min(53%, 7rem); font-size: 1.65rem; }
.player-profile-grid .player-crest { width: 2.4rem; height: 2.4rem; }

.info-card, .story-card, .market-card {
  display: grid;
  align-content: start;
  gap: .45rem;
}

.story-card {
  min-width: 0;
  padding: clamp(.9rem, 2vw, 1.28rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.panel .story-card { background: #f8f8f8; border-color: #efefef; }
.story-card:hover, a.info-card:hover {
  border-color: var(--edge);
  background: #f9f9f9;
}
.panel .story-card:hover { border-color: var(--edge); background: #f4f4f4; }

.story-card p, .info-card p, .market-card p, .favorite-panel p {
  color: #555;
  font-size: .93rem;
  text-wrap: pretty;
}
.story-card time, .market-card time { color: var(--muted); font-size: .78rem; }
.story-card time { margin-top: .24rem; }

.season-tag, .status-label {
  width: fit-content;
  display: inline-flex;
  padding: .18rem .52rem;
  border: 1px solid var(--edge);
  border-radius: 100vmax;
  background: var(--wash);
  color: #363636;
  font-size: .77rem;
  font-weight: 620;
  line-height: 1.35;
}
.status-label[data-status="registered"], .status-label[data-status="announced"] {
  border-color: #292929;
  background: #292929;
  color: #fff;
}
.status-label[data-status="denied"] { border-style: dashed; }
.market-card .market-clubs { color: var(--ink); font-weight: 660; }
.market-meta { margin-top: .3rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .7rem;
  margin-bottom: 1rem;
}
.filters > * { min-width: 0; }
.filters label {
  color: #505050;
  font-size: .85rem;
  font-weight: 640;
}
.filters > :is(input, select) + label { margin-inline-start: .45rem; }
.filters :is(input, select) {
  min-height: 2.6rem;
  min-width: min(100%, 10rem);
  max-width: 100%;
  padding: .45rem .75rem;
  border: 1px solid var(--edge);
  border-radius: .7rem;
  background-color: #fff;
  font-size: .95rem;
}
.filters input::placeholder { color: #686868; }
.filters input::-webkit-search-cancel-button { filter: grayscale(1); }
.filters select {
  appearance: none;
  padding-inline-end: 1.78rem;
  background-image: linear-gradient(45deg, transparent 50%, #525252 50%), linear-gradient(135deg, #525252 50%, transparent 50%);
  background-position: calc(100% - .91rem) 52%, calc(100% - .65rem) 52%;
  background-repeat: no-repeat;
  background-size: .27rem .27rem;
}
.filters :is(input, select):hover { border-color: #aaa; }

.favorite-panel { background: #fafafa; }
.favorite-panel [data-favorite-panel] { display: grid; gap: .42rem; }
.favorite-panel [data-favorite-panel] > strong { font-size: 1.02rem; }
.favorite-panel [data-favorite-panel] > strong { display: flex; align-items: center; gap: .5rem; }
.favorite-panel [data-favorite-panel] .text-link { margin-top: .12rem; }

.game-promo {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: .7rem;
  min-height: 12rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-color: #242424;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #1c1c1c 20%, #303030);
  color: #fff;
}
.game-promo h2 { font-size: clamp(1.65rem, 3.3vw, 2.65rem); letter-spacing: -.049em; }
.game-promo .eyebrow { color: #d1d1d1; }
.game-promo p:not(.eyebrow) { max-width: 51ch; color: #e6e6e6; text-wrap: pretty; }
.game-promo .button.primary { margin-top: .2rem; background: #fff; color: #161616; }
.game-promo .button.primary:hover { background: #e7e7e7; }
.game-promo a:focus-visible { outline-color: #fff; }

.article-body { width: min(100%, 75ch); color: #333; font-size: 1.06rem; line-height: 1.68; }
.article-body > * + * { margin-top: 1em; }
.article-sources { padding-top: 1rem; border-top: 1px solid var(--line); }
.article-sources ul { margin-bottom: 0; padding-inline-start: 1.3em; }

.empty-state, .section-note, .snapshot { color: var(--muted); }
.section-note, .snapshot { font-size: .83rem; }
.section-note + * { margin-top: .66rem; }
.snapshot { margin-top: 1rem; }
.snapshot strong { color: #424242; }
.empty-state:not([hidden]) { padding-block: .35rem; }

.site-footer {
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
  background: #ededed;
  color: var(--muted);
  font-size: .83rem;
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
}
.source-links, .filter-more { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; }
.source-list { margin: 0; padding-inline-start: 1.12rem; }
.source-list > li + li { margin-top: .5rem; }
.crest-credits strong { display: block; }
.crest-credits p { color: #555; font-size: .9rem; margin-block: .15rem; }
.filter-more { justify-content: center; margin-top: 1.2rem; }
.filter-more [data-filter-count] { color: var(--muted); font-size: .85rem; }
.fixture-filters { margin-block-start: 1.15rem; }

@media (max-width: 57rem) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: .22rem .65rem; padding-block: .5rem .24rem; }
  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: .16rem .3rem;
    padding-inline: .21rem;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-height: 2.12rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

@media (max-width: 43rem) {
  .shell { width: calc(100% - 1.5rem); }
  main.shell { padding-bottom: 3rem; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "media";
    min-height: 0;
    border-radius: 1.5rem;
    padding: .47rem;
  }
  .hero-content { padding: 1.45rem .94rem 1.32rem; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.3rem); }
  .hero h1 br { display: none; }
  .hero-image { min-height: 0; aspect-ratio: 1.67; border-radius: 1.04rem; }
  .hero-image img { object-position: 65% 65%; }
  .hero-actions { margin-top: 1rem; gap: .45rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .match-sides .club-inline { gap: .36rem; font-size: .86rem; }
  .match-sides .club-crest { width: 1.57rem; height: 1.57rem; flex-basis: 1.57rem; }
  .player-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.3rem), 1fr)); }
  .player-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .player-profile-grid .player-visual { max-width: 15rem; }
  .filters { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .filters > :is(input, select) + label { margin-inline-start: 0; }
  .filters :is(input, select) { width: 100%; min-width: 0; }
  .section-head { flex-wrap: wrap; }
}

@media (max-width: 23rem) {
  .match-row { padding-inline: .42rem; }
  .match-sides .club-inline { gap: .22rem; font-size: .8rem; }
  .match-sides .club-crest { width: 1.3rem; height: 1.3rem; flex-basis: 1.3rem; }
  .match-score, .match-time { min-width: 2.65rem; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .button:active, .header-action:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { background: #fff; backdrop-filter: none; border-bottom-color: #b2b2b2; }
}
