.league-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -2px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.league-tabs::-webkit-scrollbar,
.fixture-list::-webkit-scrollbar { display: none; }

.league-tab {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  scroll-snap-align: start;
  font-size: 0.82rem;
  font-weight: 640;
}

.league-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.league-tab:hover { color: var(--muted-strong); }
.league-tab[aria-selected="true"] { color: var(--text); }
.league-tab[aria-selected="true"]::after { transform: scaleX(1); }

.tab-count {
  color: #747b73;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.league-tab[aria-selected="true"] .tab-count { color: var(--muted-strong); }

.prediction-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1.42fr);
  gap: 20px;
  margin-top: 20px;
}

.fixture-panel,
.prediction-panel {
  min-width: 0;
  border-radius: var(--radius-lg);
}

.fixture-panel {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* De competitietabs tonen het aantal al; een tweede titelrij voegt niets toe. */
.fixture-panel-heading { display: none; }

.fixture-list {
  display: grid;
  max-height: min(720px, calc(100vh - 205px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.fixture-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.fixture-button {
  display: grid;
  width: 100%;
  min-height: 88px;
  gap: 7px;
  padding: 12px 14px 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.fixture-button:last-child { border-bottom: 0; }
.fixture-button:hover { background: rgba(255, 255, 255, 0.022); }

.fixture-button[aria-pressed="true"] {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.fixture-date {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 610;
  line-height: 1.35;
}

.fixture-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.fixture-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-logo {
  position: relative;
  display: grid;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.team-logo--small {
  width: 22px;
  height: 22px;
  font-size: 0.54rem;
}

.team-logo--hero {
  width: 48px;
  height: 48px;
  font-size: 0.72rem;
}

.team-logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 100ms ease;
}

.team-logo.has-image .team-logo-fallback {
  visibility: hidden;
  opacity: 0;
}

.team-logo img {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.prediction-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.prediction-panel::before { display: none; }

.prediction-panel > * {
  position: relative;
  z-index: 1;
}

.match-hero {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.match-kickoff {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 610;
}

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

.match-team {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 10px;
}

.match-team strong {
  max-width: 100%;
  font-size: clamp(1.16rem, 2.4vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 720;
  text-wrap: balance;
}

.match-vs {
  display: grid;
  place-items: center;
  color: #737a72;
  font-size: 0.7rem;
  font-weight: 680;
  text-transform: uppercase;
}

.coverage-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 17px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.coverage-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--draw);
  box-shadow: none;
}

.coverage-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 670;
}

.coverage-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.prediction-insight {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.insight-label {
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.prediction-insight strong {
  color: var(--text);
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 680;
}

.prediction-insight span:last-child {
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.48;
}

.prediction-section { margin-top: 27px; }

.prediction-section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
  color: var(--muted-strong);
  text-align: left;
}

.prediction-section-heading h3 {
  margin: 0;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 680;
}

.probability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
}

.probability-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  align-content: center;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
}

.probability-card:last-child { border-right: 0; }
.probability-card.is-high { background: var(--high-soft); }
.probability-card.is-low { background: var(--low-soft); }
.probability-card.is-mid { background: var(--draw-soft); }

.probability-code {
  display: block;
  margin-bottom: 7px;
  color: #717871;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.probability-name {
  display: grid;
  min-height: 2.35em;
  place-items: center;
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.25;
  text-wrap: balance;
}

.probability-card strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: clamp(1.75rem, 3.8vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 710;
}

.probability-card.is-high .probability-code,
.probability-card.is-high > strong { color: var(--high); }
.probability-card.is-low .probability-code,
.probability-card.is-low > strong { color: var(--low); }
.probability-card.is-mid .probability-code,
.probability-card.is-mid > strong { color: var(--draw); }

.goal-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
}

.goal-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.goal-row:last-child { border-bottom: 0; }

.goal-threshold {
  display: grid;
  place-content: center;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
}

.goal-threshold strong {
  color: var(--text);
  font-size: 1.04rem;
  font-variant-numeric: tabular-nums;
  font-weight: 710;
  line-height: 1;
  letter-spacing: -0.03em;
}

.goal-option {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.goal-option:last-child { border-right: 0; }
.goal-option.is-high { background: var(--high-soft); }
.goal-option.is-low { background: var(--low-soft); }

.goal-option span {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.28;
  text-wrap: balance;
}

.goal-option strong {
  color: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.goal-option.is-high strong { color: var(--high); }
.goal-option.is-low strong { color: var(--low); }

.list-empty {
  padding: 20px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 901px) {
  .league-tab { font-size: 0.88rem; }
  .tab-count { font-size: 0.74rem; }
  .fixture-date { font-size: 0.74rem; }
  .fixture-team { font-size: 0.88rem; }
  .match-kickoff { font-size: 0.8rem; }
  .coverage-note strong { font-size: 0.8rem; }
  .coverage-note p { font-size: 0.8rem; }
  .insight-label { font-size: 0.68rem; }
  .prediction-insight span:last-child { font-size: 0.86rem; }
  .prediction-section-heading h3 { font-size: 0.9rem; }
  .probability-code { font-size: 0.72rem; }
  .probability-name { font-size: 0.8rem; }
  .goal-threshold strong { font-size: 1.08rem; }
  .goal-option span { font-size: 0.78rem; }
  .goal-option strong { font-size: 1.04rem; }

  .fixture-list {
    scrollbar-gutter: stable;
  }

  .fixture-list::-webkit-scrollbar {
    display: block;
    width: 7px;
  }

  .fixture-list::-webkit-scrollbar-track { background: transparent; }

  .fixture-list::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.18);
    background-clip: padding-box;
  }
}

@media (max-width: 900px) {
  .prediction-workspace { grid-template-columns: 1fr; gap: 14px; }

  .fixture-panel {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .fixture-list {
    display: flex;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -12px;
    padding: 0 12px 4px;
    scroll-padding: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fixture-button {
    width: 176px;
    min-height: 116px;
    flex: 0 0 176px;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    scroll-snap-align: start;
  }

  .fixture-button:last-child { border-bottom: 1px solid var(--line); }
  .fixture-button[aria-pressed="true"] {
    border-color: var(--line-strong);
    background: var(--surface-2);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .fixture-date { min-height: 2.4em; white-space: normal; }
  .fixture-team-name {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .prediction-panel { min-height: 0; }
}

@media (max-width: 680px) {
  .league-tabs {
    gap: 20px;
    margin-inline: -12px;
    padding-inline: 12px;
    scroll-padding: 12px;
  }

  .league-tab { min-height: 42px; font-size: 0.77rem; }
  .prediction-workspace { margin-top: 15px; }
  .prediction-panel { padding: 18px 14px 20px; }
  .match-hero { padding-bottom: 18px; }
  .match-kickoff { margin-bottom: 15px; font-size: 0.7rem; }

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

  .match-team { gap: 8px; }
  .team-logo--hero { width: 42px; height: 42px; }
  .match-team strong { font-size: clamp(1.02rem, 5.4vw, 1.34rem); }
  .match-vs { font-size: 0.62rem; }
  .coverage-note { margin-top: 13px; padding-block: 11px; }
  .prediction-insight { margin-top: 14px; padding-left: 11px; }
  .prediction-insight strong { font-size: 0.94rem; }
  .prediction-section { margin-top: 23px; }
  .probability-card { min-height: 108px; padding: 12px 8px; }
  .probability-code { margin-bottom: 6px; }
  .probability-name { min-height: 2.55em; font-size: 0.65rem; }
  .probability-card strong { font-size: clamp(1.5rem, 7.8vw, 1.92rem); }
  .goal-row { grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr); min-height: 70px; }
  .goal-threshold { padding-inline: 5px; }
  .goal-threshold strong { font-size: 0.98rem; }
  .goal-option { padding-inline: 6px; }
  .goal-option span { font-size: 0.62rem; }
  .goal-option strong { font-size: 0.92rem; }
}

@media (max-width: 360px) {
  .fixture-button { width: 164px; flex-basis: 164px; }
  .prediction-panel { padding-inline: 11px; }
  .probability-card { padding-inline: 6px; }
  .probability-name { font-size: 0.6rem; }
  .goal-option span { font-size: 0.58rem; }
}
