/* 90+ shared product tokens and component surfaces. */
:root,
:root:not([data-theme="light"]) {
  --bg: #101212;
  --surface: #1a1d1e;
  --surface-raised: #222627;
  --surface-hover: #2a3031;
  --border: #303637;
  --text: #f1f4f3;
  --secondary: #c3ccca;
  --muted: #929f9c;
  --accent: #74c7ad;
  --accent-fill: #267e66;
  --accent-soft: #233a32;
  --masthead: #191c1d;
  --success: #64c99b;
  --danger: #ec818b;
  --live: #f47988;
  --warning: #e3bd6d;
  --portrait: #363e3c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 36px #0002;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --logo-xs: 18px;
  --logo-sm: 24px;
  --logo-md: 32px;
  --logo-lg: 56px;
  --logo-xl: 80px;
  --panel: var(--surface);
  --raised: var(--surface-raised);
  --line: var(--border);
  --lime: var(--accent);
}
:root[data-theme="light"] {
  --bg: #f7f7f3;
  --surface: #fffdf8;
  --surface-raised: #f0ecdf;
  --surface-hover: #e8e5db;
  --border: #dedfd6;
  --text: #202a27;
  --secondary: #4f6058;
  --muted: #66756e;
  --accent: #176f54;
  --accent-fill: #176f54;
  --accent-soft: #e2eee7;
  --masthead: #eeeadf;
  --portrait: #e4e8df;
  --success: #137b4e;
  --danger: #b9374a;
  --live: #c53e55;
}
body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 160ms,
    color 160ms,
    border-color 160ms;
}
button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
.header {
  background: var(--masthead);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1504px;
  min-height: 80px;
  padding: 0 28px;
  gap: 24px;
}
.brand-symbol {
  width: 62px;
  height: 48px;
  object-fit: contain;
}
.brand-wordmark {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.brand {
  gap: 2px;
}
.header .main-nav {
  gap: 24px;
  align-self: stretch;
}
.header .main-nav > a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.25px;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 48px;
}
.main-nav > a.active {
  color: var(--text);
}
.main-nav > a.active:after {
  background: var(--accent);
  height: 3px;
  border-radius: 3px;
}
.header .main-nav .ask-nav-label {
  border: 0;
  background: transparent;
  padding: 0;
  gap: 6px;
}
.header .main-nav .ask-ai-badge {
  border: 0;
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 4px;
}
.header-settings {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 0;
}
.global-search {
  width: clamp(180px, 22vw, 310px);
  margin-left: auto;
}
.global-search-field {
  background: var(--surface-raised);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 10px 14px;
}
.global-search-field:focus-within {
  border-color: var(--accent);
}
.global-search-results {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.layout {
  max-width: 1440px;
  margin: auto;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px;
  align-items: start;
}
.content {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  background: transparent;
  border: 0;
  padding: 6px 0;
  border-radius: 0;
}
.sidebar > .eyebrow {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 0 12px;
  letter-spacing: 0.08em;
}
.sidebar #leagueMenu {
  max-height: calc(100dvh - 235px);
  overflow: auto;
  padding: 0 2px;
}
.league-button {
  padding: 11px 10px;
  font-size: 12px;
  min-height: 46px;
  margin: 2px 0;
}
.league-button.selected {
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--text);
}
.league-button .league-identity {
  gap: 12px;
}
.league-logo,
.crest {
  object-fit: contain;
  flex-shrink: 0;
}
.league-button .league-logo {
  width: 24px;
  height: 26px;
}
.other-competitions {
  border-top: 1px solid var(--border);
  margin: 12px 0 0;
  padding-top: 6px;
}
.other-competitions > summary {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  min-height: 40px;
}
.competition-search {
  margin: 6px 4px 10px;
}
.competition-search input {
  font-size: 12px;
  background: var(--surface);
  border-color: var(--border);
  min-height: 40px;
}
.sidebar-note {
  font-size: 10px;
  line-height: 1.7;
  padding: 16px 12px;
  border: 0;
  margin: 0;
  color: var(--muted);
}
.panel,
.match-card,
.competition-table-card,
.competition-fixture-card,
.club-results-card,
.club-fixtures-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}
.section-title {
  margin-bottom: 20px;
}
.section-title h1 {
  font-size: 28px;
}
.button,
.filter-button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
}
.button:hover,
.filter-button:hover {
  background: var(--surface-hover);
}
.muted,
.meta,
.hint {
  color: var(--muted);
}
#matches > .panel {
  overflow: visible;
  background: transparent;
}
.match-toolbar {
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  border: 0;
  padding: 12px 16px;
  gap: 10px;
}
.segmented button {
  border: 0;
  font-weight: 600;
  color: var(--secondary);
  border-radius: 8px;
  min-height: 38px;
}
.segmented button.selected {
  background: var(--surface-raised);
  color: var(--text);
}
.datebar {
  display: grid;
  grid-template-columns: 1fr 36px 146px 36px 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 0 0 14px 14px;
  min-height: 66px;
  position: relative;
  margin-bottom: 16px;
}
.datebar #previousDay {
  grid-column: 2;
}
.datebar .date-choice {
  grid-column: 3;
  min-width: 0;
  width: 100%;
  text-align: center;
}
.datebar #nextDay {
  grid-column: 4;
}
.datebar .reset-slot {
  grid-column: 5;
  grid-row: 1;
  width: auto;
  justify-self: start;
}
.datebar #coverageLabel {
  display: none;
}
.datebar #dateLabel {
  font-size: 14px;
  font-weight: 700;
}
.datebar > button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--surface-raised);
  border-radius: 50%;
}
.date-reset {
  font-size: 11px;
}
.match-group {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.league-heading {
  min-height: 50px;
  padding: 10px 16px;
  background: var(--surface-raised);
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.league-heading .competition-link {
  flex: 1;
  text-align: left;
  min-width: 0;
  justify-content: start;
}
.league-heading .league-identity {
  font-size: 13px;
  font-weight: 650;
  gap: 12px;
}
.league-heading .round-label {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.group-follow,
.group-collapse {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--muted);
}
.group-follow .ui-icon,
.group-collapse .ui-icon {
  width: 16px;
  height: 16px;
}
.group-follow[aria-pressed="true"] {
  color: var(--accent);
}
.group-follow[aria-pressed="true"] svg {
  fill: var(--accent-soft);
}
.group-collapse[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}
.following-group > .league-heading {
  color: var(--accent);
}
.following-group > .league-heading small {
  margin-left: auto;
  color: var(--muted);
}
#matchGrid .match-row {
  min-height: 62px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  padding: 8px 16px;
  grid-template-columns: 44px minmax(0, 1fr) 60px minmax(0, 1fr) 44px;
  gap: 10px;
  background: transparent;
}
#matchGrid .match-row:last-child {
  border: 0;
}
#matchGrid .match-row:hover {
  background: var(--surface-hover);
}
#matchGrid .match-row > .match-team {
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  min-height: 36px;
}
#matchGrid .match-row > .match-team .crest {
  width: 26px;
  height: 26px;
}
#matchGrid .match-row > .match-scores {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--surface-raised);
  border-radius: 6px;
  min-height: 30px;
}
#matchGrid .match-time {
  font-size: 10px;
  color: var(--muted);
}
#matchGrid .match-time.live {
  color: var(--live);
}
.feed-retry {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
}
.feed-retry button {
  color: var(--accent);
  text-decoration: underline;
}
.panel-foot {
  border: 0;
  padding: 12px 4px;
  color: var(--muted);
}
#advancedFilters {
  background: var(--surface);
  padding: 0 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.competition-masthead {
  background: var(--surface);
  padding: 24px 24px 12px;
  min-height: 120px;
  border: 0;
  border-radius: 14px 14px 0 0;
}
.competition-identity {
  gap: 18px;
}
.competition-identity #competitionEmblem .league-logo {
  width: 54px;
  height: 64px;
}
.competition-identity .league-picker-toggle {
  font-size: 26px !important;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.competition-tabs {
  background: var(--surface);
  border: 0;
  padding: 0 24px;
  gap: 28px;
  border-radius: 0 0 14px 14px;
  margin-bottom: 20px;
  min-height: 54px;
  scrollbar-width: none;
}
.competition-tabs button {
  font-size: 13px;
  padding: 16px 0;
  white-space: nowrap;
}
.competition-tabs button[aria-pressed="true"]:after {
  background: var(--accent);
}
.table-selectors select {
  font-size: 12px;
  border-radius: 20px;
  padding: 8px 12px;
  background: var(--surface-raised);
  height: 36px;
}
.competition-workspace {
  background: transparent;
  border: 0;
  overflow: visible;
}
.competition-columns {
  display: block;
}
.competition-table-card {
  overflow: hidden;
}
.competition-fixture-card.tab-excluded {
  display: none;
}
.competition-table-card table {
  font-size: 12px;
}
.competition-table-card caption {
  font-size: 11px;
  padding: 16px 20px;
  text-align: left;
}
.competition-table-card th {
  height: 40px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  position: sticky;
  top: 80px;
}
.competition-table-card td {
  height: 49px;
  padding: 10px 9px;
  border-color: color-mix(in srgb, var(--border) 55%, transparent);
}
.competition-table-card td:last-child {
  font-weight: 750;
  color: var(--text);
}
.competition-table-card .team-link {
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
}
.competition-table-card .crest {
  width: 24px;
  height: 24px;
}
.competition-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 16px;
}
.workspace-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.workspace-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
}
.workspace-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.workspace-card-head button {
  font-size: 11px;
  color: var(--accent);
}
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.overview-metrics > div {
  padding: 18px;
  background: var(--surface);
  border-radius: 12px;
}
.overview-metrics strong {
  font-size: 25px;
  display: block;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.overview-metrics span {
  font-size: 11px;
  color: var(--muted);
}
.mini-table-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px 36px;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.mini-table-row .team-link {
  font-size: 13px;
  font-weight: 500;
}
.mini-table-row .crest {
  width: 24px;
  height: 24px;
}
.mini-table-row > strong {
  text-align: right;
}
.mini-table-row > small {
  color: var(--muted);
}
.form-guide {
  display: flex;
  gap: 3px;
}
.form-chip {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-raised);
  color: var(--secondary);
}
.form-chip.win {
  background: #216849;
  color: #fff;
}
.form-chip.loss {
  background: #873c47;
  color: #fff;
}
.form-chip.draw {
  background: #5c6663;
  color: #fff;
}
.next-crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.rank-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rank-row > span {
  flex: 1;
}
.rank-row .crest {
  width: 28px;
  height: 28px;
}
.rank-row small {
  color: var(--muted);
}
.rank-row strong {
  font-size: 18px;
}
.fixture-browser {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}
.fixture-browser-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.fixture-browser-tools select {
  font-size: 12px;
  min-height: 36px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.fixture-date-heading {
  font-size: 12px;
  color: var(--secondary);
  padding: 12px 16px;
  margin: 0;
  background: var(--surface-raised);
}
.compact-fixture {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 14px 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
}
.compact-fixture:hover {
  background: var(--surface-hover);
}
.compact-fixture time {
  font-size: 10px;
  color: var(--muted);
}
.compact-fixture .fixture-side {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
  text-align: right;
}
.compact-fixture .fixture-side:last-child {
  justify-content: flex-start;
  text-align: left;
}
.compact-fixture .crest {
  width: 24px;
  height: 24px;
}
.compact-fixture b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.compact-fixture .fixture-side span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-card .compact-fixture {
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  padding: 14px 0;
}
.workspace-card .compact-fixture time {
  grid-column: 1/-1;
}
.workspace-card .compact-fixture .fixture-side {
  font-size: 11px;
}
#fixtureDialog,
#teamDialog,
#playerProfile {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 18px;
  max-width: 1200px;
}
dialog::backdrop {
  background: #060a0bba;
  backdrop-filter: blur(5px);
}
.dialog-head {
  background: var(--masthead);
  border-color: var(--border);
  padding: 16px 24px;
}
.dialog-head h2 {
  font-size: 15px;
}
.match-hero {
  background: var(--surface);
  border: 0;
  border-radius: 14px;
  padding: 20px 24px;
}
.fixture-scoreboard {
  grid-template-columns: 1fr 120px 1fr;
  gap: 20px;
  padding: 24px 0;
}
.fixture-score > b {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.fixture-scoreboard .score-team {
  gap: 16px;
  font-size: 18px;
}
.fixture-scoreboard .score-team .crest {
  width: 64px;
  height: 64px;
}
.fixture-competition {
  font-size: 12px;
}
.fixture-tabs {
  background: var(--surface);
  border: 0;
  border-radius: 0 0 12px 12px;
  margin: 0 0 20px;
  padding: 0 24px;
  gap: 28px;
}
.fixture-tabs button {
  font-size: 13px;
  padding: 16px 0;
}
.fixture-tabs button[aria-selected="true"] {
  color: var(--text);
  border-color: var(--accent);
}
.match-card {
  padding: 20px;
}
.match-card h3 {
  font-size: 15px;
  margin: 0 0 20px;
}
.facts-grid {
  gap: 16px;
}
.event-portrait .player-portrait {
  background: var(--portrait);
}
.timeline-card {
  background: var(--surface-raised);
  border: 0;
  border-radius: 10px;
}
.football-pitch {
  background: #343e39 !important;
}
.football-pitch:before {
  opacity: 0.1;
}
:root[data-theme="light"] .football-pitch {
  background: #78a36a !important;
}
.pitch-player {
  gap: 3px;
}
.pitch-name {
  font-size: 11px;
}
.pitch-player .player-portrait {
  width: 44px;
  height: 44px;
}
.pitch-player .orbit-badge {
  transform: scale(0.65);
}
.pitch-note {
  font-size: 10px;
}
.fixture-player {
  padding: 12px 0;
}
.manager-row {
  background: var(--surface-raised);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}
.manager-photo {
  width: 40px;
  height: 40px;
}
.match-player-profile {
  background: var(--surface);
  border-radius: 12px;
}
.match-player-group {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 20px;
}
.match-player-group dl > div {
  border-color: var(--border);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  background: #59675e;
  color: white;
  font-variant-numeric: tabular-nums;
}
.rating-badge.good {
  background: #287b54;
}
.rating-badge.great {
  background: #207e84;
}
.rating-badge.exceptional {
  background: #276ba5;
}
.rating-badge.poor {
  background: #9a564c;
}
.rating-summary {
  padding: 18px;
  background: var(--surface-raised);
  border-radius: 12px;
  margin: 16px 0;
}
.rating-summary header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rating-summary header > strong {
  flex: 1;
}
.rating-summary .rating-badge {
  font-size: 22px;
  min-width: 48px;
}
.rating-summary small {
  color: var(--muted);
}
.rating-method {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
  color: var(--secondary);
}
.rating-method summary {
  cursor: pointer;
}
.rating-method ul {
  padding-left: 18px;
}
.rating-method a {
  color: var(--accent);
}
#teamDialog .dialog-head h2 {
  font-size: 26px;
}
#teamCrest .crest {
  width: 64px;
  height: 64px;
}
.follow-row {
  padding: 16px 24px;
}
.club-tabs {
  padding: 0 24px;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
}
.club-tabs button {
  font-size: 13px;
  min-height: 48px;
}
.club-match-columns {
  gap: 16px;
}
.club-results-card,
.club-fixtures-card {
  padding: 20px;
}
.team-results-summary {
  gap: 8px;
}
.team-results-summary > div {
  background: var(--surface-raised);
  border-radius: 8px;
  padding: 12px 8px;
}
.score-line.result-row {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  min-height: 68px;
}
.profile-hero {
  background: var(--surface);
  border: 0;
  border-radius: 14px;
  padding: 24px;
}
.profile-hero h3 {
  font-size: 30px;
}
.profile-facts {
  background: var(--surface);
  border: 0;
  margin-top: 12px;
  border-radius: 12px;
}
.profile-facts > div {
  padding: 16px;
}
.profile-facts dt {
  font-size: 11px;
}
.profile-facts dd {
  font-size: 14px;
}
.profile-tabs {
  gap: 24px;
  margin: 24px 0 16px;
}
.profile-tabs button {
  font-size: 13px;
}
.profile-matches,
.profile-career {
  background: var(--surface);
  border-radius: 12px;
}
.transfer-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.transfer-tabs button {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--surface);
}
.transfer-tabs button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--accent);
}
.transfer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.transfer-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.transfer-item > div {
  flex: 1;
}
.transfer-item strong {
  display: block;
  font-size: 13px;
}
.transfer-item small {
  font-size: 11px;
  color: var(--muted);
}
.transfer-item time {
  font-size: 11px;
  color: var(--muted);
}
.news-grid {
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
.story-media {
  aspect-ratio: 16/10;
}
.story h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.story-body {
  padding: 18px;
}
.story .eyebrow {
  font-size: 10px;
  color: var(--accent);
}
.story .meta {
  font-size: 11px;
}
.story:hover {
  background: var(--surface-raised);
}
.news-topics button {
  border-radius: 20px;
  font-size: 12px;
}
.transfer-grid {
  gap: 16px;
}
.transfer-grid .story {
  border: 0;
}
.settings-page {
  max-width: 820px;
}
.settings-panel {
  background: var(--surface);
}
.ask-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}
.ask-heading {
  border: 0;
  margin-bottom: 36px;
}
.ask-heading h1 {
  font-size: 20px;
}
.ask-heading .eyebrow {
  display: none;
}
.ask-heading .button {
  border: 0;
  background: var(--surface);
}
#askIntro {
  text-align: center;
  padding: 24px 0 18px;
}
#askIntro:before {
  content: "90+";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--accent);
  font-weight: 750;
  font-size: 21px;
  background: var(--surface);
}
#askIntro h2 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 10px;
}
#askIntro p {
  font-size: 13px;
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
}
.ask-suggestions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px auto 28px;
  max-width: 640px;
}
.ask-suggestions button {
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  min-height: 60px;
  padding: 14px 16px;
  color: var(--secondary);
  line-height: 1.5;
}
.ask-suggestions button:hover {
  background: var(--surface-raised);
  border-color: var(--border);
}
.ask-suggestions button span {
  color: var(--muted);
}
.ask-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 6px 20px #0001;
}
.ask-composer:focus-within {
  border-color: var(--accent-fill);
}
#askForm {
  background: transparent;
  border: 0;
  padding: 0;
}
#askInput {
  font-size: 14px;
  min-height: 68px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  resize: none;
}
#askSend {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}
.ask-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin: 8px auto 0;
  text-align: center;
}
.ask-message {
  font-size: 14px;
  line-height: 1.7;
}
.ask-message.assistant {
  background: transparent;
}
.ask-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ask-sources {
  font-size: 11px;
  gap: 8px;
}
.ask-sources a {
  background: var(--surface);
  padding: 5px 9px;
  border-radius: 6px;
}
.ask-followups button {
  font-size: 12px;
  background: var(--surface);
  border-radius: 20px;
  border-color: var(--border);
}
.empty {
  padding: 28px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 550px;
  margin: auto;
}
.loading-skeleton {
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
}
.loading-skeleton i {
  height: 44px;
  margin: 8px 0;
  background: linear-gradient(
    90deg,
    var(--surface-raised),
    var(--surface-hover),
    var(--surface-raised)
  );
  background-size: 200%;
  animation: loading-sweep 1.6s linear infinite;
  border-radius: 7px;
}
@keyframes loading-sweep {
  to {
    background-position: -200% 0;
  }
}
footer {
  border-color: var(--border);
  padding: 32px 4px;
  font-size: 11px;
}
.ui-icon {
  width: 18px;
  height: 18px;
}
@media (min-width: 1550px) {
  .layout {
    max-width: 1480px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 20px;
    flex-wrap: wrap;
    min-height: 76px;
  }
  .header .main-nav {
    gap: 20px;
    order: 3;
    width: 100%;
    height: 44px;
  }
  .global-search {
    flex: 1;
    max-width: 360px;
  }
  .layout {
    padding: 20px;
    gap: 20px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    top: 144px;
  }
  .competition-overview {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .competition-identity .league-picker-button {
    font-size: 23px !important;
  }
  .competition-masthead {
    padding: 20px;
  }
  .competition-table-card .form-column,
  .competition-table-card .next-column {
    display: none;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .sidebar {
    display: none;
  }
  .header-inner {
    padding: 12px 20px 0;
  }
  .header .main-nav {
    justify-content: space-between;
  }
  .competition-masthead {
    min-height: 100px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }
  .header-inner {
    gap: 6px 12px;
    padding: 8px 14px 0;
    min-height: 0;
  }
  .brand-symbol {
    width: 48px;
    height: 38px;
  }
  .brand-wordmark {
    font-size: 20px;
  }
  .header-settings {
    width: 36px;
    height: 36px;
    margin-left: 0;
  }
  .global-search {
    order: 0;
    flex: 0 0 36px;
    margin-left: auto;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
  }
  .global-search-field {
    width: 36px;
    height: 36px;
    padding: 9px;
  }
  .global-search-field input,
  .global-search-field kbd {
    display: none;
  }
  .global-search:focus-within {
    position: absolute;
    left: 14px;
    right: 60px;
    top: 10px;
    width: auto;
    max-width: none;
    z-index: 10;
  }
  .global-search:focus-within .global-search-field {
    width: 100%;
    background: var(--surface-raised);
  }
  .global-search:focus-within input {
    display: block;
  }
  .global-search-results {
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: 70dvh;
  }
  .header .main-nav {
    order: 3;
    gap: 18px;
    overflow-x: auto;
    justify-content: space-between;
    height: 44px;
    width: 100%;
  }
  .header .main-nav > a {
    font-size: 12px;
    min-height: 44px;
    white-space: nowrap;
  }
  .header .main-nav .ask-ai-badge {
    font-size: 8px;
  }
  .layout {
    padding: 12px 10px;
    gap: 12px;
  }
  .match-toolbar {
    padding: 9px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .segmented {
    gap: 2px;
  }
  .segmented button {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .match-toolbar .filter-button {
    font-size: 0;
    width: 34px;
    min-height: 34px;
    margin-left: auto;
    padding: 8px;
  }
  .datebar {
    grid-template-columns: 1fr 32px 130px 32px 1fr;
    gap: 5px;
    padding: 10px;
    min-height: 56px;
    margin-bottom: 12px;
  }
  .datebar > button {
    width: 32px;
    height: 32px;
  }
  .datebar #dateLabel {
    font-size: 13px;
  }
  .date-reset {
    font-size: 9px;
    padding: 4px;
  }
  .league-heading {
    min-height: 46px;
    padding: 9px 12px;
    gap: 7px;
  }
  .league-heading .league-identity {
    font-size: 12px;
    gap: 9px;
  }
  .league-heading .league-logo {
    width: 22px;
    height: 24px;
  }
  .league-heading .round-label {
    display: none;
  }
  .group-follow,
  .group-collapse {
    width: 28px;
    height: 28px;
  }
  #matchGrid .match-row {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 6px;
    padding: 10px 12px;
    min-height: 70px;
  }
  #matchGrid .match-row > .match-time {
    grid-column: 1/-1;
    grid-row: 1;
    min-height: 12px;
    justify-self: center;
    font-size: 9px;
  }
  #matchGrid .match-row > .match-team {
    grid-column: 1;
    grid-row: 2;
    gap: 7px;
    font-size: 11px;
    line-height: 1.3;
    min-height: 28px;
  }
  #matchGrid .match-row > .match-team:last-child {
    grid-column: 3;
    grid-row: 2;
  }
  #matchGrid .match-row > .match-scores {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    min-height: 28px;
  }
  #matchGrid .match-row > .match-team .crest {
    width: 22px;
    height: 22px;
  }
  .match-group {
    margin-bottom: 10px;
  }
  .competition-masthead {
    padding: 18px 16px 10px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .competition-identity {
    gap: 12px;
    width: 100%;
  }
  .competition-identity .league-picker-button {
    font-size: 21px !important;
  }
  .competition-identity #competitionEmblem .league-logo {
    width: 40px;
    height: 48px;
  }
  .competition-identity #competitionRegion {
    font-size: 11px;
  }
  .table-selectors {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .competition-tabs {
    padding: 0 16px;
    gap: 24px;
    margin-bottom: 12px;
  }
  .competition-tabs button {
    font-size: 12px;
    padding: 14px 0;
  }
  .overview-metrics {
    gap: 8px;
  }
  .overview-metrics > div {
    padding: 14px;
  }
  .overview-metrics strong {
    font-size: 22px;
  }
  .workspace-card {
    padding: 16px;
  }
  .competition-overview {
    gap: 12px;
  }
  .competition-table-card td {
    height: 46px;
    padding: 9px 7px;
  }
  .competition-table-card .team-link {
    font-size: 12px;
  }
  .competition-table-card th {
    top: 0;
  }
  .fixture-browser-tools {
    padding: 12px;
  }
  .compact-fixture {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 6px;
    padding: 10px 12px;
    font-size: 11px;
  }
  .compact-fixture time {
    grid-column: 1/-1;
  }
  .compact-fixture .crest {
    width: 22px;
    height: 22px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
  }
  .story-media {
    margin: 0;
    height: 100%;
    min-height: 120px;
    aspect-ratio: auto;
  }
  .story-body {
    padding: 14px;
  }
  .story h3 {
    font-size: 14px;
    margin: 6px 0;
  }
  .story .eyebrow {
    font-size: 9px;
  }
  .story .meta {
    font-size: 10px;
  }
  .story-media figcaption {
    display: none;
  }
  #fixtureDialog,
  #teamDialog,
  #playerProfile {
    border-radius: 0;
    max-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100dvh;
  }
  .dialog-head {
    padding: 12px 16px;
  }
  .match-hero {
    padding: 16px 12px;
  }
  .fixture-scoreboard {
    grid-template-columns: 1fr 84px 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .fixture-scoreboard > .score-team,
  .fixture-scoreboard > .score-team:last-child {
    flex-direction: column;
    justify-self: center;
    text-align: center;
    font-size: 13px;
    gap: 10px;
  }
  .fixture-scoreboard .score-team .crest {
    width: 44px;
    height: 44px;
  }
  .fixture-score > b {
    font-size: 30px;
  }
  .fixture-tabs {
    padding: 0 16px;
    gap: 24px;
    overflow: auto;
  }
  .fixture-tabs button {
    font-size: 12px;
  }
  .match-card {
    padding: 16px;
  }
  .pitch-player .player-portrait {
    width: 34px;
    height: 34px;
  }
  .pitch-name {
    font-size: 9px;
  }
  .pitch-player .orbit-badge {
    transform: scale(0.6);
  }
  .rating-badge {
    font-size: 9px;
    min-width: 25px;
  }
  .follow-row {
    padding: 12px 16px;
  }
  .club-tabs {
    padding: 0 16px;
    gap: 24px;
  }
  #teamDialog .dialog-head h2 {
    font-size: 22px;
  }
  .club-results-card,
  .club-fixtures-card {
    padding: 14px;
  }
  .profile-hero {
    padding: 20px;
  }
  .profile-hero h3 {
    font-size: 25px;
  }
  .profile-facts > div {
    padding: 12px;
  }
  .ask-page {
    padding: 12px 4px;
  }
  .ask-heading {
    margin-bottom: 18px;
  }
  #askIntro {
    padding: 12px 0;
  }
  #askIntro h2 {
    font-size: 26px;
  }
  #askIntro p {
    font-size: 12px;
  }
  .ask-suggestions {
    gap: 8px;
    margin-bottom: 22px;
  }
  .ask-suggestions button {
    font-size: 11px;
    min-height: 66px;
    padding: 12px;
  }
  .ask-composer {
    padding: 10px 12px;
  }
  .ask-note {
    font-size: 9px;
  }
  .ask-message {
    font-size: 13px;
  }
  .panel-foot {
    font-size: 9px;
  }
  footer {
    padding: 24px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.bracket-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  margin-bottom: 20px;
}
.bracket-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bracket-toolbar select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
}
#knockoutContent {
  padding: 0;
}
.bracket-scroll {
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  scroll-snap-type: x proximity;
}
.knockout-rounds {
  position: relative;
  display: flex;
  gap: 48px;
  width: max-content;
  overflow: visible;
  padding: 0;
  align-items: stretch;
}
.knockout-round {
  width: 228px;
  flex: 0 0 228px;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
}
.knockout-round h3 {
  text-align: center;
  font-size: 12px;
  margin: 0 0 20px;
  color: var(--secondary);
}
.bracket-column {
  height: var(--bracket-height);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
}
.knockout-tie {
  margin: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.knockout-team {
  font-size: 12px;
  padding: 5px 0;
  gap: 9px;
  color: var(--muted);
}
.knockout-team .crest {
  width: 24px;
  height: 24px;
}
.knockout-team.tie-winner {
  font-weight: 700;
  color: var(--text);
}
.tie-winner strong {
  color: var(--accent);
}
.knockout-legs {
  font-size: 10px;
  color: var(--muted);
  padding-top: 6px;
  margin-top: 6px;
}
.knockout-legs summary {
  cursor: pointer;
}
.knockout-legs button {
  font-size: 10px;
  padding: 9px 0;
}
.knockout-caption {
  font-size: 9px;
  margin: 4px 0;
}
.bracket-connectors {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: visible;
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.champion-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--accent-soft);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  margin-bottom: 16px;
}
.champion-card > .ui-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.champion-card > .crest {
  width: 48px;
  height: 48px;
}
.champion-card small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.3px;
}
.champion-card strong {
  font-size: 20px;
}
.knockout-note {
  font-size: 11px;
  padding: 12px 4px;
}
@media (max-width: 600px) {
  .bracket-scroll {
    padding: 16px;
  }
  .knockout-round {
    width: 260px;
    flex-basis: 260px;
  }
  .knockout-rounds {
    gap: 28px;
  }
  .bracket-column {
    height: auto;
    justify-content: flex-start;
    gap: 12px;
  }
  .bracket-connectors {
    display: none;
  }
  .bracket-toolbar {
    font-size: 10px;
  }
  .bracket-toolbar select {
    max-width: 140px;
  }
  .champion-card strong {
    font-size: 17px;
  }
}
.rank-row {
  width: 100%;
  text-align: left;
}
.mini-table-row .team-link {
  text-align: left;
}
.crest-fallback {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--muted);
  flex: 0 0 24px;
}
.crest-fallback .ui-icon {
  width: 16px;
  height: 16px;
  opacity: 0.4;
}
.ask-suggestions button {
  padding-right: 30px;
}
.ask-suggestions button strong {
  font-size: 12px;
}
.career-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
}
.career-metrics strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.career-metrics small {
  font-size: 11px;
  color: var(--muted);
}
.career-metrics > div:last-child strong {
  color: var(--accent);
}
.match-context-rail {
  display: none;
}
.rail-story {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.rail-story:last-child {
  padding-bottom: 0;
}
.rail-story .story-media {
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}
.rail-story h4 {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
  font-weight: 600;
}
.rail-story small,
.match-context-rail .workspace-card-head a {
  font-size: 10px;
  color: var(--muted);
}
.rail-story figcaption {
  display: none;
}
.rail-story .story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.competition-table-card td:nth-child(10) {
  font-weight: 750;
}
.competition-table-card td.form-column,
.competition-table-card td.next-column {
  font-weight: 400;
}
.competition-table-card td.form-column {
  min-width: 122px;
}
.ask-answer {
  white-space: pre-wrap;
}
.ask-author {
  font-weight: 650;
}
.ask-pending .ask-answer:after {
  content: " · · ·";
  color: var(--accent);
}
@media (min-width: 1300px) {
  #matches:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
  }
  #matches > .panel {
    grid-column: 1;
    grid-row: 1;
  }
  .match-context-rail:not([hidden]) {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 104px;
  }
  .match-context-rail .workspace-card {
    padding: 18px;
  }
  #matchGrid .match-row {
    grid-template-columns: 32px minmax(0, 1fr) 48px minmax(0, 1fr) 32px;
    gap: 8px;
  }
  #matchGrid .match-row > .match-team {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .ask-suggestions button strong {
    font-size: 11px;
  }
  .career-metrics strong {
    font-size: 22px;
  }
  .career-metrics small {
    font-size: 10px;
  }
  .football-pitch .rating-badge {
    font-size: 8px;
  }
  .competition-tabs {
    gap: 24px;
  }
  .competition-identity .league-picker-toggle {
    font-size: 20px !important;
  }
}
:root[data-density="compact"] #matchGrid .match-row {
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 5px;
}
#clubOverview,
#clubTransfers {
  padding: 20px 24px;
}
.club-form-large {
  display: flex;
  gap: 6px;
  margin: 8px 0 20px;
}
.club-form-large .form-chip {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.club-facts {
  margin: 0;
}
.club-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.club-facts dt {
  color: var(--muted);
  font-size: 12px;
}
.club-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
}
@media (max-width: 600px) {
  #clubOverview,
  #clubTransfers {
    padding: 16px;
  }
  .club-tabs {
    gap: 22px;
  }
}
#tables #askTable:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.competition-table-card th {
  position: static;
  vertical-align: middle;
}
.competition-table-card :is(th, td).form-column {
  text-align: left;
  width: 132px;
}
.competition-table-card :is(th, td).next-column {
  text-align: center;
  width: 50px;
}
.form-guide {
  justify-content: flex-start;
}
.transfer-item .player-portrait img {
  width: 100%;
  height: 100%;
}
.player-portrait img {
  opacity: 0;
}
.player-portrait.has-photo img {
  opacity: 1;
}
