/* ============================================
   LEAN EDGE SPORTS — Standings Page
   standings.css
============================================ */

/* --- PAGE HERO --- */
.page-hero {
  padding: 120px 60px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero h1 {
  font-family: tahoma;
  font-size: 64px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- PAGE LAYOUT --- */
.stats-page-layout {
  display: flex;
  min-height: calc(100vh - 300px);
}

/* --- TEAM SIDEBAR --- */
.team-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--darkest-navy);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  position: sticky;
  top: 0;
  max-height: 100vh;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 16px 10px;
}

.team-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  color: var(--grey-font);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.team-btn:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.team-btn.active {
  background: rgba(196,18,48,0.08);
  border-left: 3px solid var(--red);
  padding-left: 13px;
  color: var(--white);
  font-weight: 600;
}

.team-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* --- MAIN CONTENT --- */
.stats-main { flex: 1; padding: 24px 32px 80px; min-width: 0; }

/* --- TOOLBAR --- */
.stats-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* --- CONFERENCE TOGGLE --- */
.conf-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
}

.conf-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.conf-btn:hover { color: var(--white); }
.conf-btn.active { background: var(--red); color: var(--white); }

/* --- SEASON DROPDOWN --- */
.season-select {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  border-color: rgba(196,18,48,0.3);
}

.season-select option { background-color: var(--dark-navy); color: var(--white); }
.season-select:focus { outline: none; border-color: rgba(196,18,48,0.5); }

/* --- HEADING ROW --- */
.team-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.team-heading h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.standings-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(196,18,48,0.3);
  background: rgba(196,18,48,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- STANDINGS TABLE --- */
.standings-table-wrap { margin-bottom: 12px; }

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Barlow', sans-serif;
}

.standings-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.standings-table .col-g,
.standings-table .col-w,
.standings-table .col-l,
.standings-table .col-pct { text-align: center; }

.standings-row {
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.standings-row:hover { background: rgba(255,255,255,0.04); }
.standings-row.row-highlighted { background: rgba(196,18,48,0.08); }
.standings-row.row-dimmed { opacity: 0.35; }

.standings-row td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--grey-font);
}

.standings-row.row-separator-top td {
  border-top: 2px solid rgba(255,255,255,0.12);
}

/* --- RANK BADGES --- */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.rank-playoff { background: #16a34a; color: #fff; }
.rank-playin  { background: #f59e0b; color: #000; }
.rank-out     { background: rgba(255,255,255,0.85); color: #000; }
.rank-num     { color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 0 4px; }

.col-rank { width: 44px; }

/* --- TEAM NAME CELL --- */
.team-name-cell { font-weight: 500; color: var(--white); }
.team-conf-tag {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- LEGEND --- */
.standings-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- DIVISION SECTION --- */
.division-section { margin-bottom: 24px; }

.division-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--grey-font);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.division-toggle:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.division-toggle .ti-chevron-down { margin-left: auto; transition: transform 0.2s; }

.division-grids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.division-card {
  background: rgba(17,29,66,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.division-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.division-table { width: 100%; border-collapse: collapse; }
.division-table th {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.division-table td { padding: 8px 10px; font-size: 12px; color: var(--grey-font); border-bottom: 1px solid rgba(255,255,255,0.03); }
.division-table tr:last-child td { border-bottom: none; }
.div-rank { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-right: 6px; }

/* --- SECTION DIVIDER --- */
.section-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 28px 0; }
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

/* --- PLAYOFF PICTURE --- */
.playoff-picture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.pp-section {
  background: rgba(17,29,66,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.pp-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.pp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pp-dot-green { background: #4ade80; }
.pp-dot-amber { background: #f59e0b; }
.pp-dot-grey  { background: rgba(255,255,255,0.35); }

.pp-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pp-team:last-child { border-bottom: none; }
.pp-name { flex: 1; font-size: 13px; color: var(--white); }
.pp-record { font-size: 12px; color: var(--text-muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }

/* ============================================
   POSTSEASON EXPLAINER
============================================ */

.explainer { margin-top: 0; }

.explainer-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 32px;
}

.explainer-steps { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }

.explainer-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(17,29,66,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Play-in diagram */
.playin-diagram { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pd-row { display: flex; gap: 12px; flex-wrap: wrap; }

.pd-game {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}

.pd-game-final { flex: unset; width: 100%; }
.pd-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.pd-seeds { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-vs { font-size: 11px; color: var(--text-muted); }

.pd-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.pd-7, .pd-8     { background: #16a34a; color: #fff; }
.pd-9, .pd-10    { background: #f59e0b; color: #000; }
.pd-loser        { background: rgba(255,255,255,0.15); color: var(--white); font-size: 9px; width: auto; padding: 0 8px; border-radius: 4px; }
.pd-winner       { background: rgba(255,255,255,0.15); color: var(--white); font-size: 9px; width: auto; padding: 0 8px; border-radius: 4px; }
.pd-outcome { font-size: 12px; color: var(--text-muted); }

/* Bracket diagram */
.bracket-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.bracket-col { display: flex; flex-direction: column; gap: 8px; }
.bracket-matchup {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.b-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.b-high { background: #16a34a; color: #fff; }
.b-low  { background: #f59e0b; color: #000; }
.b-vs   { font-size: 10px; color: var(--text-muted); }

.bracket-arrow-col { display: flex; flex-direction: column; justify-content: space-around; color: var(--text-muted); font-size: 18px; }
.bracket-arrow-mid { font-size: 18px; color: var(--text-muted); }

.bracket-semi-col { display: flex; flex-direction: column; gap: 8px; }
.bracket-semi {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(46,117,182,0.1);
  border: 1px solid rgba(46,117,182,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--mid-blue);
  font-weight: 600;
  min-height: 60px;
}

.bracket-finals-col { display: flex; align-items: center; }
.bracket-conf-final {
  background: rgba(196,18,48,0.1);
  border: 1px solid rgba(196,18,48,0.25);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  text-align: center;
}

/* Finals diagram */
.finals-diagram {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.finals-conf {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 16px;
  background: rgba(46,117,182,0.1);
  border: 1px solid rgba(46,117,182,0.2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.finals-vs { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.finals-arrow { font-size: 20px; color: var(--text-muted); }

.finals-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(196,18,48,0.1);
  border: 1px solid rgba(196,18,48,0.25);
  border-radius: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.finals-trophy .ti-trophy { font-size: 24px; }

/* Home court advantage */
.hca-grid { margin-top: 18px; }
.hca-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.hca-games { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

.hca-game {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.hca-home { background: #16a34a; color: #fff; }
.hca-away { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.hca-note { font-size: 11px; color: var(--text-muted); }

/* Explainer table */
.explainer-table-wrap {
  background: rgba(17,29,66,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.explainer-table-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.explainer-table { width: 100%; border-collapse: collapse; }
.explainer-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.explainer-table td {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--grey-font);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.explainer-table tr:last-child td { border-bottom: none; }
.champion-row td { color: var(--white); font-weight: 600; background: rgba(196,18,48,0.06); }


/* --- BRACKET TOGGLE BUTTON --- */
.bracket-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--grey-font);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  margin-bottom: 0;
}

.bracket-toggle-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.bracket-toggle-btn .ti-chevron-down { margin-left: auto; transition: transform 0.2s; }

/* --- BRACKET CONTENT --- */
#bracket-content { margin-top: 16px; }

.br-finals-banner {
  background: rgba(196,18,48,0.08);
  border: 1px solid rgba(196,18,48,0.2);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.br-finals-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.br-finals-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.br-finals-team {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.br-finals-winner {
  color: var(--white);
  font-size: 20px;
}

.br-finals-winner .ti-trophy { color: #f59e0b; font-size: 18px; }

.br-finals-record {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}

.br-finals-loser { text-decoration: none; }

.br-finals-toggle {
  border-top: 1px solid rgba(196, 18, 48, 0.2);
  color: rgba(255,255,255,0.4);
  background: none;
  width: 100%;
  margin-top: 10px;
}

.br-finals-toggle:hover { color: var(--white); }

.br-finals-game-log {
  border-top: 1px solid rgba(196, 18, 48, 0.15);
  background: rgba(0,0,0,0.15);
  border-radius: 0 0 10px 10px;
  margin-top: 4px;
}

/* BRACKET LAYOUT */
.br-wrap {
  margin-bottom: 24px;
  background: rgba(17,29,66,0.35);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.br-conf-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.br-grid {
  display: flex;
  gap: 0;
  padding: 16px;
  align-items: stretch;
  overflow-x: auto;
}

.br-col {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

.br-col-center {
  justify-content: center;
  min-width: 200px;
  flex: 1;
}

.br-round-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.br-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-around;
  padding: 0 8px;
}

.br-center-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* MATCHUP CARD */
.bm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  min-width: 180px;
  width: 100%;
}

.bm-tbd {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.bm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  gap: 6px;
}

.bm-win  { background: rgba(255,255,255,0.03); }
.bm-lose { opacity: 0.6; }

.bm-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-lose .bm-name { color: var(--text-muted); }

.bm-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bm-score-win { color: #4ade80; }

.bm-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0;
}

/* CONFERENCE CHAMPION CARD */
.br-champ-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: rgba(196,18,48,0.1);
  border: 1px solid rgba(196,18,48,0.25);
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

.br-champ-card .ti-trophy { font-size: 22px; color: #f59e0b; }
.br-champ-card span { font-size: 12px; font-weight: 600; color: var(--white); }


/* GAME-BY-GAME TOGGLE */
.bm-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  color: var(--text-muted);
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.bm-toggle-btn:hover { color: var(--white); }
.bm-chevron { font-size: 11px; transition: transform 0.2s; }

.bm-game-log {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}

.bm-game-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
}

.bm-game-row:last-child { border-bottom: none; }

.bm-game-num {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 18px;
  flex-shrink: 0;
}

.bm-game-date {
  color: var(--text-muted);
  min-width: 38px;
  flex-shrink: 0;
}

.bm-game-score {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bm-game-team-w { font-weight: 700; color: var(--white); }
.bm-game-team-l { color: var(--text-muted); }

.bm-game-sc { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.bm-game-sc-w { color: #4ade80; }
.bm-game-dash { color: var(--text-muted); font-size: 10px; }

.bm-game-ot {
  font-size: 9px;
  font-weight: 700;
  color: var(--mid-blue);
  background: rgba(46,117,182,0.15);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

/* TEAM HISTORY STRIP */
.team-history-strip {
  display: flex;
  gap: 0;
  background: rgba(17,29,66,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.th-season {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: default;
}

.th-season:last-child { border-right: none; }
.th-season-label { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
.th-rank { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; display: block; margin-bottom: 2px; }
.th-record { font-size: 10px; color: var(--text-muted); display: block; }
.th-outcome { font-size: 9px; font-weight: 600; margin-top: 3px; display: block; letter-spacing: 0.04em; }

/* PLAYOFF OUTCOME COLUMN */
.col-outcome { min-width: 110px; text-align: left; padding-left: 8px !important; }

.outcome-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.ob-champion  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ob-finals    { background: rgba(196,18,48,0.12); color: #ff6b6b; }
.ob-conf      { background: rgba(46,117,182,0.12); color: var(--mid-blue); }
.ob-semis     { background: rgba(255,255,255,0.06); color: var(--grey-font); }
.ob-r1        { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.ob-playin    { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.ob-out       { color: var(--text-muted); font-size: 10px; }

/* DIVISION CHAMPION BADGE */
.div-champ-badge {
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .division-grids { grid-template-columns: repeat(2, 1fr); }
  .playoff-picture-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .team-sidebar { width: 180px; }
  .stats-main { padding: 20px 20px 60px; }
}

@media (max-width: 768px) {
  .stats-page-layout { flex-direction: column; }

  .team-sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }

  .sidebar-title { width: 100%; padding: 12px 16px 6px; }
  .team-btn { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.04); white-space: nowrap; flex-shrink: 0; }
  .team-btn.active { border-left: none; border-bottom: 3px solid var(--red); padding-left: 16px; padding-bottom: 7px; }

  .page-hero { padding: 100px 24px 30px; }
  .page-hero h1 { font-size: 44px; }
  .stats-main { padding: 16px 16px 50px; }
  .conf-toggle { width: 100%; }
  .conf-btn { flex: 1; }
  .division-grids { grid-template-columns: 1fr; }
  .pd-row { flex-direction: column; }
  .bracket-diagram { flex-direction: column; align-items: flex-start; }
  .finals-diagram { flex-direction: column; align-items: stretch; }
  .finals-arrow { text-align: center; transform: rotate(90deg); }
  .quick-facts { flex-direction: column; }
  .qf-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .qf-item:last-child { border-bottom: none; }
}

.standings-team-link,
.result-opp-link,
.card-team-link,
.draft-team-link,
.chc-name-link,
.pp-name.standings-team-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.standings-team-link:hover,
.result-opp-link:hover,
.card-team-link:hover,
.draft-team-link:hover,
.pp-name.standings-team-link:hover {
  color: var(--white);
}

.chc-name-link {
  display: block;
}

.chc-name-link:hover .chc-name {
  color: var(--grey-font);
}
