.league-tabs__nav {
  margin: 0;
}
.league-section-season {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}
.league-section-season:empty {
  display: none;
}
.league-stats__seasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
}
.league-stats__seasons[hidden] {
  display: none;
}
.league-stats__seasons-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.league-stats__seasons-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.league-stats__chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.league-stats__chip,
.league-stats__option {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  line-height: 1.55;
}
.league-stats__chip:hover,
.league-stats__option:hover {
  color: var(--primary);
}
.league-stats__chip:focus-visible,
.league-stats__option:focus-visible,
.league-stats__more-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.league-stats__chip--active,
.league-stats__option--active {
  color: var(--primary);
}
.league-stats__chip--clipped {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-stats__more {
  flex: 0 0 auto;
}
.league-stats__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.league-stats__more-btn:hover {
  color: var(--primary);
}
.league-stats__more-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.league-stats__more-btn[aria-expanded="true"] .league-stats__more-icon {
  transform: rotate(180deg);
}
.league-stats__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  max-height: 320px;
  padding: 8px;
  overflow-y: auto;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.league-stats__option {
  text-align: center;
}
.league-stats__dropdown .league-stats__option {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 88px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.league-stats__option:hover {
  background: var(--grey-light);
}
.league-stats__option--active {
  background: var(--grey-light);
}
.league-stats__body {
  transition: opacity 0.15s ease;
}
.league-stats__body--loading {
  opacity: 0.5;
  pointer-events: none;
}
.league-stats__empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--grey-light);
  font-size: 14px;
  color: var(--grey);
}
.league-stats__retry {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 14px;
}
.league-stats__pending-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 200px;
}
.league-stats__progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.league-stats__progress[hidden] {
  display: none;
}
.league-stats__progress-track {
  flex: 1 1 auto;
  max-width: 320px;
  height: 6px;
  border-radius: 3px;
  background: var(--grey-light);
  overflow: hidden;
}
.league-stats__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.league-stats__progress-pct {
  flex-shrink: 0;
  min-width: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .league-tabs__nav {
    margin: 0;
  }
  .league-stats__seasons {
    margin: 0 0 16px;
  }
  .league-stats__seasons-label {
    font-size: 18px;
  }
  .league-stats__dropdown {
    max-height: 260px;
  }
  .league-stats__dropdown .league-stats__option {
    min-width: 72px;
  }
}
