/* ======================================================== */
/* VIEW 3: League Table / Standings Card                    */
/* ======================================================== */
.standings-view-card {
  width: 100%;
  height: 100%;
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: clamp(6px, 1.2vh, 12px) clamp(10px, 1.8vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  contain: layout;
}

.standings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(3px, 0.6vh, 6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.standings-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(var(--text-scale, 1) * clamp(0.72rem, 1.7vh, 0.82rem));
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-accent);
}

.standings-season-badge {
  font-size: calc(var(--text-scale, 1) * clamp(0.65rem, 1.4vh, 0.74rem));
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 6px;
  min-height: 0;
}

.standings-table-container::-webkit-scrollbar {
  width: 5px;
}

.standings-table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: calc(var(--text-scale, 1) * max(0.75rem, clamp(0.74rem, 1.9vh, 0.88rem)));
}

.standings-table thead th {
  position: sticky;
  top: 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.6);
  font-size: calc(var(--text-scale, 1) * clamp(0.62rem, 1.4vh, 0.72rem));
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.standings-table td {
  padding: clamp(3px, 0.6vh, 6px) 6px;
  vertical-align: middle;
}

.standings-table .col-pos {
  width: 34px;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

.standings-table .col-club {
  font-weight: 700;
}

.standings-club-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-row-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.standings-club-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.standings-table .col-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.8);
}

.standings-table .col-pts {
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.standings-row-highlight {
  background: rgba(239, 1, 7, 0.22) !important;
  border-left: 3px solid var(--accent-color);
}

.standings-row-highlight td {
  color: #ffffff !important;
  font-weight: 800;
}

.standings-row-highlight .col-pos {
  color: var(--accent-color) !important;
}

.standings-table .col-wide-only {
  display: none;
}

.container.is-size-l .standings-table .col-wide-only,
.container.is-size-xl .standings-table .col-wide-only {
  display: table-cell !important;
}
