/* Standings table scroll wrapper */
.standings-scroll {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: auto;
  min-width: 640px;
}

.standings-table thead th {
  padding: 0.75rem 0.65rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  text-align: left;
}

.standings-table thead th.text-center,
.standings-table tbody td.text-center {
  text-align: center;
}

.standings-table tbody td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  white-space: nowrap;
}

.standings-row {
  scroll-margin-top: 5rem;
}

.standings-row.is-highlight {
  background: rgba(168, 85, 247, 0.12);
}

.standings-rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.standings-team-logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.standings-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .standings-table {
    font-size: 0.75rem;
  }

  .standings-table thead th,
  .standings-table tbody td {
    padding: 0.55rem 0.5rem;
  }

  .standings-team-logo {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Standings sidebar sticky on desktop */
@media (min-width: 1024px) {
  .tm-league-sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

.standings-legend {
  margin-top: 1.5rem;
}

.standings-empty-notice {
  margin-top: 1rem;
}

/* WC group variant — label dalam thead + flag rounded */
.standings-table--wc-group {
  min-width: 600px;
}

.standings-group-label {
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  padding-left: 1rem !important;
}

.standings-rank-td {
  width: 2.5rem;
  padding-left: 1rem !important;
  color: rgba(255, 255, 255, 0.65);
}

.standings-table--wc-group .standings-team-logo {
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
}
