.standings {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.standings__toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.standings__toggle-btn {
  padding: 0.4rem 1.2rem;
  background: var(--color-surface, #1a1a2e);
  color: var(--color-text-secondary, #999);
  border: 1px solid var(--color-border, #333);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.standings__toggle-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.standings__toggle-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.standings__toggle-btn--active {
  background: var(--team-secondary, #4a4a6e);
  color: #fff;
  border-color: var(--team-secondary, #4a4a6e);
}

.standings__chart {
  width: 100%;
  overflow-x: auto;
}

.standings__chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.standings__tooltip {
  position: absolute;
  background: var(--color-surface, #1a1a2e);
  border: 1px solid var(--color-border, #333);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text, #e0e0e0);
  pointer-events: none;
  z-index: 10;
  display: none;
  overflow: hidden;
  min-width: 200px;
}

.standings__tooltip--visible {
  display: block;
}

.standings__tt-header {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.standings__tt-crest {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings__tt-body {
  padding: 8px 12px;
}

.standings__tt-position {
  margin-bottom: 6px;
  font-size: 13px;
}

.standings__tt-bye {
  color: #888;
  font-style: italic;
  font-size: 12px;
}

.standings__tt-result {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.6;
}

.standings__tt-badge {
  display: inline-block;
  width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.standings__tt-badge--win {
  color: #4caf50;
}

.standings__tt-badge--loss {
  color: #ef5350;
}

.standings__tt-badge--draw {
  color: #ffa726;
}

.standings__tt-opp-crest {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: auto;
}

.standings__team-line {
  transition: opacity 0.3s;
  cursor: pointer;
}

.standings__team-line--faded {
  opacity: 0.2;
}

.standings__team-dot {
  transition: r 0.2s;
}

.standings__no-data {
  text-align: center;
  color: var(--color-text-secondary, #999);
  padding: 3rem 1rem;
  font-size: 1rem;
}
