/* 3OT · standings.css
   NBA Standings page (/nba-standings).
*/

.st-hero h1 {
  margin: 0 0 14px;
}

/* Standings / Expanded / Vs. Division: underlined tabs */
.st-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.st-tabs a {
  flex: 1 0 auto;
  padding: 10px 16px 12px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.st-tabs a.active {
  border-bottom-color: var(--orange);
  color: #fff;
}

.st-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* League / Conference / Division segmented control */
.st-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel2);
}

.st-seg a {
  padding: 8px 18px;
  border-radius: 999px;
  color: #dfe5ef;
  font-weight: 700;
  text-decoration: none;
}

.st-seg a.active {
  background: linear-gradient(135deg,#ff7a18,#ff9f2f);
  color: #120b05;
}

.st-season select {
  width: auto;
  min-width: 130px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.st-body {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  margin-top: 18px;
}

.st-group {
  min-width: 0;
}

.st-group h2 {
  margin: 0 0 8px 4px;
  font-size: 20px;
}

.st-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.st-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.st-table th,
.st-table td {
  padding: 10px 10px;
  text-align: right;
}

.st-table td {
  border-bottom: 0;
}

.st-table thead th {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.st-table tbody tr + tr td {
  border-top: 1px solid rgba(255,255,255,.05);
}

.st-table tbody tr:hover td {
  background: rgba(255,255,255,.03);
}

/* Column headers sort the table */
.st-table .st-sort {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.st-table th[aria-sort] .st-sort {
  color: #fff;
}

.st-table th[aria-sort="descending"] .st-sort::after {
  content: " ▼";
  font-size: 9px;
}

.st-table th[aria-sort="ascending"] .st-sort::after {
  content: " ▲";
  font-size: 9px;
}

.st-table th.st-rank {
  cursor: pointer;
}

.st-table .st-rank {
  width: 28px;
  color: var(--muted);
  text-align: center;
}

.st-table .st-team {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: var(--panel);
  text-align: left;
}

.st-team a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.st-team a:hover .st-name {
  color: var(--orange2);
}

.st-chip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg,var(--chip-a),var(--chip-b));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.st-short {
  display: none;
}

.st-table .is-gb {
  background: rgba(255,255,255,.03);
}

.st-table .is-split {
  border-left: 1px solid var(--line);
}

.st-table .is-pos {
  color: #51d88a;
}

.st-table .is-neg {
  color: #ff7b7b;
}

/* Conference view: dotted line under the 6th seed (play-in), solid under the 10th */
.st-table tbody tr.st-line-playin + tr td {
  border-top: 1px dashed rgba(255,255,255,.35);
}

.st-table tbody tr.st-line-out + tr td {
  border-top: 2px solid rgba(255,255,255,.3);
}

.st-table.is-resorted tbody tr + tr td {
  border-top: 1px solid rgba(255,255,255,.05);
}

.st-notes {
  margin: 0 4px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .st-table th,
  .st-table td {
    padding: 9px 8px;
  }
  .st-table .st-team {
    min-width: 0;
  }
  .st-full {
    display: none;
  }
  .st-short {
    display: inline;
  }
  .st-seg a {
    padding: 8px 13px;
  }
}
