.standings-section {
  padding: 72px 0;
}

.standings-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.standings-header {
  margin-bottom: 48px;
}

.standings-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.standings-header p {
  color: var(--chalk-dim);
  font-size: 16px;
  margin: 0;
}

.standings-controls {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.standings-controls select {
  background: var(--field-dark);
  border: 1px solid var(--field-light);
  border-radius: 3px;
  color: var(--chalk);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 180px;
}

.standings-controls select:hover {
  border-color: var(--gold);
}

.standings-controls select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.standings-controls select option {
  background: var(--field-dark);
  color: var(--chalk);
}

.standings-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--chalk-dim);
  font-size: 16px;
}

.standings-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #fca5a5;
  font-size: 14px;
}

.standings-table-wrapper {
  border: 1px solid var(--field-light);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(6, 25, 43, 0.4);
  box-shadow: 0 0 0 1px rgba(226, 111, 15, 0.1);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
}

.standings-table thead {
  background: rgba(13, 39, 64, 0.5);
  border-bottom: 2px solid var(--field-light);
}

.standings-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ash);
  padding: 14px 18px;
  font-family: 'IBM Plex Mono', monospace;
}

.standings-table th:first-child {
  width: 50px;
  text-align: center;
}

.standings-table th:nth-child(4),
.standings-table th:nth-child(5) {
  text-align: center;
}

.standings-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 54, 86, 0.4);
  color: var(--chalk);
}

.standings-table tbody tr {
  transition: background-color 0.15s ease;
}

.standings-table tbody tr:hover {
  background-color: rgba(226, 111, 15, 0.08);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table td:first-child {
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}

.team-name {
  font-weight: 600;
}

.team-link {
  color: var(--chalk);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-link:hover {
  color: var(--gold-bright);
}

.division-badge {
  display: inline-block;
  background: rgba(226, 111, 15, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}

.standings-table td.points-for {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-bright);
  text-align: center;
}

.standings-table td.record-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--chalk-dim);
  text-align: center;
}

.standings-empty {
  text-align: center;
  color: var(--chalk-dim);
  padding: 40px 18px !important;
  font-size: 15px;
}

@media (max-width: 768px) {
  .standings-container {
    padding: 0 16px;
  }

  .standings-header {
    margin-bottom: 32px;
  }

  .standings-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .standings-header p {
    font-size: 15px;
  }

  .standings-controls {
    margin-bottom: 24px;
  }

  .standings-controls select {
    width: 100%;
    min-width: auto;
  }

  .standings-table {
    font-size: 14px;
  }

  .standings-table th {
    padding: 12px 10px;
    font-size: 10px;
  }

  .standings-table td {
    padding: 12px 10px;
  }

  .standings-table th:first-child {
    width: 40px;
  }

  .standings-table td:first-child {
    font-size: 13px;
  }

  .team-name {
    font-size: 13px;
  }

  .division-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .standings-table td.points-for {
    font-size: 12px;
  }

  .standings-table td.record-display {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .standings-container {
    padding: 0 12px;
  }

  .standings-header {
    margin-bottom: 24px;
  }

  .standings-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .standings-header p {
    font-size: 14px;
  }

  .standings-controls {
    margin-bottom: 20px;
  }

  .standings-table th,
  .standings-table td {
    padding: 10px 8px;
  }

  .standings-table th {
    font-size: 9px;
  }

  .standings-table {
    font-size: 13px;
  }

  .team-link {
    flex-direction: column;
    gap: 2px;
  }

  .division-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}
