/* chilliscore shared product tokens and component surfaces. */
:root,
:root:not([data-theme="light"]) {
  --bg: #090d0b;
  --bg-elevated: #111815;
  --brand: #81f3be;
  --brand-strong: #23d97a;
  --nav-height: 72px;
  --radius-control: 999px;
  --radius-card: 16px;
  --shell-width: 1440px;
  --pitch: #141b18;
  --pitch-line: rgba(255, 255, 255, 0.13);
  --surface: rgba(16, 20, 18, 0.9);
  --surface-raised: rgba(22, 28, 25, 0.96);
  --surface-hover: rgba(36, 43, 39, 0.96);
  --border: rgba(148, 168, 158, 0.18);
  --text: #f3f7f5;
  --secondary: #b8c5bf;
  --muted: #8ea39a;
  --accent: #81f3be;
  --accent-fill: #23d97a;
  --accent-soft: rgba(129, 243, 190, 0.12);
  --masthead: rgba(10, 12, 12, 0.72);
  --masthead-text: #f6faf8;
  --success: #22c55e;
  --danger: #ef4444;
  --live: #ff6b6b;
  --warning: #f59e0b;
  --portrait: #202b28;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --logo-xs: 18px;
  --logo-sm: 24px;
  --logo-md: 32px;
  --logo-lg: 48px;
  --logo-xl: 64px;
  --panel: var(--surface);
  --raised: var(--surface-raised);
  --line: var(--border);
  --lime: var(--accent);
}
:root[data-theme="light"] {
  --bg: #f5f2eb;
  --bg-elevated: #f8f5f0;
  --brand: #0f7c5d;
  --brand-strong: #135d49;
  --pitch: #00f76f;
  --pitch-line: rgba(0, 0, 0, 0.1);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-raised: rgba(244, 239, 233, 0.9);
  --surface-hover: rgba(234, 228, 220, 0.96);
  --border: rgba(27, 36, 31, 0.11);
  --text: #1c2a27;
  --secondary: #4e605a;
  --muted: #6e7c75;
  --accent: #0f7c5d;
  --accent-fill: #0f7c5d;
  --accent-soft: rgba(15, 124, 93, 0.08);
  --masthead: rgba(251, 247, 242, 0.72);
  --portrait: #e7e2d9;
  --success: #137b4e;
  --danger: #b9374a;
  --live: #c53e55;
}
body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(129, 243, 190, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg), #070b09 70%);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}
button:hover,
a:hover {
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
.header {
  background: var(--masthead);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: var(--shell-width);
  min-height: var(--nav-height);
  padding: 0 28px;
  gap: 24px;
}
.brand-symbol {
  width: 54px;
  height: 44px;
  object-fit: contain;
}
.brand-wordmark {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.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: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 28px 48px;
  align-items: start;
}
.content {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  background: rgba(16, 20, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.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: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 25, 23, 0.92), rgba(14, 18, 16, 0.96));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}
.section-title {
  margin-bottom: 20px;
}
.section-title h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}
.button,
.filter-button {
  min-height: 38px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.button:hover,
.filter-button:hover {
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
}
.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: linear-gradient(180deg, rgba(18, 23, 20, 0.96), rgba(14, 18, 16, 0.98));
  border-top: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 0 0 14px 14px;
  min-height: 66px;
  position: relative;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.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: linear-gradient(180deg, rgba(19, 25, 23, 0.94), rgba(14, 18, 16, 0.96));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}
.league-heading {
  min-height: 54px;
  padding: 12px 16px;
  background: rgba(27, 34, 31, 0.94);
  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: 68px;
  border-bottom: 1px solid rgba(148, 168, 158, 0.12);
  padding: 10px 16px;
  grid-template-columns: 44px minmax(0, 1fr) 60px minmax(0, 1fr) 44px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.01);
}
#matchGrid .match-row:last-child {
  border: 0;
}
#matchGrid .match-row:hover {
  background: linear-gradient(90deg, rgba(129, 243, 190, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px rgba(129, 243, 190, 0.06);
}
#matchGrid .match-row > .match-team {
  font-size: 13px;
  font-weight: 600;
  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: rgba(25, 35, 31, 0.84);
  border: 1px solid rgba(129, 243, 190, 0.08);
  border-radius: 10px;
  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:
    radial-gradient(circle at top, color-mix(in srgb, var(--surface-raised) 80%, transparent), transparent 32%),
    var(--bg);
  border-radius: 18px;
  max-width: 1200px;
  box-shadow: 0 24px 80px rgba(7, 12, 11, 0.28);
}
dialog::backdrop {
  background: #060a0bba;
  backdrop-filter: blur(5px);
}
.dialog-head {
  background: var(--masthead);
  border-color: var(--border);
  padding: 18px 24px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02);
}
.dialog-head h2 {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.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: var(--pitch);
}
.football-pitch:before {
  opacity: 0.1;
}
:root[data-theme="light"] .football-pitch {
  background: var(--pitch);
}
.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: #e07a3c;
  color: #2c0d00;
  font-variant-numeric: tabular-nums;
}
.rating-badge.normal {
  background: #ccbe00;
  color: #1a1600;
}
.rating-badge.good {
  background: #00C40F;
  color: #002003;
}
.rating-badge.great {
  background: #00DBB4;
  color: #001f18;
}
.rating-badge.exceptional {
  background: #00DBB4;
  color: #001f18;
}
.rating-badge.poor {
  background: #db0000;
  color: #ffffff;
}
.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;
}

#teamDialog .dialog-head > div {
  align-items: center;
  gap: 14px;
}

#teamDialog #teamCrest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  border: 1px solid var(--border);
}

#teamDialog #teamCompetition {
  margin-top: 4px;
  color: var(--muted);
}

#teamDialog .follow-row {
  padding: 16px 24px 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-raised) 18%, transparent));
}

#teamDialog #teamStatus {
  padding: 10px 24px 18px;
  color: var(--muted);
  font-size: 12px;
}

#teamDialog .club-tabs {
  margin: 0;
  padding: 0 24px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

#teamDialog .club-tabs button {
  position: relative;
  min-height: 48px;
  padding: 12px 2px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#teamDialog .club-tabs button[aria-selected="true"] {
  color: var(--text);
}

#teamDialog .club-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
}

#teamDialog #clubMatches,
#teamDialog #clubSquad {
  padding: 20px 24px 24px;
}

#teamDialog .squad-group {
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

#teamDialog .squad-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 0;
  margin-bottom: 12px;
}

#teamDialog .player {
  grid-template-columns: 42px 18px minmax(0,1fr);
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#teamDialog .player:hover {
  background: color-mix(in srgb, var(--surface-raised) 86%, transparent);
  border-color: var(--border);
  transform: translateY(-1px);
}

#teamDialog .result-row {
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 10px;
  min-height: 68px;
  margin-bottom: 10px;
}

#teamDialog .result-row > span:first-child {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#teamDialog .result-row .result-score {
  font-size: 15px;
  font-weight: 800;
}

#teamDialog .result-row small {
  font-size: 11px;
}

#teamDialog .result-row .match-team {
  font-size: 14px;
  font-weight: 650;
}

#teamDialog .squad-group .muted,
#teamDialog .player > small {
  color: var(--muted);
}

#teamDialog .player > strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

#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: 16px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
}
.profile-hero h3 {
  font-size: 30px;
}
.profile-facts {
  background: var(--surface);
  border: 0;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.profile-facts > div {
  padding: 16px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-raised) 30%, transparent));
}
.profile-facts dt {
  font-size: 11px;
}
.profile-facts dd {
  font-size: 14px;
}
.profile-tabs {
  gap: 24px;
  margin: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}
.profile-tabs button {
  font-size: 13px;
  min-height: 44px;
  color: var(--muted);
}

.profile-tabs button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

#playerProfile .profile-filters {
  padding: 14px 0 12px;
}

#playerProfile .profile-filters select {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}

#playerProfile .profile-summary > div {
  background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
}

#playerProfile .profile-matches {
  background: transparent;
}

#playerProfile .profile-matches tbody tr {
  transition: background 0.2s ease;
}

#playerProfile .profile-matches tbody tr:hover {
  background: color-mix(in srgb, var(--surface-raised) 75%, transparent);
}

#playerProfile .table-scroll,
#playerProfile [data-profile-panel] .profile-club {
  border-color: var(--border);
}
.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: "chilliscore";
  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 h4 {
  flex-basis: 100%;
  margin: 0;
  color: var(--text);
  font-size: 12px;
}
.ask-sources .ask-source {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.ask-source a {
  overflow-wrap: anywhere;
}
.ask-copy {
  margin-top: 12px;
}
.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:nth-child(4) {
    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: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.bracket-round-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bracket-toolbar select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
#knockoutContent {
  padding: 0;
  min-width: 0;
}
.bracket-scroll {
  overflow: auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 20px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.knockout-rounds {
  position: relative;
  display: block;
  min-width: var(--board-width);
  width: 100%;
  height: var(--board-height);
  padding: 0;
  overflow: visible;
}
.knockout-tie {
  position: absolute;
  left: var(--tie-x);
  top: var(--tie-y);
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  padding: 10px 8px;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  border-radius: 14px;
  z-index: 1;
  text-align: center;
  cursor: pointer;
}
.knockout-tie:hover {
  background: var(--surface-raised);
  border-color: var(--muted);
}
.knockout-tie:active {
  transform: translate(-50%, -50%);
}
.knockout-tie:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.knockout-tie[hidden] {
  display: none;
}
.tie-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.knockout-team {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 3px;
  line-height: 1.35;
  color: var(--text);
  font-size: 14px;
  min-width: 0;
}
.knockout-team .crest {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 3px;
  object-fit: contain;
}
.knockout-team .tie-abbreviation {
  flex: none;
  font-weight: 600;
}
.knockout-team strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.knockout-team.tie-loser .tie-abbreviation {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.tie-score-divider {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary);
  font-size: 16px;
}
.tie-final-label {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.bracket-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  opacity: 0.8;
}
.bracket-champion {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  text-align: center;
  pointer-events: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bracket-champion > .ui-icon {
  flex: 0 0 110px;
  width: 94px;
  height: 110px;
  stroke-width: 1;
  opacity: 0.6;
}
.bracket-champion > .crest {
  position: absolute;
  top: 27px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.bracket-champion strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 14px;
}
.bracket-champion small {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 7px;
}
.knockout-note {
  font-size: 12px;
  padding: 12px 4px;
  color: var(--muted);
}
.knockout-rounds.round-focused {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 24px;
  min-width: 0;
  height: auto;
  min-height: 160px;
  padding: 20px;
}
.round-focused .knockout-tie {
  position: relative;
  inset: auto;
  transform: none;
  flex: 0 0 112px;
}
.round-focused .bracket-champion,
.round-focused .bracket-connectors {
  display: none;
}
#knockoutTieDialog {
  box-sizing: border-box;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 24px 100px #0005;
  overflow: auto;
}
#knockoutTieDialog::backdrop {
  background: #0009;
}
#knockoutTieDialog h2 {
  font-size: 21px;
  font-weight: 650;
  text-align: center;
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.tie-dialog-leg {
  padding: 18px 26px 22px;
  border-bottom: 1px solid var(--border);
}
.tie-dialog-leg > time {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
#knockoutTieDialog .compact-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  min-height: 48px;
  color: var(--text);
}
#knockoutTieDialog .compact-fixture:hover {
  background: var(--surface-hover);
  border-radius: 8px;
}
#knockoutTieDialog .compact-fixture > time {
  display: none;
}
#knockoutTieDialog .fixture-side {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
#knockoutTieDialog .fixture-side:first-of-type {
  justify-content: flex-end;
  text-align: right;
}
#knockoutTieDialog .fixture-side:last-child {
  justify-content: flex-start;
  text-align: left;
}
#knockoutTieDialog .fixture-side > span {
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
}
#knockoutTieDialog .crest {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
#knockoutTieDialog .compact-fixture > b {
  font-size: 18px;
  text-align: center;
}
#knockoutTieDialog form {
  margin: 0;
}
.tie-dialog-close {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding: 19px;
  cursor: pointer;
}
.tie-dialog-close:hover {
  background: var(--surface-hover);
}
.tie-dialog-note {
  margin: 0;
  padding: 12px 26px;
  color: var(--secondary);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 600px) {
  .bracket-toolbar {
    font-size: 12px;
    gap: 8px;
  }
  .bracket-round-control {
    font-size: 0;
    gap: 0;
  }
  .bracket-scroll {
    border-radius: 16px;
    padding: 12px 0;
  }
  .tie-dialog-leg {
    padding: 16px 14px;
  }
  #knockoutTieDialog .fixture-side {
    font-size: 13px;
    gap: 6px;
  }
  #knockoutTieDialog .compact-fixture {
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }
  #knockoutTieDialog .crest {
    width: 25px;
    height: 25px;
  }
}

.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;
}
/* Intelligence surfaces preserve neutral dark chrome; brand is used selectively. */
:root {
  --brand: #68b79b;
  --brand-muted: #213b31;
  --background: var(--bg);
  --surface-1: var(--surface);
  --surface-2: var(--surface-raised);
  --surface-3: var(--surface-hover);
  --text-primary: var(--text);
  --text-secondary: var(--secondary);
  --text-muted: var(--muted);
  --border-subtle: var(--border);
  --positive: var(--success);
  --negative: var(--danger);
}
:root[data-theme="light"] {
  --brand: #23634e;
  --brand-muted: #e1eae0;
}
.layout {
  max-width: 1480px;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 16px;
}
.sidebar {
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
.sidebar #leagueMenu {
  max-height: none;
  overflow: visible;
}
#myFootball {
  margin-bottom: 24px;
  padding: 0 4px;
}
.my-football-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.my-football-title h2 {
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0;
}
.my-football-title button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.my-football-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 8px;
  width: 100%;
  border-radius: 8px;
  font-size: 13px;
  min-height: 40px;
}
.my-football-link:hover {
  background: var(--surface-hover);
}
.my-football-link > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-football-link .crest,
.my-football-link > img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
#myFootball p {
  color: var(--muted);
  font-size: 13px;
  padding: 0 8px;
  margin: 8px 0;
}
.my-football-choose {
  padding: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.matchday-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.matchday-intro strong {
  font-size: 15px;
  display: block;
}
.matchday-intro span {
  font-size: 12px;
  color: var(--muted);
}
.matchday-intro button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.match-follow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
}
.match-follow[aria-pressed="true"] {
  color: var(--text);
}
.match-follow[aria-pressed="true"] svg {
  fill: var(--surface-hover);
}
.row-stakes {
  grid-column: 2/5;
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.4;
  padding-bottom: 3px;
}
.entity-follow {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.match-hero > .entity-follow {
  margin: 14px auto 0;
  display: flex;
}
#followingDialog {
  width: min(480px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
#followingDialog .dialog-head {
  padding: 0 0 16px;
  position: static;
}
.following-list {
  max-height: 55dvh;
  overflow: auto;
}
.following-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.following-manager-row > button:first-child {
  text-align: left;
  font-size: 14px;
}
#followingStorageStatus {
  font-size: 12px;
}
#personalMatchday {
  margin: 16px 0;
  grid-column: 1;
}
.personal-fixture > time {
  color: var(--muted);
  font-size: 12px;
}
.personal-fixture .compact-fixture {
  padding: 8px 0;
}
.personal-fixture {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.live-stakes-card {
  margin: 16px 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
}
.stakes-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.stakes-heading h3 {
  margin: 0;
  font-size: 17px;
}
.stakes-heading > small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.stakes-mark {
  color: var(--brand);
  font-weight: 750;
  font-size: 14px;
}
.stakes-position {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 44px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  font-variant-numeric: tabular-nums;
}
.stakes-position .crest {
  width: 24px;
  height: 24px;
}
.stakes-position > small {
  text-align: right;
  color: var(--secondary);
}
.stakes-position strong {
  font-size: 14px;
}
.stakes-position > span {
  color: var(--muted);
}
.stakes-position b {
  color: var(--text);
}
.stakes-meaning {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 10px 0;
}
.stakes-meaning p {
  margin: 0;
}
.stakes-meaning small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stakes-meaning strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-top: 4px;
}
.stakes-next {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.stakes-next h4 {
  font-size: 13px;
  margin: 0 0 10px;
}
.stakes-next > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.stakes-next span {
  color: var(--secondary);
}
.stakes-note,
.stakes-unavailable {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.stakes-table-link {
  font-size: 13px;
  padding: 12px 0 0;
}
.stakes-aggregate {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}
.stakes-aggregate b {
  font-size: 23px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.match-story {
  margin-bottom: 20px;
  padding: 0 4px;
}
.match-story h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.match-story ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.match-story li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.match-story time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.match-story li > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-story .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.mobile-bottom-nav {
  display: none;
}
@media (min-width: 1180px) {
  #matches {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  #personalMatchday {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  .matchday-intro {
    grid-column: 1;
  }
  #matches .match-context-rail {
    grid-row: 3 / span 5;
  }
}
@media (max-width: 1179px) {
  .match-context-rail {
    display: none !important;
  }
  #matches {
    display: block;
  }
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 759px) {
  .layout {
    display: block;
    padding: 14px 12px 88px;
  }
  .layout > .sidebar {
    display: none;
  }
  .header .main-nav {
    display: none !important;
  }
  .header-inner {
    min-height: 62px;
  }
  .header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .brand-symbol {
    width: 46px;
    height: 46px;
  }
  .brand-wordmark {
    font-size: 22px;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    z-index: 45;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    background: var(--masthead);
    border-top: 1px solid var(--border);
  }
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--muted);
    font-size: 11px;
  }
  .mobile-bottom-nav .ui-icon {
    width: 20px;
    height: 20px;
  }
  .mobile-bottom-nav button[aria-current="page"] {
    color: var(--text);
  }
  #footballDirectory {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    background: var(--surface);
    color: var(--text);
    box-sizing: border-box;
    overflow: auto;
  }
  #footballDirectory .sidebar {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
  }
  #footballDirectory .dialog-head {
    position: static;
    padding: 0 0 12px;
  }
  .mobile-more-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .mobile-more-actions button {
    padding: 8px 12px;
    background: var(--surface-raised);
    border-radius: 8px;
    font-size: 13px;
  }
  .matchday-intro {
    padding: 12px;
    gap: 8px;
    align-items: flex-start;
  }
  .matchday-intro span {
    display: none;
  }
  .matchday-intro button {
    font-size: 12px;
  }
  .matchday-intro strong {
    font-size: 14px;
  }
  #matchGrid .match-row {
    grid-template-columns: 44px minmax(0, 1fr) 40px 36px;
    grid-template-rows: auto auto;
    gap: 5px 8px;
    min-height: 80px;
    padding: 12px;
  }
  #matchGrid .match-time {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
  }
  #matchGrid .match-team {
    grid-column: 2;
    justify-content: flex-start;
    flex-direction: row !important;
    max-width: 100%;
    width: fit-content;
    font-size: 13px;
    min-width: 0;
  }
  #matchGrid .match-team:nth-child(2) {
    grid-row: 1;
  }
  #matchGrid .match-team:nth-child(4) {
    grid-row: 2;
  }
  #matchGrid .match-team .crest {
    order: -1 !important;
    width: 22px;
    height: 22px;
  }
  #matchGrid .match-scores {
    grid-column: 3;
    grid-row: 1/3;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0;
  }
  #matchGrid .match-scores > span {
    display: flex;
    flex-direction: column;
    line-height: 1.75;
    white-space: pre;
    font-size: 15px;
  }
  #matchGrid .match-follow {
    grid-column: 4;
    grid-row: 1/3;
    align-self: center;
  }
  .row-stakes {
    grid-column: 2/5;
    grid-row: 3;
  }
  .live-stakes-card {
    margin: 12px;
    padding: 14px;
  }
  .stakes-heading {
    flex-wrap: wrap;
  }
  .stakes-heading > small {
    font-size: 11px;
  }
  .stakes-next > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .stakes-aggregate {
    gap: 10px;
    font-size: 12px;
  }
  .profile-hero {
    flex-wrap: wrap;
  }
  .match-toolbar .segmented {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 3px;
  }
  .match-toolbar .segmented button {
    padding: 9px 8px;
    font-size: 12px;
  }
}
.match-scores > span > b {
  font: inherit;
}
.score-separator {
  font-style: normal;
}
@media (max-width: 759px) {
  #matchGrid .score-separator {
    display: none;
  }
}
.position-delta {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: var(--secondary);
}
.live-table-toggle {
  font-size: 12px;
  margin-left: auto;
}
.table-mobile-tools:has(.live-table-toggle:not([hidden])) {
  display: flex;
}
#matchGrid .match-row > .match-follow {
  grid-column: 5;
  grid-row: 1;
  justify-self: center;
}
#matchGrid .match-row > .match-team:nth-child(4) {
  grid-column: 4;
  justify-self: start;
  flex-direction: row;
  text-align: left;
}
#matchGrid .match-row > .match-team {
  font-size: 14px;
}
#matchdayIntro[hidden] {
  display: none;
}
#intelligenceRail[hidden] {
  display: none;
}
#intelligenceRail .match-context-rail {
  position: static;
  width: auto;
  display: block;
}
#intelligenceRail .match-context-rail[hidden] {
  display: none;
}
#intelligenceRail #personalMatchday {
  margin: 0 0 16px;
}
@media (min-width: 1180px) {
  #matches:not([hidden]) {
    display: block;
  }
  #matches:not([hidden]):has(#intelligenceRail:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
  #matches > .panel {
    grid-column: 1;
    grid-row: 1;
  }
  #intelligenceRail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 104px;
    min-width: 0;
  }
}
@media (max-width: 1179px) {
  #matches:not([hidden]) {
    display: block;
  }
  #intelligenceRail .match-context-rail {
    display: none !important;
  }
}
@media (max-width: 759px) {
  #matchGrid .match-row > .match-time {
    grid-column: 1;
    grid-row: 1/3;
    text-align: left;
    justify-self: start;
    white-space: normal;
    font-size: 11px;
  }
  #matchGrid .match-row > .match-team:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    flex-direction: row;
  }
  #matchGrid .match-row > .match-team:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    flex-direction: row;
  }
  #matchGrid .match-row > .match-team {
    font-size: 13px;
    max-width: 100%;
    padding: 0;
    line-height: 1.5;
    min-height: 25px;
  }
  #matchGrid .match-row > .match-scores {
    grid-column: 3;
    grid-row: 1/3;
    align-self: stretch;
    display: grid;
    place-items: center;
    max-width: 40px;
    min-height: 0;
    background: transparent;
  }
  #matchGrid .match-row > .match-follow {
    grid-column: 4;
    grid-row: 1/3;
    align-self: center;
  }
  #matchGrid .match-row > .row-stakes {
    grid-column: 2/5;
    grid-row: 3;
  }
}
.story-red-card {
  display: inline-block;
  width: 10px;
  height: 14px;
  flex: 0 0 10px;
  background: #d84a54;
  border-radius: 2px;
  margin: 0 2px;
}
/* Shared event glyphs. Match page layout is owned by match-experience.css. */
body.match-page #main,body.match-page #settingsPage,body.match-page #aboutPage{display:none}
.event-glyph{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex:none}.event-glyph svg{width:100%;height:100%}.orbit-badge .event-glyph{width:14px;height:14px}
.goal-cluster>.event-glyph{position:relative;margin-left:-4px;background:var(--surface);border-radius:50%}.goal-cluster>.event-glyph:first-child{margin-left:0}.lineup-switch{display:none}
.commentary-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:1.6}.commentary-row p{margin:0}.commentary-row time{color:var(--muted);font-variant-numeric:tabular-nums}
#settingsPage #myFootball{margin-top:24px;border-top:1px solid var(--border);padding-top:20px}
body.club-page #teamDialog[open]{border:0;background:transparent;width:min(1260px,calc(100% - 40px))}
body.club-page #teamDialog>.dialog-head{border-radius:14px 14px 0 0;background:var(--surface);padding:20px 24px}
body.club-page .club-tabs{background:var(--surface);border-radius:0 0 14px 14px;margin-bottom:20px}
#clubOverview{padding:0}
#clubOverview .competition-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#clubOverview .workspace-card{background:var(--surface);border:0;border-radius:14px;padding:20px;min-width:0}
#clubOverview .compact-fixture .fixture-side{font-size:14px}
#clubOverview .compact-fixture{min-height:64px}
#clubOverview .mini-table-row>span{display:flex;align-items:center;gap:8px;min-width:0}
#clubOverview .workspace-card h3{font-size:16px}
@media(max-width:759px){body.club-page #teamDialog[open]{width:calc(100% - 24px)}#clubOverview .competition-overview{grid-template-columns:1fr}#clubOverview .workspace-card{padding:16px}#clubOverview .compact-fixture .fixture-side{font-size:13px}}
/* Compact secondary events and consistent entity data surfaces. */
.timeline-item.assist-event .event-card{padding:8px 12px;background:transparent;min-height:46px;border:0}
.timeline-item.assist-event .event-copy strong{font-size:14px;font-weight:500}.timeline-item.assist-event .player-portrait{width:32px;height:32px}.timeline-item.assist-event .event-minute{font-size:12px;color:var(--muted)}
.timeline-item.period-event{display:flex;justify-content:center;gap:12px}.timeline-item.period-event .event-card{background:var(--surface-raised);padding:8px 16px;min-height:40px}.timeline-item.period-event .event-minute{position:static;align-self:center}.timeline-item.period-event .event-copy strong{font-size:13px}.timeline-item.period-event .event-copy small:empty{display:none}
.stakes-quiet{padding:12px 16px;color:var(--muted);font-size:14px;line-height:1.6;background:var(--surface);border-radius:12px}.stakes-quiet small{display:block}
.entity-panel{padding:20px;background:var(--surface);border-radius:14px;min-width:0}.entity-panel[hidden]{display:none}.entity-panel h3{margin:0 0 12px;font-size:18px}.entity-panel>.muted{font-size:13px;line-height:1.6;max-width:80ch}
.entity-table-scroll{overflow:auto}.entity-table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}.entity-table th,.entity-table td{padding:12px 10px;text-align:center;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}.entity-table th{color:var(--muted);font-weight:500}.entity-table th:nth-child(2){text-align:left}.entity-table button{display:flex;align-items:center;gap:10px;border:0;background:none;color:inherit;text-align:left}.entity-table .selected-club{background:var(--surface-raised);font-weight:700}
.entity-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.entity-stat-grid>div{padding:16px;background:var(--surface-raised);border-radius:10px}.entity-stat-grid dt{color:var(--muted);font-size:13px}.entity-stat-grid dd{margin:8px 0 0;font-weight:700;font-size:24px;font-variant-numeric:tabular-nums}
.entity-news{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.entity-news>a{display:flex;gap:14px;padding:16px;border-bottom:1px solid var(--border);color:var(--text);text-decoration:none}.entity-news img{width:96px;height:72px;object-fit:cover;border-radius:8px}.entity-news span{min-width:0}.entity-news strong{display:block;font-size:15px;line-height:1.45;margin:6px 0}.entity-news small{color:var(--muted);font-size:12px}
.entity-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.entity-panel-heading label{font-size:13px;color:var(--muted)}.entity-panel-heading select{padding:8px;background:var(--surface-raised);color:var(--text);border:1px solid var(--border);border-radius:8px}
.player-leader-list{padding-left:26px}.player-leader-list li{border-bottom:1px solid var(--border);padding:4px 0}.player-leader-list a{display:flex;align-items:center;gap:14px;padding:10px;color:var(--text);text-decoration:none}.player-leader-list .player-portrait{width:40px;height:40px;flex-shrink:0}.player-leader-list small{display:block;color:var(--muted);margin-top:4px;font-size:12px}.player-leader-list b{margin-left:auto;font-variant-numeric:tabular-nums}
.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.source-grid article{padding:24px}.source-grid h2{font-size:18px}.source-grid p{color:var(--muted);line-height:1.7;font-size:15px}
@media(max-width:759px){.entity-panel{padding:16px}.entity-news,.source-grid{grid-template-columns:1fr}.entity-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-news>a{padding:10px 0}.entity-table th,.entity-table td{padding:12px 8px}.entity-table button span{max-width:130px;overflow:hidden;text-overflow:ellipsis}.source-grid article{padding:18px}}
.skeleton-table i{height:38px;border-radius:4px}.skeleton-profile{display:grid;grid-template-columns:72px 1fr;gap:14px}.skeleton-profile i:first-of-type{width:64px;height:64px;border-radius:50%;grid-row:span 2}.skeleton-news i{height:86px;border-radius:10px}
.score-updated{animation:score-update 1.2s ease-out}@keyframes score-update{0%,30%{background:var(--surface-raised);box-shadow:0 0 0 5px var(--border)}100%{box-shadow:none}}
@media(prefers-reduced-motion:reduce){.score-updated{animation:none;outline:1px solid var(--border)}}
.split-timeline .event-copy>small:first-of-type{display:block;font-size:12px;color:var(--muted);margin-top:3px}
[data-theme="dark"] .football-pitch{background:var(--pitch)}
