.page-standings__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* Make title sit above controls, like on stats page */
.page-standings__top-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;                    /* slightly tighter */
  margin-bottom: 16px;
}

.page-standings__top-bar h1 {
  margin: 0;
  font-size: 1.6rem;
}

/* Row with Stats / Standings toggle + View dropdown */
.page-standings__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle buttons – same as stats page */
.stats-toggle {
  display: flex;
  gap: 6px;
}

.stats-toggle__button {
  font-size: 0.85rem;
  padding: 4px 10px;
}

/* View dropdown – mirror stats “Team” filter */
.standings-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.standings-filter label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.standings-filter select {
  padding: 3px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
}

.standings-filter select:focus-visible {
  outline: 1px solid var(--accent-primary);
}

/* ===== existing stuff below can stay as-is ===== */

.standings-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.standings-conf__title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.standings-conf__groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.standings-group__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.standings-group__table .stats-table th,
.standings-group__table .stats-table td {
  font-size: 0.8rem;
  white-space: nowrap;
}
.page-standings__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* Mobile-first: stack the heading above the controls */
.page-standings__top-bar {
  display: flex;
  flex-direction: column;      /* stack on small screens */
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.page-standings__top-bar h1 {
  margin: 0;
  font-size: 1.6rem;
}

.page-standings__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* On larger screens, put heading + controls inline (like Team Stats) */
@media (min-width: 768px) {
  .page-standings__top-bar {
    flex-direction: row;       /* heading + controls side-by-side */
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-standings__controls {
    justify-content: flex-end;
  }
}
