:root {
  color-scheme: light;
  --pitch-950: #082e25;
  --pitch-900: #0d4638;
  --pitch-800: #155a48;
  --emerald-600: #147a58;
  --emerald-500: #1b9468;
  --emerald-100: #dcefe6;
  --emerald-50: #eef7f2;
  --gold-600: #9b7629;
  --gold-500: #c6a252;
  --gold-100: #f4ead2;
  --ivory: #f3f6f2;
  --surface: #fbfcfa;
  --surface-raised: #ffffff;
  --graphite: #17231f;
  --muted: #66726d;
  --line: #dbe3de;
  --danger: #a53c36;
  --danger-50: #fff0ee;
  --shadow: 0 1px 2px rgb(8 46 37 / 4%), 0 14px 36px rgb(8 46 37 / 7%);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(145deg, #f4f7f3 0%, #edf3ef 100%);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(145deg, #f4f7f3 0%, #edf3ef 100%);
  color: var(--graphite);
}

button,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgb(214 168 59 / 65%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--pitch-900);
  color: white;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  background: var(--surface);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgb(251 252 250 / 96%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--pitch-900);
  color: white;
  isolation: isolate;
}

.brand-mark::after {
  position: absolute;
  z-index: -1;
  right: -11px;
  bottom: -13px;
  width: 38px;
  height: 26px;
  border-radius: 50%;
  background: var(--emerald-500);
  content: "";
}

.brand-mark__letters {
  margin-top: -2px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.18em;
  transform: translateX(-1px);
}

.brand-mark__accent {
  position: absolute;
  right: 9px;
  bottom: 7px;
  left: 9px;
  height: 3px;
  background: var(--gold-500);
  transform: skewX(-35deg);
}

.brand-name {
  overflow: hidden;
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 850;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.desktop-context,
.desktop-brand,
.sidebar-footer {
  display: none;
}

.data-state {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.data-state__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.data-state.is-live .data-state__dot {
  background: var(--emerald-500);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
}

.icon-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button.is-spinning svg {
  animation: rotate 800ms linear infinite;
}

.division-switch {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8faf7 0%, #f0f4f1 100%);
}

.division-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-weight: 780;
  cursor: pointer;
}

.division-button.is-active {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  color: white;
  box-shadow: 0 5px 14px rgb(20 122 88 / 20%), inset 0 1px 0 rgb(255 255 255 / 18%);
}

.main-content {
  min-width: 0;
  min-height: calc(100vh - 173px);
  padding: 20px 16px calc(94px + var(--safe-bottom));
}

#view-root {
  min-width: 0;
}

.primary-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 6px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -8px 25px rgb(8 43 32 / 6%);
  backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-size: clamp(0.68rem, 3vw, 0.78rem);
  font-weight: 700;
  cursor: pointer;
  flex-direction: column;
}

.nav-item--more {
  display: none;
}

.nav-item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav-item.is-active {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.loading-view {
  display: flex;
  min-height: 45vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--emerald-100);
  border-top-color: var(--emerald-600);
  border-radius: 50%;
  animation: rotate 800ms linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--emerald-600);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.page-subtitle,
.muted {
  color: var(--muted);
}

.page-subtitle {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.round-pill,
.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.round-pill {
  background: var(--gold-100);
  color: #76570f;
}

.status-pill {
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.status-pill.is-live {
  background: #d8f5e5;
  color: #07683f;
}

.status-pill.is-final {
  background: #edf0ee;
  color: #4e5753;
}

.section {
  margin-top: 20px;
}

.section:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.text-button {
  min-height: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--emerald-600);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  background: var(--emerald-50);
}

.card {
  border: 1px solid rgb(219 227 222 / 95%);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-raised) 0%, #f8faf7 100%);
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
  background: var(--surface-raised);
}

.feature-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: linear-gradient(120deg, var(--pitch-950) 0%, var(--pitch-800) 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.feature-card__header h2 {
  font-size: 1rem;
}

.match-card {
  padding: 18px;
}

.feature-card__body {
  background:
    radial-gradient(circle at 50% 0%, rgb(27 148 104 / 7%), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f9fbf8 100%);
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.schedule-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgb(195 145 24 / 22%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgb(241 192 70 / 12%), transparent 52%),
    linear-gradient(145deg, #fffdf7 0%, #faf7ed 100%);
  box-shadow: 0 8px 22px rgb(77 58 12 / 5%);
}

.schedule-notice__mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgb(195 145 24 / 24%);
  border-radius: 50%;
  background: rgb(255 248 220 / 90%);
  color: #8a6612;
  font-weight: 900;
}

.schedule-notice div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.schedule-notice div span {
  color: #806520;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-notice strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.match-venue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(219 227 222 / 90%);
}

.match-venue__place {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.match-venue__place > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.match-venue__place small,
.match-venue__place em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-venue__place strong {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-pin {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgb(20 122 88 / 13%);
  border-radius: 11px;
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.venue-pin svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.venue-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f6f4;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  white-space: nowrap;
}

.venue-status.is-confirmed {
  border-color: rgb(20 122 88 / 17%);
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.venue-status.is-pending {
  border-color: rgb(195 145 24 / 20%);
  background: var(--gold-100);
  color: #806520;
}

.match-venue__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  padding-left: 43px;
}

.match-venue__actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--emerald-600);
  font-size: 0.7rem;
  font-weight: 820;
  text-decoration: none;
}

.match-venue__actions a:hover,
.match-venue__actions a:focus-visible {
  background: var(--emerald-50);
}

.team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.team:last-child {
  justify-content: flex-end;
  text-align: right;
}

.team-badge {
  display: inline-grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--pitch-950) 0%, var(--pitch-800) 100%);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 7px 16px rgb(8 46 37 / 12%);
}

.club-crest {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(19 84 65 / 12%);
  background:
    radial-gradient(circle at 30% 18%, #ffffff 0%, #ffffff 28%, transparent 62%),
    linear-gradient(145deg, #ffffff 0%, #eef3ef 100%);
  box-shadow: inset 0 1px 0 white, 0 7px 18px rgb(8 46 37 / 8%);
}

.club-crest img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.club-crest--team {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 13px;
}

.team:last-child .club-crest--team {
  order: 2;
}

.team:last-child .team-badge {
  order: 2;
  background: linear-gradient(145deg, var(--emerald-600) 0%, #1ca373 100%);
}

.team-name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  min-width: 68px;
  text-align: center;
}

.score strong {
  display: block;
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.score span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-card .score {
  min-width: 76px;
  padding: 10px 8px;
  border: 1px solid rgb(20 122 88 / 12%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, #edf4ef 100%);
  box-shadow: inset 0 1px 0 white, 0 8px 20px rgb(8 46 37 / 6%);
}

.feature-card .team {
  justify-content: center;
  gap: 8px;
  text-align: center;
  flex-direction: column;
}

.feature-card .team:last-child {
  justify-content: center;
  text-align: center;
}

.feature-card .team:last-child .team-badge {
  order: 0;
}

.feature-card .team:last-child .club-crest--team {
  order: 0;
}

.feature-card .team-name {
  display: -webkit-box;
  min-height: 2.35em;
  overflow: hidden;
  line-height: 1.18;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.stat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgb(27 148 104 / 8%), transparent 52%),
    linear-gradient(145deg, #ffffff 0%, #f7faf7 100%);
  box-shadow: 0 8px 22px rgb(8 46 37 / 5%);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.stat-value {
  display: block;
  overflow: hidden;
  font-size: clamp(1.02rem, 4.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-detail {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.club-crest--stat,
.stat-club-code {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}

.stat-club-code {
  display: inline-grid;
  place-items: center;
  background: var(--pitch-900);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
}

.table-card {
  overflow: hidden;
}

.standings-groups {
  display: grid;
  gap: 20px;
}

.standings-group {
  min-width: 0;
}

.standings-group__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 9px;
}

.standings-group__heading h3 {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.standings-group__heading span {
  padding: 5px 9px;
  border: 1px solid rgb(20 122 88 / 12%);
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-600);
  font-size: 0.68rem;
  font-weight: 850;
}

.standings-groups--compact .standings-group + .standings-group {
  padding-top: 2px;
  border-top: 1px solid rgb(219 227 222 / 78%);
}

.standings-groups--compact .table-scroll {
  overflow-x: hidden;
}

.standings-groups--compact table {
  table-layout: fixed;
}

.standings-groups--compact th,
.standings-groups--compact td {
  padding-right: 7px;
  padding-left: 7px;
}

.standings-groups--compact th:first-child {
  width: 48px;
}

.standings-groups--compact th:nth-child(3),
.standings-groups--compact th:nth-child(4) {
  width: 45px;
}

.standings-groups--compact th:last-child {
  width: 48px;
}

.standings-groups--compact .club-cell,
.standings-groups--compact .club-full-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-groups--compact .club-full-name {
  max-width: none;
}

.standings-groups--full {
  gap: 30px;
}

.standings-groups--full .standings-group__heading {
  padding: 15px 18px 11px;
  border: 1px solid rgb(20 122 88 / 15%);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(circle at 100% 0%, rgb(27 148 104 / 9%), transparent 52%),
    linear-gradient(145deg, #ffffff 0%, #f4f8f5 100%);
}

.standings-groups--full .standings-group__heading h3 {
  font-size: 1.08rem;
}

.standings-groups--full .table-card {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.table-wrap,
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  height: 50px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  background: linear-gradient(115deg, var(--pitch-950) 0%, var(--pitch-800) 100%);
  color: white;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) td {
  background: rgb(236 244 239 / 48%);
}

td {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.position {
  width: 34px;
  font-weight: 900;
}

.position-indicator {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-left: 4px solid transparent;
  border-radius: 7px;
}

.position-indicator.is-top {
  border-left-color: var(--emerald-500);
  background: var(--emerald-100);
}

.position-indicator.is-bottom {
  border-left-color: var(--gold-500);
  background: var(--gold-100);
}

.club-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-weight: 760;
}

.club-code {
  display: inline-grid;
  min-width: 42px;
  min-height: 29px;
  place-items: center;
  padding: 4px 7px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--pitch-950) 0%, var(--pitch-800) 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%);
}

.club-crest--table {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
}

.club-short-code {
  min-width: 30px;
  color: var(--pitch-900);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.club-full-name {
  display: none;
}

.table-card--full .club-full-name {
  max-width: none;
}

.button-wide {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--emerald-600);
  border-radius: 13px;
  background: var(--surface);
  color: var(--pitch-900);
  font-weight: 850;
  cursor: pointer;
}

.button-wide:hover {
  background: var(--emerald-50);
}

.match-list,
.scorer-list,
.settings-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-match {
  padding: 14px;
}

.compact-match .match-meta {
  margin-bottom: 10px;
}

.compact-match .team-badge {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.compact-match .club-crest--team {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 750;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--emerald-500);
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.filter-chip:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

@media (max-width: 600px) {
  .filter-row--matches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .filter-row--matches .filter-chip {
    width: 100%;
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

.select-filter {
  width: 100%;
  min-height: 48px;
  margin-bottom: 2px;
  padding: 9px 42px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--graphite);
  font-weight: 750;
}

.top-scorer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-top: 4px solid var(--gold-500);
}

.player-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--pitch-900);
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.top-scorer__goals {
  text-align: right;
}

.top-scorer__goals strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.top-scorer__goals span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.scorer-row {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 14px;
}

.scorer-row + .scorer-row {
  border-top: 1px solid var(--line);
}

.scorer-position {
  font-weight: 900;
  text-align: center;
}

.scorer-row .player-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
}

.scorer-name {
  margin-bottom: 2px;
  font-weight: 820;
}

.scorer-club {
  color: var(--muted);
  font-size: 0.74rem;
}

.scorer-club-line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.club-crest--scorer,
.scorer-club-code {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
}

.scorer-club-code {
  display: inline-grid;
  place-items: center;
  background: var(--pitch-900);
  color: white;
  font-size: 0.52rem;
  font-weight: 900;
}

.goals-count {
  min-width: 44px;
  text-align: right;
}

.goals-count strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.goals-count span {
  color: var(--muted);
  font-size: 0.68rem;
}

.empty-state {
  padding: 30px 18px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--pitch-900);
  font-size: 1.4rem;
}

.info-banner {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ead59d;
  border-radius: var(--radius-md);
  background: #fffaf0;
  color: #614d1d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.info-banner strong {
  display: block;
  margin-bottom: 2px;
}

.info-banner--public {
  border-color: rgb(27 148 104 / 24%);
  background:
    radial-gradient(circle at 100% 0%, rgb(27 148 104 / 10%), transparent 55%),
    linear-gradient(145deg, #f5fbf7 0%, #edf6f0 100%);
  color: var(--pitch-800);
}

.info-banner--public > span {
  color: var(--emerald-500);
  font-size: 1.1rem;
  line-height: 1.3;
}

.retry-button {
  max-width: 310px;
  margin-right: auto;
  margin-left: auto;
}

.install-button {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--pitch-900) 0%, var(--emerald-600) 100%);
  color: white;
  box-shadow: 0 10px 24px rgb(8 46 37 / 12%);
}

.install-button:hover {
  background: linear-gradient(135deg, var(--pitch-800) 0%, var(--emerald-500) 100%);
}

.settings-card {
  overflow: hidden;
}

.setting-item {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.setting-item:last-child {
  border-bottom: 0;
}

.setting-label {
  font-weight: 800;
}

.setting-value {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.demo-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.data-source-note a {
  color: var(--emerald-600);
  font-weight: 800;
  text-underline-offset: 2px;
}

.section-caption {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.news-club-filter {
  display: flex;
  gap: 8px;
  margin: -2px 0 20px;
  padding: 3px 1px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.news-club-chip {
  display: inline-flex;
  min-width: 64px;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f2f6f3 100%);
  color: var(--pitch-900);
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(8 46 37 / 4%);
}

.news-club-chip:first-child {
  min-width: 104px;
}

.news-club-chip.is-active {
  border-color: rgb(20 122 88 / 34%);
  background: linear-gradient(145deg, var(--emerald-100) 0%, #f3faf6 100%);
  box-shadow: inset 0 0 0 1px rgb(27 148 104 / 10%), 0 8px 18px rgb(8 46 37 / 7%);
}

.news-general-icon,
.news-club-code {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--pitch-900) 0%, var(--emerald-600) 100%);
  color: white;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.club-crest--news-filter {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
}

.news-featured-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border-color: rgb(20 122 88 / 18%);
  background:
    radial-gradient(circle at 94% 8%, rgb(27 148 104 / 14%), transparent 16rem),
    linear-gradient(145deg, #ffffff 0%, #edf5f0 100%);
  box-shadow: 0 18px 42px rgb(8 46 37 / 9%);
}

.news-featured-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 28px solid rgb(198 162 82 / 10%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.news-featured-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgb(20 122 88 / 16%);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #dcece3 100%);
  box-shadow: inset 0 1px 0 white, 0 12px 26px rgb(8 46 37 / 9%);
}

.news-featured-mark span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--pitch-900);
  color: white;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.news-featured-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.news-featured-content h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: -0.025em;
}

.news-featured-content .page-subtitle {
  max-width: 760px;
  line-height: 1.6;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.news-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.news-meta time {
  white-space: nowrap;
}

.news-card-grid {
  display: grid;
  gap: 12px;
}

.news-article-card {
  --club-accent: var(--emerald-500);
  display: flex;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  border-top: 3px solid color-mix(in srgb, var(--club-accent) 68%, white);
  flex-direction: column;
}

.news-article-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.news-article-card .news-meta {
  min-width: 0;
  flex-wrap: wrap;
}

.news-article-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.news-article-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.news-source-link {
  display: inline-flex;
  min-height: 40px;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--emerald-600);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.news-source-link:hover {
  background: var(--emerald-50);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.club-crest--news-card {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
}

.club-pulse-card {
  --club-accent: var(--emerald-500);
  position: relative;
  padding: 20px;
  overflow: hidden;
  border-top: 4px solid var(--club-accent);
  background:
    radial-gradient(circle at 94% 4%, color-mix(in srgb, var(--club-accent) 12%, transparent), transparent 18rem),
    linear-gradient(145deg, #ffffff 0%, #f3f7f4 100%);
}

.club-pulse-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.club-crest--news-hero {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 20px;
}

.club-pulse-identity h2 {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
}

.club-pulse-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.pulse-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgb(19 84 65 / 10%);
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
}

.pulse-metric span,
.pulse-match > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.pulse-metric strong {
  display: block;
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-pulse-matches {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pulse-match {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgb(19 84 65 / 10%);
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
}

.pulse-match > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.pulse-match strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-match b {
  font-size: 0.88rem;
  white-space: nowrap;
}

.club-crest--news-mini {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}

.news-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.news-empty-state {
  margin-top: 8px;
}

.home-ad-slot:not(:empty) {
  margin-bottom: 20px;
}

.home-ad-slot .sponsored-card {
  margin-top: 0;
  border-left: 4px solid var(--gold-500);
  box-shadow: 0 16px 36px rgb(73 58 25 / 9%);
}

.sponsored-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgb(157 125 53 / 22%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 0%, rgb(198 162 82 / 13%), transparent 13rem),
    linear-gradient(145deg, #fffefa 0%, #f5f5ef 100%);
  box-shadow: 0 12px 30px rgb(73 58 25 / 6%);
}

.sponsored-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.sponsored-card__meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgb(198 162 82 / 15%);
  color: #705821;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sponsored-card__meta strong {
  color: var(--pitch-900);
}

.sponsored-card__content {
  display: grid;
  gap: 14px;
  align-items: center;
}

.sponsored-card h2 {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.sponsored-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.sponsored-card a {
  display: inline-flex;
  min-height: 42px;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgb(19 84 65 / 18%);
  border-radius: 10px;
  background: rgb(255 255 255 / 78%);
  color: var(--emerald-600);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

[data-club="SAP"] { --club-accent: #7a255d; }
[data-club="CSC"] { --club-accent: #31559a; }
[data-club="SFC"] { --club-accent: #585c5c; }
[data-club="LDA"] { --club-accent: #c92d3d; }
[data-club="ASC"] { --club-accent: #305485; }
[data-club="ISC"] { --club-accent: #c3a443; }
[data-club="PFC"] { --club-accent: #e9772a; }
[data-club="CSH"] { --club-accent: #d33b3c; }
[data-club="ESC"] { --club-accent: #e2b72e; }
[data-club="MPZ"] { --club-accent: #496aa0; }

.noscript-message {
  margin: 20px;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: var(--danger-50);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 430px) {
  .app-header,
  .main-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .data-state {
    display: inline-flex;
  }

  .club-full-name {
    display: inline;
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
  }

  .club-short-code {
    display: none;
  }
}

@media (max-width: 759px) {
  .table-card--full table {
    min-width: 780px;
  }

  .table-card--full th:first-child,
  .table-card--full td:first-child {
    position: sticky;
    z-index: 2;
    left: 0;
    width: 54px;
    min-width: 54px;
  }

  .table-card--full th:nth-child(2),
  .table-card--full td:nth-child(2) {
    position: sticky;
    z-index: 2;
    left: 54px;
    min-width: 102px;
    box-shadow: 10px 0 16px -14px rgb(8 46 37 / 70%);
  }

  .table-card--full th:first-child,
  .table-card--full th:nth-child(2) {
    z-index: 3;
    background: var(--pitch-900);
  }

  .table-card--full tbody td:first-child,
  .table-card--full tbody td:nth-child(2) {
    background: #fbfcfa;
  }

  .table-card--full tbody tr:nth-child(even) td:first-child,
  .table-card--full tbody tr:nth-child(even) td:nth-child(2) {
    background: #f1f6f3;
  }
}

@media (min-width: 760px) {
  body {
    padding: 22px;
  }

  .app-shell {
    min-height: calc(100vh - 44px);
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgb(8 43 32 / 10%);
  }

  .primary-nav {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    border-radius: 0 0 24px 24px;
  }

  .main-content {
    padding-right: max(28px, calc((100vw - 740px) / 2));
    padding-left: max(28px, calc((100vw - 740px) / 2));
  }

  .news-featured-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 28px;
  }

  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-pulse-card {
    padding: 26px;
  }

  .club-pulse-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .club-pulse-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsored-card__content {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1120px) {
  body {
    --desktop-gutter: clamp(16px, 1.6vw, 26px);
    min-height: 100vh;
    padding: var(--desktop-gutter);
    background:
      radial-gradient(circle at 8% 6%, rgb(27 148 104 / 9%), transparent 30rem),
      linear-gradient(145deg, #edf3ef 0%, #e5ede8 100%);
  }

  .app-shell {
    display: grid;
    width: min(1440px, 100%);
    min-height: calc(100vh - (var(--desktop-gutter) * 2));
    margin: 0 auto;
    overflow: visible;
    border: 1px solid rgb(208 221 213 / 92%);
    border-radius: 26px;
    background: var(--ivory);
    box-shadow: 0 28px 80px rgb(8 46 37 / 14%);
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: 88px auto;
    transition: grid-template-columns 220ms ease;
  }

  .app-shell.is-table-mode {
    width: min(1600px, 100%);
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .app-header {
    position: sticky;
    top: var(--desktop-gutter);
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(260px, 1fr) auto minmax(330px, 420px);
    align-items: center;
    gap: 22px;
    padding: 18px clamp(34px, 3.4vw, 48px);
    border-bottom-color: #dfe7e2;
    border-radius: 0 25px 0 0;
    background: rgb(252 253 251 / 96%);
    box-shadow: 0 6px 20px rgb(8 43 32 / 4%);
    backdrop-filter: blur(16px);
  }

  .app-header > .brand {
    display: none;
  }

  .desktop-context {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
  }

  .desktop-context span {
    color: var(--emerald-600);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .desktop-context strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .division-switch {
    grid-column: 3;
    min-width: 330px;
    padding: 4px;
    background: #f3f7f4;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .primary-nav {
    position: sticky;
    top: var(--desktop-gutter);
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: calc(100vh - (var(--desktop-gutter) * 2));
    align-self: start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 18px 28px;
    border-top: 0;
    border-right: 0;
    border-radius: 25px 0 0 25px;
    background:
      radial-gradient(circle at 18% 92%, rgb(27 148 104 / 22%), transparent 18rem),
      linear-gradient(165deg, #062a22 0%, var(--pitch-900) 64%, #10523f 100%);
    color: white;
    box-shadow: 12px 0 30px rgb(8 46 37 / 7%);
    backdrop-filter: none;
    transition: padding 220ms ease;
  }

  .is-table-mode .primary-nav {
    padding-right: 12px;
    padding-left: 12px;
  }

  .desktop-brand {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 11px;
    margin: 0 -2px 18px;
    padding: 18px 12px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: white;
    text-decoration: none;
  }

  .is-table-mode .desktop-brand {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .desktop-brand .brand-mark {
    background: white;
    color: var(--pitch-950);
  }

  .desktop-brand .brand-name {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
  }

  .is-table-mode .desktop-brand .brand-name {
    width: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav-item {
    min-height: 52px;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 13px;
    color: rgb(255 255 255 / 78%);
    font-size: 0.94rem;
    flex-direction: row;
  }

  .nav-item--more {
    display: flex;
  }

  .is-table-mode .nav-item {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .is-table-mode .nav-item span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .nav-item:hover {
    background: rgb(255 255 255 / 8%);
    color: white;
  }

  .nav-item.is-active {
    background: linear-gradient(135deg, #ffffff 0%, #edf5f0 100%);
    color: var(--pitch-950);
    box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .sidebar-footer {
    display: flex;
    margin-top: auto;
    padding: 16px 14px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 15px;
    background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 4%));
    color: rgb(255 255 255 / 66%);
    font-size: 0.76rem;
    line-height: 1.45;
    flex-direction: column;
    gap: 5px;
  }

  .is-table-mode .sidebar-footer {
    display: none;
  }

  .sidebar-footer strong {
    color: white;
    font-size: 0.88rem;
  }

  .sidebar-footer__badge {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--gold-500);
    color: var(--pitch-950);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .main-content {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-height: none;
    min-height: calc(100vh - 88px);
    padding: 42px clamp(34px, 3.4vw, 48px) 68px;
    overflow: visible;
    border-radius: 0 0 25px 0;
    background:
      radial-gradient(circle at 92% 0%, rgb(27 148 104 / 8%), transparent 31rem),
      linear-gradient(180deg, #f8faf7 0%, #eff4f0 100%);
  }

  #view-root {
    width: min(1120px, 100%);
    margin: 0 auto;
  }

  .is-table-mode #view-root {
    width: 100%;
    max-width: none;
  }

  .is-table-mode .main-content {
    padding-right: clamp(28px, 3vw, 42px);
    padding-left: clamp(28px, 3vw, 42px);
  }

  .is-table-mode .table-card--full {
    border-color: rgb(20 122 88 / 18%);
    box-shadow: 0 20px 50px rgb(8 46 37 / 10%);
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    grid-template-areas:
      "feature table"
      "summary table"
      "recent table";
    gap: 30px 28px;
    align-items: start;
  }

  .dashboard-grid > .section {
    margin-top: 0;
  }

  .home-feature {
    grid-area: feature;
  }

  .home-summary {
    grid-area: summary;
  }

  .home-table {
    grid-area: table;
  }

  .home-recent {
    grid-area: recent;
  }

  .stats-grid {
    gap: 14px;
  }

  .stat-card {
    min-height: 118px;
    padding: 20px 16px;
    border-top: 1px solid rgb(27 148 104 / 24%);
    box-shadow: 0 12px 28px rgb(8 46 37 / 6%);
  }

  .stat-label,
  .stat-detail {
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .feature-card__header {
    padding: 19px 26px;
  }

  .feature-card .match-card {
    padding: 28px 26px 30px;
  }

  .feature-card {
    border-color: rgb(19 84 65 / 14%);
    box-shadow: 0 20px 46px rgb(8 46 37 / 11%);
  }

  .feature-card .team-badge {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
  }

  .feature-card .club-crest--team {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 16px;
  }

  .feature-card .score strong {
    font-size: 2.25rem;
  }

  .feature-card .score {
    min-width: 92px;
    padding: 13px 11px;
    border-radius: 16px;
  }

  .team-name {
    font-size: 0.98rem;
  }

  .page-heading {
    margin-bottom: 30px;
    padding: 4px 4px 0;
  }

  .page-heading h1 {
    font-size: clamp(2.15rem, 3.2vw, 2.75rem);
  }

  .page-heading .eyebrow {
    display: none;
  }

  .section {
    margin-top: 30px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-recent .match-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-match {
    padding: 18px;
    box-shadow: 0 10px 26px rgb(8 46 37 / 6%);
  }

  .home-table .table-card {
    box-shadow: 0 14px 32px rgb(8 43 32 / 8%);
  }

  .home-table th,
  .home-table td {
    height: 56px;
  }

  .match-list .compact-match:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }

  .scorers-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
  }

  .news-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-card-grid--club {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-note {
    text-align: left;
  }
}

@media (max-width: 359px) {
  .match-card,
  .compact-match {
    padding-right: 11px;
    padding-left: 11px;
  }

  .match-teams {
    gap: 6px;
  }

  .team {
    gap: 5px;
  }

  .team-badge {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
    font-size: 0.7rem;
  }

  .club-crest--team,
  .compact-match .club-crest--team {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .stat-value-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .club-crest--stat,
  .stat-club-code {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 8px;
  }

  .team-name {
    font-size: 0.75rem;
  }

  .score {
    min-width: 54px;
  }

  .feature-card .score {
    min-width: 58px;
    padding: 8px 5px;
  }

  .score strong {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editorial sports redesign · private preview 0.10 */
:root {
  --pitch-950: #0b3028;
  --pitch-900: #123f35;
  --pitch-800: #185645;
  --emerald-600: #0f7253;
  --emerald-500: #168563;
  --emerald-100: #e4f1ec;
  --emerald-50: #f0f7f4;
  --gold-600: #8b6417;
  --gold-500: #c8972d;
  --gold-100: #f7edd6;
  --ivory: #f4f3ef;
  --surface: #f8f8f5;
  --surface-raised: #ffffff;
  --graphite: #17211d;
  --muted: #68716c;
  --line: #e1e3de;
  --shadow: 0 1px 2px rgb(20 31 27 / 4%), 0 10px 30px rgb(20 31 27 / 5%);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

html,
body {
  background: #f2f2ee;
}

body {
  line-height: 1.45;
}

h1,
h2,
h3,
.score strong,
.stat-value,
.top-scorer__goals strong {
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.app-shell {
  background: var(--surface);
}

.app-header {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1px 0 rgb(20 31 27 / 3%);
}

.brand-mark {
  border-radius: 13px;
  background: var(--pitch-900);
  box-shadow: 0 8px 20px rgb(18 63 53 / 12%);
}

.brand-mark::after {
  background: var(--emerald-500);
}

.brand-name {
  color: var(--graphite);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: white;
}

.icon-button:hover {
  border-color: rgb(15 114 83 / 35%);
  background: var(--emerald-50);
}

.data-state {
  color: #59645f;
}

.division-switch {
  border-color: var(--line);
  background: #f1f2ef;
}

.division-button {
  min-height: 44px;
  color: #39443f;
}

.division-button.is-active {
  background: var(--emerald-600);
  color: white;
  box-shadow: 0 6px 16px rgb(15 114 83 / 16%);
}

.primary-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-color: var(--line);
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 -10px 28px rgb(20 31 27 / 6%);
}

.nav-item {
  color: #56615c;
}

.nav-item--more {
  display: flex;
}

.nav-item.is-active {
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.main-content {
  background: var(--surface);
}

.is-refreshing #view-root {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.page-heading h1 {
  max-width: 760px;
  margin-bottom: 6px;
  color: #121b17;
  font-weight: 830;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.page-heading--home {
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-heading--home::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: var(--emerald-600);
  content: "";
}

.eyebrow {
  color: var(--emerald-600);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.page-subtitle {
  color: #69736e;
}

.round-pill {
  border: 1px solid rgb(200 151 45 / 18%);
  background: #fbf4e6;
  color: #795713;
}

.section-heading h2 {
  color: #17211d;
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.text-button {
  min-height: 44px;
  color: var(--emerald-600);
}

.card {
  border-color: var(--line);
  background: white;
  box-shadow: 0 1px 2px rgb(20 31 27 / 3%);
}

.feature-card {
  border-top: 4px solid var(--emerald-600);
  background: white;
  box-shadow: 0 18px 44px rgb(20 31 27 / 8%);
}

.feature-card__header {
  padding: 16px 18px 8px;
  border-bottom: 0;
  background: white;
  color: var(--graphite);
  box-shadow: none;
}

.feature-card__header h2 {
  color: var(--emerald-600);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card__body {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf5 100%);
}

.feature-card .match-card {
  padding-top: 10px;
}

.feature-card .match-meta {
  justify-content: center;
  margin-bottom: 22px;
}

.feature-card .club-crest--team {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgb(20 31 27 / 8%);
}

.feature-card .score {
  min-width: 94px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-card .score strong {
  color: #14201b;
  font-size: clamp(2rem, 9vw, 2.8rem);
  letter-spacing: -0.05em;
}

.feature-card .team-name {
  max-width: 180px;
  color: #1a2520;
  font-size: 0.95rem;
  font-weight: 820;
}

.match-content {
  min-width: 0;
}

.compact-match {
  padding: 16px;
  border-color: #e3e5e0;
  box-shadow: 0 1px 2px rgb(20 31 27 / 3%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.compact-match:hover {
  border-color: rgb(15 114 83 / 24%);
  box-shadow: 0 12px 28px rgb(20 31 27 / 6%);
  transform: translateY(-1px);
}

.compact-match .match-meta {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eceeea;
}

.match-meta {
  color: #6b746f;
  font-size: 0.74rem;
}

.status-pill,
.venue-status {
  min-height: 28px;
  font-size: 0.71rem;
}

.status-pill {
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.status-pill.is-final {
  background: #f0f1ef;
  color: #56605b;
}

.team-name {
  display: -webkit-box;
  overflow: hidden;
  color: #1b2621;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.club-crest {
  border-color: #e0e4df;
  background: white;
  box-shadow: 0 5px 14px rgb(20 31 27 / 6%);
}

.score strong {
  color: #17211d;
  letter-spacing: -0.035em;
}

.score span {
  color: #76807b;
}

.match-venue {
  border-top-color: #eceeea;
}

.match-venue--compact {
  margin-top: 14px;
  padding-top: 12px;
}

.match-venue--compact .match-venue__place small {
  display: none;
}

.match-venue__place strong {
  color: #34403a;
  font-size: 0.76rem;
  font-weight: 780;
}

.match-venue__place small,
.match-venue__place em {
  color: #7a837f;
  font-size: 0.69rem;
}

.venue-pin {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--emerald-50);
}

.venue-pin svg {
  width: 16px;
  height: 16px;
}

.venue-status {
  padding: 4px 8px;
  border-color: #dde1dd;
  background: #f5f6f4;
}

.venue-status.is-confirmed {
  border-color: rgb(15 114 83 / 16%);
  background: var(--emerald-50);
  color: var(--pitch-800);
}

.match-venue__actions {
  gap: 2px;
}

.match-venue__actions a {
  color: var(--emerald-600);
  font-size: 0.72rem;
  font-weight: 800;
}

.schedule-notice {
  border-color: #eadcb9;
  background: #fcf8ee;
  box-shadow: none;
}

.schedule-notice__mark {
  border-color: #ead8aa;
  background: #fff8e8;
}

.stats-grid {
  gap: 10px;
}

.stat-card {
  padding: 15px 13px;
  border-color: var(--line);
  border-top: 3px solid var(--emerald-100);
  background: white;
  box-shadow: none;
}

.stat-label {
  color: #737c77;
}

.stat-value {
  color: #17211d;
}

.table-card {
  box-shadow: none;
}

th {
  background: var(--pitch-900);
}

tbody tr:nth-child(even) td {
  background: #f8faf8;
}

.filter-chip {
  min-height: 44px;
  border-color: var(--line);
  background: white;
  color: #4e5954;
}

.filter-chip.is-active {
  border-color: rgb(15 114 83 / 40%);
  background: var(--emerald-100);
  color: var(--pitch-800);
}

.select-filter {
  border-color: var(--line);
  background: white;
}

.sponsored-card {
  border-color: #dfd8c7;
  background: #f8f5ed;
  box-shadow: none;
}

.sponsored-card__meta {
  border-bottom-color: #e6dfcf;
  background: transparent;
}

.sponsored-card__content {
  background: transparent;
}

.news-featured-card {
  border-top: 4px solid var(--emerald-600);
  background: white;
  box-shadow: 0 16px 38px rgb(20 31 27 / 7%);
}

.news-featured-mark {
  background: #f1eee4;
  color: var(--pitch-900);
}

.news-article-card {
  background: white;
  box-shadow: none;
}

.top-scorer {
  border-top-color: var(--gold-500);
  background: white;
}

.player-avatar {
  background: var(--pitch-900);
}

@media (max-width: 759px) {
  .app-header {
    gap: 10px;
    padding: 13px 16px 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .division-button {
    min-height: 42px;
  }

  .main-content {
    padding: 22px 16px calc(92px + var(--safe-bottom));
  }

  .primary-nav {
    gap: 0;
    padding-right: 3px;
    padding-left: 3px;
  }

  .nav-item {
    min-height: 56px;
    padding-right: 1px;
    padding-left: 1px;
    font-size: clamp(0.61rem, 2.65vw, 0.72rem);
  }

  .nav-item svg {
    width: 21px;
    height: 21px;
  }

  .nav-item[data-view="tabla"] span {
    font-size: 0;
  }

  .nav-item[data-view="tabla"] span::after {
    font-size: clamp(0.61rem, 2.65vw, 0.72rem);
    content: "Tabla";
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-heading h1 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  .page-heading--home {
    padding-bottom: 16px;
  }

  .feature-card .club-crest--team {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .feature-card .team-name {
    font-size: 0.87rem;
  }

  .match-venue__place strong,
  .match-venue__place small,
  .match-venue__place em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .match-venue--compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .match-venue--compact .match-venue__actions {
    grid-column: 1 / -1;
    padding-left: 39px;
  }

  .compact-match:hover {
    transform: none;
  }
}

@media (min-width: 760px) and (max-width: 1119px) {
  body {
    background: #eeefeb;
  }

  .app-shell {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 18px 48px rgb(20 31 27 / 9%);
  }

  .main-content {
    padding-top: 30px;
  }

  #view-root {
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (min-width: 1120px) {
  body {
    min-height: 100vh;
    padding: 0;
    background: #f2f2ee;
  }

  .app-shell,
  .app-shell.is-table-mode {
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 76px 58px minmax(0, 1fr);
  }

  .app-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: auto minmax(230px, 1fr) auto minmax(280px, 360px);
    align-items: center;
    gap: 24px;
    padding: 13px max(32px, calc((100vw - 1360px) / 2));
    border-radius: 0;
    background: rgb(255 255 255 / 97%);
    box-shadow: none;
  }

  .app-header > .brand {
    display: inline-flex;
    grid-column: 1;
  }

  .app-header .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .app-header .brand-name {
    font-size: 1.2rem;
  }

  .desktop-context {
    display: flex;
    grid-column: 2;
    gap: 1px;
  }

  .desktop-context span {
    color: var(--emerald-600);
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  .desktop-context strong {
    color: #505b56;
    font-size: 0.86rem;
    font-weight: 720;
  }

  .header-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .division-switch {
    grid-column: 4;
    min-width: 280px;
  }

  .primary-nav,
  .is-table-mode .primary-nav {
    position: sticky;
    z-index: 19;
    top: 76px;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    grid-column: 1;
    grid-row: 2;
    min-height: 58px;
    height: 58px;
    align-self: auto;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 4px;
    padding: 7px max(32px, calc((100vw - 1360px) / 2));
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgb(255 255 255 / 97%);
    color: var(--graphite);
    box-shadow: 0 7px 18px rgb(20 31 27 / 4%);
    backdrop-filter: blur(14px);
  }

  .desktop-brand,
  .sidebar-footer {
    display: none;
  }

  .nav-item,
  .is-table-mode .nav-item {
    width: auto;
    min-height: 42px;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 10px;
    color: #5d6863;
    font-size: 0.85rem;
    flex-direction: row;
  }

  .is-table-mode .nav-item span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .nav-item:hover {
    background: #f2f5f2;
    color: var(--pitch-900);
  }

  .nav-item.is-active {
    background: var(--emerald-100);
    color: var(--pitch-800);
    box-shadow: none;
  }

  .nav-item svg {
    width: 19px;
    height: 19px;
  }

  .main-content,
  .is-table-mode .main-content {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    min-height: calc(100vh - 134px);
    padding: 34px max(40px, calc((100vw - 1240px) / 2)) 72px;
    overflow: visible;
    border-radius: 0;
    background: var(--surface);
  }

  #view-root,
  .is-table-mode #view-root {
    width: min(1240px, 100%);
    max-width: 1240px;
    margin: 0 auto;
  }

  .page-heading {
    margin-bottom: 24px;
    padding: 0;
  }

  .page-heading .eyebrow {
    display: block;
  }

  .page-heading h1 {
    font-size: clamp(2.2rem, 3.2vw, 2.85rem);
  }

  .page-heading--home h1 {
    font-size: clamp(2.45rem, 3.8vw, 3.25rem);
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    grid-template-areas:
      "feature table"
      "summary table"
      "recent recent";
    gap: 22px;
    align-items: start;
  }

  .dashboard-grid > .section {
    margin-top: 0;
  }

  .feature-card .match-card {
    padding: 20px 30px 28px;
  }

  .feature-card .club-crest--team {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 20px;
  }

  .feature-card .score strong {
    font-size: 3rem;
  }

  .feature-card .team-name {
    font-size: 1rem;
  }

  .stat-card {
    min-height: 104px;
    padding: 16px 14px;
    box-shadow: none;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-recent .match-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-list .compact-match:first-child:nth-last-child(odd) {
    grid-column: auto;
  }

  .match-venue--compact {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .match-venue--compact .match-venue__actions {
    grid-column: auto;
    padding-left: 0;
  }

  .match-venue--compact .match-venue__actions a {
    min-height: 34px;
    padding: 5px 7px;
  }

  .section {
    margin-top: 24px;
  }

  .home-table .table-card {
    box-shadow: 0 10px 26px rgb(20 31 27 / 5%);
  }

  .scorers-layout {
    gap: 20px;
  }

  .news-card-grid {
    gap: 16px;
  }
}
