/* ================================================================
   College Football Hub - Custom Styles
   Stadium Lights at Night - deep black with electric amber
   ================================================================ */

/* ---- Type Scale ---- */
:root {
  --fs-xxs:    0.65rem;
  --fs-xs:     0.72rem;
  --fs-sm:     0.8rem;
  --fs-base:   0.875rem;
  --fs-md:     0.95rem;
  --fs-lg:     1.1rem;
  --fs-xl:     1.35rem;
  --fs-2xl:    1.65rem;
  --fs-hero:   2.2rem;
  --ls-body:    0.02em;
  --ls-stat:    0.04em;
  --ls-display: 0.07em;
  --lh-tight:  1.1;
  --lh-card:   1.35;
  --lh-body:   1.65;
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.18);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.28);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.4);
  --t-fast: 0.15s;
  --t-base: 0.25s;
}

/* ---- Overall Theme ---- */
html { overflow-x: hidden; }
body {
  background-color: #2b2d31;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Smooth tab transitions — fade in new panels instantly */
.tab-pane {
  animation: tabFadeIn 0.15s ease-out;
}
@keyframes tabFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Shiny recalculating overlay — keep visible but dimmed */
.shiny-busy .tab-pane.active {
  opacity: 0.85;
  transition: opacity 0.15s;
}
/* Navbar loading bar — thin gold line under navbar during server work */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  transition: width 0.3s ease;
}
.shiny-busy .navbar::after {
  width: 100%;
  animation: navbar-loading 1.2s ease-in-out infinite;
}
@keyframes navbar-loading {
  0% { left: 0; width: 0; }
  50% { left: 25%; width: 50%; }
  100% { left: 100%; width: 0; }
}

.navbar {
  border-bottom: 3px solid #f59e0b !important;
  position: sticky !important;
  top: 0;
  z-index: 1030;
  overflow: visible;
}

/* Stadium floodlight glow — warm gold top corners */
.navbar::before,
.navbar::after {
  content: '';
  position: absolute;
  top: -20px;
  width: 300px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.navbar::before {
  left: -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(245, 158, 11, 0.06) 40%,
    transparent 70%
  );
}
.navbar::after {
  right: -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(245, 158, 11, 0.06) 40%,
    transparent 70%
  );
}

/* Hide navbar glow on mobile — pseudo-elements extend past viewport */
@media (max-width: 991.98px) {
  .navbar::before, .navbar::after { display: none; }
}


.navbar-brand {
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  margin-right: 40px !important;
  padding-left: 4px !important;
  padding-right: 20px !important;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid rgba(245, 158, 11, 0.25);
}
/* Push all nav tabs clear of the brand */
.navbar .navbar-nav {
  margin-left: 12px;
}
.navbar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
}

/* ---- Navbar Tab Visibility (critical) ---- */
.navbar .nav-link {
  color: #94a3b8 !important;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.navbar .nav-link:hover {
  color: #f1f5f9 !important;
}

.navbar .nav-link.active,
.navbar .nav-item .nav-link.active {
  color: #2b2d31 !important;
  background-color: #f59e0b !important;
  border-radius: 6px;
  font-weight: 700;
}

/* ---- Sub-tab pills visibility ---- */
.nav-pills .nav-link {
  color: #94a3b8 !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 14px;
  transition: color 0.15s, background 0.15s;
}

.nav-pills .nav-link:hover {
  color: #f1f5f9 !important;
  background-color: #44464d !important;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link.active:focus {
  color: #2b2d31 !important;
  background-color: #f59e0b !important;
  font-weight: 700;
}

/* ---- Map Controls ---- */
.map-controls {
  padding: 14px clamp(24px, 7vw, 180px) 10px;
  background: linear-gradient(180deg, rgba(26,20,16,0.95) 0%, rgba(26,20,16,0.6) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.map-controls .form-control,
.map-controls .form-select {
  background-color: rgba(53,55,61,0.9);
  border-color: #4a4d55;
  color: #f1f5f9;
  font-size: 0.85rem;
}

.map-controls .form-control:focus,
.map-controls .form-select:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.2);
}

.map-controls .control-label {
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.team-count-box {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 8px;
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.map-hint {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 10px;
  color: #8b9db0;
  font-style: italic;
}

/* ================================================================
   SPLIT-SCREEN LAYOUT (Map left, Info right)
   ================================================================ */
.split-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 170px);
  min-height: 500px;
  margin: 0 clamp(24px, 7vw, 180px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.split-left {
  flex: 1 1 55%;
  min-width: 0;
  position: relative;
}

.split-right {
  flex: 1 1 45%;
  min-width: 0;
  overflow-y: auto;
  background: linear-gradient(180deg, #2a2520 0%, #1e1c18 100%);
  border-left: 2px solid rgba(201,168,76,0.15);
}

/* Right panel scrollbar (trophy-room brass) */
.split-right::-webkit-scrollbar { width: 6px; }
.split-right::-webkit-scrollbar-track { background: transparent; }
.split-right::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.3);
  border-radius: 3px;
}
.split-right::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.5);
}

/* ---- Map ---- */
.leaflet-container {
  border-radius: 0;
  border: none;
}
/* Gold hover glow on team markers */
.leaflet-marker-pane path.leaflet-interactive:hover {
  stroke: #c9a84c !important;
  stroke-width: 3px !important;
  stroke-opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.7));
}
.leaflet-bar .easy-button-button {
  background-color: #2a2520;
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,0.3);
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 16px;
}
.leaflet-bar .easy-button-button:hover {
  background-color: #3e3830;
  color: #fbbf24;
}

/* Team-color popup: strip default Leaflet white chrome */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6) !important;
  border-radius: 10px !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
}
.leaflet-popup-tip {
  background: #ffffff !important;
}

/* Leaflet zoom controls — match trophy room */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}
.leaflet-bar a {
  background-color: #2a2520 !important;
  color: #c9a84c !important;
  border-bottom-color: rgba(201,168,76,0.15) !important;
}
.leaflet-bar a:hover {
  background-color: #3e3830 !important;
  color: #fbbf24 !important;
}

/* ---- Conference Legend (inline in controls bar) ---- */
.conference-legend-inline {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 8px;
  overflow: hidden;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* ================================================================
   INFO PANEL (right side)
   ================================================================ */
.info-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Sidebar Season Story (ML Narrative) */
.sidebar-season-story {
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 6px;
}
.sidebar-story-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.sidebar-story-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-story-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #d4c9b5;
  margin: 0;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 4px 4px 0;
}

/* Advanced Analytics (sidebar) */
.adv-stats-grid { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.adv-stat-row {
  display: grid;
  grid-template-columns: 110px 48px 1fr 50px;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 3px 4px;
}
.adv-stat-label { color: #94a3b8; }
.adv-stat-val { color: #e8dcc8; font-weight: 600; font-family: Teko, sans-serif; font-size: 0.85rem; text-align: right; }
.adv-stat-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.adv-stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.adv-stat-rank { color: #7a8a9b; font-size: 0.68rem; text-align: right; }

/* Coaching Lineage */
.lineage-group-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 0 4px 0;
  padding-left: 4px;
}
.lineage-group { margin-bottom: 6px; }
.lineage-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lineage-arrow {
  font-size: 0.7rem;
  color: #c9a84c;
  width: 14px;
  text-align: center;
}
.lineage-name { color: #e8dcc8; font-weight: 600; }
.lineage-school { font-size: 0.72rem; }
.lineage-role { color: #7a8a9b; font-size: 0.7rem; }
.lineage-more {
  font-size: 0.7rem;
  color: #7a8a9b;
  text-align: center;
  padding: 4px;
}

/* Empty state */
.info-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: #8b9db0;
  padding: 40px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.info-empty-icon {
  font-size: 3.5em;
  margin-bottom: 16px;
  color: rgba(201,168,76,0.25);
  text-shadow: 0 0 20px rgba(201,168,76,0.1);
}

.info-empty h4 {
  color: #c9a84c;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.info-empty p {
  color: #8b9db0;
  max-width: 300px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.info-empty-hint {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(201,168,76,0.05);
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.12);
}

.info-empty-hint p {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Header bar (team-colored banner) */
.info-header {
  padding: 24px 16px 16px;
  flex-shrink: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal stripe texture */
.info-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
}
/* Bottom vignette on header */
.info-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
  pointer-events: none;
}

.info-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.info-team-name {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.35);
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.7),
    0 0 30px rgba(0,0,0,0.4);
}

.info-mascot-line {
  margin-top: 2px;
}

.info-mascot {
  font-family: 'Georgia', 'Times New Roman', 'Palatino', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.info-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.info-conf-badge {
  color: white;
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.info-team-loc {
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Full Profile button bar */
.info-nav-bar {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  flex-shrink: 0;
}

.info-profile-btn {
  width: 100%;
  padding: 8px 14px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.info-profile-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: #c9a84c;
  color: #e8dcc8;
}

.info-profile-btn:active {
  background: rgba(201,168,76,0.22);
}

/* Sub-tabs (pills) */
.info-tabs-wrapper {
  padding: 0 12px;
  flex: 1;
}

.info-tabs-wrapper .nav-pills {
  padding: 10px 0 6px;
  gap: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  padding-bottom: 10px;
}

.info-tabs-wrapper .nav-pills .nav-link {
  color: #8b9db0 !important;
  font-family: 'Teko', sans-serif;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 4px;
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.12s ease;
}

.info-tabs-wrapper .nav-pills .nav-link:hover {
  color: #c9a84c !important;
  background: rgba(201,168,76,0.06);
}

.info-tabs-wrapper .nav-pills .nav-link.active {
  color: #1a1410 !important;
  background: #c9a84c !important;
}

.info-tabs-wrapper .tab-content {
  padding: 10px 4px 20px;
}

/* No data placeholder */
.info-no-data {
  text-align: center;
  padding: 40px 20px;
  color: #8b9db0;
}

.info-no-data .text-muted {
  font-size: 0.875rem;
  color: #8b9db0 !important;
}

/* ================================================================
   STAT SECTIONS & ROWS
   The core building block for all info panel content
   ================================================================ */
.stat-section {
  margin-bottom: 16px;
}

.stat-section-title {
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #3e4047;
}

.stat-rows {
  display: flex;
  flex-direction: column;
}

/* ---- Individual stat row ---- */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  min-height: 34px;
  font-size: 0.875rem;
  transition: background 0.1s;
}

/* Alternating shading - applied via nth-child */
.stat-rows > .stat-row:nth-child(odd) {
  background: rgba(255,255,255,0.02);
}

.stat-rows > .stat-row:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

/* Explicit classes (used for manually built rows) */
.stat-row.sr-odd {
  background: rgba(255,255,255,0.02);
}

.stat-row.sr-even {
  background: rgba(255,255,255,0.05);
}

/* Highlighted rows */
.stat-row.sr-highlight {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 3px solid #f59e0b;
}

/* Header row (for tables) */
.stat-row.stat-row-header {
  background: #2b2d31 !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #4a4d55;
  position: sticky;
  top: 0;
  z-index: 1;
}

.stat-row:hover {
  background: rgba(245, 158, 11, 0.04);
}

/* Label (left side) */
.sr-label {
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 12px;
}

/* Value (right side) */
.sr-value {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sr-highlight .sr-value {
  color: #f59e0b;
}

/* Multi-column values */
.sr-col {
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

/* Value with inline bar */
.sr-value-with-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}

.sr-bar-track {
  flex: 1;
  height: 14px;
  background: #3e4047;
  border-radius: 6px;
  overflow: hidden;
}

.sr-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.sr-bar-value {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

/* ---- Roster-specific columns ---- */
.roster-cols {
  display: flex !important;
  flex: 1;
  gap: 2px;
}

.roster-name-col {
  flex: 1.5;
  min-width: 90px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-stat-col {
  flex: 1.4;
  min-width: 95px;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

.roster-size-col {
  flex: 1.2;
  min-width: 80px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.roster-forty-col {
  flex: 1.2;
  min-width: 120px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  font-size: 0.875rem;
}

/* ---- Recruiting star chips ---- */
.recruit-class-row {
  flex-wrap: wrap;
  gap: 4px;
}

.recruit-star-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.recruit-star-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.2);
}

.recruit-star-count {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 1.1rem;
}

.recruit-avg-badge {
  font-size: 0.8rem;
  color: #8b9db0;
  font-weight: 500;
  margin-left: 4px;
}

/* ---- Section conference annotation (e.g. "(vs SEC avg)") ---- */
.section-conf-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

/* ---- Clickable star chip active/expanded state ---- */
.recruit-star-chip:hover {
  opacity: 0.85;
  transform: scale(1.05);
  transition: transform 0.1s, opacity 0.1s;
}

.recruit-star-chip.chip-active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

/* ---- Expanded recruit player list ---- */
.recruit-expand-list {
  background: #2b2d31;
  border-left: 3px solid #f59e0b;
  margin: 0 12px 8px;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}

.recruit-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 0.875rem;
}

.recruit-player-row.rp-odd {
  background: rgba(255,255,255,0.02);
}

.recruit-player-row.rp-even {
  background: rgba(255,255,255,0.05);
}

.rp-name {
  flex: 1.5;
  color: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-pos {
  width: 36px;
  text-align: center;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.95rem;
}

.rp-status {
  flex: 1;
  color: #94a3b8;
  font-size: 0.95rem;
}

.rp-rating {
  width: 55px;
  text-align: right;
  color: #8b9db0;
  font-size: 0.95rem;
  font-family: monospace;
}

/* ---- Recruit data source citations ---- */
.recruit-source {
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: #8b9db0;
}

.recruit-source a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.recruit-source a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.recruit-source span {
  color: #8b9db0;
}

/* ---- Stat Box ---- */
.stat-box {
  background: #2b2d31;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  overflow: hidden;
}

.stat-value {
  font-size: 1.5em;
  font-weight: 700;
  color: #f1f5f9;
  font-family: 'Teko', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.overview-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #3e4047;
}

.overview-section h5 {
  color: #f59e0b;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ---- Win % Bars ---- */
.win-pct-bar {
  position: relative;
  background: #3e4047;
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
}

.win-pct-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.win-pct-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* ---- Class Breakdown Bars ---- */
.class-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.class-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-label {
  width: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: right;
}

.class-bar-track {
  flex: 1;
  background: #3e4047;
  border-radius: 10px;
  height: 22px;
  overflow: hidden;
}

.class-bar-fill {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  min-width: fit-content;
  transition: width 0.5s ease;
}

/* ---- Roster Table ---- */
.roster-scroll {
  max-height: 400px;
  overflow-y: auto;
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #8b9db0;
}

/* ---- Compact roster DataTable (dark-themed) ---- */
.roster-dt-compact .dataTables_wrapper {
  font-size: 0.8rem;
  color: #94a3b8;
}

.roster-dt-compact table.dataTable {
  color: #f1f5f9 !important;
  border-collapse: collapse;
}

.roster-dt-compact table.dataTable thead th {
  padding: 5px 6px;
  font-size: 0.95rem;
  color: #94a3b8 !important;
  background: #2b2d31 !important;
  border-bottom: 1px solid #4a4d55 !important;
}

.roster-dt-compact table.dataTable tbody td {
  padding: 3px 6px;
  line-height: 1.3;
  border-bottom: 1px solid #3e4047 !important;
  background: transparent;
}

.roster-dt-compact table.dataTable tbody tr {
  background: #35373d !important;
}

.roster-dt-compact table.dataTable tbody tr:nth-child(even) {
  background: #44464d !important;
}

.roster-dt-compact table.dataTable tbody tr:hover {
  background: rgba(245, 158, 11, 0.06) !important;
}

.roster-dt-compact .dataTables_filter input {
  background: #2b2d31 !important;
  border: 1px solid #4a4d55 !important;
  color: #f1f5f9 !important;
  font-size: 0.95rem;
  padding: 3px 6px;
  border-radius: 3px;
}

.roster-dt-compact .dataTables_filter input:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 0.15rem rgba(245, 158, 11, 0.2);
  outline: none;
}

.roster-dt-compact .dataTables_info {
  color: #8b9db0;
}

.roster-dt-compact .dataTables_paginate .paginate_button {
  padding: 2px 8px !important;
  font-size: 0.95rem;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid #4a4d55 !important;
  border-radius: 3px;
  margin: 0 1px;
}

.roster-dt-compact .dataTables_paginate .paginate_button:hover {
  background: #3e4047 !important;
  color: #f1f5f9 !important;
  border-color: #8b9db0 !important;
}

.roster-dt-compact .dataTables_paginate .paginate_button.current {
  background: #f59e0b !important;
  color: #2b2d31 !important;
  border-color: #f59e0b !important;
}

.roster-dt-compact .dataTables_paginate .paginate_button.disabled {
  color: #94a3b8 !important;
  border-color: #3e4047 !important;
}

/* ---- Coach Timeline ---- */
.coach-header {
  text-align: center;
  margin-bottom: 12px;
}

.coach-header h4 {
  margin: 0;
  color: #f1f5f9;
}

.coach-title {
  color: #94a3b8;
  font-size: 0.95rem;
}

.coach-timeline {
  position: relative;
  padding-left: 24px;
}

.coach-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #4a4d55;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
  padding-left: 16px;
}

.timeline-item.current {
  background: rgba(245, 158, 11, 0.08);
  border-radius: 10px;
  padding: 10px 10px 10px 16px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #2b2d31;
}

.timeline-school {
  font-size: 0.95rem;
  color: #f1f5f9;
}

.timeline-years {
  font-size: 0.8rem;
  color: #94a3b8;
}

.timeline-record {
  font-size: 0.875rem;
  color: #f59e0b;
  font-weight: 600;
}

/* ================================================================
   COMPARE TAB
   ================================================================ */
.compare-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.compare-select-panel {
  padding: 12px;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 25px;
}

.compare-vs h2 {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.5em;
}

.compare-team-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.compare-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #3e4047;
}

.compare-section h4 {
  color: #f59e0b;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
}

/* ---- Tug-of-War Bars ---- */
.tug-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tug-label-left {
  width: 70px;
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
}

.tug-label-right {
  width: 70px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.tug-bar-container {
  flex: 1;
}

.tug-label-center {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.tug-track {
  display: flex;
  height: 24px;
  border-radius: 10px;
  overflow: hidden;
  background: #3e4047;
}

.tug-fill-left {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 10px 0 0 12px;
}

.tug-fill-right {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 0 12px 12px 0;
}

/* ---- Head to Head ---- */
.h2h-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
}

.h2h-team {
  text-align: center;
}

.h2h-count {
  font-size: 2.5em;
  font-weight: 700;
}

.h2h-vs-text {
  color: #8b9db0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.h2h-dash {
  font-size: 2em;
  color: #8b9db0;
}

/* ================================================================
   PREDICT TAB
   ================================================================ */
.predict-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto;
}

.predict-hero {
  text-align: center;
  margin-bottom: 24px;
}

.predict-hero h3 {
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 4px;
}

.predict-matchup-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.predict-team-select {
  flex: 1;
}

.predict-vs-badge {
  flex: 0 0 140px;
  text-align: center;
  padding-top: 4px;
}

.vs-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f59e0b;
  color: #2b2d31;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.predict-team-preview {
  padding: 8px 12px;
  background: #35373d;
  border-radius: 6px;
  margin-top: 8px;
}

.preview-team-name {
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.preview-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.preview-record {
  font-weight: 600;
  color: #f1f5f9;
}

.preview-sp {
  color: #3b82f6;
  font-weight: 600;
}

.btn-predict-hero {
  max-width: 300px;
  margin: 0 auto 16px;
  display: block !important;
  font-size: 1.1rem;
  padding: 12px 24px !important;
}

.predict-quick-picks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.quick-pick-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-quick-pick {
  background: #35373d;
  border: 1px solid #4a4d55;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-quick-pick:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.predict-select {
  padding: 12px;
}

.predict-controls {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-predict {
  background: #f59e0b !important;
  color: #2b2d31 !important;
  font-weight: 700;
  border: none !important;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.15s;
}

.btn-predict:hover {
  background: #fbbf24 !important;
}

.predict-gauge-section {
  text-align: center;
  margin: 30px 0;
}

.predict-winner h2 {
  font-weight: 700;
  font-size: 2em;
  margin-bottom: 4px;
  text-align: center;
}

.predict-confidence {
  font-size: 1.1rem;
  color: #94a3b8;
  text-align: center;
}

/* Probability Bar */
.predict-prob-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.prob-label-left {
  width: 200px;
  text-align: right;
  font-weight: 600;
  font-size: 0.95rem;
}

.prob-label-right {
  width: 200px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.prob-track {
  flex: 1;
  display: flex;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  background: #3e4047;
}

.prob-fill-a {
  height: 100%;
  transition: width 0.5s ease;
}

.prob-fill-b {
  height: 100%;
  transition: width 0.5s ease;
}

/* Factors */
.predict-factors {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3e4047;
}

.predict-factors h4 {
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1em;
  margin-bottom: 16px;
  text-align: center;
}

/* Composite score */
.predict-composite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.composite-score {
  text-align: center;
}

.composite-value {
  font-size: 1.8em;
  font-weight: 700;
}

.composite-label {
  font-size: 0.95rem;
  margin-top: 4px;
}

.composite-vs {
  color: #8b9db0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Predicted margin display */
.predict-margin {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #c9a84c;
  margin: 4px 0;
}

/* Confidence tier badges */
.predict-conf-tier {
  display: inline-block;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 10px;
  margin-top: 6px;
}
.conf-high { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.conf-moderate { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.conf-tossup { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* Model badge pill */
.model-badge {
  text-align: center;
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #8b9db0;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 4px 16px;
  margin: 16px auto 0;
  display: block;
  width: fit-content;
}

/* Inline margin in matchups prediction */
.predict-margin-inline {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  color: #c9a84c;
  margin-left: 8px;
  opacity: 0.85;
}

.predict-disclaimer {
  text-align: center;
  padding: 20px;
  color: #8b9db0;
  border-top: 1px solid #3e4047;
  margin-top: 24px;
}

/* ---- Predict Weight Tuning Panel ---- */
.predict-weights-panel {
  margin: 20px 0;
  border: 1px solid #3e4047;
  border-radius: 10px;
  overflow: hidden;
  background: #2f3136;
}

.predict-weights-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
  user-select: none;
}

.predict-weights-toggle:hover {
  background: #35373d;
}

.predict-weights-toggle .weights-toggle-icon {
  color: #f59e0b;
}

.predict-weights-toggle .weights-toggle-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  color: #94a3b8;
}

.predict-weights-toggle.open .weights-toggle-arrow {
  transform: rotate(180deg);
}

.predict-weights-body {
  padding: 16px;
  border-top: 1px solid #3e4047;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  max-height: 800px;
  opacity: 1;
  overflow: hidden;
}

.predict-weights-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

.predict-weights-help {
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.predict-weight-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 20px;
}

.predict-weight-slider {
  margin-bottom: 2px;
}

.predict-weight-slider .form-group {
  margin-bottom: 0;
}

.predict-weight-slider .irs {
  height: 30px;
}

.predict-weight-slider .irs-line,
.predict-weight-slider .irs-bar {
  height: 4px;
  top: 22px;
}

.predict-weight-slider .irs-handle {
  width: 16px;
  height: 16px;
  top: 15px;
}

.predict-weight-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.pw-name {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.pw-value {
  font-size: 0.8rem;
  color: #94a3b8;
}

.predict-weight-budget-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 600;
}

.predict-weight-budget-row #predict-predict_budget {
  color: #22c55e;
  font-weight: 700;
}

.predict-weight-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-preset-sm {
  font-size: 0.8rem !important;
  padding: 4px 12px !important;
}

@media (max-width: 767.98px) {
  .predict-weight-sliders {
    grid-template-columns: 1fr;
  }
}

/* Matchup Adjustment Rows */
.adjustment-header {
  color: #94a3b8;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.adjustment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.5);
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.adjustment-row.adj-inactive {
  opacity: 0.5;
}

.adjustment-row.adjustment-climate {
  border-left: 3px solid #38bdf8;
}

.adj-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.adj-label {
  color: #cbd5e1;
  flex: 1;
}

.adj-value {
  color: #f59e0b;
  font-weight: 600;
  text-align: right;
}

.adj-inactive .adj-value {
  color: #8b9db0;
  font-weight: 400;
}

/* ================================================================
   MATCHUPS TAB
   ================================================================ */
.matchups-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.matchups-container > .row > .col-12 > h3,
.matchups-container > .row > .col-12 > .text-muted {
  text-align: center;
}

/* ---- Rivalry Card Grid ---- */
.rivalry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 16px 0;
}

.rivalry-card {
  background: #2a2d35;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.rivalry-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.5),
    0 0 20px rgba(245, 158, 11, 0.15);
}

.rivalry-card:active {
  transform: translateY(-2px) scale(0.99);
  transition: transform 0.1s ease;
}

.rivalry-card-header {
  padding: 14px 18px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Rivalry Index Badge */
.rivalry-index-badge {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  min-width: 44px;
}
.rivalry-index-badge .ri-score {
  font-family: 'Teko', sans-serif; font-size: 1.5rem; font-weight: 700;
  line-height: 1; color: #e8dcc8;
}
.rivalry-index-badge .ri-label {
  font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.ri-legendary .ri-label { color: #fbbf24; }
.ri-fierce .ri-label    { color: #f97316; }
.ri-growing .ri-label   { color: #94a3b8; }

.ri-sub-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 4px;
}
.ri-pill {
  font-family: 'Teko', sans-serif;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  white-space: nowrap;
}
.ri-pill-tightening { color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.ri-pill-widening   { color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.ri-pill-streak     { color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.ri-pill-closeness  { color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }

.rivalry-name {
  color: white;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rivalry-card-body {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.rivalry-teams {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  color: #f1f5f9;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.rivalry-trophy {
  color: #f59e0b;
  margin-top: 6px;
}

.rivalry-since {
  color: #94a3b8;
  margin-top: 3px;
}

/* ---- Rivalry Modal (Bootstrap modal overrides) ---- */
.modal-backdrop.show {
  opacity: 0.8;
  backdrop-filter: blur(4px);
}

.modal-dialog.modal-lg {
  max-width: 700px;
}

.modal .modal-content {
  background: #1e2028;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.7),
    0 0 40px rgba(245, 158, 11, 0.08);
}

.modal .modal-body {
  padding: 0;
}

.modal .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  border: none;
  background: transparent;
  padding: 10px 14px;
}
.modal .modal-header .modal-title {
  display: none;
}

/* Bootstrap modal close button override */
.modal .btn-close {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  opacity: 1;
  filter: invert(1);
  transition: background 0.15s, transform 0.2s;
}

.modal .btn-close:hover {
  background: rgba(245, 158, 11, 0.5);
  transform: scale(1.1);
}

/* ══════════════════════════════════════════
   RIVALRY MODAL — Interior Styles
   Mirrors the info-panel sidebar design
   EVERYTHING center-justified
   ══════════════════════════════════════════ */

/* ── Master centering: force ALL modal content center ── */
.modal .modal-body,
.modal .modal-body *,
.modal .modal-content,
.modal .modal-content * {
  text-align: center !important;
}

/* ── Tug bars inside modal: override back to correct alignment ── */
.modal .tug-row {
  justify-content: center !important;
  max-width: 500px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.modal .tug-label-left {
  text-align: right !important;
}

.modal .tug-label-right {
  text-align: left !important;
}

.modal .tug-label-center {
  text-align: center !important;
}

/* ── Header banner ── */
.rm-header {
  position: relative;
  padding: 36px 28px 28px;
  text-align: center;
  overflow: hidden;
}

.rm-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
}

/* TIER 1 — Hero: rivalry name (biggest, boldest) */
.rm-title {
  position: relative;
  color: white;
  font-family: 'Teko', sans-serif;
  font-size: 3.4em;
  font-weight: 400;
  letter-spacing: 10px;
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.5);
  paint-order: stroke fill;
  text-shadow:
    0 3px 12px rgba(0,0,0,0.7),
    0 0 30px rgba(255,255,255,0.08);
}

/* TIER 3 — Subtitle: team vs team (smaller, lighter) */
.rm-subtitle {
  position: relative;
  margin-top: 8px;
  color: rgba(255,255,255,0.65);
  font-family: 'Teko', sans-serif;
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* TIER 4 — Badge: trophy (small, accent color) */
.rm-trophy {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding: 7px 26px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(245,158,11,0.5);
  border-radius: 20px;
  color: #f59e0b;
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* TIER 5 — Whisper (legacy, keep for fallback) */
.rm-since {
  position: relative;
  margin-top: 10px;
  color: rgba(255,255,255,0.35);
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* TIER 2 — "EST. 1897" (bold, stands out) */
.rm-established {
  position: relative;
  margin-top: 14px;
  color: #f59e0b;
  font-family: 'Teko', sans-serif;
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ── Body ── */
.rm-body {
  padding: 32px 36px 16px;
  text-align: center;
}

/* TIER 4 — Body text: story (quiet, readable, italic) */
.rm-story {
  text-align: center;
  color: rgba(148, 163, 184, 0.8);
  font-family: 'Georgia', 'Palatino', serif;
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 32px;
  padding: 0 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section cards ── */
.rm-section {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  overflow: hidden;
}

/* TIER 2 — Section banner: "ALL-TIME SERIES" etc (bold, wide) */
.rm-banner {
  position: relative;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: #fff;
  text-align: center !important;
  margin: 0 -28px 24px -28px;
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.08) 100%);
  border-top: 1px solid rgba(245,158,11,0.3);
  border-bottom: 1px solid rgba(245,158,11,0.3);
  overflow: hidden;
}

.rm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
}

/* ── Scoreboard ── */
.rm-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}

.rm-score-side {
  text-align: center;
  min-width: 120px;
}

/* TIER 3 — Label: team name above score (small, bold) */
.rm-score-name {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.9;
}

/* TIER 1 — Hero: the big win numbers (massive) */
.rm-score-big {
  font-family: 'Teko', sans-serif;
  font-size: 5.5em;
  font-weight: 400;
  line-height: 0.9;
  margin: 4px 0;
  text-align: center;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.25);
  paint-order: stroke fill;
}

/* TIER 4 — Divider (subtle) */
.rm-score-vs {
  font-family: 'Teko', sans-serif;
  font-size: 1.4em;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* TIER 5 — Whisper: "Last win: 2023" (small, muted) */
.rm-score-sub {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(107,93,77,0.7);
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.rm-series-bar {
  display: flex;
  height: 8px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  margin: 0 auto;
  max-width: 400px;
}

.rm-series-bar > div {
  height: 100%;
}

/* TIER 3 — Percentages under the bar */
.rm-series-pcts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px auto 0;
  max-width: 400px;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.rm-series-pcts .text-muted {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(168,152,128,0.5) !important;
}

/* ── Win Strip ── */
.win-strip {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 6px 0;
}
.win-strip-cell {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.win-strip-cell .ws-year {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Teko', sans-serif;
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
}
.streak-badge {
  text-align: center;
  padding: 5px 14px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  font-size: 0.875rem;
  color: #e8dcc8;
  margin: 8px auto;
  display: inline-block;
}

/* ── Game rows ── */
.rm-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.rm-game {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.rm-game:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* TIER 2 — Year: bold amber anchor */
.rm-game-yr {
  font-family: 'Teko', sans-serif;
  font-size: 1.5em;
  color: #f59e0b;
  min-width: 54px;
  text-align: center;
  letter-spacing: 2px;
}

/* TIER 2 — Winner name: bold white */
.rm-game-winner {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  color: #f1f5f9;
  font-size: 1.35rem;
  min-width: 110px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* TIER 4 — Score: smaller, muted */
.rm-game-sc {
  font-family: 'Teko', sans-serif;
  color: rgba(168,152,128,0.6);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-align: center;
}

/* TIER 5 — Margin: smallest, faded */
.rm-game-mg {
  font-family: 'Teko', sans-serif;
  color: rgba(107,93,77,0.5);
  font-size: 0.95rem;
  font-weight: 300;
  min-width: 36px;
  text-align: center;
  letter-spacing: 1px;
}

/* ── Teams comparison line ── */
/* TIER 3 — Teams line: medium weight */
.rm-teams-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* TIER 5 — "vs" divider: tiny, quiet */
.rm-teams-vs {
  color: rgba(255,255,255,0.2);
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
}

/* ── Prediction footer ── */
.rm-predict-footer {
  text-align: center;
  padding: 36px 28px 40px;
  border-radius: 0 0 16px 16px;
  position: relative;
  overflow: hidden;
}

.rm-predict-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
}

/* TIER 3 — "PREDICTED WINNER" label (small, spaced out) */
.rm-predict-label {
  position: relative;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  text-align: center;
}

/* TIER 1 — Hero: winner name (biggest thing in the modal) */
.rm-predict-name {
  position: relative;
  font-family: 'Teko', sans-serif;
  font-size: 4em;
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 12px;
  text-align: center;
  -webkit-text-stroke: 2px rgba(255,255,255,0.4);
  paint-order: stroke fill;
  text-shadow:
    0 3px 16px rgba(0,0,0,0.6),
    0 0 40px rgba(255,255,255,0.1);
  line-height: 1;
}

/* "WHY?" link under prediction */
.rm-predict-why {
  position: relative;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rm-why-link {
  font-family: 'Teko', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 4px 28px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}

.rm-why-link:hover {
  color: #f59e0b !important;
  border-color: #f59e0b;
  background: rgba(245,158,11,0.1);
  transform: scale(1.05);
}

.rm-why-sub {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* TIER 4 — Odds: smaller, muted */
.rm-predict-odds {
  position: relative;
  font-family: 'Teko', sans-serif;
  margin-top: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
}

.rivalry-description {
  background: #35373d;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
}

.rivalry-description h4 {
  color: #f59e0b;
  margin-bottom: 8px;
  text-align: center;
}

/* ================================================================
   LEARN TAB
   ================================================================ */
.learn-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.learn-container .nav-pills .nav-link {
  color: #94a3b8 !important;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 20px;
}

.learn-container .nav-pills .nav-link.active {
  color: #2b2d31 !important;
  background: #f59e0b !important;
}

.learn-section {
  padding: 20px 0;
}

.learn-section h3 {
  color: #f59e0b;
  margin-bottom: 12px;
  text-align: center;
}

.learn-section h4 {
  color: #f1f5f9;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.conf-card {
  background: #35373d;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  overflow: hidden;
}

.conf-card-header {
  padding: 12px 16px;
}

.conf-card-header h5 {
  margin: 0;
  font-weight: 700;
  color: #f1f5f9;
}

.conf-card-body {
  padding: 8px 16px 16px;
}

.conf-card-body p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Glossary */
.glossary-list dt {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1em;
  margin-top: 14px;
}

.glossary-list dd {
  color: #94a3b8;
  margin-left: 0;
  padding-left: 16px;
  border-left: 2px solid #4a4d55;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Playoff bracket */
.playoff-bracket-info {
  margin: 16px 0;
}

.playoff-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f59e0b;
  color: #2b2d31;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h5 {
  margin: 0 0 4px;
  color: #f1f5f9;
}

.step-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* Culture */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.culture-card {
  background: #35373d;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  padding: 16px;
}

.culture-card h5 {
  color: #f59e0b;
  margin-bottom: 8px;
}

.culture-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* ================================================================
   TEAMS DIRECTORY
   ================================================================ */
.teams-dir-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.teams-dir-header h3 {
  color: #f59e0b;
  margin-bottom: 4px;
}

.teams-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.summary-chip {
  background: #35373d;
  border: 1px solid #4a4d55;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.teams-card-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: #35373d;
  padding: 10px 12px;
  transition: background 0.15s;
}

.team-row:hover {
  background: #44464d;
}

.team-row-header {
  background: #2b2d31 !important;
  border-left: 4px solid transparent !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.team-cell {
  flex-shrink: 0;
}

.rank-cell {
  width: 40px;
  text-align: center;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3e4047;
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
}

.name-cell {
  flex: 1 1 200px;
  min-width: 160px;
}

.team-name-primary {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.team-name-secondary {
  font-size: 0.8rem;
  color: #8b9db0;
}

.conf-cell {
  width: 100px;
  text-align: center;
}

.conf-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
}

.record-cell {
  width: 80px;
  text-align: center;
}

.record-cell .record-sub {
  text-align: center;
}

.record-sub {
  font-size: 0.72rem;
  color: #8b9db0;
}

.stat-cell {
  width: 70px;
  text-align: center;
  font-size: 0.95rem;
}

.coach-cell {
  width: 140px;
  font-size: 0.875rem;
  color: #94a3b8;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================================================================
   RANKINGS
   ================================================================ */
.rankings-container {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.rankings-controls {
  background: #35373d;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 70px;
}

.rankings-controls h4 {
  color: #f59e0b;
  margin-bottom: 8px;
  text-align: center;
}

.weight-slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weight-slider {
  margin-bottom: 0;
}

.weight-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.weight-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #f1f5f9;
}

.weight-help {
  font-size: 0.72rem;
  color: #8b9db0;
}

/* ── Info Dot Tooltip System ──────────────────────────────────── */
.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  color: #c9a84c;
  font-size: 0.65rem;
  font-weight: 900;
  font-family: sans-serif;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.info-dot:hover {
  background: rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.6);
}
.info-dot::after {
  content: attr(data-tip);
  position: fixed;
  background: #211d19;
  border: 1px solid rgba(201,168,76,0.3);
  color: #e8dcc8;
  font-size: 0.8rem;
  font-family: 'Libre Baskerville', serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 6px;
  white-space: normal;
  width: 260px;
  max-width: 90vw;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  top: 0; left: 0;
}
.info-dot::before { display: none; }
.info-dot:hover::after { opacity: 1; }
.info-dot:focus::after { opacity: 1; }
.info-dot:active::after { opacity: 1; }
.info-dot { -webkit-tap-highlight-color: transparent; }

/* Clickable row hover effects */
.portal-player-row, .portal-row { transition: background 0.15s; }
.portal-player-row:hover, .portal-row:hover { background: rgba(255,255,255,0.04); cursor: pointer; }
.game-row, .schedule-game-row { transition: background 0.15s; }
.game-row:hover, .schedule-game-row:hover { background: rgba(255,255,255,0.04); cursor: pointer; }
.rivalry-row { transition: background 0.15s; }
.rivalry-row:hover { background: rgba(255,255,255,0.04); cursor: pointer; }

/* ---- Info Tip (lightbulb tooltip) ---- */
.info-tip {
  position: relative;
  cursor: help;
  font-size: 0.875rem;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
  vertical-align: middle;
}
.info-tip:hover {
  opacity: 1;
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.info-tip:hover::after {
  opacity: 1;
}
/* Arrow below tooltip */
.info-tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #f59e0b;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.info-tip:hover::before {
  opacity: 1;
}

.weight-slider .irs--shiny .irs-bar {
  background: #f59e0b;
  border-color: #f59e0b;
}

.weight-slider .irs--shiny .irs-handle {
  background: #f59e0b;
  border-color: #f59e0b;
}

.weight-slider .irs--shiny .irs-line {
  background: #3e4047;
}

.weight-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #f59e0b;
  font-size: 0.95rem;
}

.weight-presets {
  margin-top: 12px;
}

.weight-presets h5 {
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.btn-preset {
  background: #3e4047 !important;
  border: 1px solid #4a4d55 !important;
  color: #94a3b8 !important;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 15px;
  margin: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-preset:hover {
  background: #4a4d55 !important;
  color: #f1f5f9 !important;
  border-color: #f59e0b !important;
}

/* ---- Custom Presets Section ---- */
.custom-presets-section {
  margin-top: 16px;
}

.custom-presets-section h5 {
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.save-preset-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.save-preset-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.save-preset-row .form-control {
  font-size: 0.8rem;
  padding: 4px 10px;
  height: auto;
}

.btn-save-preset {
  background: #3e4047 !important;
  border: 1px solid #4a4d55 !important;
  color: #f59e0b !important;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-save-preset:hover {
  background: #f59e0b !important;
  color: #0a0f1a !important;
  border-color: #f59e0b !important;
}

.custom-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.custom-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.btn-custom-preset {
  background: #2a2520;
  border: 1px solid #f59e0b44;
  color: #f59e0b;
  font-size: 0.8rem;
  padding: 4px 8px 4px 10px;
  border-radius: 15px 0 0 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  line-height: 1.2;
}

.btn-custom-preset:hover {
  background: #f59e0b33;
  border-color: #f59e0b;
  color: #fbbf24;
}

.btn-delete-preset {
  background: #2a2520;
  border: 1px solid #f59e0b44;
  border-left: none;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 4px 7px;
  border-radius: 0 15px 15px 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  line-height: 1.2;
}

.btn-delete-preset:hover {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #ef4444;
}

.rankings-table-panel {
  min-height: 400px;
}

.rankings-header-row {
  margin-bottom: 16px;
}

.rankings-header-row h3 {
  color: #f59e0b;
  margin-bottom: 2px;
  text-align: center;
}

.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #35373d;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s, transform 0.15s;
  min-width: 0;
}

.ranking-row > * {
  min-width: 0;
}

.ranking-row:hover {
  background: #44464d;
  transform: translateX(3px);
}

.ranking-rank {
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-rank .rank-num {
  font-size: 1em;
}

.rank-num.top-4 {
  background: #f59e0b;
  color: #2b2d31;
}

.rank-num.top-12 {
  background: #4a4d55;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.ranking-color-bar {
  width: 4px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  outline: 1px solid rgba(255, 255, 255, 0.4);
}

.ranking-team-info {
  width: 180px;
  flex-shrink: 0;
}

.ranking-team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.ranking-team-meta {
  font-size: 0.8rem;
  color: #8b9db0;
}
.rank-ap-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  background: rgba(255,255,255,0.06);
  vertical-align: middle;
}
.rank-delta-over  { color: #22c55e; }
.rank-delta-under { color: #f59e0b; }
.rank-delta-even  { color: #8b9db0; }
.rank-delta-arrow { font-size: 0.65rem; }

.ranking-score-area {
  flex: 1;
  min-width: 80px;
}

.ranking-bar-track {
  background: #3e4047;
  border-radius: 10px;
  height: 18px;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.18);
}

.ranking-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

.ranking-score-value {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 2px;
}

.ranking-factors {
  display: flex;
  gap: 3px;
  flex-shrink: 1;
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.factor-pip {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  margin-bottom: 4px;
}

.pip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.pip-label {
  font-size: 0.58em;
  color: #8b9db0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pip-value {
  font-size: 0.55em;
  color: #e8dcc8;
  font-weight: 600;
}

.pip-track {
  height: 6px;
  background: #3e4047;
  border-radius: 3px;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.10);
}

/* Rankings jump-bar (scroll-to-section buttons) */
.rank-jump-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2520;
}
.rank-jump-btn {
  background: none;
  border: 1px solid #3e4047;
  color: #8b9db0;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.rank-jump-btn:hover {
  border-color: #c9a84c;
  color: #e8dcc8;
  background: rgba(201, 168, 76, 0.06);
}
.rank-jump-btn.rank-jump-active {
  border-color: #c9a84c;
  color: #c9a84c;
}

.pip-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Active/expanded ranking row */
.ranking-row-active {
  background: #3e4047 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* ── Rankings Detail Panel (expanded) ────────────────── */
.ranking-detail-panel {
  background: #313338;
  border: 1px solid #4a4d55;
  border-radius: 0 0 8px 8px;
  margin: -2px 0 6px 50px;
  padding: 14px 18px;
  animation: rdSlideDown 0.2s ease-out;
}

@keyframes rdSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rd-factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
}

.rd-factor-row {
  padding: 6px 0;
}

.rd-factor-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.rd-factor-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-factor-rank {
  font-size: 0.8rem;
  color: #8b9db0;
}

.rd-factor-bar-track {
  height: 8px;
  background: #3e4047;
  border-radius: 3px;
  overflow: hidden;
}

.rd-factor-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.rd-factor-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.rd-factor-score {
  font-weight: 600;
  color: #f1f5f9;
}

.rd-factor-raw {
  color: #8b9db0;
}

.rd-factor-weight {
  color: #8b9db0;
  font-style: italic;
}

/* Composite summary row */
.rd-composite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #4a4d55;
}

.rd-composite-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.rd-composite-value {
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.rd-composite-rank {
  font-size: 0.8rem;
  color: #8b9db0;
  margin-left: auto;
}

/* Responsive: stack factor grid on small screens */
@media (max-width: 900px) {
  .rd-factors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ranking-detail-panel {
    margin-left: 10px;
  }
}
@media (max-width: 600px) {
  .rd-factors-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   SHARED / CARDS
   ================================================================ */
.card, .bslib-card {
  background-color: #35373d !important;
  border-color: #4a4d55 !important;
}

.card-header {
  background-color: #44464d !important;
  border-bottom-color: #4a4d55 !important;
  color: #f1f5f9 !important;
}

/* Form elements */
.form-control, .form-select {
  background-color: #35373d !important;
  border-color: #4a4d55 !important;
  color: #f1f5f9 !important;
}

.form-control:focus, .form-select:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.control-label {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Tabs (navbar) ---- */
.nav-link {
  color: #94a3b8 !important;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #f1f5f9 !important;
}

.nav-link.active {
  color: #f59e0b !important;
}

/* ---- DataTables ---- */
.dataTables_wrapper {
  color: #94a3b8;
}

.dataTables_wrapper .dataTables_filter input {
  background-color: #2b2d31;
  border-color: #4a4d55;
  color: #f1f5f9;
}

table.dataTable {
  color: #f1f5f9 !important;
}

table.dataTable thead th {
  color: #94a3b8 !important;
  border-bottom-color: #4a4d55 !important;
}

table.dataTable tbody td {
  border-bottom-color: #3e4047 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #94a3b8 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #f59e0b !important;
  color: #2b2d31 !important;
  border-color: #f59e0b !important;
}

/* ---- Coming Soon Placeholder ---- */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #8b9db0;
}

.coming-soon h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #8b9db0;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid #4a4d55;
  color: #8b9db0;
  font-size: 0.8rem;
}

/* ---- Legal Footer (independent bar below navbar) ---- */
.site-legal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #8b9db0;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 8px 20px;
  width: 100%;
}
.site-legal-disclaimer {
  color: #8b9db0;
  font-size: 0.72rem;
  font-style: italic;
}
.site-data-freshness {
  color: #c9a84c;
  font-style: italic;
  opacity: 0.85;
  cursor: help;
}

/* ---- Legal Notice (Learn tab) ---- */
.legal-notice {
  background: rgba(26, 20, 16, 0.5);
  border: 1px solid #3e4047;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 12px;
}
.legal-notice p {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.legal-notice p:last-child {
  margin-bottom: 0;
}
.legal-notice strong {
  color: #c9a84c;
}

/* ---- Global Slider Theming ---- */
.irs--shiny .irs-bar {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
}

.irs--shiny .irs-handle {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.irs--shiny .irs-line {
  background: #3e4047 !important;
}

.irs--shiny .irs-single,
.irs--shiny .irs-from,
.irs--shiny .irs-to {
  background: #f59e0b !important;
  color: #2b2d31;
}

.irs--shiny .irs-min, .irs--shiny .irs-max {
  color: #8b9db0;
}

.irs--shiny .irs-grid-text {
  color: #8b9db0;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #2b2d31;
}

::-webkit-scrollbar-thumb {
  background: #4a4d55;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b9db0;
}

/* ---- Section Dividers ---- */
hr {
  border-color: #3e4047;
  opacity: 1;
}

/* ---- Tooltip styling ---- */
.tooltip-inner {
  background: #35373d;
  border: 1px solid #4a4d55;
  color: #f1f5f9;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .split-layout {
    height: calc(100vh - 160px);
  }

  .split-left {
    flex: 1 1 45%;
  }

  .split-right {
    flex: 1 1 55%;
  }

  .sr-col {
    min-width: 40px;
    font-size: 0.875rem;
  }
}

@media (max-width: 992px) {
  .split-layout {
    flex-direction: column;
    height: auto;
    margin: 0;
  }

  .split-left {
    height: 400px;
    flex: none;
  }

  .split-right {
    flex: none;
    max-height: 500px;
    border-left: none;
    border-top: 1px solid #4a4d55;
  }

  .conference-legend-inline {
    display: none;
  }

  .prob-label-left, .prob-label-right {
    width: 120px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .split-left {
    height: 300px;
  }

  .split-right {
    max-height: 450px;
  }

  .legend-row {
    gap: 4px;
  }

  .legend-chip {
    font-size: 0.65rem;
  }

  .tug-label-left, .tug-label-right {
    width: 50px;
    font-size: 0.8rem;
  }

  .predict-prob-bar {
    flex-direction: column;
    gap: 4px;
  }

  .prob-label-left, .prob-label-right {
    width: auto;
    text-align: center;
  }

  .h2h-summary {
    gap: 16px;
  }

  .h2h-count {
    font-size: 2em;
  }

  .rivalry-grid {
    grid-template-columns: 1fr;
  }

  .rankings-container .row {
    flex-direction: column;
  }

  .rankings-controls {
    position: static;
    margin-bottom: 16px;
  }

  .ranking-factors {
    display: none;
  }

  .ranking-team-info {
    width: 140px;
  }

  .team-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .coach-cell {
    display: none;
  }

  .stat-cell {
    width: 55px;
    font-size: 0.8rem;
  }

  .stat-row {
    font-size: 0.875rem;
    padding: 6px 8px;
  }

  .sr-col {
    min-width: 36px;
    font-size: 0.8rem;
  }

  .info-team-name {
    font-size: 1.4em;
    letter-spacing: 1.5px;
  }
}

/* ================================================================
   TRANSFER PORTAL TAB
   ================================================================ */

.portal-container {
  padding: 16px clamp(24px, 7vw, 180px);
}

/* Keep the search bar from stretching absurdly wide on large monitors */
.portal-team-search-inner {
  max-width: 700px;
}

.portal-team-search-label {
  text-align: center;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ---- Portal tab pills — centered banners with pop ---- */
.portal-container .nav-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 20px;
}
.portal-container .nav-pills .nav-item { flex: 1; max-width: 200px; }
.portal-container .nav-pills .nav-link {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 6px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.portal-container .nav-pills .nav-link:hover {
  color: #f1f5f9;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.portal-container .nav-pills .nav-link.active {
  color: #f1f5f9;
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 14px rgba(245,158,11,0.15), inset 0 1px 0 rgba(245,158,11,0.2);
}

.portal-summary-bar {
  margin-bottom: 12px;
}

/* Slim single-line stat bar */
.portal-slim-statbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  flex-wrap: wrap;
}
.psb-item { display: inline-flex; align-items: baseline; gap: 5px; }
.psb-link { cursor: pointer; }
.psb-link:hover .psb-num { opacity: 0.75; }
.psb-num { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 600; color: #f59e0b; line-height: 1; }
.psb-num.psb-green { color: #22c55e; }
.psb-num.psb-red   { color: #ef4444; }
.psb-num.psb-blue  { color: #3b82f6; }
.psb-label { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.psb-sep { color: rgba(255,255,255,0.45); font-size: 0.95rem; }

.portal-stat-link {
  cursor: pointer;
  flex: 1 1 120px;
  min-width: 100px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.portal-stat-link:hover .stat-box {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.portal-stat-link .stat-box {
  flex: unset;
  width: 100%;
}

.portal-explainer {
  margin-bottom: 14px;
  border-left: 3px solid #f59e0b;
}
.portal-explainer-body {
  color: #c8ccd4;
  font-size: 0.875rem;
  line-height: 1.5;
}
.portal-explainer-body p { margin-bottom: 6px; }
.portal-explainer-body ul { margin: 0; padding-left: 18px; }
.portal-explainer-body li { margin-bottom: 2px; }

.portal-tbl-link {
  color: #f59e0b;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.portal-tbl-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.portal-tab-content {
  padding-top: 12px;
}

.portal-chart-card {
  background: #35373d;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.portal-chart-title {
  color: #f59e0b;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.portal-click-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0 0 6px;
  font-style: italic;
  text-align: center;
}

/* Portal team rows (Teams sub-tab) */
.portal-teams-list { display: block; width: 100%; }
.portal-teams-scroll {
  display: block;
  width: 100%;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #35373d;
  border-radius: 3px;
  margin-bottom: 2px;
  transition: background 0.15s;
}

.portal-team-row:hover {
  background: #44464d;
}

.portal-team-clickable {
  cursor: pointer;
}

.portal-team-clickable:hover {
  background: #44464d;
  border-left: 3px solid #f59e0b;
}

.portal-team-clickable:hover .ptm-name {
  color: #f59e0b;
}

.portal-team-header {
  background: #2b2d31 !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ptm-rank { width: 32px; text-align: center; flex-shrink: 0; }
.ptm-color { width: 4px; height: 30px; border-radius: 3px; flex-shrink: 0; }
.ptm-name { flex: 1 1 140px; font-weight: 600; color: #f1f5f9; font-size: 0.95rem; }
.ptm-conf { width: 90px; font-size: 0.8rem; color: #94a3b8; flex-shrink: 0; }
.ptm-stat { width: 55px; text-align: center; font-size: 0.875rem; color: #94a3b8; flex-shrink: 0; }
.ptm-lost { color: #ef4444; }
.ptm-gained { color: #22c55e; }
.ptm-net { font-weight: 700; }
.ptm-expand-icon { flex-shrink: 0; width: 20px; text-align: center; color: #94a3b8; font-size: 0.8rem; }
.portal-team-row-active { background: #3a3d45 !important; border-left: 3px solid #f59e0b; }

.net-positive { color: #22c55e !important; }
.net-negative { color: #ef4444 !important; }

/* Transfer flow display (Impact sub-tab) */
.portal-transfer-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}

.portal-origin { color: #94a3b8; }
.transfer-arrow { color: #f59e0b; font-weight: 700; font-size: 1.1rem; }
.portal-dest { color: #f1f5f9; font-weight: 600; }
.portal-available { color: #ef4444; font-style: italic; }

.portal-impact-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Dark DT table for portal */
.portal-dt-compact .dataTables_wrapper {
  font-size: 0.8rem;
  color: #94a3b8;
}

.portal-dt-compact table.dataTable {
  color: #f1f5f9 !important;
  border-collapse: collapse;
}

.portal-dt-compact table.dataTable thead th {
  padding: 6px 8px;
  font-size: 0.95rem;
  color: #94a3b8 !important;
  background: #2b2d31 !important;
  border-bottom: 1px solid #4a4d55 !important;
}

.portal-dt-compact table.dataTable tbody td {
  padding: 4px 8px;
  line-height: 1.3;
  border-bottom: 1px solid #3e4047 !important;
  background: transparent;
}

.portal-dt-compact table.dataTable tbody tr {
  background: #35373d !important;
}

.portal-dt-compact table.dataTable tbody tr:nth-child(even) {
  background: #44464d !important;
}

.portal-dt-compact table.dataTable tbody tr:hover {
  background: rgba(245, 158, 11, 0.06) !important;
}

.portal-dt-compact .dataTables_paginate .paginate_button {
  padding: 2px 8px !important;
  font-size: 0.95rem;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid #4a4d55 !important;
  border-radius: 3px;
  margin: 0 1px;
}

.portal-dt-compact .dataTables_paginate .paginate_button:hover {
  background: #3e4047 !important;
  color: #f1f5f9 !important;
  border-color: #8b9db0 !important;
}

.portal-dt-compact .dataTables_paginate .paginate_button.current {
  background: #f59e0b !important;
  color: #2b2d31 !important;
  border-color: #f59e0b !important;
}

.portal-dt-compact .dataTables_paginate .paginate_button.disabled {
  color: #94a3b8 !important;
  border-color: #3e4047 !important;
}

.portal-dt-compact .dataTables_info {
  color: #8b9db0;
}

/* ── Portal Player List (replaces DT table) ── */
.portal-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 8px;
  border-bottom: 1px solid #3e4047;
  margin-bottom: 4px;
}
.portal-list-title {
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  letter-spacing: 0.07em;
  color: #c9a84c;
  text-transform: uppercase;
}
.portal-list-count {
  font-size: 0.8rem;
  color: #8b9db0;
}
.portal-list-empty {
  padding: 24px;
  text-align: center;
  color: #8b9db0;
  font-style: italic;
}
.portal-player-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.portal-player-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portal-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #2a2520;
}
.portal-player-row:hover { background: #2a2520; }
.prow-rank {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #c9a84c;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.prow-pos {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.prow-info {
  flex: 1 1 120px;
  min-width: 0;
}
.prow-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prow-stars {
  font-size: 0.65rem;
  color: #f59e0b;
  line-height: 1;
}
.prow-route {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
}
.prow-from {
  color: #94a3b8;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.prow-from:hover { color: #e8dcc8; text-decoration: underline; }
.prow-arrow { color: #94a3b8; flex-shrink: 0; }
.prow-to {
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.prow-to:hover { text-decoration: underline; }
.prow-status {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.prow-committed {
  background: #22c55e18;
  color: #22c55e;
  border: 1px solid #22c55e44;
}
.prow-available {
  background: #f59e0b18;
  color: #f59e0b;
  border: 1px solid #f59e0b44;
}
.prow-impact {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 80px;
}
.prow-impact-bar {
  flex: 1;
  height: 4px;
  background: #3e4047;
  border-radius: 3px;
  overflow: hidden;
}
.prow-impact-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.prow-impact-num {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  width: 24px;
  text-align: right;
}
.portal-show-more {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}
.portal-show-more-btn {
  background: transparent !important;
  border: 1px solid #4a4d55 !important;
  color: #94a3b8 !important;
  font-size: 0.875rem;
  padding: 4px 16px !important;
  border-radius: 10px !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.portal-show-more-btn:hover {
  border-color: #c9a84c !important;
  color: #c9a84c !important;
  background: #c9a84c11 !important;
}
@media (max-width: 600px) {
  .prow-route { display: none; }
  .prow-status { display: none; }
}

/* ===========================================================================
   TEAMS TAB — Expandable Rows
   =========================================================================== */
.team-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.team-row:hover {
  background: rgba(245, 158, 11, 0.04) !important;
}

.team-row-expanded {
  background: rgba(245, 158, 11, 0.06) !important;
  border-bottom: none !important;
}

.expand-icon {
  font-size: 0.65rem;
  color: #8b9db0;
  margin-left: 6px;
  vertical-align: middle;
}

.team-detail-panel {
  padding: 16px 20px;
  margin: 0 0 8px 0;
  background: #35373d;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #3e4047;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 2000px; }
}

/* ---- Teams detail: grid + column layout ---- */
.team-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.team-detail-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-detail-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-detail-section-title {
  color: #f59e0b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Summary chips row */
.team-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tds-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 0.875rem;
}

.tds-chip.tds-coach-chip {
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.tds-label {
  color: #8b9db0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tds-value {
  color: #e8dcc8;
  font-weight: 600;
}

.tds-rank {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Coach block */
.coach-detail-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coach-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coach-link {
  color: #c9a84c;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.93em;
}

.coach-link:hover { color: #e8dcc8; }

.coach-meta-line {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.coach-prev-line {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Quick links */
.team-quick-links-col {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.team-quick-link {
  color: #c9a84c !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 4px 12px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.team-quick-link:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: #c9a84c;
}

/* Coach trajectory badges */
.coach-trajectory-badge {
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.coach-badge-improving { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.coach-badge-declining { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.coach-badge-stable    { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

/* Recent form dots */
.recent-form-dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
}

.form-win  { background: rgba(34, 197, 94, 0.2);  color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.form-loss { background: rgba(239, 68, 68, 0.2);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Portal net badge */
.portal-net-badge {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.portal-net-positive { color: #22c55e; }
.portal-net-negative { color: #ef4444; }

/* Recruit grade / scale */
.recruit-scale-line {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 6px 0;
}

.recruit-grade-clickable {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.recruit-grade-mini {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
}

.recruit-grade-arrow { color: #94a3b8; font-size: 0.8rem; }

.recruit-detail-panel {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
  font-size: 0.875rem;
}

.recruit-detail-stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.recruit-detail-star-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 2px 7px;
  border-radius: 3px;
}

.rds-stars { color: #f59e0b; font-size: 0.95rem; }
.rds-count { color: #e8dcc8; font-weight: 600; }

.recruit-detail-top { display: flex; flex-direction: column; gap: 3px; }
.rdt-label { color: #8b9db0; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 2px; }
.rdt-row { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.rdt-name { flex: 1; color: #e8dcc8; font-weight: 500; }
.rdt-pos  { color: #f59e0b; font-weight: 700; min-width: 28px; font-size: 0.875rem; }
.rdt-rating { color: #94a3b8; font-size: 0.875rem; }
.rdt-loc  { color: #94a3b8; font-size: 0.8rem; }

@media (max-width: 768px) {
  .team-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-section-title {
  color: #f59e0b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.detail-stats-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-stats-grid .stat-box {
  flex: 1;
  min-width: 80px;
}

.recruit-sparkline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 55px;
}

.spark-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.spark-bar {
  width: 18px;
  border-radius: 3px 2px 0 0;
  min-height: 5px;
  transition: height 0.2s ease;
}

.spark-year {
  font-size: 0.65rem;
  color: #8b9db0;
}

/* ---- Team Detail: Key Players (Roster) ---- */
.detail-roster-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.detail-roster-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.875rem;
}
.detail-roster-pos {
  font-weight: 700;
  color: #f59e0b;
  min-width: 28px;
  font-size: 0.875rem;
}
.detail-roster-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.detail-roster-class {
  font-size: 0.8rem;
  color: #8b9db0;
  min-width: 22px;
}
.detail-roster-stars {
  flex-shrink: 0;
  font-size: 0.72rem;
}
.detail-portal-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.detail-portal-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.875rem;
}
.detail-portal-from {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-roster-summary {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===========================================================================
   COMPARE TAB — Coaching & Portal Sections
   =========================================================================== */
.coach-compare-card {
  padding: 10px 14px;
  background: #35373d;
  border-radius: 6px;
  margin-bottom: 12px;
}

.coach-compare-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.compare-vs-small {
  text-align: center;
  padding-top: 12px;
  color: #8b9db0;
  font-weight: 700;
  font-size: 0.875rem;
}

.portal-mini-table {
  background: #35373d;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}

.portal-mini-table h6 {
  font-size: 0.8rem;
  margin-bottom: 6px;
}

/* ===========================================================================
   MATCHUPS TAB — Prediction & Factor Panels
   =========================================================================== */
.matchup-section {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid #3e4047;
}

/* ---- Matchup Context Section ---- */
.matchup-context {
  background: rgba(42, 37, 32, 0.4);
  border-radius: 10px;
  padding: 16px 20px;
}

.matchup-context-block {
  margin-bottom: 16px;
}

.matchup-context-block:last-child {
  margin-bottom: 0;
}

.matchup-context-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.matchup-context-stat {
  padding: 6px 0;
  font-size: 0.92em;
  color: #e8dcc8;
}

.matchup-context-team {
  font-weight: 700;
}

.matchup-context-rec {
  color: #94a3b8;
}

/* ---- Composite Score Header ---- */
.matchup-composite-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 16px;
  margin-bottom: 8px;
}

.matchup-composite-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.matchup-composite-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.matchup-composite-score {
  font-family: 'Teko', sans-serif;
  font-size: 2em;
  line-height: 1.1;
  color: #f1f5f9;
}

.matchup-composite-rank {
  font-size: 0.8rem;
  color: #94a3b8;
}

.matchup-composite-vs {
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  color: #8b9db0;
  padding: 0 4px;
}

/* ---- FBS Average Reference ---- */
.matchup-fbs-ref {
  text-align: center;
  font-size: 0.72rem;
  color: #8b9db0;
  margin-top: -4px;
  margin-bottom: 6px;
}

.matchup-prediction {
  background: #18181b;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.predict-result-bar {
  margin: 16px 0;
}

.predict-bar-track {
  display: flex;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
}

.predict-bar-a, .predict-bar-b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: width 0.3s ease;
}

.predict-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.predict-winner-label {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 10px;
}

.predict-adjustments {
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ===========================================================================
   LEARN TAB — Live Glossary Cards
   =========================================================================== */
.glossary-live-card {
  margin-top: 12px;
  padding: 12px;
  background: #35373d;
  border-radius: 10px;
  border-left: 3px solid #f59e0b;
}

.glossary-live-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f59e0b;
  margin-bottom: 8px;
  font-weight: 600;
}

.glossary-live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid #3e4047;
}

.glossary-live-row:last-child {
  border-bottom: none;
}

.glossary-live-rank {
  color: #8b9db0;
  font-size: 0.8rem;
  min-width: 28px;
}

.glossary-live-team {
  flex: 1;
  color: #f1f5f9;
  font-weight: 500;
}

.glossary-live-val {
  color: #94a3b8;
  font-size: 0.875rem;
  font-family: monospace;
}

/* ===========================================================================
   GEOGRAPHY TAB
   =========================================================================== */
.geography-container {
  padding: 16px 0;
  overflow: hidden;
}

.geography-container > h3,
.geography-container > h4,
.geography-container > .text-muted,
.geography-container > p.text-muted,
.geography-container > .lead {
  text-align: center;
  padding-left: clamp(24px, 7vw, 180px);
  padding-right: clamp(24px, 7vw, 180px);
}

.geography-container .nav-pills { padding: 0 clamp(24px, 7vw, 180px); }
.geo-tab-content {
  padding: 16px clamp(24px, 7vw, 180px);
}

.geo-tab-content > .text-muted,
.geo-tab-content > p.text-muted,
.geo-tab-content > .lead {
  text-align: center;
}

.geo-summary-table {
  margin-top: 20px;
}

.pipeline-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pipeline-stats-row .stat-box {
  flex: 1;
  min-width: 120px;
}

.local-bar-section {
  margin-top: 20px;
  padding: 16px;
  background: #35373d;
  border-radius: 10px;
}

.local-bar-track {
  display: flex;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.local-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.local-bar-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.geo-state-schools {
  margin-top: 20px;
}

.geo-state-schools h5,
.geo-summary-table h5 {
  color: #e8dcc8;
  font-family: 'Cinzel', serif;
}

/* ===========================================================================
   DYNASTIES TAB
   =========================================================================== */
.dynasties-container {
  padding: 16px 0;
  overflow: hidden;
}

.dynasties-container > h3,
.dynasties-container > h4,
.dynasties-container > .text-muted,
.dynasties-container > p.text-muted,
.dynasties-container > .lead {
  text-align: center;
  padding-left: clamp(24px, 7vw, 180px);
  padding-right: clamp(24px, 7vw, 180px);
}

.dynasties-container .nav-pills { padding: 0 clamp(24px, 7vw, 180px); }
.dynasty-tab-content {
  padding: 16px clamp(24px, 7vw, 180px);
}

.dynasty-tab-content > .text-muted,
.dynasty-tab-content > p.text-muted,
.dynasty-tab-content > .lead {
  text-align: center;
}

.carousel-summary {
  background: #35373d;
  border-radius: 10px;
  padding: 12px 16px;
}

.carousel-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.carousel-chip {
  background: #3e4047;
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.before-after-section {
  margin-top: 20px;
}

.before-after-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #35373d;
  border-radius: 10px;
  margin-bottom: 10px;
}

.ba-old, .ba-new {
  flex: 1;
  text-align: center;
}

.ba-coach {
  font-weight: 600;
  color: #f1f5f9;
}

.ba-wp {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f59e0b;
}

.ba-label {
  font-size: 0.72rem;
}

.ba-arrow {
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

/* Era Leaders */
.era-leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.era-card {
  background: #35373d;
  border-radius: 10px;
  overflow: hidden;
}

.era-card-header {
  padding: 12px 16px;
  background: #18181b;
  border-bottom: 2px solid #f59e0b;
}

.era-card-header h4 {
  margin: 0;
  font-size: 1em;
  color: #f1f5f9;
}

.era-card-body {
  padding: 12px 16px;
}

.era-top-list {
  padding-left: 18px;
  margin-bottom: 10px;
}

.era-top-list li {
  margin-bottom: 2px;
  font-size: 0.875rem;
}

.era-highlights {
  border-top: 1px solid #3e4047;
  padding-top: 8px;
}

.era-highlight {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 2px 0;
}

.era-hl-label {
  color: #f59e0b;
  font-weight: 600;
}

.era-hl-value {
  color: #94a3b8;
}

/* Rise & Fall */
.conf-shifts-table {
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================================================================
   DRAFT TAB
   =========================================================================== */
.draft-container {
  padding: 16px 0;
  overflow: hidden;
}

.draft-container > h3,
.draft-container > h4,
.draft-container > .text-muted,
.draft-container > p.text-muted,
.draft-container > .lead {
  text-align: center;
  padding-left: clamp(24px, 7vw, 180px);
  padding-right: clamp(24px, 7vw, 180px);
}

.draft-container .nav-pills { padding: 0 clamp(24px, 7vw, 180px); }
.draft-tab-content {
  padding: 16px clamp(24px, 7vw, 180px);
}

.draft-tab-content > .text-muted,
.draft-tab-content > p.text-muted,
.draft-tab-content > .lead {
  text-align: center;
}

.draft-summary-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.draft-summary-bar .stat-box {
  flex: 1;
  min-width: 140px;
}

.draft-round-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 200px;
}

/* ── 2026 Draft Class tab ── */
.draft-class-banner {
  display: flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.draft-class-banner-live {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}
.draft-class-banner-soon {
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.30);
  animation: draft-pulse 2.5s ease-in-out infinite;
}
@keyframes draft-pulse {
  0%, 100% { border-color: rgba(251,191,36,0.30); }
  50%       { border-color: rgba(251,191,36,0.65); }
}
.draft-class-picks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 520px;
  overflow-y: auto;
}
.draft-class-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 0.87em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.draft-class-pick-row:hover { background: rgba(255,255,255,0.04); }
.dcp-pick  { width: 38px; text-align: right; font-family: 'Teko', sans-serif; font-size: 1em; flex-shrink: 0; }
.dcp-name  { flex: 1.8; font-weight: 500; color: #e8dcc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcp-pos   { width: 36px; font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #c9a84c; flex-shrink: 0; }
.dcp-school { flex: 1.5; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcp-round { width: 100px; text-align: right; font-size: 0.875rem; flex-shrink: 0; }

.round-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.round-1 {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.round-2-3 {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.round-4-7 {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid #8b9db0;
}

/* ===========================================================================
   VISUAL POLISH — New Tabs & Upgraded Components
   =========================================================================== */

/* ---- Geography polish ---- */
.local-bar-section {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #3e4047;
}

.geo-summary-table {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.pipeline-stats-row .stat-box {
  transition: border-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.pipeline-stats-row .stat-box:hover {
  border-color: #4a4d55;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

/* ---- Dynasties polish ---- */
.era-card {
  border: 1px solid #3e4047;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.era-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: #f59e0b;
}

.before-after-row {
  transition: background 0.15s;
  border: 1px solid transparent;
}

.before-after-row:hover {
  background: #1a2332;
  border-color: #3e4047;
}

.carousel-chip {
  transition: color 0.15s, background 0.15s;
  cursor: default;
}

.carousel-chip:hover {
  color: #f1f5f9;
  background: #4a4d55;
}

.conf-shifts-table .stat-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.conf-shifts-table .stat-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Draft polish ---- */
.round-badge {
  transition: transform 0.15s;
}

.round-badge:hover {
  transform: scale(1.1);
}

.draft-summary-bar .stat-box {
  border: 1px solid #3e4047;
}

/* ---- Teams detail panel polish ---- */
.team-detail-panel {
  box-shadow: inset 0 1px 0 #3e4047, 0 4px 12px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--team-color, #f59e0b);
}

/* ---- Matchups prediction polish ---- */
.matchup-prediction {
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ---- Learn glossary cards polish ---- */
.glossary-live-card {
  transition: box-shadow 0.2s, border-color 0.2s;
}

.glossary-live-card:hover {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ---- Compare coaching/portal polish ---- */
.coach-compare-card {
  border: 1px solid #3e4047;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.portal-mini-table {
  border: 1px solid #3e4047;
}

/* ===========================================================================
   MOBILE RESPONSIVENESS — Hamburger Nav + Column Stacking + Touch
   =========================================================================== */

/* ---- B1: Navbar Hamburger Menu (below 992px / lg breakpoint) ---- */
.navbar-toggler {
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,158,11,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
  background: #232529;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #3e4047;
}

@media (max-width: 991.98px) {
  .navbar-collapse .nav-link {
    width: 100%;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid #3e4047;
  }

  .navbar-collapse .nav-link .fa,
  .navbar-collapse .nav-link .fas,
  .navbar-collapse .nav-link .far,
  .navbar-collapse .nav-link .fab,
  .navbar-collapse .nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
  }

  .navbar-brand {
    font-size: 0.95rem !important;
    margin-right: 12px !important;
    padding-left: 2px !important;
    padding-right: 8px !important;
    border-right: 1px solid rgba(245, 158, 11, 0.18);
  }

  .navbar-collapse .nav-link.active {
    border-radius: 0;
  }
}

/* ---- B2: Column Stacking at 768px (fixes ALL modules) ---- */
@media (max-width: 767.98px) {
  .row > [class*="col-sm-"],
  .row > [class*="col-md-"],
  .row > [class*="col-lg-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  [class*="offset-sm-"],
  [class*="offset-md-"],
  [class*="offset-lg-"] {
    margin-left: 0 !important;
  }

}

/* ---- B3: Map Split-Layout Fix ---- */
@media (max-width: 767.98px) {
  .split-left {
    height: 50vh !important;
    min-height: 250px;
    flex: none !important;
  }

  .split-right {
    max-height: none !important;
    min-height: 300px;
    flex: none !important;
  }
}

@media (max-width: 575.98px) {
  .split-left {
    height: 40vh !important;
    min-height: 220px;
  }

  .split-right {
    max-height: none !important;
  }

  .conference-legend-inline {
    display: none;
  }
}

/* ---- B4: Touch Targets (44px minimum) ---- */
@media (max-width: 767.98px) {
  .leaflet-control-zoom a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 18px !important;
  }

  .dataTables_paginate .paginate_button {
    padding: 8px 14px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .carousel-chip {
    padding: 8px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .btn-preset {
    padding: 8px 14px !important;
    min-height: 44px;
  }

  .btn-custom-preset {
    min-height: 44px;
  }

  .btn-delete-preset {
    min-height: 44px;
    min-width: 36px;
  }

  .nav-pills .nav-link {
    padding: 10px 16px !important;
    min-height: 44px;
  }
}

/* ---- B5: Font Scaling ---- */
@media (max-width: 767.98px) {
  .dataTables_wrapper table {
    font-size: 0.875rem !important;
  }

  .legend-chip {
    font-size: 0.8rem;
  }

  .tug-label-left,
  .tug-label-right {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Geography */
  .pipeline-stats-row {
    flex-direction: column;
    gap: 8px;
  }

  .pipeline-stats-row .stat-box {
    min-width: unset;
  }

  .geography-container {
    padding: 12px;
  }

  /* Dynasties */
  .era-leaders-grid {
    grid-template-columns: 1fr;
  }

  .before-after-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .ba-arrow {
    transform: rotate(90deg);
    min-width: unset;
  }

  .dynasties-container {
    padding: 12px;
  }

  /* Draft */
  .draft-summary-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .draft-summary-bar .stat-box {
    min-width: unset;
  }

  /* Ranking rows: wrap so badges drop below the bar */
  .draft-tab-content .ranking-row {
    flex-wrap: wrap;
  }

  .draft-tab-content .ranking-team-info {
    width: auto;
    flex: 1 1 0;
    min-width: 100px;
  }

  .draft-tab-content .ranking-score-area {
    flex: 1 1 100%;
    order: 5;
    min-width: 0;
  }

  .draft-round-badges {
    flex-wrap: wrap;
    min-width: unset;
    order: 6;
    flex-basis: 100%;
    padding-left: 50px; /* align with team name (past rank + color bar) */
  }

  .draft-container {
    padding: 12px;
  }

  /* All ranking rows: let team name shrink, wrap on overflow */
  .ranking-team-info {
    width: auto !important;
    flex-shrink: 1 !important;
    min-width: 80px;
  }

  /* Conference cards */
  .conf-grid {
    grid-template-columns: 1fr;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  /* Tables scroll horizontally */
  .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Cap chart heights without fighting plotly resize */
  .plotly.html-widget {
    min-height: 240px;
    max-height: 350px;
  }

  /* Reduce container padding */
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Hide factor pips on phones/small tablets — too cramped */
  .ranking-factors {
    display: none !important;
  }

  /* Let stat boxes shrink to fit */
  .stat-box {
    min-width: 0 !important;
  }

  /* ---- Portal: hide conf column, let stats shrink ---- */
  .ptm-conf {
    display: none;
  }

  .ptm-stat {
    width: auto;
    flex-shrink: 1;
    min-width: 36px;
    font-size: 0.8rem;
  }

  .ptm-name {
    flex: 1 1 80px;
    font-size: 0.875rem;
  }

  .portal-team-header .ptm-conf {
    display: none;
  }

  /* ---- Predict: stack matchup bar, add side padding ---- */
  .predict-container {
    padding: 16px 10px !important;
  }

  .predict-matchup-bar {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .predict-vs-badge {
    flex: 0 0 auto;
  }

  .vs-circle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin: 0 auto;
  }

  .predict-quick-picks {
    gap: 4px;
  }

  .btn-quick-pick {
    font-size: 0.72rem;
    padding: 6px 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ---- Teams: center recruiting sparkline & coach on mobile ---- */
  .recruit-sparkline {
    justify-content: center;
    width: 100%;
  }

  .team-detail-panel .detail-section-title {
    text-align: center;
  }

  .team-detail-panel .row > [class*="col-"]:last-child {
    text-align: center;
  }
}

/* ---- B5 continued: 480px compact mode ---- */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .ranking-factors {
    display: none !important;
  }

  .nav-pills {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-pills::-webkit-scrollbar {
    display: none;
  }

  .nav-pills .nav-link {
    white-space: nowrap;
  }

  .container-fluid,
  .rankings-container,
  .portal-container,
  .geography-container,
  .dynasties-container,
  .draft-container,
  .predict-container {
    padding: 8px !important;
  }

  .rankings-controls {
    position: static !important;
  }

  .plotly .modebar {
    top: 4px !important;
    right: 4px !important;
  }

  /* Geography */
  .local-bar-section {
    padding: 10px;
  }

  /* Dynasties */
  .carousel-chips {
    gap: 4px;
  }

  .carousel-chip {
    font-size: 0.72rem;
  }

  /* Draft */
  .round-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* Further chart height cap */
  .plotly.html-widget {
    min-height: 200px;
    max-height: 280px;
  }

  /* Center VS badge in compare */
  .vs-badge {
    text-align: center;
    margin: 8px auto;
  }

  /* Hero stat pills — two per row on narrow phones */
  .home-hero-stat-link {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 4px);
  }
  .home-hero-stats {
    gap: 8px;
  }
  .home-hero-stats .stat-box .stat-value {
    font-size: 1.1rem;
  }
}

/* ---- B6: Plotly Mid-Range (768-992px) ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .plotly.html-widget {
    min-height: 280px;
  }

  .plotly .modebar {
    opacity: 0;
    transition: opacity 0.2s;
  }

  .plotly:hover .modebar {
    opacity: 1;
  }
}

/* Prevent touch zoom conflicts on plotly charts */
.js-plotly-plot, .plotly.html-widget { touch-action: pan-y; }

/* Disable plotly drag-to-select/zoom on mobile — prevents blank-on-swipe */
@media (max-width: 991.98px) {
  .js-plotly-plot .nsewdrag,
  .js-plotly-plot .drag {
    pointer-events: none !important;
  }
}

/* ===========================================================================
   LOADING STATES — Amber Pulse Busy Indicator
   =========================================================================== */

/* Style bslib's built-in busy indicator */
.bslib-busy-indicator-spinner {
  --bslib-busy-indicator-color: #f59e0b !important;
}

/* Recalculating overlay for plotly + other outputs */
.recalculating {
  opacity: 0.5;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Shiny busy state — amber pulse */
.shiny-busy .recalculating,
.shiny-busy .plotly.html-widget {
  opacity: 0.4;
}

/* Custom amber pulse keyframes */
@keyframes amberPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.bslib-busy-indicator-spinner::after {
  animation: amberPulse 1.2s ease-in-out infinite !important;
}

/* ===========================================================================
   NAVBAR CONDENSING — Fit 12 tabs at 1366px
   =========================================================================== */

/* Reduce horizontal padding on nav tabs */
.navbar .nav-link {
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 0.875rem;
}

/* Icons-only mode at medium screens */
@media (max-width: 1200px) and (min-width: 992px) {
  .navbar .navbar-nav .nav-link {
    font-size: 0;
    padding: 8px 12px !important;
  }
  .navbar .navbar-nav .nav-link i,
  .navbar .navbar-nav .nav-link .fa,
  .navbar .navbar-nav .nav-link .fas {
    font-size: 1.1rem;
    margin-right: 0 !important;
  }
  /* Show label on hover/focus via tooltip */
  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link:focus {
    font-size: 0.875rem;
  }
  .navbar .navbar-nav .nav-link:hover i,
  .navbar .navbar-nav .nav-link:focus i,
  .navbar .navbar-nav .nav-link:hover .fa,
  .navbar .navbar-nav .nav-link:focus .fa,
  .navbar .navbar-nav .nav-link:hover .fas,
  .navbar .navbar-nav .nav-link:focus .fas {
    margin-right: 4px !important;
  }
}

/* ===========================================================================
   HOME DASHBOARD
   =========================================================================== */

/* ---- Container ---- */
.home-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ---- Hero Banner ---- */
.home-hero {
  text-align: center;
  padding: 40px 20px 32px;
  margin-bottom: 32px;
  background: linear-gradient(180deg, rgba(245,158,11,0.08) 0%, transparent 100%);
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,0.15);
}

.home-title {
  font-family: 'Teko', sans-serif;
  font-size: 3.2em;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1;
}

.home-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}

.home-hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  overflow: hidden;
  max-width: 100%;
}

/* Clickable stat box wrappers */
.home-hero-stat-link {
  flex: 0 1 160px;
  min-width: 120px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 10px;
}

.home-hero-stat-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 16px rgba(245,158,11,0.12);
}

.home-hero-stat-link:active {
  transform: translateY(-2px);
  transition: transform 0.1s ease;
}

.home-hero-stats .stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.25s ease;
  height: 100%;
}

.home-hero-stat-link:hover .stat-box {
  border-color: rgba(245,158,11,0.4);
}

/* ---- Grid Layout ---- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.home-grid > .shiny-html-output,
.home-grid > .skeleton-slot,
.home-grid > .skeleton-slot > .shiny-html-output {
  display: contents;
}

/* Row 1: Rankings (4 cols) + Rivalry (2 cols) */
.home-card-rankings {
  grid-column: span 4;
}
.home-card-rivalry {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}
.home-card-rivalry .home-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-card-rivalry .home-card-seeall {
  margin-top: auto;
}

/* Row 2: Portal (2) + Predict (2) + Map (2) */
.home-card-portal {
  grid-column: span 2;
}
.home-card-predict {
  grid-column: span 2;
}
.home-card-map {
  grid-column: span 2;
}

/* Row 3: Season Preview (full width) */
.home-card-preview {
  grid-column: 1 / -1;
}

/* Row 4: Classes (3) + Draft (3) */
.home-card-classes {
  grid-column: span 3;
}
.home-card-draft {
  grid-column: span 3;
}

/* ---- Card Base ---- */
.home-card {
  background: #2a2d35;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
/* Content area fills remaining card height */
.home-card > *:last-child {
  flex: 1;
}
/* Cards with less content: vertically center body */
.home-card-draft > *:last-child,
.home-card-vegas > *:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-card:hover {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px rgba(245,158,11,0.08);
}

.home-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.home-card-header h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.4em;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Banner Headers ---- */
.home-banner {
  padding: 16px 20px 14px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.home-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-banner-icon {
  font-size: 1.35rem;
  opacity: 0.9;
}

.home-banner h3 {
  font-size: 1.5em;
  letter-spacing: 1.5px;
}

/* Per-card banner gradients */
.home-banner-rankings {
  background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(34,197,94,0.10) 100%);
}
.home-banner-rankings .home-banner-icon { color: #3b82f6; }

.home-banner-rivalry {
  background: linear-gradient(135deg, rgba(236,72,153,0.18) 0%, rgba(249,115,22,0.10) 100%);
}
.home-banner-rivalry .home-banner-icon { color: #ec4899; }

.home-banner-portal {
  background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(168,85,247,0.10) 100%);
}
.home-banner-portal .home-banner-icon { color: #3b82f6; }

.home-banner-predict {
  background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(249,115,22,0.10) 100%);
}
.home-banner-predict .home-banner-icon { color: #f59e0b; }

.home-banner-recruiting {
  background: linear-gradient(135deg, rgba(251,191,36,0.18) 0%, rgba(245,158,11,0.10) 100%);
}
.home-banner-recruiting .home-banner-icon { color: #fbbf24; }

.home-banner-draft {
  background: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(59,130,246,0.10) 100%);
}
.home-banner-draft .home-banner-icon { color: #a855f7; }

.home-view-all {
  color: #f59e0b !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}

.home-view-all:hover {
  color: #fbbf24 !important;
}

/* ---- Rankings Card ---- */
.home-rankings-list {
  padding: 8px 12px 12px;
}

.home-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.home-rank-row:hover {
  background: rgba(255,255,255,0.04);
}

.home-rank-num {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.home-rank-team {
  flex: 0 0 125px;
  min-width: 0;
}

.home-rank-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-rank-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

.home-rank-composite {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1.1;
}

.home-rank-score {
  flex: 0 0 70px;
  min-width: 60px;
}

.home-rank-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.home-rank-factors {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.home-rank-factors .factor-pip {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  flex-shrink: 0;
}

/* ---- Rivalry Spotlight Card ---- */
.btn-shuffle {
  background: transparent;
  border: 1px solid rgba(245,158,11,0.4);
  color: #f59e0b;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-shuffle:hover {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

.home-rivalry-spotlight {
  cursor: pointer;
  transition: transform 0.15s;
}

.home-rivalry-spotlight:hover {
  transform: translateY(-2px);
}

.home-rivalry-header {
  padding: 16px 18px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-rivalry-header .rivalry-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-rivalry-body {
  padding: 14px 18px 18px;
}

.home-rivalry-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.home-rivalry-vs {
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.home-rivalry-trophy {
  text-align: center;
  font-size: 0.95rem;
  color: #fbbf24;
  margin-bottom: 6px;
}

.home-rivalry-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ---- "See all" link under home cards ---- */
.home-card-seeall {
  display: block;
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  color: #c9a84c;
  text-decoration: none;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  transition: color 0.15s;
}
.home-card-seeall:hover {
  color: #e8dcc8;
}

/* ---- Portal Pulse Card ---- */
.home-portal-list {
  padding: 8px 12px 12px;
  cursor: pointer;
}

.home-portal-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 10px;
  transition: background 0.15s;
}

.home-portal-player:hover {
  background: rgba(255,255,255,0.04);
}

.home-portal-rank {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #94a3b8;
}

.home-portal-color {
  width: 4px;
  height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
}

.home-portal-info {
  flex: 1;
  min-width: 0;
}

.home-portal-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-portal-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.home-portal-impact {
  flex-shrink: 0;
  text-align: center;
}

.home-portal-impact-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f59e0b;
}

.home-portal-impact-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.home-portal-tier {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 8px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1.4;
}
.home-portal-tier.tier-elite { background: rgba(201,168,76,0.25); color: #c9a84c; }
.home-portal-tier.tier-high  { background: rgba(34,197,94,0.2); color: #22c55e; }
.home-portal-tier.tier-solid { background: rgba(59,130,246,0.2); color: #3b82f6; }
.home-portal-tier.tier-dev   { background: rgba(100,116,139,0.2); color: #94a3b8; }
.home-portal-keystat {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.home-portal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  margin-bottom: 4px;
}

.portal-stat-chip {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 3px;
  background: rgba(241, 245, 249, 0.08);
  color: #e8dcc8;
  letter-spacing: 0.04em;
}

.portal-chip-gold {
  background: rgba(201, 168, 76, 0.2);
  color: #c9a84c;
}

.portal-chip-up {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.portal-chip-down {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.home-portal-stars {
  color: #c9a84c;
  font-size: 0.8rem;
  margin-left: 4px;
  letter-spacing: -1px;
}

/* ---- Quick Predict Card ---- */
.home-predict-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-predict-btn {
  background: #232529;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  width: 100%;
}

.home-predict-btn:hover {
  border-color: rgba(245,158,11,0.5);
  transform: translateY(-2px);
}

.home-predict-gradient {
  height: 6px;
  width: 100%;
}

.home-predict-label {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.home-predict-team {
  font-weight: 600;
  font-size: 0.875rem;
  color: #f1f5f9;
}

.home-predict-vs {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ---- Portal Winners Section ---- */
.home-portal-winners {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}

.home-portal-winners-title {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.home-portal-winner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.home-portal-winner-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.home-portal-winner-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  outline: 1px solid rgba(255,255,255,0.35);
  outline-offset: -1px;
}

.home-portal-winner-name {
  flex: 0 0 110px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-portal-winner-net {
  flex-shrink: 0;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22c55e;
  min-width: 28px;
  text-align: right;
}

/* ---- Week 1 Predict Card ---- */
.home-wk1-games {
  padding: 10px 14px 8px;
}

.home-wk1-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wk1-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.wk1-teams {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.wk1-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.45);
}

.wk1-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk1-vs {
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.wk1-predict-btn {
  flex-shrink: 0;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.wk1-predict-btn:hover {
  background: rgba(245,158,11,0.25);
  border-color: rgba(245,158,11,0.6);
}

/* Predict card wrapper: flex column so trust stays centered in remaining space */
.home-predict-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-predict-trust-spacer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Downward MALSR flashers — guide eye to trust toggle */
.trust-approach-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 0;
}
@keyframes tapFlash {
  0%, 100% { opacity: 0.07; filter: none; }
  30%, 50%  { opacity: 0.85; filter: drop-shadow(0 0 6px rgba(245,158,11,0.7)); }
}
.tap-light {
  color: #f59e0b;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.07;
  animation: tapFlash 2.2s ease-in-out infinite;
}
.tal-1 { animation-delay: 0s; }
.tal-2 { animation-delay: 0.4s; }
.tal-3 { animation-delay: 0.8s; }
.tal-4 { animation-delay: 1.2s; }
.tad-row { display: flex; gap: 22px; justify-content: center; }
.tal-5 { animation-delay: 1.6s; }

/* ---- Model Trust Blurb ---- */
.home-model-trust {
  margin: 0 14px 12px;
  padding: 0;
}

.home-model-trust-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f59e0b;
  cursor: pointer;
  user-select: none;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  transition: background 0.15s, border-color 0.15s;
}

.home-model-trust-toggle:hover {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.5);
}

.trust-caret {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(245,158,11,0.7);
}

.home-model-trust-body {
  display: none;
  margin-top: 7px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

.home-model-trust-body ul {
  margin: 0;
  padding-left: 16px;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.75;
}

/* ---- Territory Map Preview ---- */
/* ---- Territory Map Card ---- */
.home-map-content {
  padding: 14px 16px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.home-map-svg-wrap {
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 10px 8px 6px;
  flex: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-map-svg-wrap svg circle { transition: opacity 0.2s; }
.home-map-content:hover .home-map-svg-wrap svg circle { opacity: 1 !important; }
.home-map-dyk {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(245,158,11,0.06);
  border-left: 3px solid #c9a84c;
  border-radius: 0 6px 6px 0;
}
.home-map-dyk-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.home-map-dyk-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.home-map-cta {
  margin-top: auto;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: gap 0.2s;
}
.home-map-content:hover .home-map-cta { gap: 10px; }

/* Mini conference legend inside map preview */
.home-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 4px 2px;
  justify-content: center;
}
.home-map-legend-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.02em;
}
.home-map-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  outline: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* ---- Recruiting Watch Card ---- */
.home-recruit-list {
  padding: 8px 12px 12px;
  cursor: pointer;
}

.home-recruit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 10px;
  transition: background 0.15s;
}

.home-recruit-row:hover {
  background: rgba(255,255,255,0.04);
}

.home-recruit-rank {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #94a3b8;
}

.home-recruit-color {
  width: 4px;
  height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
}

.home-recruit-info {
  flex: 1;
  min-width: 0;
}

.home-recruit-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-recruit-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.home-recruit-stars {
  flex-shrink: 0;
  text-align: right;
}

.home-recruit-rating {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ---- Draft Pipeline Card ---- */
.home-draft-row {
  padding: 12px 18px 18px;
}

.home-draft-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 14px;
  text-align: center;
}

.home-draft-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  cursor: pointer;
}

.home-draft-badge {
  background: rgba(255,255,255,0.04);
  border: 2px solid #3e4047;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  flex: 1;
  min-width: 110px;
  max-width: 200px;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.home-draft-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.home-draft-badge-school {
  font-weight: 700;
  font-size: 0.92em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-draft-badge-count {
  font-family: 'Teko', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  margin-bottom: 2px;
}

.home-draft-badge-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Coach Hot Seat Card ---- */
.home-card-hotseat {
  grid-column: 1 / -1;
}
.home-banner-hotseat {
  border-bottom-color: rgba(239, 68, 68, 0.2);
}
.home-hotseat-list {
  padding: 8px 12px 12px;
}
.home-hotseat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background 0.15s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.home-hotseat-row:hover {
  background: rgba(255,255,255,0.04);
}
.home-hotseat-row.active {
  background: rgba(255,255,255,0.06);
}
/* Expandable detail panel */
.home-hotseat-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.home-hotseat-detail.expanded {
  max-height: 240px;
  opacity: 1;
}
.hotseat-detail-inner {
  padding: 8px 12px 10px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hotseat-summary {
  margin: 0;
  font-size: 0.8rem;
  color: #b8a88a;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.45;
}
.hotseat-factors-compact {
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hotseat-factor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.hotseat-factor-label {
  width: 58px;
  flex-shrink: 0;
  color: #94a3b8;
  text-align: right;
}
.hotseat-factor-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.hotseat-factor-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.hotseat-factor-val {
  width: 32px;
  flex-shrink: 0;
  text-align: right;
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #e8dcc8;
}
.hotseat-detail-total {
  text-align: right;
  font-size: 0.72rem;
  color: #8b9db0;
  padding-top: 2px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  margin-top: 2px;
}
.home-hotseat-row.heat-high {
  border-left-color: #ef4444;
}
.home-hotseat-row.heat-med {
  border-left-color: #f59e0b;
}
.home-hotseat-row.heat-low {
  border-left-color: #94a3b8;
}
.home-hotseat-rank {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #94a3b8;
}
.home-hotseat-color {
  width: 4px;
  height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
}
.home-hotseat-info {
  flex: 1;
  min-width: 0;
}
.home-hotseat-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-hotseat-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}
.home-hotseat-trend {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-hotseat-arrow {
  font-size: 1.1rem;
}
.heat-high .home-hotseat-arrow { color: #ef4444; }
.heat-med .home-hotseat-arrow { color: #f59e0b; }
.heat-low .home-hotseat-arrow { color: #94a3b8; }
.home-hotseat-pressure {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.heat-high .home-hotseat-pressure { color: #ef4444; }
.heat-med .home-hotseat-pressure { color: #f59e0b; }
.heat-low .home-hotseat-pressure { color: #94a3b8; }

/* ---- Vegas Lines in Game Cards ---- */
.game-vegas-line {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
}
.game-vegas-line.vegas-covered {
  border-left: 2px solid #22c55e;
}
.game-vegas-line.vegas-missed {
  border-left: 2px solid #ef4444;
}
.vegas-spread {
  color: #e8dcc8;
  font-weight: 500;
}
.vegas-ou {
  color: #94a3b8;
}

/* ---- Engine vs Vegas (Season Sim) ---- */
.sim-vegas-compare {
  margin-top: 16px;
  margin-bottom: 20px;
}
.sim-vegas-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sim-vegas-stat {
  background: #35373d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}
.sim-vegas-num {
  font-family: 'Teko', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
}
.sim-vegas-lbl {
  font-size: 0.875rem;
  color: #e8dcc8;
  margin-top: 4px;
}
.sim-vegas-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .sim-vegas-grid {
    flex-direction: column;
    align-items: center;
  }
  .sim-vegas-stat {
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================================================================
   HOME DASHBOARD — Responsive
   =========================================================================== */

/* Tablet: 2-column grid */
@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-card-rankings {
    grid-column: 1 / -1;
  }
  .home-card-rivalry {
    grid-column: 1 / -1;
  }
  .home-card-portal,
  .home-card-predict,
  .home-card-map {
    grid-column: span 1;
  }
  .home-card-preview {
    grid-column: 1 / -1;
  }
  .home-card-classes,
  .home-card-draft {
    grid-column: span 1;
  }

  .home-rank-factors {
    display: none;
  }
}

/* 3 middle cards → stack at 900px */
@media (max-width: 900px) {
  .home-card-portal,
  .home-card-predict,
  .home-card-map {
    grid-column: 1 / -1;
  }
  .home-card-classes,
  .home-card-draft {
    grid-column: 1 / -1;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-container {
    padding: 12px 10px 32px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .home-hero {
    padding: 24px 14px 20px;
    margin-bottom: 20px;
  }

  .home-title {
    font-size: 2.2em;
  }

  .home-hero-stats .stat-box {
    flex: 0 1 100px;
    min-width: 80px;
  }

  .home-hero-stats .stat-box .stat-value {
    font-size: 1.1rem;
  }

  .home-hero-stats .stat-box .stat-label {
    font-size: 0.65rem;
  }

  .home-predict-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-draft-badge {
    min-width: 80px;
    padding: 10px 12px;
  }

  .home-draft-badge-count {
    font-size: 1.8em;
  }
}

/* Phone */
@media (max-width: 480px) {
  .home-title {
    font-size: 1.8em;
  }

  .home-hero-stats {
    gap: 8px;
  }

  .home-hero-stats .stat-box {
    flex: 0 1 80px;
    min-width: 70px;
    padding: 8px 6px;
  }

  .home-predict-grid {
    grid-template-columns: 1fr;
  }

  .home-draft-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .home-draft-badge {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-align: left;
  }

  .home-draft-badge-count {
    font-size: 1.65rem;
    order: -1;
    min-width: 40px;
  }

  .home-draft-badge-label {
    display: none;
  }
}

/* ===========================================================================
   ERAS TAB — Interactive Enhancements
   =========================================================================== */

/* Clickable coaching carousel chips */
.carousel-chip-clickable {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.carousel-chip-clickable:hover {
  background: #c9a84c !important;
  color: #1a1410 !important;
}

/* Era card expandable headers */
.era-card-header {
  cursor: pointer;
  transition: background 0.15s;
}

.era-card-header:hover {
  background: rgba(201, 168, 76, 0.08);
}

.era-expand-icon {
  float: right;
  font-size: 0.72rem;
  color: #8b9db0;
  transition: transform 0.2s;
}

.era-card-expanded .era-expand-icon {
  color: #c9a84c;
}

.era-expanded-detail {
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding-top: 10px;
  margin-top: 8px;
}

/* Dynasty row → Timeline icon button */
.dynasty-to-timeline {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #8b9db0;
  font-size: 0.875rem;
  padding: 4px 6px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  z-index: 2;
}

.dynasty-to-timeline:hover {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
}

.ranking-row {
  position: relative;
}

/* Coaching dynasty score callout */
.coaching-dynasty-callout {
  background: rgba(26, 20, 16, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-left: 3px solid #c9a84c;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 16px;
}

.coaching-dynasty-callout .callout-formula {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #3d3f44;
  border-radius: 3px;
  padding: 10px 14px;
  color: #e8dcc8;
  font-family: 'Teko', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* Clickable team names in Era Leaders */
.era-team-link:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* ================================================================
   Schedule Tab
   ================================================================ */

.schedule-container { padding: 16px 0; overflow: hidden; }
.schedule-header    { margin-bottom: 16px; padding: 0 clamp(24px, 7vw, 180px); text-align: center; }
.schedule-container .nav-pills { padding: 0 clamp(24px, 7vw, 180px); }
.schedule-subtab    { margin-top: 12px; padding: 0 clamp(24px, 7vw, 180px); }

.schedule-header h3,
.schedule-header .text-muted,
.schedule-subtab > .text-muted,
.schedule-subtab > p.text-muted {
  text-align: center;
}

/* Season summary strip */
.season-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #35373d;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-label {
  font-weight: 600;
  color: #f59e0b;
  font-size: 0.95rem;
}
.summary-stat {
  font-size: 0.875rem;
  color: #94a3b8;
}
.summary-record {
  font-weight: 600;
  color: #f1f5f9;
}
.summary-upset {
  color: #fbbf24;
  font-weight: 600;
}
.summary-streak {
  color: #22c55e;
}

/* Game cards (By Week) */
.game-cards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #35373d;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.game-card:hover {
  background: #44464d;
  transform: translateX(3px);
}
.game-card-active {
  background: #3e4047;
  border-color: rgba(245, 158, 11, 0.3);
}
.game-card-upset {
  border-left: 3px solid #fbbf24;
}
.game-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.game-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  outline: 1px solid rgba(255, 255, 255, 0.3);
}
.game-team-name {
  font-size: 0.875rem;
  font-weight: 500;
}
.game-at {
  color: #4a5568;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin: 0 2px;
  opacity: 0.5;
}
.game-score {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}
.game-score-winner { color: #22c55e; }
.game-score-loser { color: #94a3b8; }
.game-margin {
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.game-conf-tag {
  font-size: 0.8rem;
  color: #8b9db0;
  margin-left: auto;
}
.game-upset-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1410;
  background: #fbbf24;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Scheduled (unplayed) game cards */
/* ── Scheduled Game Preview Cards ── */
.game-card-scheduled {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  border-left: none;
}
.game-card-scheduled:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.sgp-accent {
  height: 3px;
  width: 100%;
  border-radius: 6px 6px 0 0;
}
.sgp-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
}
.sgp-team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sgp-team-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgp-rank {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9a84c;
  flex-shrink: 0;
}
.sgp-at {
  color: #64748b;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.sgp-bar-wrap {
  padding: 0 14px 4px;
}
.sgp-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #2a2520;
  gap: 2px;
}
.sgp-fill-away, .sgp-fill-home {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.sgp-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Teko', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 2px;
}
.sgp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px;
  gap: 8px;
}
.sgp-meta-info {
  font-size: 0.7rem;
  color: #7a8a9b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgp-conf {
  font-size: 0.7rem;
  color: #8b9db0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Week Narrative Banner ── */
.week-narrative {
  background: linear-gradient(135deg, #2a2520 0%, #1e1b17 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 10px 0 6px;
}
.week-narrative-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.92rem;
  color: #e8dcc8;
  margin: 0 0 4px;
  line-height: 1.5;
}
.week-narrative-sub {
  font-size: 0.75rem;
  color: #7a8a9b;
  margin: 0;
}

/* ── Game Tier Headers ── */
.game-tier-header {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 0 4px;
  margin-top: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-tier-header:first-child { margin-top: 0; }
.game-tier-must  { color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.game-tier-worth { color: #e8dcc8; border-color: rgba(232,220,200,0.15); }
.game-tier-slate { color: #7a8a9b; border-color: rgba(122,138,155,0.15); }

/* ═══════════════════════════════════════════════════════════════
   BETTING EDGE DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
.betting-container { padding: 16px 0; }
.betting-subtab { margin-top: 12px; padding: 0 clamp(24px, 7vw, 180px); }

/* Model vs Vegas summary */
.mvv-summary-grid {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.mvv-stat-card {
  flex: 1; min-width: 120px; text-align: center;
  background: #35373d; border-radius: 8px; padding: 14px 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.mvv-stat-card.mvv-stat-profit { border-color: rgba(34,197,94,0.4); }
.mvv-stat-pct { font-family: 'Teko', sans-serif; font-size: 2rem; font-weight: 700; color: #e8dcc8; }
.mvv-stat-record { font-size: 0.78rem; color: #94a3b8; }
.mvv-stat-label { font-size: 0.72rem; color: #7a8a9b; margin-top: 4px; }
.mvv-profit-badge {
  font-size: 0.65rem; font-weight: 700; color: #22c55e;
  background: rgba(34,197,94,0.12); border-radius: 8px;
  padding: 2px 8px; margin-top: 6px; display: inline-block;
}

/* Model vs Vegas table */
.mvv-table-wrap { margin-top: 8px; }
.mvv-table-header {
  display: flex; gap: 4px; padding: 6px 12px;
  font-size: 0.7rem; font-weight: 700; color: #7a8a9b;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid #3e4047;
}
.mvv-th-teams { flex: 2; } .mvv-th-edge, .mvv-th-model, .mvv-th-vegas, .mvv-th-result { flex: 0 0 60px; text-align: center; }
.mvv-row {
  display: flex; gap: 4px; padding: 8px 12px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem; color: #e8dcc8;
}
.mvv-row:hover { background: rgba(255,255,255,0.03); }
.mvv-cell-teams { flex: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvv-cell-edge, .mvv-cell-model, .mvv-cell-vegas, .mvv-cell-result { flex: 0 0 60px; text-align: center; }
.edge-high { color: #f59e0b; font-weight: 700; }
.edge-med  { color: #e8dcc8; font-weight: 600; }
.edge-low  { color: #94a3b8; }
.ats-hit   { color: #22c55e; font-weight: 700; }
.ats-miss  { color: #ef4444; font-weight: 600; }

/* ATS Leaderboards */
.ats-dual-board { display: flex; gap: 24px; }
.ats-half { flex: 1; }
.ats-half-title { font-family: 'Cinzel', serif; font-size: 0.85rem; margin-bottom: 10px; }
.ats-title-best  { color: #22c55e; }
.ats-title-worst { color: #ef4444; }
.ats-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.82rem;
}
.ats-rank { font-family: 'Teko', sans-serif; font-size: 0.85rem; color: #7a8a9b; min-width: 18px; text-align: right; }
.ats-color-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; outline: 1px solid rgba(255,255,255,0.3); }
.ats-team { flex: 1; color: #e8dcc8; font-weight: 500; }
.ats-record { color: #94a3b8; font-size: 0.78rem; }
.ats-pct { font-family: 'Teko', sans-serif; font-size: 0.95rem; font-weight: 600; min-width: 36px; text-align: right; }
.ats-pct-good { color: #22c55e; }
.ats-pct-bad  { color: #ef4444; }

/* Conference ATS */
.ats-conf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ats-conf-name { font-weight: 600; min-width: 120px; font-size: 0.85rem; }
.ats-conf-bar-track { flex: 1; height: 10px; background: #3e4047; border-radius: 5px; overflow: hidden; }
.ats-conf-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.ats-conf-record { font-size: 0.78rem; color: #94a3b8; min-width: 100px; text-align: right; }

/* ATS Splits */
.ats-splits-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.ats-split-card {
  flex: 1; min-width: 220px; background: #35373d; border-radius: 8px;
  padding: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.ats-split-title { font-family: 'Cinzel', serif; font-size: 0.8rem; color: #c9a84c; margin-bottom: 10px; }
.ats-split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.ats-split-fill { height: 100%; }
.ats-split-labels {
  display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; margin-top: 6px;
}

/* Unit Tracker */
.unit-summary-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

@media (max-width: 768px) {
  .ats-dual-board { flex-direction: column; }
  .ats-splits-grid { flex-direction: column; }
  .mvv-summary-grid { flex-direction: column; }
}

.scheduled-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.12);
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.game-schedule-scheduled {
  opacity: 0.8;
}
.game-schedule-scheduled:hover {
  opacity: 1;
}

/* Game expanded detail */
.game-expanded {
  background: #2f3137;
  padding: 14px 18px;
  border-radius: 0 0 6px 6px;
  margin-top: -2px;
  margin-bottom: 4px;
}
.game-detail-grid {
  display: flex;
  align-items: center;
  gap: 20px;
}
.game-detail-team {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.game-detail-name {
  font-weight: 600;
  font-size: 0.92em;
}
.game-detail-conf {
  font-size: 0.8rem;
  color: #8b9db0;
}
.game-detail-record {
  font-size: 0.8rem;
  color: #94a3b8;
}
.game-detail-stat {
  font-size: 0.8rem;
  color: #94a3b8;
}
.game-detail-vs {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}
.game-detail-final {
  margin-top: 10px;
  font-size: 0.875rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}
.game-detail-blowout {
  color: #f59e0b;
  font-weight: 600;
  margin-left: 8px;
}

/* Game preview (scheduled game expanded) */
.game-detail-venue {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #8b9db0;
}
.game-preview-prediction {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  text-align: center;
}
.game-preview-winner {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.game-preview-conf {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}
.game-preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}
.game-preview-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.game-preview-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
  min-width: 36px;
  text-align: center;
}
.game-preview-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 42px;
  text-align: center;
}

/* Conference insight in projection tab */
.sim-conf-insight {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  padding: 4px 12px 8px;
}

/* Team Schedule rows */
.game-schedule-row {
  gap: 12px;
}
.schedule-week {
  width: 48px;
  flex-shrink: 0;
}
.schedule-week-num {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}
.schedule-ha {
  width: 32px;
  flex-shrink: 0;
  text-align: center;
}
.ha-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}
.ha-home {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}
.ha-away {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
}
.schedule-opponent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  flex: 1;
}
.schedule-opp-name {
  font-size: 0.875rem;
  font-weight: 500;
}
.schedule-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 60px;
}
.schedule-dash {
  color: #94a3b8;
}
.game-wl-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}
.wl-win {
  color: #15803d;
  background: rgba(34, 197, 94, 0.18);
}
.wl-loss {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.18);
}
.running-record {
  font-size: 0.8rem;
  color: #94a3b8;
  min-width: 40px;
  text-align: right;
}

/* Season Replay */
.sim-accuracy-callout {
  background: #35373d;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}
.sim-accuracy-number {
  font-family: 'Teko', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
}
.sim-accuracy-label {
  font-size: 0.92em;
  color: #e2e8f0;
  margin-top: 4px;
}
.sim-accuracy-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 8px;
  font-style: italic;
}
.sim-computing {
  color: #f59e0b;
  font-size: 0.92em;
}
.sim-section {
  margin-top: 20px;
}
.sim-section h4 {
  font-size: 1em;
  color: #f59e0b;
  margin-bottom: 10px;
}
.sim-record-row,
.sim-upset-row,
.sim-close-row {
  gap: 12px;
}
.sim-team-name {
  min-width: 150px;
  font-weight: 500;
  font-size: 0.875rem;
}
.sim-actual-record,
.sim-pred-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.sim-record-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}
.sim-record-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.sim-delta {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}
.delta-pos { color: #22c55e; }
.delta-neg { color: #ef4444; }
.delta-zero { color: #94a3b8; }
.sim-upset-info,
.sim-close-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sim-upset-matchup,
.sim-close-matchup {
  font-size: 0.875rem;
  font-weight: 500;
}
.sim-upset-detail,
.sim-close-detail {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Share button (Rankings) */
.share-section {
  margin-top: 12px;
}
.btn-share {
  background: transparent;
  color: #f59e0b;
  border: 1px solid #f59e0b;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  width: 100%;
}
.btn-share:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
  .game-card {
    flex-wrap: wrap;
    gap: 6px;
  }
  .game-team {
    min-width: 120px;
  }
  .game-conf-tag {
    display: none;
  }
  .schedule-opponent {
    min-width: 100px;
  }
  .sim-team-name {
    min-width: 100px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   2026 Season Preview Card (Home)
   ═══════════════════════════════════════════════════════════════ */

.home-banner-preview {
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(245,158,11,0.10) 100%);
}
.home-banner-preview .home-banner-icon { color: #c9a84c; }

.home-preview-content {
  padding: 16px 20px;
}

.home-preview-champion {
  text-align: center;
  border: 2px solid #c9a84c;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(201, 168, 76, 0.06);
}

.home-preview-trophy {
  font-size: 1.8em;
  margin-bottom: 2px;
}

.home-preview-champ-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.1;
}

.home-preview-champ-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-preview-seeds {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-preview-seed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.home-preview-seed:hover {
  background: rgba(255, 255, 255, 0.04);
}

.home-preview-seed-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.home-preview-seed-info {
  flex: 1;
  min-width: 0;
}

.home-preview-seed-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.home-preview-seed-conf {
  font-size: 0.8rem;
  color: #8b9db0;
}

.home-preview-seed-score {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #c9a84c;
}

/* ═══════════════════════════════════════════════════════════════
   Top Recruiting Classes Card (Home)
   ═══════════════════════════════════════════════════════════════ */

.home-banner-classes {
  background: linear-gradient(135deg, rgba(34,197,94,0.10) 0%, rgba(59,130,246,0.08) 100%);
}
.home-banner-classes .home-banner-icon { color: #22c55e; }

.home-classes-list {
  padding: 8px 16px 16px;
}

.home-classes-year {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.home-classes-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 3px;
}

.home-classes-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.home-classes-rank {
  width: 24px;
  text-align: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9a84c;
  flex-shrink: 0;
}

.home-classes-color {
  width: 4px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}

.home-classes-info {
  flex: 1;
  min-width: 0;
}

.home-classes-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.home-classes-meta {
  font-size: 0.8rem;
  color: #8b9db0;
}

.home-classes-rating {
  text-align: right;
  flex-shrink: 0;
}

.home-classes-rating-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #22c55e;
}

.home-classes-rating-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   "Why Trust This?" Panel (Predict)
   ═══════════════════════════════════════════════════════════════ */
.predict-trust-panel {
  margin: 20px 0;
  border: 1px solid #3e4047;
  border-radius: 10px;
  overflow: hidden;
  background: #2f3136;
}

.predict-trust-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
  user-select: none;
}

.predict-trust-toggle:hover {
  background: #35373d;
}

.predict-trust-toggle .trust-toggle-icon {
  color: #22c55e;
}

.predict-trust-toggle .trust-toggle-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  color: #94a3b8;
}

.predict-trust-toggle.open .trust-toggle-arrow {
  transform: rotate(180deg);
}

.predict-trust-body {
  padding: 16px;
  border-top: 1px solid #3e4047;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
}

.predict-trust-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

.predict-trust-metrics {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.predict-trust-metrics .stat-box {
  flex: 1;
  min-width: 100px;
  max-width: 180px;
}

.predict-trust-details {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.predict-trust-details p {
  margin: 4px 0;
  padding-left: 12px;
  border-left: 2px solid #3e4047;
}

@media (max-width: 768px) {
  .home-preview-seeds {
    gap: 2px;
  }
  .predict-trust-metrics {
    flex-direction: column;
    align-items: center;
  }
  .predict-trust-metrics .stat-box {
    max-width: 100%;
  }
}

/* ================================================================
   Season Projections (2026)
   ================================================================ */

.sim-projection-hero {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(59,130,246,0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.sim-projection-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sim-projection-title {
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 6px;
}

.sim-projection-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 16px;
  font-style: italic;
}

.sim-projection-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sim-projection-stats .stat-box {
  flex: 1;
  min-width: 100px;
  max-width: 160px;
}

/* Conference Standings */
.sim-conf-group {
  margin-bottom: 16px;
}

.sim-conf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 6px;
  margin-bottom: 4px;
}

.sim-conf-name {
  font-weight: 700;
  font-size: 0.92em;
  color: #c9a84c;
}

.sim-conf-champ {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

.sim-conf-row {
  gap: 12px;
}

.sim-conf-champ-row {
  border-left: 3px solid #c9a84c;
}

/* Playoff Bracket */
.sim-playoff-bracket {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.sim-playoff-seed {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #35373d;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-playoff-bye {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, #35373d 0%, rgba(245,158,11,0.06) 100%);
}

.sim-playoff-seed-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sim-playoff-seed-info {
  flex: 1;
  min-width: 0;
}

.sim-playoff-team {
  font-weight: 600;
  font-size: 0.875rem;
}

.sim-playoff-record {
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: 'Teko', sans-serif;
}

.sim-playoff-matchup {
  font-size: 0.8rem;
  color: #8b9db0;
  text-align: right;
  flex-shrink: 0;
}

.sim-playoff-bye .sim-playoff-matchup {
  color: #f59e0b;
  font-weight: 600;
}

/* Toss-up Watch */
.sim-tossup-row {
  border-left: 3px solid rgba(251, 191, 36, 0.4);
}

/* Sim controls bar — compact inline selector + hint */
.sim-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sim-controls-bar .selectize-control,
.sim-controls-bar select {
  margin-bottom: 0 !important;
}
.sim-controls-hint {
  font-size: 0.82rem;
  color: #7a8a9b;
  font-style: italic;
  flex: 1;
}

/* Champion Callout */
.sim-champion-callout {
  text-align: center;
  background: rgba(201, 168, 76, 0.08);
  border: 2px solid #c9a84c;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 8px;
}
.sim-champion-trophy {
  font-size: 2.5em;
  margin-bottom: 4px;
}
.sim-champion-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sim-champion-name {
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.1;
}
.sim-champion-record {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  color: #94a3b8;
}

/* Bracket Rounds */
.bracket-round {
  margin-bottom: 16px;
}
.bracket-round-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  padding-left: 4px;
}
.bracket-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px;
}
.bracket-game {
  display: flex;
  flex-direction: column;
  background: #35373d;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.bracket-winner {
  background: rgba(34, 197, 94, 0.08);
}
.bracket-loser {
  opacity: 0.5;
}
.bracket-seed {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bracket-name {
  font-weight: 500;
  font-size: 0.875rem;
  flex: 1;
}
.bracket-pct {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #22c55e;
}

/* Home Projection Banner */
/* ---- Season Pulse Banner ---- */
.home-pulse-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(201, 168, 76, 0.06) 50%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 10px 24px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  overflow: hidden;
}
.home-pulse-banner:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(201, 168, 76, 0.10) 50%, rgba(59, 130, 246, 0.12) 100%);
  transform: translateY(-1px);
}
.home-pulse-banner:hover .pulse-chevron {
  animation-play-state: running;
}
.home-pulse-live {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
}
.home-pulse-live:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(59, 130, 246, 0.10) 100%);
}
.pulse-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Runway row: chevrons → number → chevrons */
.pulse-runway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pulse-chevron {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #f59e0b;
  opacity: 0.1;
  animation: chev-flash 1.8s ease-in-out infinite;
}
/* Staggered flash — outer first, inner last (converging) */
.pulse-chev-1 { animation-delay: 0s; }
.pulse-chev-2 { animation-delay: 0.25s; }
.pulse-chev-3 { animation-delay: 0.5s; }
/* Flipped (right side) mirrors the same timing */
.pulse-chev-flip.pulse-chev-3 { animation-delay: 0.5s; }
.pulse-chev-flip.pulse-chev-2 { animation-delay: 0.25s; }
.pulse-chev-flip.pulse-chev-1 { animation-delay: 0s; }

@keyframes chev-flash {
  0%, 100% { opacity: 0.08; }
  30%, 50% { opacity: 1; text-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
  70%      { opacity: 0.08; }
}

.pulse-countdown {
  flex-shrink: 0;
  text-align: center;
  min-width: 72px;
}
.pulse-countdown-num {
  font-family: 'Teko', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.pulse-week .pulse-countdown-num {
  font-size: 2.2em;
  color: #22c55e;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}
.pulse-countdown-label {
  font-size: 0.72rem;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pulse-info {
  text-align: center;
  min-width: 0;
}
.pulse-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8dcc8;
  margin-bottom: 2px;
}
.pulse-storyline {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 4px;
}
.pulse-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f59e0b;
}
@media (max-width: 480px) {
  .pulse-banner-content {
    gap: 6px;
  }
  .pulse-countdown-num {
    font-size: 2.2em;
  }
  .pulse-chevron {
    font-size: 1em;
  }
  .pulse-title {
    font-size: 0.92em;
  }
}

/* ================================================================
   Loading Skeletons (Home Dashboard)
   ================================================================ */

.skeleton-container {
  padding: 8px 16px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3e4047;
  flex-shrink: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line {
  height: 10px;
  border-radius: 3px;
  background: #3e4047;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line-long {
  width: 70%;
}

.skeleton-line-short {
  width: 40%;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@media (max-width: 768px) {
  .sim-projection-stats {
    flex-direction: column;
    align-items: center;
  }
  .sim-projection-stats .stat-box {
    max-width: 100%;
  }
  .sim-playoff-bracket {
    grid-template-columns: 1fr;
  }

  /* Season Sim mobile polish */
  .sim-projection-hero {
    padding: 16px 14px;
  }
  .sim-projection-title {
    font-size: 1.8em;
  }
  .sim-champion-callout {
    padding: 16px 12px;
  }
  .sim-champion-name {
    font-size: 1.8em;
  }
  .sim-champion-trophy {
    font-size: 2em;
  }
  .bracket-games {
    grid-template-columns: 1fr;
  }
  .bracket-game {
    min-width: 0;
  }
  .bracket-name {
    font-size: 0.875rem;
  }

  /* Standings rows — stack label/value */
  .sim-record-row,
  .sim-conf-row,
  .sim-tossup-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .sim-team-name {
    min-width: 100px;
    flex: 1;
  }
  .sim-actual-record,
  .sim-pred-record {
    min-width: 60px;
  }

  /* Conference groups tighter */
  .sim-conf-header {
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sim-conf-champ {
    width: 100%;
  }

  /* Team detail panel: stack columns */
  .team-detail-panel .row {
    flex-direction: column;
  }
  .team-detail-panel .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .sim-projection-title {
    font-size: 1.4em;
  }
  .sim-champion-name {
    font-size: 1.5em;
  }
  .sim-record-label {
    font-size: 0.65rem;
  }
  .sim-record-value {
    font-size: 1em;
  }
  .sim-delta {
    font-size: 1em;
  }
  .bracket-team {
    padding: 6px 8px;
    gap: 6px;
  }
  .bracket-seed {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }
  .bracket-pct {
    font-size: 0.95rem;
  }
  .bracket-round-label {
    font-size: 0.8rem;
  }
  .sim-upset-matchup,
  .sim-close-matchup {
    font-size: 0.875rem;
  }
  .sim-upset-detail,
  .sim-close-detail {
    font-size: 0.72rem;
  }
}

/* ====================================================================
   VEGAS PULSE HOME CARD
   ==================================================================== */

.home-card-vegas {
  grid-column: span 3;
}

.home-banner-vegas {
  background: linear-gradient(135deg, #1a3a2a 0%, #2a4a3a 50%, #1a2a1a 100%) !important;
}

.home-vegas-content {
  padding: 10px 14px;
  cursor: pointer;
}

.home-vegas-season-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 8px;
}

.home-vegas-stats-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 10px;
}

.home-vegas-stat {
  text-align: center;
  flex: 1;
}

.home-vegas-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1.1;
}

.home-vegas-lbl {
  font-size: 0.8rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-vegas-upset {
  text-align: center;
  font-size: 0.875rem;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.home-vegas-upset-label {
  color: #94a3b8;
  margin-right: 4px;
}
.home-vegas-section {
  padding-top: 8px; border-top: 1px solid rgba(201,168,76,0.1); margin-top: 6px;
}
.home-vegas-section-title {
  font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #c9a84c;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}
.home-vegas-leaderboard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.home-vegas-lb-col { display: flex; flex-direction: column; gap: 2px; }
.home-vegas-lb-header {
  font-family: 'Teko', sans-serif; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 2px;
}
.home-vegas-lb-row {
  display: flex; align-items: center; gap: 5px; font-size: 0.8rem; padding: 1px 0;
}
.home-vegas-lb-rank {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; color: #c9a84c;
  min-width: 14px; text-align: center;
}

/* Conference ATS grid */
.home-vegas-conf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.home-vegas-conf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
}
.hvc-conf {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.hvc-pct {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8dcc8;
}
/* Vegas Pulse callouts */
.home-vegas-callout-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.home-vegas-callout {
  flex: 1 1 180px;
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.home-vegas-callout-sharp { border-left: 3px solid #22c55e; }
.home-vegas-callout-fade  { border-left: 3px solid #ef4444; }
/* My Team Vegas personalization */
.home-vegas-myteam {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.home-vegas-myteam-header {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.home-vegas-myteam-label {
  font-family: 'Teko', sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8;
}
.home-vegas-myteam-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.home-vegas-myteam-stat { text-align: center; min-width: 50px; }
.home-vegas-myteam-val {
  font-family: 'Teko', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: #e8dcc8; line-height: 1.1;
}
.home-vegas-myteam-lbl {
  font-size: 0.68rem; color: #7a8a9b; text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Below-CC grid spacing */
.home-grid-below-cc { margin-top: 2rem; }
.vegas-callout-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.vegas-callout-body { min-width: 0; }
.vegas-callout-label {
  font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8;
}
.vegas-callout-text { font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }
/* Conference ATS hero highlight */
.home-vegas-conf-hero {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 6px;
  margin-bottom: 6px;
}
.hvc-hero-conf {
  font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700;
}
.hvc-hero-pct {
  font-family: 'Teko', sans-serif; font-size: 1.65rem; font-weight: 700;
  color: #e8dcc8; line-height: 1;
}
.hvc-hero-label {
  font-size: 0.72rem; color: #94a3b8;
}

/* ====================================================================
   RIVALRY BETTING HISTORY (Rivals tab)
   ==================================================================== */

.rivalry-vegas-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  padding: 8px 0;
}

.rivalry-vegas-stat {
  text-align: center;
}

.rivalry-vegas-label {
  display: block;
  font-size: 0.72rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rivalry-vegas-value {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1.2;
}

/* ====================================================================
   VEGAS TRENDS TAB (History > Vegas Trends)
   ==================================================================== */

.vegas-ats-board {
  margin-top: 8px;
}

.vegas-section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.vegas-ats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}

.vegas-ats-row:hover {
  background: rgba(201, 168, 76, 0.06);
}

.vegas-rank {
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.vegas-team-info {
  flex: 0 0 180px;
  min-width: 120px;
}

.vegas-stat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vegas-stat-values {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  align-items: baseline;
}

.vegas-cover-pct {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* Sharp picks */
.vegas-sharp-section {
  margin-top: 4px;
}

.vegas-sharp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}

.vegas-sharp-card {
  background: rgba(42, 37, 32, 0.5);
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.sharp-matchup {
  font-size: 0.92em;
  margin-bottom: 4px;
}

.sharp-details {
  font-size: 0.875rem;
}

.sharp-spread {
  color: #f59e0b;
  font-weight: 600;
}

/* Mobile: stack O/U columns */
@media (max-width: 768px) {
  .vegas-team-info {
    flex: 0 0 120px;
    min-width: 90px;
  }
  .vegas-stat-values {
    flex-wrap: wrap;
    gap: 6px;
  }
  .vegas-sharp-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================
   MY TEAM PICKER (Navbar)
   ==================================================================== */

.my-team-picker-wrapper {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.my-team-picker-wrapper .form-group {
  margin-bottom: 0;
}

.my-team-picker-wrapper .selectize-control {
  min-width: 100px;
}

/* Kill any sharp-edged outlines on all wrapper layers */
.my-team-picker-wrapper .selectize-control,
.my-team-picker-wrapper .selectize-control .selectize-input,
.my-team-picker-wrapper .form-group,
.my-team-picker-wrapper .form-control {
  border-radius: 20px !important;
  outline: none !important;
  box-shadow: none !important;
}

.my-team-picker-wrapper .selectize-input {
  background: rgba(201, 168, 76, 0.08) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 20px !important;
  padding: 3px 12px !important;
  font-size: 0.8rem !important;
  min-height: 28px !important;
  color: #e8dcc8 !important;
  transition: border-color 0.2s, background 0.2s;
}

.my-team-picker-wrapper .selectize-input:hover,
.my-team-picker-wrapper .selectize-input.focus {
  border-color: #c9a84c !important;
  background: rgba(201, 168, 76, 0.15) !important;
}

.my-team-picker-wrapper .selectize-input .item {
  color: #c9a84c !important;
  font-weight: 600;
}

.my-team-picker-wrapper .selectize-input input::placeholder {
  color: #8b9db0 !important;
}

.my-team-picker-wrapper .selectize-dropdown {
  background: #2a2520 !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 10px !important;
}

.my-team-picker-wrapper .selectize-dropdown .option {
  color: #e8dcc8 !important;
  padding: 6px 14px !important;
  font-size: 0.875rem !important;
}

.my-team-picker-wrapper .selectize-dropdown .option.active {
  background: rgba(201, 168, 76, 0.2) !important;
  color: #c9a84c !important;
}

/* My Team hero stat highlight */
.my-team-hero-stat .stat-box {
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  background: rgba(201, 168, 76, 0.06) !important;
}

/* My Team portal chip */
.portal-chip-myteam {
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  font-weight: 700 !important;
}

/* ====================================================================
   VEGAS COMPARISON PANEL (Predict Tab)
   ==================================================================== */

.predict-vegas-panel {
  margin: 16px 0;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid #3e4047;
  background: #2f3136;
}

.predict-vegas-panel.vegas-agree {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.predict-vegas-panel.vegas-disagree {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.predict-vegas-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #e8dcc8;
  margin-bottom: 12px;
}

.predict-vegas-icon {
  color: #c9a84c;
}

.predict-vegas-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.predict-vegas-side {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.predict-vegas-label {
  font-size: 0.72rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.predict-vegas-pick {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8dcc8;
  line-height: 1.2;
}

.predict-vegas-verdict {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.predict-vegas-verdict.vegas-agree {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.predict-vegas-verdict.vegas-disagree {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.predict-vegas-ou {
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #8b9db0;
}

/* ====================================================================
   PREDICTION NARRATIVE (Predict Tab)
   ==================================================================== */

.predict-narrative {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 18px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid #c9a84c;
  border-radius: 10px;
  font-size: 0.92em;
  color: #e8dcc8;
  line-height: 1.55;
}

.predict-narrative-icon {
  color: #c9a84c;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ====================================================================
   FACTOR CROSS-LINKS (Predict Tab)
   ==================================================================== */

.factor-link {
  cursor: pointer;
  color: #c9a84c;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.factor-link:hover {
  color: #fbbf24;
  text-decoration-style: solid;
}

/* ====================================================================
   RIVALRY PREDICTION FOOTER ENHANCEMENTS
   ==================================================================== */

.rm-predict-factors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.rm-factor-chip {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.2);
  color: #e8dcc8;
  white-space: nowrap;
}

.rm-predict-vegas {
  margin-top: 6px;
  font-size: 0.875rem;
}

.rm-vegas-agree {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 10px;
  border-radius: 10px;
}

.rm-vegas-disagree {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ====================================================================
   MY TEAM PICKER — Mobile
   ==================================================================== */

@media (max-width: 991px) {
  .my-team-picker-wrapper {
    padding: 8px 16px;
    width: 100%;
  }
  .my-team-picker-wrapper .selectize-control {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .predict-vegas-body {
    flex-direction: column;
    gap: 10px;
  }
  .predict-vegas-side {
    max-width: none;
  }
  .rm-predict-factors {
    gap: 4px;
  }
  .rm-factor-chip {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
}

/* ====================================================================
   SEASON OUTLOOK (Team Schedule - 2026)
   ==================================================================== */

.team-outlook-panel {
  background: #35373d;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.outlook-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.outlook-record,
.outlook-expected,
.outlook-marquee {
  text-align: center;
}

.outlook-record-label,
.outlook-expected-label,
.outlook-marquee-label {
  display: block;
  font-size: 0.72rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.outlook-record-val {
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1;
}

.outlook-expected-val {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
}

.outlook-marquee-val {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1;
}

/* Difficulty Arc */
.outlook-arc {
  margin-bottom: 12px;
}

.outlook-arc-label {
  font-size: 0.72rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-align: center;
}

.outlook-arc-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 80px;
  padding: 0 8px;
}

.outlook-arc-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 48px;
  cursor: default;
}

.outlook-bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.outlook-bar-wk {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
}

.outlook-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 2px;
}

.outlook-bar-tough {
  position: relative;
}

.outlook-bar-tough::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  border-radius: 1px;
}

/* Toughest stretch callout */
.outlook-tough-stretch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  font-size: 0.875rem;
}

.outlook-tough-icon {
  color: #ef4444;
  flex-shrink: 0;
}

.outlook-tough-label {
  font-weight: 600;
  color: #e8dcc8;
  white-space: nowrap;
}

.outlook-tough-detail {
  color: #94a3b8;
}

/* Win probability bar in game rows */
.outlook-prob {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.outlook-prob-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.outlook-prob-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.outlook-prob-pct {
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

/* Projected W/L pills */
.wl-projected {
  opacity: 0.7;
  border: 1px dashed;
}

.wl-win.wl-projected {
  border-color: rgba(34, 197, 94, 0.4);
}

.wl-loss.wl-projected {
  border-color: rgba(220, 38, 38, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .outlook-header {
    gap: 16px;
  }
  .outlook-record-val,
  .outlook-expected-val,
  .outlook-marquee-val {
    font-size: 1.8em;
  }
  .outlook-arc-bars {
    gap: 2px;
    height: 60px;
  }
  .outlook-bar-wk {
    font-size: 0.55em;
  }
  .outlook-tough-stretch {
    flex-wrap: wrap;
  }
  .outlook-prob {
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .team-outlook-panel {
    padding: 12px 14px;
  }
  .outlook-record-val,
  .outlook-expected-val,
  .outlook-marquee-val {
    font-size: 1.5em;
  }
  .outlook-arc-bars {
    height: 48px;
    gap: 1px;
  }
  .outlook-bar-dot {
    display: none;
  }
}

/* ================================================================
   Compare Tab Overhaul — Coaching Eras / Trajectory / Portal
   ================================================================ */

/* -- Year-by-year record strip (Program Trajectory) -- */
.compare-yr-strip {
  display: flex;
  gap: 4px;
  margin: 6px 0 10px;
}
.compare-yr-cell {
  flex: 1;
  text-align: center;
  border-radius: 6px;
  padding: 4px 2px;
  min-width: 0;
}
.compare-yr-year {
  font-size: 0.65rem;
  color: #8b9db0;
  letter-spacing: 0.04em;
}
.compare-yr-rec {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8dcc8;
  line-height: 1.2;
}
.compare-yr-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* -- Coaching era bars -- */
.coach-era-bars {
  margin-top: 8px;
}
.coach-era-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.coach-era-yr {
  font-size: 0.72rem;
  color: #8b9db0;
  width: 32px;
  flex-shrink: 0;
  text-align: right;
}
.coach-era-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  overflow: hidden;
}
.coach-era-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s;
}
.coach-era-rec {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  width: 36px;
  flex-shrink: 0;
}
.coach-prev-stops {
  font-size: 0.8rem;
  color: #8b9db0;
  font-style: italic;
  margin-top: 2px;
}

/* -- Coaching trajectory badge -- */
.coach-trajectory-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coach-badge-improving {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.coach-badge-declining {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}
.coach-badge-stable {
  background: rgba(234,179,8,0.12);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.25);
}

/* -- Portal outgoing table -- */
.portal-outgoing-tbl {
  opacity: 0.7;
}
.portal-outgoing-tbl tr {
  background: rgba(239,68,68,0.04) !important;
}
.portal-dest-cell {
  font-size: 0.875rem;
  color: #8b9db0;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -- Portal position flow badges -- */
.portal-pos-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 8px;
}
.portal-pos-gain, .portal-pos-loss {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.portal-pos-gain {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}
.portal-pos-loss {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
}
.portal-flow-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 2px;
}

/* -- FBS ref in compare (reuse matchup-fbs-ref) -- */
.compare-section .matchup-fbs-ref {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: -4px;
  margin-bottom: 6px;
}

/* ====================================================================
   5-TAB OVERHAUL: New Component Styles
   ==================================================================== */

/* ---- FBS Rank Badges (Teams detail) ---- */
.fbs-rank-badge {
  text-align: center;
  font-size: 0.72rem;
  color: #8b9db0;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ---- Portal Net Badge (Teams detail) ---- */
.portal-net-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #3e4047;
}
.portal-net-positive {
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
}
.portal-net-negative {
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}

/* ---- Recent Form Dots (Teams detail) ---- */
.recent-form-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.form-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
}
.form-win {
  background: rgba(34,197,94,0.18);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.35);
}
.form-loss {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ---- Recruit Letter Grade (Teams detail) ---- */
.recruit-grade {
  margin-top: 8px;
  text-align: center;
}
.recruit-grade-mini {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 14px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(0,0,0,0.25);
}

/* ---- Key Edges Chips (Predict) ---- */
.predict-key-edges {
  margin: 14px 0;
  padding: 12px 16px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
}
.predict-key-edges-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.key-edges-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.key-edge-chip {
  font-size: 0.875rem;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid;
  background: rgba(0,0,0,0.2);
  color: #e8dcc8;
  white-space: nowrap;
}

/* ---- Upset / Toss-Up Alert Banner (Predict) ---- */
.upset-alert-banner {
  text-align: center;
  padding: 8px 16px;
  margin: 10px 0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
}
.tossup-alert {
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}

/* ---- H2H Matchup Strip (Predict) ---- */
.predict-h2h-strip {
  margin: 14px 0;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 10px;
}
.h2h-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 10px;
}
.h2h-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.h2h-game-chip {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(0,0,0,0.2);
  color: #e8dcc8;
  white-space: nowrap;
}

/* ---- FBS Ref under Predict factor bars ---- */
.matchup-fbs-ref {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #8b9db0;
  padding: 0 4px;
  margin-top: -2px;
  margin-bottom: 6px;
}

/* ---- Movers Strip (Rankings) ---- */
.movers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 10px;
}
.mover-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.mover-riser {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
}
.mover-faller {
  color: #ef4444;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
}

/* ---- Conference Cluster Badges (Rankings) ---- */
.conf-cluster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 10px;
}
.conf-cluster-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.conf-cluster-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(0,0,0,0.15);
}

/* ---- Factor Best Tag (Rankings) ---- */
.factor-best-tag {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  margin-left: 6px;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid;
  letter-spacing: 0.04em;
}

/* ---- "Go to Teams" link in ranking detail ---- */
.rd-team-link {
  text-align: right;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}
.rd-team-link-btn {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 12px;
  border: 1px solid;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.rd-team-link-btn:hover {
  opacity: 0.8;
  text-decoration: none;
}
.rd-team-link-btn .fa {
  margin-right: 3px;
}

/* ---- Top 25 Divider (Rankings) ---- */
.top25-divider {
  text-align: center;
  padding: 10px 0;
  margin: 6px 0;
  border-top: 1px dashed rgba(201,168,76,0.3);
  border-bottom: 1px dashed rgba(201,168,76,0.3);
}
.top25-divider span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Draft Sparkline (Draft tab) ---- */
.draft-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 4px;
}
.draft-sparkline .spark-bar {
  border-radius: 3px 2px 0 0;
  min-width: 6px;
}

/* ---- Draft 1st Round Rate Badge ---- */
.draft-round-rate {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  margin-left: 4px;
}

/* ---- Home Rankings Mover ---- */
.home-ranks-mover {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #e8dcc8;
  background: rgba(34,197,94,0.06);
  border-top: 1px solid rgba(34,197,94,0.15);
  margin-top: 4px;
}

/* ---- Home Draft Pipeline Note ---- */
.home-draft-pipeline-note {
  text-align: center;
  font-size: 0.875rem;
  color: #e8dcc8;
  padding: 8px 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Year-by-year draft leaders */
.home-draft-yr-leaders {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.home-draft-yr-title {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 6px;
}
.home-draft-yr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.home-draft-yr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
}
.home-draft-yr-year {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  color: #8b9db0;
  font-size: 1.1rem;
}
.home-draft-yr-school {
  font-weight: 600;
}
.home-draft-yr-count {
  font-family: 'Teko', sans-serif;
  color: #94a3b8;
  font-size: 1.1rem;
}

/* ---- Coaching Tenure Bar (Home Hot Seat) ---- */
.coaching-tenure-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.tenure-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* ---- Mobile for new components ---- */
@media (max-width: 768px) {
  .key-edges-chips { gap: 4px; }
  .key-edge-chip { font-size: 0.8rem; padding: 3px 8px; }
  .movers-strip { gap: 4px; padding: 6px 8px; }
  .mover-badge { font-size: 0.72rem; padding: 2px 8px; }
  .conf-cluster-badges { gap: 4px; padding: 4px 8px; }
  .h2h-game-chips { gap: 4px; }
  .h2h-game-chip { font-size: 0.72rem; }
  .predict-h2h-strip { padding: 8px 10px; }
}

/* ====================================================================
   SEASON SIM — Enhanced Projection Tabs & Bracket
   ==================================================================== */

/* Projection sub-tab pills — larger, dramatic */
.sim-proj-tabs-wrapper .nav-pills {
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  justify-content: center;
}
.sim-proj-tabs-wrapper .nav-pills .nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  color: #94a3b8 !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.sim-proj-tabs-wrapper .nav-pills .nav-link:hover {
  color: #e8dcc8 !important;
  background: rgba(201, 168, 76, 0.12) !important;
}
.sim-proj-tabs-wrapper .nav-pills .nav-link.active {
  color: #1a1410 !important;
  background: linear-gradient(135deg, #c9a84c 0%, #f59e0b 100%) !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
  font-weight: 700;
}

/* Section headers — Cinzel for drama */
.sim-proj-tabs-wrapper .sim-section h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* Progressive bracket round styling */
.bracket-round-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 8px;
  padding-left: 4px;
}

.bracket-round-r1 {
  border-left: 3px solid #64748b;
  padding-left: 12px;
}
.bracket-round-r1 .bracket-round-label {
  color: #94a3b8;
}

.bracket-round-qf {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
}
.bracket-round-qf .bracket-round-label {
  color: #3b82f6;
  font-size: 0.875rem;
}

.bracket-round-sf {
  border-left: 3px solid #f59e0b;
  padding-left: 12px;
}
.bracket-round-sf .bracket-round-label {
  color: #f59e0b;
  font-size: 0.92em;
}
.bracket-round-sf .bracket-game {
  border-color: rgba(245, 158, 11, 0.2);
}

.bracket-round-final {
  border-left: 3px solid #c9a84c;
  padding-left: 12px;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 12px;
  margin-top: 4px;
}
.bracket-round-final .bracket-round-label {
  font-family: 'Cinzel', serif;
  color: #c9a84c;
  font-size: 1em;
  letter-spacing: 0.04em;
}
.bracket-round-final .bracket-game {
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.1);
}
.bracket-round-final .bracket-winner {
  background: rgba(201, 168, 76, 0.12);
}

/* Clickable standings rows */
.sim-record-clickable {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sim-record-clickable:hover {
  background: rgba(201, 168, 76, 0.06);
}
.sim-record-clickable.sim-row-expanded {
  border-bottom: none;
  border-radius: 10px 8px 0 0;
  background: rgba(201, 168, 76, 0.08);
}
.sim-expand-hint {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: auto;
  padding-left: 6px;
  transition: transform 0.2s;
}
.sim-row-expanded .sim-expand-hint {
  transform: rotate(180deg);
  color: #c9a84c;
}

/* Rationale panel (expanded detail) */
.sim-rationale-panel {
  background: rgba(42, 37, 32, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.rationale-narrative {
  font-size: 0.875rem;
  color: #e8dcc8;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}
.rationale-factors {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.rationale-factor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rationale-f-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}
.rationale-f-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.rationale-f-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.rationale-f-pct {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  min-width: 40px;
  text-align: right;
}
.rationale-composite {
  font-size: 0.8rem;
  color: #8b9db0;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.rationale-g5-note {
  font-size: 0.8rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.4;
}

/* Mobile: rationale panel */
@media (max-width: 768px) {
  .sim-proj-tabs-wrapper .nav-pills {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
  }
  .sim-proj-tabs-wrapper .nav-pills .nav-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .rationale-f-label {
    min-width: 60px;
    font-size: 0.8rem;
  }
  .rationale-f-pct {
    min-width: 35px;
    font-size: 0.8rem;
  }
  .bracket-round-final {
    padding: 8px;
  }
  .sim-expand-hint {
    display: none;
  }
}

/* ====================================================================
   RIVALRY SPOTLIGHT — Series Bar, Stats, Recent Games
   ==================================================================== */

/* Series tug bar */
.rivalry-series-bar {
  margin-bottom: 8px;
}
.rivalry-series-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.rivalry-series-title {
  font-size: 0.65rem;
  font-family: sans-serif;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rivalry-tug-track {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}
.rivalry-tug-fill-a,
.rivalry-tug-fill-b {
  height: 100%;
  border-radius: 3px;
}

/* Stats chips row */
.rivalry-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 6px;
}
.rivalry-stat-chip {
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 3px;
}
.rivalry-streak-chip {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 3px;
}

/* Recent games — horizontal chips */
.rivalry-recent-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.rivalry-game-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid;
}
.rivalry-gc-year {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1;
}
.rivalry-gc-score {
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
}
.rivalry-gc-winner {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
}

/* Description — line clamp */
.home-rivalry-desc {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  text-align: center;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================================================
   KEY DATES CARD
   ==================================================================== */

.home-card-keydates {
  grid-column: span 3;
}
.home-banner-keydates {
  border-bottom-color: rgba(59, 130, 246, 0.2);
}
.home-keydates-list {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.keydates-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.keydates-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.keydates-past {
  opacity: 0.4;
}
.keydates-next {
  opacity: 1;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.keydates-next .keydates-time {
  color: #f59e0b;
  font-weight: 700;
}
.keydates-icon-col {
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}
.keydates-next .keydates-icon-col {
  color: #f59e0b;
}
.keydates-info {
  flex: 0 1 auto;
  min-width: 0;
}
.keydates-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
}
.keydates-desc {
  font-size: 0.8rem;
  color: #8b9db0;
}
.keydates-countdown {
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}
.keydates-time {
  font-family: 'Teko', sans-serif;
  font-size: 0.92em;
  color: #94a3b8;
}

/* Mobile: key dates */
@media (max-width: 1200px) {
  .home-card-keydates {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .keydates-desc {
    display: none;
  }
  .keydates-row {
    padding: 5px 8px;
  }
}

/* ================================================================
   Compare Tab — Verdict Banner
   ================================================================ */
.compare-verdict {
  background: rgba(30, 28, 25, 0.85);
  border: 2px solid #c9a84c;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 18px;
  text-align: center;
}
.verdict-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.verdict-fav {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.verdict-label {
  color: #94a3b8;
  font-size: 0.95rem;
}
.verdict-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.verdict-vs {
  color: #8b9db0;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.verdict-edges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.verdict-edge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.verdict-edge-team {
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 80px;
  text-align: right;
}
.verdict-edge-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
}

/* ================================================================
   Portal — Quick-filter pills (Players tab)
   ================================================================ */
.portal-quick-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.portal-qf-btn {
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.portal-qf-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}
.portal-qf-btn.active {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

/* ================================================================
   Portal — Winners & Losers Strip
   ================================================================ */
.portal-winners-losers {
  margin-bottom: 10px;
}
.wl-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.wl-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wl-label {
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 3px;
}
.wl-label-win {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.wl-label-lose {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 10px;
  background: rgba(30, 28, 25, 0.7);
  font-size: 0.875rem;
}
.wl-chip.wl-winner {
  border-color: rgba(34, 197, 94, 0.4);
}
.wl-chip.wl-loser {
  border-color: rgba(239, 68, 68, 0.4);
}
.wl-team {
  font-weight: 600;
}
.wl-net {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
}
.wl-winner .wl-net { color: #22c55e; }
.wl-loser .wl-net { color: #ef4444; }
.wl-impact {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* ================================================================
   Map Sidebar — Snapshot Strip
   ================================================================ */
.sidebar-snapshot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: rgba(30, 28, 25, 0.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.sidebar-snapshot-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(42, 37, 32, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
}
.snap-label {
  color: #8b9db0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.snap-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
}
.snap-rank {
  color: #c9a84c;
  font-weight: 600;
}
.snap-form {
  gap: 4px;
}
.form-dots-row {
  display: flex;
  gap: 3px;
}
.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
}
.form-win {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.form-loss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ================================================================
   Recruit Grade — Clickable Expand Detail
   ================================================================ */
.recruit-grade-clickable {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 10px;
  padding: 1px;
}
.recruit-grade-clickable:hover {
  transform: translateY(-3px);
}
.recruit-grade-clickable:hover .recruit-grade-mini {
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}
.recruit-grade-arrow {
  font-size: 0.65rem;
  color: #8b9db0;
  transition: transform 0.2s;
  line-height: 1;
}
.recruit-grade-open .recruit-grade-arrow {
  transform: rotate(180deg);
}

/* Detail panel popout */
.recruit-detail-panel {
  background: linear-gradient(135deg, rgba(26, 20, 16, 0.92), rgba(42, 37, 32, 0.88));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  text-align: left;
}

/* Star breakdown chips */
.recruit-detail-stars {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.recruit-detail-star-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(42, 37, 32, 0.9);
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.rds-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: -1px;
}
.rds-count {
  font-family: 'Teko', sans-serif;
  color: #e8dcc8;
  font-size: 1.35rem;
  line-height: 1;
}

/* Position mix */
.recruit-detail-positions {
  color: #94a3b8;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.rdp-label {
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
}
.rdp-mix {
  color: #94a3b8;
}

/* Top recruits */
.recruit-detail-top {
  padding-top: 0;
}
.rdt-label {
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  display: block;
  margin-bottom: 6px;
}
.rdt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 3px;
}
.rdt-row:nth-child(even) {
  background: rgba(255,255,255,0.03);
}
.rdt-name {
  color: #e8dcc8;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.875rem;
  font-weight: 600;
  flex: 1;
}
.rdt-pos {
  color: #c9a84c;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  min-width: 26px;
  text-align: center;
}
.rdt-rating {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
}
.rdt-loc {
  color: #8b9db0;
  font-size: 0.8rem;
  font-style: italic;
}

/* Portal: clickable winner/loser chips */
.wl-chip:hover {
  background: rgba(42, 37, 32, 0.9);
  transform: translateY(-1px);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

/* Mobile: verdict + wl strip */
@media (max-width: 768px) {
  .compare-verdict { padding: 10px 12px; }
  .verdict-edge-team { min-width: auto; text-align: center; }
  .wl-strip { flex-direction: column; gap: 8px; }
  .wl-section { justify-content: center; }
}

/* ================================================================
   4-Tab Enhancement: Predict, Learn, Teams, Matchups
   ================================================================ */

/* ---- Predict: Radar Chart ---- */
.predict-radar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
.predict-section-title {
  color: #c9a84c;
  font-family: 'Cinzel', serif;
  font-size: 1em;
  margin-bottom: 8px;
  text-align: center;
}

/* ---- Predict: FBS Rank Strip ---- */
.predict-fbs-strip {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 10px;
}
.fbs-strip-label {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fbs-strip-track {
  position: relative;
  height: 36px;
  background: linear-gradient(90deg, rgba(34,197,94,0.12), rgba(255,255,255,0.03) 50%, rgba(239,68,68,0.12));
  border-radius: 18px;
}
.fbs-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'Teko', sans-serif;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.fbs-strip-labels {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-top: 4px;
  padding: 0 4px;
}

/* ---- Learn: Conference Strength Chart ---- */
.conf-strength-chart {
  margin: 20px 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid #3e4047;
  border-radius: 10px;
  padding: 12px;
}

/* ---- Learn: CFP Bracket ---- */
.cfp-bracket {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 10px;
  overflow-x: auto;
}
.cfp-round {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.cfp-round-label {
  text-align: center;
  color: #c9a84c;
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.cfp-matchup {
  background: rgba(255,255,255,0.04);
  border: 1px solid #3e4047;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #e8dcc8;
  transition: border-color 0.15s;
  width: 100%;
  max-width: 200px;
}
.cfp-matchup:hover {
  border-color: #c9a84c;
}
.cfp-bye {
  background: rgba(201,168,76,0.06);
  border: 1px dashed rgba(201,168,76,0.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #c9a84c;
  width: 100%;
  max-width: 200px;
}

/* ---- Teams: SP+ Trend Sparkline ---- */
.sp-trend-spark {
  margin-top: 10px;
}

/* ---- Teams: Quick Links ---- */
.team-quick-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #3e4047;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.team-quick-link {
  color: #c9a84c;
  cursor: pointer;
  font-size: 0.875rem;
  transition: color 0.15s;
  text-decoration: none;
}
.team-quick-link:hover {
  color: #f1f5f9;
  text-decoration: underline;
}

/* ---- Matchups: Rivalry Dominance Eras ---- */
.rivalry-eras-strip {
  margin: 12px 0 16px;
  text-align: center;
}
.rivalry-eras-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rivalry-eras-bar {
  display: flex;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 90%;
}
.era-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0 8px;
  min-width: 40px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.era-segment-split {
  background: #3e4047 !important;
  color: #94a3b8;
  text-shadow: none;
}

/* ---- CFP Bracket Projection ---- */
.cfp-bracket-section {
  margin-top: 32px;
  padding: 20px;
  background: rgba(42, 37, 32, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.cfp-bracket-header {
  margin-bottom: 20px;
}
.cfp-bracket-title {
  font-family: 'Cinzel', serif;
  color: #c9a84c;
  font-size: 1.35rem;
  margin: 0;
}
.cfp-bracket-subtitle {
  font-size: 0.8rem;
  color: #8b9db0;
}
.cfp-byes-label, .cfp-round-label {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.cfp-byes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.cfp-seed-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: background 0.15s;
}
.cfp-seed-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}
.cfp-seed-chip.cfp-bye {
  background: rgba(201, 168, 76, 0.08);
}
.cfp-seed-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c9a84c;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.cfp-seed-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cfp-seed-school {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cfp-seed-meta {
  font-size: 0.65rem;
  color: #8b9db0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cfp-conf-tag {
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(255,255,255,0.05);
  padding: 1px 5px;
  border-radius: 3px;
}
.cfp-auto-tag {
  font-size: 0.55rem;
  color: #c9a84c;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cfp-matchups-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cfp-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.cfp-matchup .cfp-seed-chip {
  flex: 1;
  background: none;
  padding: 4px 6px;
}
.cfp-vs {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
  text-transform: uppercase;
}
.cfp-bubble {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}
.cfp-bubble-label {
  color: #8b9db0;
  margin-right: 6px;
}
.cfp-bubble-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 4px;
}
@media (max-width: 768px) {
  .cfp-byes-grid { grid-template-columns: repeat(2, 1fr); }
  .cfp-matchup { flex-direction: column; gap: 4px; }
  .cfp-matchup .cfp-seed-chip { width: 100%; }
}

/* ---- Hot Seat Watch: pressure legend + subtitle ---- */
.home-hotseat-legend {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #94a3b8;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  line-height: 1.5;
}
.home-hotseat-legend .heat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}
.home-hotseat-pressure-label {
  display: block;
  font-size: 0.55rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.home-hotseat-subtitle {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: sans-serif;
  font-weight: 400;
  margin-top: 2px;
}

/* ── Cross-site Terranalytics switcher ─────────────────────────────────────── */
.pm-switcher { position: relative; }
.pm-trigger {
  background: none;
  border: 1px solid #4a4d55;
  color: #94a3b8;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Cinzel', serif;
}
.pm-trigger:hover {
  border-color: #c9a84c;
  color: #e8dcc8;
}
.pm-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #2a2520;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 220px;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pm-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.pm-switcher:hover .pm-dropdown,
.pm-switcher:focus-within .pm-dropdown { display: block; }
.pm-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.875rem;
}
.pm-row:hover {
  background: #33281e;
  color: #e8dcc8;
}
.pm-current {
  background: rgba(201, 168, 76, 0.08);
  color: #c9a84c !important;
}
.pm-row-text { display: flex; flex-direction: column; }
.pm-name { font-weight: 600; font-family: 'Cinzel', serif; }
.pm-sub { font-size: 0.72rem; color: #8b9db0; }
.pm-divider { border-color: #4a4d55; margin: 0.3rem 0; }
@media (max-width: 900px) {
  .pm-switcher { display: none; }
}

/* ---- Mobile: 4-tab enhancements ---- */
@media (max-width: 768px) {
  .cfp-bracket { grid-template-columns: repeat(2, 1fr); }
  .predict-fbs-strip { padding: 8px 10px; }
  .fbs-dot { font-size: 0.8rem; padding: 1px 6px; }
  .team-quick-links { gap: 12px; }
  .rivalry-eras-bar { max-width: 100%; }
  .era-segment { font-size: 0.65rem; padding: 0 4px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Phase 3 — My Team Card + Countdown Split + Predict Subpanel
   ════════════════════════════════════════════════════════════════════════ */

/* My Team card base */
.home-card-myteam { display: flex; flex-direction: column; padding: 0; }
.myteam-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.myteam-name {
  font-family: 'Teko', sans-serif; font-size: 1.8em; font-weight: 700;
  line-height: 1; letter-spacing: 0.04em; cursor: pointer;
}
.myteam-conf-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 3px;
  background: rgba(255,255,255,0.08); color: #94a3b8;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.myteam-rank-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #f59e0b; display: flex; align-items: center;
  justify-content: center; font-family: 'Teko', sans-serif;
  font-size: 1em; font-weight: 700; color: #e8dcc8; flex-shrink: 0;
}
.myteam-coach { font-size: 0.875rem; color: #94a3b8; margin-left: auto; }
.myteam-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 14px 20px;
}
.myteam-stat-box {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 12px; text-align: center;
  cursor: pointer; transition: background 0.15s;
}
.myteam-stat-box:hover { background: rgba(255,255,255,0.07); }
.myteam-stat-val {
  font-family: 'Teko', sans-serif; font-size: 1.65rem; font-weight: 700;
  color: #e8dcc8; line-height: 1.1;
}
.myteam-stat-lbl {
  font-size: 0.72rem; color: #8b9db0; text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 2px;
}
.myteam-next-game {
  padding: 8px 20px; font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.myteam-next-label { color: #94a3b8; margin-right: 6px; }
.myteam-next-opp { font-weight: 700; }

/* CTA (no team selected) */
.myteam-cta {
  border: 2px dashed rgba(245,158,11,0.4);
  animation: cfb-myteam-pulse 2s ease-in-out infinite;
}
@keyframes cfb-myteam-pulse {
  0%, 100% { border-color: rgba(245,158,11,0.3); }
  50% { border-color: rgba(245,158,11,0.7); }
}
.myteam-cta-icon { color: #f59e0b; margin-bottom: 12px; }
.myteam-cta-title {
  font-family: 'Teko', sans-serif; font-size: 1.8em; font-weight: 700;
  color: #f59e0b; margin: 0 0 6px; letter-spacing: 1px; text-transform: uppercase;
}
.myteam-cta-desc { color: #94a3b8; font-size: 0.875rem; margin: 0 0 16px; }
.myteam-cta-search { max-width: 320px; margin: 0 auto 12px; }
.myteam-cta-search .form-group { margin-bottom: 0; }
.myteam-cta-search .selectize-input { padding-right: 36px !important; font-family: 'Libre Baskerville', Georgia, serif !important; font-size: 0.875rem !important; }
.myteam-cta-search .selectize-input input { font-family: 'Libre Baskerville', Georgia, serif !important; }
.myteam-cta-search .selectize-input input::placeholder { font-family: 'Libre Baskerville', Georgia, serif !important; color: #8b9db0; }
.myteam-cta-search .selectize-dropdown, .myteam-cta-search .selectize-dropdown .option { font-family: 'Libre Baskerville', Georgia, serif !important; font-size: 0.875rem !important; }
.myteam-cta-search .selectize-control .plugin-clear_button .clear-button { right: 24px !important; }
.myteam-cta-or {
  font-size: 0.72rem; color: #8b9db0; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.myteam-cta-picks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.myteam-quick-pick {
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35);
  color: #f59e0b; font-size: 0.875rem; font-weight: 600; padding: 5px 14px;
  border-radius: 16px; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.myteam-quick-pick:hover { background: rgba(245,158,11,0.25); transform: translateY(-1px); }
.myteam-cta-cols { display: flex; flex-direction: row; width: 100%; min-height: 220px; }
.myteam-cta-left {
  flex: 1; padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12); display: flex; flex-direction: column;
}
.myteam-cta-left-title {
  font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700;
  color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.myteam-cta-rank-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px;
  border-radius: 6px; cursor: pointer; transition: background 0.15s; margin-bottom: 1px;
}
.myteam-cta-rank-row:hover { background: rgba(245,158,11,0.08); }
.myteam-cta-rank-num { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #8b9db0; min-width: 16px; text-align: center; }
.myteam-cta-rank-bar { display: inline-block; width: 3px; height: 18px; border-radius: 3px; flex-shrink: 0; align-self: center; }
.myteam-cta-rank-abbr { font-family: 'Teko', sans-serif; font-size: 1em; font-weight: 700; flex: 1; }
.myteam-cta-rank-score { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #8b9db0; flex-shrink: 0; }
.myteam-cta-hint { font-size: 0.72rem; color: #8b9db0; text-align: center; margin-top: auto; padding-top: 8px; font-style: italic; }
.myteam-cta-right { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* Compare preview in CTA left panel */
.cmp-prev-title-icon { color: #f59e0b; margin-right: 4px; font-size: 0.95rem; }
.cmp-shuffle-btn {
  background: none; border: 1px solid rgba(201,168,76,0.3); color: #c9a84c;
  border-radius: 50%; width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer; margin-left: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.3s;
}
.cmp-shuffle-btn:hover { border-color: #c9a84c; color: #e8dcc8; transform: rotate(180deg); }
.cmp-prev-teams { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 8px; }
.cmp-prev-team { display: flex; align-items: center; gap: 7px; }
.cmp-prev-swatch { width: 4px; height: 30px; border-radius: 3px; flex-shrink: 0; outline: 1px solid rgba(255,255,255,0.3); }
.cmp-prev-tname { font-family: 'Teko', sans-serif; font-size: 1.65em; font-weight: 700; letter-spacing: 0.04em; }
.cmp-prev-vs { font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 2px; }
/* Duel bars */
.cmp-duel-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cpd-row { display: flex; flex-direction: column; gap: 4px; }
.cpd-metric { font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; text-align: center; }
.cpd-bar-wrap { display: flex; align-items: center; gap: 8px; }
.cpd-val-a { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700; min-width: 38px; text-align: right; flex-shrink: 0; line-height: 1; }
.cpd-val-b { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700; min-width: 38px; text-align: left;  flex-shrink: 0; line-height: 1; }
.cpd-track {
  flex: 1; position: relative; height: 12px;
  background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden;
}
/* White separator exactly at the A/B junction */
.cpd-track::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 2px; height: 100%; background: rgba(43,45,49,0.9);
  transform: translateX(-50%); z-index: 3; pointer-events: none;
}
.cpd-fill-a { position: absolute; left: 0; top: 0; height: 100%; border-radius: 6px 0 0 6px; }
.cpd-fill-b { position: absolute; right: 0; top: 0; height: 100%; border-radius: 0 6px 6px 0; }
.cmp-prev-cta { font-size: 0.74em; font-weight: 600; color: #f59e0b; cursor: pointer; text-align: center; padding: 5px 10px; border: 1px solid rgba(245,158,11,0.3); border-radius: 6px; background: rgba(245,158,11,0.06); transition: background 0.15s; margin-top: 4px; }
.cmp-prev-cta:hover { background: rgba(245,158,11,0.18); }
.cmp-prev-verdict {
  display: flex; align-items: center; gap: 5px; justify-content: center;
  font-size: 0.72rem; padding: 6px 0 2px; font-family: 'Teko', sans-serif;
}
.cmp-verdict-star { color: #c9a84c; font-size: 1.35rem; }
.cmp-verdict-text { color: #94a3b8; }

/* ================================================================
   Portal — Team expand panel (was completely unstyled)
   ================================================================ */
.portal-team-expand {
  background: rgba(0,0,0,0.22); border-radius: 0 0 6px 6px;
  padding: 14px 16px 12px; margin-bottom: 4px; margin-top: -2px;
  width: 100%; min-width: 0; box-sizing: border-box; display: block;
}
.portal-expand-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.portal-expand-grade-wrap { flex-shrink: 0; }
.portal-impact-grade { display: flex; flex-direction: column; align-items: center; padding: 10px 14px; border-radius: 10px; gap: 1px; min-width: 80px; }
.portal-grade-letter { font-family: 'Teko', sans-serif; font-size: 2.4em; font-weight: 700; line-height: 1; }
.portal-grade-label  { font-size: 0.8rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }
.portal-grade-detail { font-size: 0.72rem; }
.portal-expand-highlights { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.portal-expand-highlight { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: rgba(255,255,255,0.04); border-radius: 6px; flex: 1; min-width: 150px; }
.portal-expand-highlight-in  { border-left: 3px solid #22c55e; }
.portal-expand-highlight-out { border-left: 3px solid #ef4444; }
.portal-expand-hl-label  { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; }
.portal-expand-hl-name   { font-weight: 700; font-size: 0.875rem; color: #f1f5f9; }
.portal-expand-hl-detail { font-size: 0.8rem; color: #94a3b8; }
.portal-expand-hl-imp    { font-family: 'Teko', sans-serif; font-size: 1.5em; font-weight: 700; color: #f59e0b; line-height: 1; }
.portal-expand-section { margin-bottom: 12px; }
.portal-expand-section-title { font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.portal-expand-in-title  { color: #22c55e; }
.portal-expand-out-title { color: #ef4444; }
.portal-expand-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-expand-player-list { display: flex; flex-direction: column; gap: 3px; }
.portal-expand-player { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(255,255,255,0.03); border-radius: 3px; font-size: 0.875rem; }
.portal-expand-pos   { font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700; color: #8b9db0; min-width: 22px; flex-shrink: 0; }
.portal-expand-name  { font-weight: 600; color: #f1f5f9; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-expand-stars { font-size: 0.8rem; color: #f59e0b; letter-spacing: -1px; flex-shrink: 0; }
.portal-expand-from     { font-size: 0.72rem; color: #94a3b8; flex-shrink: 0; white-space: nowrap; }
.portal-expand-from-out { font-size: 0.72rem; color: #94a3b8; flex-shrink: 0; white-space: nowrap; }
.portal-expand-imp   { font-family: 'Teko', sans-serif; font-size: 1em; color: #f59e0b; font-weight: 700; flex-shrink: 0; }
.portal-expand-empty { font-size: 0.8rem; color: #94a3b8; font-style: italic; margin: 4px 0; }
.portal-pos-breakdown { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.portal-pos-chip { display: flex; align-items: center; gap: 4px; padding: 3px 8px; background: rgba(255,255,255,0.05); border-radius: 10px; font-size: 0.8rem; }
.portal-pos-label { font-family: 'Teko', sans-serif; font-weight: 700; color: #94a3b8; }

@media (max-width: 600px) { .portal-expand-columns { grid-template-columns: 1fr; } }
@media (max-width: 576px) {
  .myteam-cta-cols { flex-direction: column; }
  .myteam-cta-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .myteam-cta-right { padding: 16px 14px; }
  .myteam-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Slim season calendar strip — sits above the countdown banner */
.countdown-cal-strip {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 7px 16px 6px;
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px 8px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.countdown-cal-strip::-webkit-scrollbar { display: none; }
.ccs-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
  padding: 2px 4px;
  position: relative;
  min-width: 60px;
}
.ccs-event:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}
.ccs-mon {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
}
.ccs-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.ccs-now { font-size: 0.55em; font-weight: 700; color: #22c55e; background: rgba(34,197,94,0.15); border-radius: 3px; padding: 1px 4px; margin-top: 1px; }
.ccs-past { opacity: 0.28; }
.ccs-current .ccs-mon { color: #f59e0b; }
.ccs-current .ccs-label { color: #e8dcc8; font-weight: 600; }

/* Countdown split */
.home-countdown-split { flex-direction: row !important; align-items: stretch; padding: 0; gap: 0; border-radius: 0 0 8px 8px !important; }
.countdown-left { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 18px 16px; }
/* Right panel now holds my_team_panel */
.countdown-right-panel { flex: 1; min-width: 260px; border-left: 1px solid rgba(255,255,255,0.06); overflow: hidden; display: flex; flex-direction: column; }
.countdown-right-panel > div,
.countdown-right-panel .shiny-html-output { height: 100%; display: flex; flex-direction: column; }
.countdown-right-panel .home-card { margin: 0 !important; border-radius: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; flex: 1; }
/* Calendar bar below the banner */
.home-calendar-bar { display: flex; align-items: center; gap: 0; padding: 9px 16px; background: rgba(0,0,0,0.18); border: 1px solid rgba(245,158,11,0.12); border-top: none; border-radius: 0 0 8px 8px; overflow-x: auto; }
.home-calendar-bar-title { font-family: 'Teko', sans-serif; font-size: 0.76em; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; padding-right: 14px; margin-right: 14px; border-right: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
.home-calendar-bar-icon { font-size: 0.95rem; color: #f59e0b; }
.home-calendar-bar-events { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cal-bar-chip { display: flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 3px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
.cal-bar-chip-current { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); }
.cal-bar-chip-past { opacity: 0.3; }
.cal-bar-chip-mon { font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700; color: #f59e0b; }
.cal-bar-chip-label { font-size: 0.74em; color: #94a3b8; }
.cal-bar-chip-now { font-size: 0.65rem; font-weight: 700; padding: 1px 4px; border-radius: 3px; background: rgba(34,197,94,0.2); color: #22c55e; }
.countdown-hero { text-align: center; }
/* MALSR approach lights — converging into the countdown number */
.countdown-approach-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.approach-left, .approach-right { display: flex; align-items: center; gap: 0px; }
@keyframes approachFlash {
  0%, 100% { opacity: 0.07; filter: none; }
  30%, 50% { opacity: 1;    filter: drop-shadow(0 0 6px rgba(245,158,11,0.75)); }
}
.approach-light { color: var(--nav-team-accent, #f59e0b); font-size: 1.65rem; line-height: 1; opacity: 0.07; animation: approachFlash 1.8s ease-in-out infinite; }
/* Outer lights fire first, inner lights last — converging toward number */
.al-3 { animation-delay: 0s; }
.al-2 { animation-delay: 0.3s; }
.al-1 { animation-delay: 0.6s; }
.countdown-number { font-family: 'Teko', sans-serif; font-size: 3.5em; font-weight: 700; line-height: 1; color: var(--nav-team-accent, #f59e0b); }
.countdown-unit { font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 2px; margin: 2px 0; }
.countdown-to { font-size: 0.8rem; color: #94a3b8; }
.countdown-breakdown { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.countdown-chip { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; gap: 1px; }
.countdown-chip-val { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700; color: #e8dcc8; line-height: 1; }
.countdown-chip-lbl { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }
.countdown-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.countdown-progress-bar { height: 100%; background: var(--nav-team-accent, #f59e0b); border-radius: 3px; }
.countdown-storyline { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #94a3b8; }
.countdown-story-icon { font-size: 0.95rem; }
.countdown-storyline .countdown-story-text { flex: 1; }
@media (max-width: 680px) {
  .home-countdown-split { flex-direction: column !important; }
  .countdown-left { flex: none; width: 100%; }
  .countdown-right-panel { flex: none; width: 100%; min-width: 0 !important; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .countdown-number { font-size: 2em; }
  .countdown-chip { min-width: 40px; padding: 4px 8px; }
  .approach-light { font-size: 1em; }
  .home-calendar-bar { flex-wrap: wrap; }
  .home-calendar-bar-title { border-right: none; padding-right: 0; margin-right: 0; margin-bottom: 6px; width: 100%; }
  .ccs-event { flex: 0 0 auto; }
  .home-hero-stat-link { min-width: 0; flex: 1 1 calc(50% - 8px); max-width: calc(50% - 4px); }
}

/* Predict games subpanel */
.predict-games-panel { padding: 8px 14px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.predict-games-label { font-size: 0.72rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.predict-game-row { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.predict-game-row:hover { background: rgba(255,255,255,0.04); }
.pgr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; outline: 1px solid rgba(255,255,255,0.2); }
.pgr-abbr { font-family: 'Teko', sans-serif; font-size: 0.95rem; font-weight: 600; color: #e8dcc8; min-width: 26px; }
.pgr-vs { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; flex-shrink: 0; }
.pgr-score { font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #94a3b8; margin-left: auto; flex-shrink: 0; }

/* ============================
   Portal Tab Overhaul — v20260309e
   ============================ */

/* Best Portal Classes strip */
.portal-class-strip { display: flex; gap: 10px; padding: 0 0 14px; overflow-x: auto; }
.portal-class-card { flex: 1; min-width: 140px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; display: flex; flex-direction: column; gap: 4px; }
.portal-class-card:hover { background: rgba(245,158,11,0.08); }
.portal-class-card.rank-1 { border-color: rgba(234,179,8,0.35); background: rgba(234,179,8,0.06); }
.portal-class-card.rank-2 { border-color: rgba(180,180,180,0.25); background: rgba(180,180,180,0.04); }
.portal-class-card.rank-3 { border-color: rgba(180,120,60,0.25); background: rgba(180,120,60,0.04); }
.portal-class-rank { font-family: 'Teko', sans-serif; font-size: 0.72rem; color: #8b9db0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.portal-class-team { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.portal-class-score { font-family: 'Teko', sans-serif; font-size: 1.8em; font-weight: 700; color: #f59e0b; line-height: 1; }
.portal-class-meta { font-size: 0.72rem; color: #8b9db0; }
@media (max-width: 768px) { .portal-class-strip { flex-wrap: wrap; } .portal-class-card { min-width: calc(50% - 5px); } }

/* Elite Available strip */
.portal-elite-section { padding: 0 0 14px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 14px; }
.portal-elite-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }
.portal-elite-count { background: rgba(239,68,68,0.15); color: #ef4444; border-radius: 10px; padding: 1px 7px; font-size: 0.95rem; }
.portal-elite-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.portal-elite-player { display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; cursor: pointer; min-width: 130px; flex-shrink: 0; transition: background 0.15s; }
.portal-elite-player:hover { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.portal-elite-name { font-family: 'Teko', sans-serif; font-size: 1em; font-weight: 700; color: #e8dcc8; line-height: 1.1; }
.portal-elite-school { font-size: 0.8rem; color: #8b9db0; }
.portal-elite-stars { font-size: 0.8rem; color: #f59e0b; }
.portal-elite-elig { font-size: 0.72rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: rgba(34,197,94,0.15); color: #22c55e; align-self: flex-start; margin-top: 2px; }

/* W/L mode toggle */
.wl-toggle-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.wl-toggle-btn { font-family: 'Teko', sans-serif; font-size: 0.8rem; padding: 3px 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #94a3b8; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.wl-toggle-btn.active { background: rgba(245,158,11,0.15); color: #f59e0b; border-color: rgba(245,158,11,0.3); }

/* Landscape insight callout */
.portal-insight-card { border-left: 3px solid #c9a84c; background: rgba(201,168,76,0.05); padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.portal-insight-line { font-size: 0.875rem; color: #94a3b8; margin-bottom: 5px; display: flex; align-items: flex-start; gap: 6px; }
.portal-insight-line:last-child { margin-bottom: 0; }
.portal-insight-icon { color: #c9a84c; flex-shrink: 0; }
.portal-insight-accent { color: #f59e0b; font-weight: 700; }

/* Position demand table */
.portal-demand-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.portal-demand-table th { color: #94a3b8; font-family: 'Teko', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.portal-demand-table td { padding: 5px 8px; color: #e8dcc8; border-bottom: 1px solid rgba(255,255,255,0.04); }
.portal-demand-table tr:last-child td { border-bottom: none; }
.portal-demand-bar-wrap { width: 80px; background: rgba(255,255,255,0.06); border-radius: 3px; height: 6px; }
.portal-demand-bar { height: 6px; border-radius: 3px; background: #f59e0b; }

/* ================================================================
   Portal — Shared section label
   ================================================================ */
.portal-section-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================================================================
   Portal — Player Cards strip
   ================================================================ */
.portal-player-cards-section { margin-bottom: 20px; }
.portal-player-cards-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.portal-player-card {
  flex: 0 0 155px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 12px 10px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-player-card:hover { transform: translateY(-2px); border-color: rgba(245,158,11,0.4); }
.pcard-committed { border-top: 3px solid #22c55e; }
.pcard-available { border-top: 3px solid #f59e0b; }

.pcard-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 22px;
  border-radius: 6px;
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid;
  margin-bottom: 2px;
}
.pos-qb    { background: rgba(139,92,246,0.2);  color: #a78bfa; border-color: rgba(139,92,246,0.35); }
.pos-skill { background: rgba(6,182,212,0.2);   color: #22d3ee; border-color: rgba(6,182,212,0.35);  }
.pos-ol    { background: rgba(59,130,246,0.2);  color: #60a5fa; border-color: rgba(59,130,246,0.35); }
.pos-dl    { background: rgba(239,68,68,0.2);   color: #f87171; border-color: rgba(239,68,68,0.35);  }
.pos-db    { background: rgba(245,158,11,0.2);  color: #fbbf24; border-color: rgba(245,158,11,0.35); }
.pos-other { background: rgba(148,163,184,0.15); color: #94a3b8; border-color: rgba(148,163,184,0.25); }

.pcard-name   { font-weight: 700; font-size: 0.875rem; color: #f1f5f9; line-height: 1.2; }
.pcard-stars  { font-size: 0.72rem; color: #f59e0b; letter-spacing: -1px; }
.pcard-impact { font-family: 'Teko', sans-serif; font-size: 1.65rem; font-weight: 700; color: #f59e0b; line-height: 1; }
.pcard-route  { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pcard-from   { font-size: 0.67em; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55px; }
.pcard-arrow  { font-size: 0.67em; color: #8b9db0; }
.pcard-to     { font-size: 0.67em; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55px; }
.pcard-to-avail { color: #f59e0b; font-weight: 600; }

/* ================================================================
   Portal — Big W/L cards
   ================================================================ */
.wl-big-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.wl-big-section { display: flex; flex-direction: column; gap: 6px; }
.wl-big-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wl-big-label.wl-label-win  { color: #22c55e; }
.wl-big-label.wl-label-lose { color: #ef4444; }

.wl-big-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.wl-big-card:hover { background: rgba(255,255,255,0.06); }
.wl-big-team { font-weight: 700; font-size: 0.875rem; color: #f1f5f9; margin-bottom: 2px; }
.wl-big-net  { font-family: 'Teko', sans-serif; font-size: 2em; font-weight: 700; line-height: 1; }
.wl-big-card.wl-winner .wl-big-net { color: #22c55e; }
.wl-big-card.wl-loser  .wl-big-net { color: #ef4444; }
.wl-big-sub  { font-size: 0.72rem; color: #94a3b8; }

/* ================================================================
   Portal — Trends headline tiles
   ================================================================ */
.trends-headline-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.trends-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.trends-tile-num   { font-family: 'Teko', sans-serif; font-size: 1.5em; font-weight: 700; color: #f59e0b; line-height: 1.1; margin-bottom: 4px; }
.trends-tile-label { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }

/* Portal class strip — podium sizing */
.portal-class-card.rank-1 { transform: scale(1.04); z-index: 1; }

@media (max-width: 768px) {
  .wl-big-strip { grid-template-columns: 1fr; }
  .trends-headline-tiles { grid-template-columns: 1fr; }
  .portal-player-card { flex: 0 0 135px; }
}

/* ================================================================
   Change 2 — Data freshness badge
   ================================================================ */
.data-freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #5a6370;
  padding: 3px 10px;
  border: 1px solid #3e4047;
  border-radius: 20px;
  margin-top: 8px;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
}

/* ================================================================
   Change 3 — Predict probability hero
   ================================================================ */
.predict-prob-hero {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px 16px 12px;
  gap: 8px;
}
.predict-prob-side { text-align: center; flex: 1; }
.predict-prob-team {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
}
.predict-prob-pct {
  font-size: 3.5em;
  font-weight: 700;
  font-family: 'Teko', sans-serif;
  line-height: 1;
}
.pph-winner { color: #f59e0b; }
.pph-loser  { color: #94a3b8; }
.predict-prob-label {
  font-size: 0.72rem;
  color: #7a8a9b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}
.predict-prob-vs { color: #94a3b8; font-size: 1.35rem; font-weight: 600; flex-shrink: 0; }
/* ── Projected Score ── */
.predict-projected-score {
  text-align: center;
  padding: 6px 16px 12px;
}
.pps-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8a9b;
  display: block;
  margin-bottom: 4px;
}
.pps-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pps-team {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pps-loser { opacity: 0.7; }
.pps-dash { color: #64748b; font-size: 1.2rem; }

/* ── Why This Pick pills ── */
.predict-why-pick {
  text-align: center;
  padding: 4px 16px 10px;
  border-bottom: 1px solid #3e4047;
}
.pwp-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8a9b;
  display: block;
  margin-bottom: 6px;
}
.pwp-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pwp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 16px;
  font-size: 0.78rem;
}
.pwp-factor { font-weight: 600; }
.pwp-team { font-family: 'Teko', sans-serif; font-size: 0.9rem; font-weight: 500; }

.predict-narrative-hero {
  font-size: 1.02em;
  color: #e8dcc8;
  text-align: center;
  padding: 8px 24px 14px;
  font-style: italic;
  border-bottom: 1px solid #3e4047;
  margin-bottom: 12px;
}
.predict-details-toggle {
  text-align: center;
  padding: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.predict-details-toggle a,
.predict-details-toggle a:hover { color: #8b9db0; text-decoration: none; }
.predict-details-toggle a:hover { color: #f59e0b; }

/* Change 4 — Share/copy buttons */
.predict-share-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 16px 4px;
  flex-wrap: wrap;
}
.btn-copy-text {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #4a4d55;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-copy-text:hover { color: #f1f5f9; border-color: #8b9db0; }

/* Change 5 — More dropdown */
.navbar .dropdown-menu {
  background: #232529;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  padding: 4px;
  min-width: 160px;
}
.navbar .dropdown-item {
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
}
.navbar .dropdown-item.active {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}
.navbar .nav-item.dropdown > .nav-link { color: #94a3b8; }
.navbar .nav-item.dropdown > .nav-link:hover { color: #f59e0b; }

/* Change 6 — My Team hero bar */
.my-team-hero-bar {
  background: linear-gradient(135deg,
    rgba(201,168,76,0.06) 0%,
    rgba(201,168,76,0.02) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 4px solid #c9a84c;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.my-team-hero-name {
  font-family: 'Cinzel', serif;
  font-size: 1.4em;
  color: #c9a84c;
  font-weight: 600;
}
.my-team-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.my-team-stat-chip {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #3e4047;
  color: #e8dcc8;
  font-family: 'Teko', sans-serif;
}
.my-team-stat-chip.gold {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
  color: #c9a84c;
}
.my-team-next-game {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #3e4047;
}
.my-team-action-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.my-team-action-chip {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: #c9a84c;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.my-team-action-chip:hover {
  background: rgba(201,168,76,0.12);
  color: #f5d87a;
}
@media (max-width: 768px) {
  .my-team-hero-bar { padding: 12px 14px; }
  .my-team-hero-name { font-size: 1.1rem; }
}

/* Change 7 — My Team schedule highlights */
.game-card-myteam {
  border-left: 3px solid #c9a84c !important;
  background: rgba(201,168,76,0.03) !important;
}
.my-team-pill {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(201,168,76,0.15);
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Teko', sans-serif;
}

/* Change 8 — Game pick badge */
.game-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 2px 8px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 6px;
  margin-top: 5px;
}
.gpb-label { color: #8b9db0; }
.gpb-team  { color: #f59e0b; font-weight: 600; font-family: 'Teko', sans-serif; }
.gpb-prob  { color: #94a3b8; }

@media (max-width: 768px) {
  .predict-prob-pct { font-size: 2.6em; }
  .predict-prob-team { font-size: 0.95rem; }
}

/* ================================================================
   MY TEAM COMMAND CENTER — .mtcc-*
   ================================================================ */

/* ── Culture + Glory Days Soul Row ── */
.home-soul-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.home-soul-panel {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-soul-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Culture panel */
.home-soul-chant {
  font-family: 'Cinzel', serif !important;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.home-soul-vibe {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.84rem;
  color: #b8a99a;
  line-height: 1.65;
  font-style: italic;
  border-left: 2px solid rgba(201, 168, 76, 0.25);
  padding-left: 10px;
}

/* Tradition rows — icon · name · type badge, no description */
.home-soul-trad-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-soul-trad-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 0 5px 5px 0;
  background: rgba(255,255,255,0.028);
}
.home-soul-trad-ico2 {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.home-soul-trad-label {
  font-family: 'Teko', sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 1;
}
.home-soul-trad-type {
  font-family: 'Teko', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  color: #94a3b8;
  flex-shrink: 0;
}
.home-soul-trad-clickable { transition: background 0.15s, opacity 0.15s; }
.home-soul-trad-clickable:hover { background: rgba(255,255,255,0.05); }
/* Legacy chips (kept for any other uses) */
.home-soul-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-soul-chip {
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid;
  cursor: default;
  transition: background 0.15s;
}
.home-soul-chip { cursor: default; }

.home-soul-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #c9a84c !important;
  text-decoration: none !important;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.home-soul-link:hover { opacity: 1; }

/* Glory Days panel */
.home-glory-era-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-glory-meta {
  font-size: 0.8rem;
  color: #8b9db0;
}

.home-glory-headline {
  font-size: 0.875rem;
  color: #c4b7a0;
  font-style: italic;
  line-height: 1.5;
}

.home-glory-titles {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.home-glory-wins {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
}

.home-glory-wins li { color: #94a3b8; }

.home-glory-players {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.home-glory-player-chip {
  font-size: 0.77rem;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

@media (max-width: 768px) {
  .home-soul-row {
    grid-template-columns: 1fr;
  }
  .home-soul-chant { font-size: 1.35rem; }
}

/* Narrative header */
.mtcc-header {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 10px;
  border-left: 4px solid var(--team-accent, #c9a84c);
}
.mtcc-header-team {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mtcc-narrative-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #e8dcc8;
  line-height: 1.6;
  margin-bottom: 10px;
}
.mtcc-header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mtcc-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--team-accent, #c9a84c) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
}
.mtcc-header-chip:hover { background: rgba(255,255,255,0.11); }

/* Grid */
.mtcc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .mtcc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mtcc-grid { grid-template-columns: 1fr; }
}

/* Card base */
.mtcc-card {
  background: #211d19;
  border: 1px solid #3e4047;
  border-left: 3px solid var(--team-accent, #c9a84c);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mtcc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid #3e4047;
}
.mtcc-card-icon { color: var(--team-accent, #c9a84c); font-size: 0.95rem; }
.mtcc-card-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--team-accent, #c9a84c);
  font-weight: 500;
}
.mtcc-card-body { padding: 10px 14px; }
.mtcc-divider {
  height: 1px;
  background: #3e4047;
  margin: 8px 14px;
}

/* Identity card */
.mtcc-identity .mtcc-card-header { padding: 12px 14px 8px; flex-wrap: wrap; }
.mtcc-team-name {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px currentColor;
}
.mtcc-mascot {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 6px;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}
.mtcc-conf-badge {
  font-size: 0.65rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  margin-left: auto;
}
.mtcc-stadium-row {
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.mtcc-stadium-name { font-size: 0.875rem; color: #e8dcc8; font-weight: 600; }
.mtcc-stadium-cap  { font-size: 0.8rem; color: #94a3b8; }
.mtcc-stadium-city { font-size: 0.8rem; color: #8b9db0; }
.mtcc-coach-row {
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
}
.mtcc-coach-label  { font-size: 0.8rem; color: #8b9db0; }
.mtcc-coach-name   { font-size: 0.875rem; font-weight: 700; }
.mtcc-coach-record { font-size: 0.8rem; color: #94a3b8; }
.mtcc-record-since {
  padding: 4px 14px 8px;
  font-size: 0.8rem;
  color: #8b9db0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mtcc-record-since-val { color: #e8dcc8; font-weight: 700; font-family: 'Teko', sans-serif; font-size: 1.1rem; }
.mtcc-record-since-pct { color: #94a3b8; }

/* Factor bars */
.mtcc-factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 6px 14px 12px;
}
.mtcc-factor-col { display: flex; flex-direction: column; gap: 5px; }
.mtcc-factor-header {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: #8b9db0;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mtcc-factor-row {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 4px;
}
.mtcc-factor-label { font-size: 0.72rem; color: #94a3b8; }
.mtcc-factor-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.mtcc-factor-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.mtcc-factor-val { font-family: 'Teko', sans-serif; font-size: 0.8rem; color: #8b9db0; text-align: right; }

/* Season card */
.mtcc-record-display {
  padding: 10px 14px 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mtcc-record-big {
  font-family: 'Teko', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1;
}
.mtcc-record-dash { font-size: 1.65rem; color: #94a3b8; font-family: 'Teko', sans-serif; }
.mtcc-record-conf { font-size: 0.8rem; color: #8b9db0; margin-left: 8px; }
.mtcc-season-meta {
  padding: 4px 14px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mtcc-season-chip {
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
}
.mtcc-conf-standing {
  padding: 2px 14px 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}
.mtcc-milestone-section { padding: 6px 14px 8px; }
.mtcc-milestone-label { font-size: 0.8rem; color: #e8dcc8; margin-bottom: 5px; text-align: center; }
.mtcc-milestone-bar {
  height: 7px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.mtcc-milestone-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s;
}
.mtcc-milestone-achieved { font-size: 0.875rem; color: #22c55e; margin-left: 6px; }
.mtcc-last3-row {
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mtcc-last3-label { font-size: 0.72rem; color: #8b9db0; margin-right: 2px; }
.mtcc-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
}
.mtcc-result-w { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
.mtcc-result-l { border-color: rgba(239,68,68,0.35);  background: rgba(239,68,68,0.08); }
.mtcc-chip-wl  { font-weight: 700; font-size: 1.1rem; }
.mtcc-result-w .mtcc-chip-wl { color: #22c55e; }
.mtcc-result-l .mtcc-chip-wl { color: #ef4444; }
.mtcc-chip-opp { color: #94a3b8; }

/* Rivalry card */
.mtcc-rivalry { border-left: none !important; }
.mtcc-rivalry-header {
  padding: 12px 14px;
  border-radius: 0;
}
.mtcc-rivalry-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e8dcc8;
  margin-bottom: 6px;
}
.mtcc-rivalry-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}
.mtcc-riv-vs { color: #8b9db0; font-size: 0.8rem; }
.mtcc-trophy-name { font-size: 0.8rem; color: var(--team-accent, #c9a84c); margin-top: 5px; }
.mtcc-card-body { padding: 10px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mtcc-series-label { font-size: 0.8rem; color: #94a3b8; margin-bottom: 4px; }
.mtcc-streak {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
  margin: 4px 0;
}
.mtcc-streak-bad  { color: #ef4444 !important; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.mtcc-streak-good { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.mtcc-h2h-row {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  align-items: baseline;
  padding: 2px 0;
}
.mtcc-h2h-year { color: #8b9db0; font-family: 'Teko', sans-serif; min-width: 36px; }
.mtcc-h2h-result { color: #e8dcc8; font-family: 'Libre Baskerville', serif; font-style: italic; }
.mtcc-h2h-result.win  { font-weight: 600; }
.mtcc-next-rivalry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0 4px;
}
.mtcc-next-riv-label { font-size: 0.72rem; color: #8b9db0; font-family: 'Teko', sans-serif; text-transform: uppercase; }
.mtcc-next-riv-date  { font-size: 0.875rem; color: #e8dcc8; font-weight: 600; }
.mtcc-next-riv-venue { font-size: 0.8rem; color: #94a3b8; }
.mtcc-next-riv-prob  { font-size: 0.875rem; font-weight: 700; margin-left: auto; }

/* Next game card */
.mtcc-nextgame-hero {
  padding: 12px 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.mtcc-nextgame-vs-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b9db0;
  line-height: 1;
}
.mtcc-nextgame-opp {
  font-family: 'Teko', sans-serif;
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.mtcc-nextgame-datetime {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
}
/* Form guide row (between hero and divider) */
.mtcc-nextgame-formrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px 8px;
  gap: 8px;
}
.mtcc-conf-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
}
.mtcc-form-guide {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.mtcc-form-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.mtcc-form-dot {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.mtcc-form-w { background: rgba(34,197,94,0.15); color: #22c55e; }
.mtcc-form-l { background: rgba(239,68,68,0.12); color: #ef4444; }
.mtcc-opp-form-row { display:flex; align-items:center; gap:7px; padding: 2px 0; }
.mtcc-opp-form-label { font-size:0.68em; color:#8b9db0; text-transform:uppercase; letter-spacing:0.2px; }
.mtcc-meta-sep { color: #94a3b8; }
/* Prob section — big numbers flanking bar */
.mtcc-prob-section { padding: 6px 14px 10px; }
.mtcc-prob-pct-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mtcc-prob-pct-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}
.mtcc-prob-pct-right { align-items: center; }
.mtcc-prob-pct-num {
  font-family: 'Teko', sans-serif;
  font-size: 2.0em;
  font-weight: 700;
  line-height: 1;
}
.mtcc-prob-pct-team {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  color: #8b9db0;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mtcc-prob-bar-col { flex: 1; }
.mtcc-prob-bar {
  height: 14px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.mtcc-prob-fill   { height: 100%; }
.mtcc-prob-fill-b { height: 100%; opacity: 0.55; }
.mtcc-prob-confidence {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.mtcc-confidence-chip {
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
/* Context fill — grows to fill remaining card height */
.mtcc-context-fill {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mtcc-matchup-context {
  padding: 6px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.mtcc-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.875rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex: 1;
}
.mtcc-context-row:last-child { border-bottom: none; }
.mtcc-context-lbl {
  color: #8b9db0;
  flex-shrink: 0;
}
.mtcc-context-val {
  font-weight: 600;
  color: #e8dcc8;
  font-size: 0.95rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}
.mtcc-edge-label {
  padding: 4px 0 2px;
  font-size: 0.875rem;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: baseline;
}
.mtcc-edge-prefix { color: #8b9db0; }
.mtcc-edge-val    { font-weight: 700; }
.mtcc-edge-delta  { color: #94a3b8; }
.mtcc-season-complete {
  padding: 20px 14px;
  text-align: center;
}
.mtcc-complete-label {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--team-accent, #c9a84c);
}
.mtcc-complete-record {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Path Forward card */
.mtcc-projected-finish {
  padding: 10px 14px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}
.mtcc-proj-label  { font-size: 0.8rem; color: #8b9db0; }
.mtcc-proj-range  { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700; }
.mtcc-proj-actual { font-size: 0.72rem; color: #8b9db0; }
.mtcc-path-progress { padding: 4px 14px 8px; }
.mtcc-path-progress-label { font-size: 0.72rem; color: #8b9db0; margin-bottom: 4px; display: block; }
.mtcc-schedule-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  flex: 1;
}
.mtcc-schedule-row:hover { background: rgba(255,255,255,0.04); }
.mtcc-sched-top {
  display: grid;
  grid-template-columns: 36px 22px 1fr 44px;
  align-items: center;
  gap: 4px 8px;
}
.mtcc-sched-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0 10px;
}
.mtcc-sched-wk  { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #8b9db0; }
.mtcc-sched-loc { font-size: 0.8rem; color: #8b9db0; text-transform: uppercase; font-family: 'Teko', sans-serif; }
.mtcc-sched-opp { font-size: 0.92em; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtcc-sched-pct-big { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; text-align: right; line-height: 1; }
.mtcc-sched-bar-tall { height: 7px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.mtcc-wprob-fill { height: 100%; border-radius: 3px; }
.mtcc-sched-verdict { font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.mtcc-sched-opp-rank { font-size: 0.72rem; color: #8b9db0; white-space: nowrap; }
/* Legacy selectors (kept for safety) */
.mtcc-sched-bar { height: 7px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.mtcc-sched-pct { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #94a3b8; text-align: right; }
.mtcc-path-prob-note {
  padding: 6px 14px 8px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}
/* Game rows container — flex-fill so rows stretch to use all card height */
.mtcc-game-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 14px;
  flex: 1;
}
.mtcc-game-rows .mtcc-schedule-row {
  flex: 1;
  min-height: 52px;
}

/* Program Pulse card */
.mtcc-pulse-section-header {
  padding: 6px 14px 4px;
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b9db0;
}
.mtcc-pulse-ranks {
  padding: 4px 14px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mtcc-pulse-rank-chip {
  font-size: 0.8rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
}
.mtcc-stars-row {
  padding: 4px 14px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mtcc-stars-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: #94a3b8;
}
.mtcc-stars-5 { color: #fbbf24 !important; border-color: rgba(251,191,36,0.3) !important; background: rgba(251,191,36,0.07) !important; }
.mtcc-stars-4 { color: var(--team-accent, #c9a84c) !important; border-color: rgba(255,255,255,0.27) !important; background: rgba(255,255,255,0.06) !important; }
.mtcc-commit-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 14px;
  font-size: 0.8rem;
}
.mtcc-commit-stars { color: #fbbf24; font-size: 0.875rem; min-width: 60px; }
.mtcc-commit-name  { font-weight: 700; color: #e8dcc8; }
.mtcc-commit-pos   { color: var(--team-accent, #c9a84c); font-family: 'Teko', sans-serif; font-size: 0.95rem; }
.mtcc-commit-state { color: #8b9db0; font-size: 0.95rem; margin-left: auto; }
.mtcc-portal-summary {
  padding: 4px 14px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mtcc-portal-chip {
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
}
.mtcc-portal-net-pos { color: #22c55e !important; border-color: rgba(34,197,94,0.3) !important; background: rgba(34,197,94,0.07) !important; }
.mtcc-portal-net-neg { color: #ef4444 !important; border-color: rgba(239,68,68,0.3) !important; background: rgba(239,68,68,0.07) !important; }
.mtcc-portal-top {
  padding: 4px 14px 6px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
}
.mtcc-portal-top-label { color: #8b9db0; }
.mtcc-portal-top-name  { font-weight: 700; }
.mtcc-portal-top-pos   { font-family: 'Teko', sans-serif; font-size: 1.0em; color: var(--team-accent, #c9a84c); }
.mtcc-portal-top-from  { color: #94a3b8; }
.mtcc-pulse-actions {
  padding: 8px 14px 12px;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Action chips (shared) */
.mtcc-action-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  margin: 8px 14px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.23);
  color: var(--team-accent, #c9a84c) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
}
.mtcc-action-chip:hover { background: rgba(255,255,255,0.16); }
.mtcc-pulse-actions .mtcc-action-chip { margin: 0; }

/* MTCC header top row — team name + change team side by side */
.mtcc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mtcc-clear-team {
  font-size: 0.8rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--team-accent, #c9a84c);
  cursor: pointer;
  padding: 5px 14px 4px;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--team-accent, #c9a84c) 65%, transparent);
  background: color-mix(in srgb, var(--team-accent, #c9a84c) 12%, transparent);
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  user-select: none;
  font-weight: 600;
  line-height: 1.3;
}
.mtcc-clear-team:hover {
  color: #e8dcc8;
  background: color-mix(in srgb, var(--team-accent, #c9a84c) 22%, transparent);
  border-color: var(--team-accent, #c9a84c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--team-accent, #c9a84c) 30%, transparent);
}

/* Selectize clear_button plugin — ensure it's visible in dark theme */
.selectize-control.single .selectize-input.has-items .clear-button,
.my-team-picker-wrapper .selectize-input .clear-button {
  opacity: 0.6;
  color: #e8dcc8 !important;
  font-size: 14px;
  position: static;
  margin-left: 4px;
}
.my-team-picker-wrapper .selectize-input .clear-button:hover { opacity: 1; }

/* ── Navbar team accent — applied when My Team is set ── */
.navbar { transition: border-bottom-color 0.4s ease; }
.navbar.team-accented {
  border-bottom: 2px solid var(--nav-team-accent, transparent);
  box-shadow: 0 2px 12px -2px color-mix(in srgb, var(--nav-team-accent, transparent) 30%, transparent);
}
.navbar-brand .cfb-title-accent {
  transition: color 0.4s ease;
  color: var(--nav-team-accent, #c9a84c);
}

/* ── Program Pulse v2 — section blocks, big numbers ── */
.mtcc-section-block { padding: 10px 14px 6px; }
.mtcc-section-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b9db0;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mtcc-pulse-body { display: flex; flex-direction: column; flex: 1; }

/* Recruiting headline — 3 big stat boxes */
.mtcc-pulse-headline {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}
.mtcc-pulse-big-stat {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mtcc-pulse-big-stat:last-child { border-right: none; }
.mtcc-pulse-big-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1;
  color: #e8dcc8;
}
.mtcc-pulse-big-lbl {
  font-size: 0.65rem;
  color: #8b9db0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Teko', sans-serif;
  margin-top: 2px;
}

/* Stars compact row */
.mtcc-stars-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.mtcc-sc-five, .mtcc-sc-four, .mtcc-sc-three {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.mtcc-sc-five { color: #fbbf24; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); }
.mtcc-sc-four { color: #c9a84c; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); }
.mtcc-sc-three { color: #94a3b8; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.mtcc-sc-five em, .mtcc-sc-four em, .mtcc-sc-three em { font-style: normal; opacity: 0.75; }

/* Commit rows v2 */
.mtcc-commits-list { display: flex; flex-direction: column; gap: 4px; }
.mtcc-commit-row2 {
  display: grid;
  grid-template-columns: 52px 1fr 30px 22px;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mtcc-commit-row2:last-child { border-bottom: none; }
.mtcc-cr-stars { color: #fbbf24; font-size: 0.875rem; }
.mtcc-cr-name  { font-weight: 600; color: #e8dcc8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtcc-cr-pos   { font-family: 'Teko', sans-serif; font-size: 0.95rem; color: var(--team-accent, #c9a84c); text-align: center; }
.mtcc-cr-state { font-size: 0.875rem; color: #8b9db0; text-align: right; }

/* Portal headline — big NET flanked by IN/OUT */
.mtcc-portal-headline {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 10px;
  margin-bottom: 4px;
}
.mtcc-portal-net-block { text-align: center; }
.mtcc-portal-net-num {
  font-family: 'Teko', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1;
}
.mtcc-portal-net-lbl {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b9db0;
  margin-top: 2px;
}
.mtcc-portal-inout { text-align: center; }
.mtcc-portal-in-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
}
.mtcc-portal-out-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #ef4444;
  line-height: 1;
}
.mtcc-portal-in-lbl, .mtcc-portal-out-lbl {
  font-family: 'Teko', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b9db0;
  margin-top: 2px;
}

/* Portal player rows */
.mtcc-portal-player-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 5px 0 3px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mtcc-ppr-dir     { font-size: 0.875rem; color: #22c55e; }
.mtcc-ppr-dir-out { color: #ef4444; }
.mtcc-ppr-name    { font-weight: 700; color: #e8dcc8; flex: 1; }
.mtcc-ppr-pos     { font-family: 'Teko', sans-serif; color: var(--team-accent, #c9a84c); font-size: 0.95rem; }
.mtcc-ppr-arrow   { color: #94a3b8; font-size: 0.95rem; }
.mtcc-ppr-school  { color: #8b9db0; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.mtcc-ppr-loss .mtcc-ppr-name { color: #94a3b8; }

/* Portal position-group breakdown */
.mtcc-portal-positions {
  font-size: 0.72rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding: 4px 0 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2px;
}
.mtcc-pp-gained { color: #86efac; }
.mtcc-pp-lost   { color: #fca5a5; }
.mtcc-pp-sep    { color: #3e4047; margin: 0 2px; }

/* Recruiting class trajectory */
.mtcc-trajectory { padding-top: 4px; padding-bottom: 2px; }
.mtcc-traj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mtcc-traj-text {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
  letter-spacing: 0.02em;
}
.mtcc-traj-arrow {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Recruiting Pipeline ── */
.mtcc-pipeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mtcc-pipeline-rank {
  font-family: 'Teko', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  min-width: 48px;
  text-align: center;
}
.mtcc-pipeline-detail { flex: 1; min-width: 0; }
.mtcc-pipeline-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.82rem;
  color: #e8dcc8;
  margin-bottom: 4px;
}
.mtcc-pipeline-trend {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.mtcc-pipeline-bar-wrap {
  height: 6px;
  background: #2a2520;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.mtcc-pipeline-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.mtcc-pipeline-sub {
  font-size: 0.7rem;
  color: #7a8a9b;
  font-family: 'Libre Baskerville', serif;
}

/* ── Navbar team pill ── */
.cfb-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  margin-right: 12px;
  padding: 3px 8px 3px 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--pill-color, #c9a84c) 50%, transparent);
  background: color-mix(in srgb, var(--pill-color, #c9a84c) 12%, transparent);
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s;
  /* button reset */
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-decoration: none;
  line-height: 1.4;
}
.cfb-team-pill:hover {
  background: color-mix(in srgb, var(--pill-color, #c9a84c) 22%, transparent);
}
.cfb-tp-name {
  color: var(--pill-color, #c9a84c);
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfb-tp-x {
  color: var(--pill-color, #c9a84c);
  opacity: 0.6;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: opacity 0.15s;
}
.cfb-tp-x:hover { opacity: 1; }

/* ── Storyline above calendar strip ── */
.countdown-storyline-above {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
  padding: 0;
}
.countdown-storyline-above .countdown-story-icon { color: var(--nav-team-accent, #c9a84c); flex-shrink: 0; }
.countdown-storyline-above .countdown-story-text { font-style: italic; }

/* ── Hero team stats ribbon ── */
.hero-team-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 0;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--ht-color, #c9a84c);
  border-radius: 10px;
  transition: border-color 0.4s;
}
.hero-team-stat {
  flex: 1;
  text-align: center;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.hero-team-stat:hover { background: rgba(255,255,255,0.04); }
.hts-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.7em;
  font-weight: 700;
  line-height: 1;
  color: var(--ht-color-r, #c9a84c);
}
.hts-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e8dcc8;
  margin-top: 1px;
}
.hts-sub {
  font-size: 0.72rem;
  color: #8b9db0;
  margin-top: 1px;
}
.hts-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.hts-team-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hts-clear {
  opacity: 0.55;
  font-size: 1.1rem;
  cursor: pointer;
  padding-left: 2px;
  transition: opacity 0.15s;
}
.hts-clear:hover { opacity: 1; }
@media (max-width: 768px) {
  .hero-team-stats { flex-wrap: wrap; gap: 6px; }
  .hts-team-badge  { margin-left: auto; }
  .hts-sep { display: none; }
}

/* ── Command center fill stats ── */
.mtcc-mini-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 14px 10px;
  gap: 4px;
}
.mtcc-mini-stat {
  flex: 1;
  text-align: center;
}
.mtcc-mini-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #e8dcc8;
}
.mtcc-mini-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b9db0;
  margin-top: 2px;
}
.mtcc-mini-avg {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
  font-style: italic;
}
/* =========================================================
   MTCC JUMBOTRON NAMEPLATE
   Full-bleed bar between narrative header and the 6-card grid
   ========================================================= */
.mtcc-nameplate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.mtcc-nameplate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}
.mtcc-nameplate-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mtcc-nameplate-name {
  font-family: 'Teko', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--team-accent, #c9a84c);
  text-shadow: 0 2px 24px color-mix(in srgb, var(--team-accent, #c9a84c) 35%, transparent);
  text-align: center;
  line-height: 1;
}
.mtcc-nameplate-mascot {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.55);
  text-align: center;
  line-height: 1;
}
.mtcc-nameplate-left,
.mtcc-nameplate-right {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mtcc-nameplate-right { align-items: flex-end; }
.mtcc-nameplate-rank {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(232, 220, 200, 0.85);
  line-height: 1;
}
.mtcc-nameplate-nr {
  color: rgba(122, 138, 155, 0.7);
  font-size: 1.1rem;
}
.mtcc-nameplate-record {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(232, 220, 200, 0.85);
  line-height: 1;
}
.mtcc-nameplate-rank::before { content: 'Rank'; display: block; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.07em; color: #8b9db0; font-family: sans-serif; }
.mtcc-nameplate-record::before { content: 'Record'; display: block; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.07em; color: #8b9db0; font-family: sans-serif; text-align: right; }

@media (max-width: 600px) {
  .mtcc-nameplate { padding: 14px 16px; }
  .mtcc-nameplate-name { font-size: 1.8rem; letter-spacing: 0.07em; }
  .mtcc-nameplate-left, .mtcc-nameplate-right { min-width: 60px; }
  .mtcc-nameplate-rank, .mtcc-nameplate-record { font-size: 1.35rem; }
}

/* ── Change Team button — in nameplate, eye-level with team name ─────────── */
.mtcc-change-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--team-accent, #c9a84c) 45%, transparent);
  border-radius: 6px;
  color: var(--team-accent, #c9a84c);
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  opacity: 0.85;
}
.mtcc-change-team-btn:hover {
  background: color-mix(in srgb, var(--team-accent, #c9a84c) 15%, transparent);
  border-color: var(--team-accent, #c9a84c);
  opacity: 1;
}
.mtcc-change-team-btn .fa-arrows-rotate { font-size: 0.8rem; }

/* ── Path Forward: spans 2 grid rows so Rivalry/Next Game + Pulse fill col 1-2 ── */
.mtcc-path {
  grid-row: span 2;
}

/* ── Program Pulse: fills cols 1-2 of the row beside tall Path Forward ─────── */
.mtcc-pulse {
  grid-column: 1 / 3;
}
.mtcc-pulse .mtcc-pulse-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
}
/* Hide the flex divider — columns provide visual separation instead */
.mtcc-pulse .mtcc-pulse-body > .mtcc-divider {
  display: none;
}
/* Vertical rule between each section */
.mtcc-pulse .mtcc-pulse-body > .mtcc-section-block ~ .mtcc-section-block,
.mtcc-pulse .mtcc-pulse-body > .mtcc-section-block ~ .mtcc-trajectory {
  border-left: 1px solid #2e2818;
  padding-left: 20px;
}
@media (max-width: 900px) {
  .mtcc-pulse .mtcc-pulse-body {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .mtcc-pulse .mtcc-pulse-body > .mtcc-section-block ~ .mtcc-section-block,
  .mtcc-pulse .mtcc-pulse-body > .mtcc-section-block ~ .mtcc-trajectory {
    border-left: none;
    padding-left: 0;
  }
  .mtcc-pulse .mtcc-pulse-body > .mtcc-divider { display: block; }
}

/* =========================================================
   STATE TILE WALLPAPER — fixed sidebars outside content column
   ========================================================= */
.cfb-state-sidebar {
  position: fixed;
  top: 56px; /* below navbar */
  bottom: 0;
  width: clamp(24px, 7vw, 180px); /* matches tab content side padding exactly */
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cfb-state-sidebar-left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
}
.cfb-state-sidebar-right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to left, black 0%, black 55%, transparent 100%);
}
@media (max-width: 768px) { .cfb-state-sidebar { display: none; } }

/* SP+ info badge — clickable ⓘ with popover explainer */
.sp-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.sp-info-badge:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.7);
}
.sp-info-tip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  max-width: 90vw;
  background: #231f1a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #e8dcc8;
  z-index: 9999;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  pointer-events: none;
}
.sp-info-tip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(59, 130, 246, 0.35);
}

/* AP rank badge — shown inline with team name when ap_data available */
.ap-rank-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 5px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Portal Trends: Conference Pulse ── */
.conf-pulse-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 18px 20px 14px;
  margin-bottom: 24px;
}

.cpulse-header {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpulse-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .cpulse-callouts { grid-template-columns: 1fr; }
}

.cpulse-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.cpulse-callout-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

.cpulse-callout-text {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.45;
}

.cpulse-callout-text b {
  color: #e8dcc8;
  font-weight: 600;
}

/* Leaderboard header */
.cpulse-lb-header {
  display: grid;
  grid-template-columns: 120px 1fr 42px 100px 72px 38px;
  gap: 6px;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
@media (max-width: 700px) {
  .cpulse-lb-header { display: none; }
}

.cpulse-lb {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpulse-conf-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px 100px 72px 38px;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.cpulse-conf-row:hover {
  background: rgba(255,255,255,0.04);
}
@media (max-width: 700px) {
  .cpulse-conf-row {
    grid-template-columns: 1fr 80px 36px 36px;
  }
  .cpulse-vol, .cpulse-avg-imp { display: none; }
}

.cpulse-conf-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpulse-net-bar {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.cpulse-net-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cpulse-net-num {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.cpulse-vol {
  font-size: 0.73rem;
  color: #94a3b8;
  white-space: nowrap;
}

.cpulse-avg-imp {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: right;
}

.cpulse-grade {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid;
  border-radius: 3px;
  padding: 0 5px;
  line-height: 1.5;
}

/* ── Portal Trends: Turnaround Watch ── */
.twatch-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px 14px;
  margin-bottom: 24px;
}

.twatch-header {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.twatch-blurb {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.twatch-toggle-btn {
  background: transparent !important;
  border: 1px solid #4a4d55 !important;
  color: #c9a84c !important;
  font-size: 0.8rem;
  padding: 4px 14px !important;
  border-radius: 10px !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.twatch-toggle-btn:hover {
  border-color: #c9a84c !important;
  background: #c9a84c11 !important;
}

.twatch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.twatch-row {
  display: grid;
  grid-template-columns: 20px 1fr 80px 1fr 72px;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.twatch-row:hover { background: rgba(255,255,255,0.04); }

.twatch-rank {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  text-align: center;
}

.twatch-school {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twatch-rec {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.twatch-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.twatch-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.twatch-imp {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c9a84c;
  text-align: right;
  white-space: nowrap;
}

.twatch-imp-lbl {
  font-family: sans-serif;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════
   MAP SIDEBAR: CULTURE TAB
   ══════════════════════════════════════════════════════════ */

/* Chant hero */
.cult-chant-hero {
  padding: 16px 14px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-align: center;
}
.cult-chant-text {
  font-family: 'Cinzel', serif !important;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.cult-chant-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Atmosphere score block */
.cult-atm-block {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.cult-atm-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.cult-atm-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b9db0;
  font-weight: 600;
}
.cult-atm-rank {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: #c9a84c;
  font-weight: 500;
}
.cult-atm-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.cult-atm-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.cult-atm-sub {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Gameday vibe */
.cult-vibe-section {
  margin-bottom: 14px;
}
.cult-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b9db0;
  font-weight: 700;
  margin-bottom: 8px;
}
.cult-vibe-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.84rem;
  color: #c4b7a0;
  line-height: 1.65;
  padding: 10px 12px;
  background: rgba(201,168,76,0.05);
  border-left: 3px solid rgba(201,168,76,0.3);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

/* Traditions section */
.cult-traditions-section { margin-bottom: 8px; }

.cult-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cult-type-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Tradition cards */
.cult-trad-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cult-trad-card {
  background: rgba(0,0,0,0.18);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cult-trad-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cult-trad-icon {
  font-size: 1em;
  flex-shrink: 0;
}
.cult-trad-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: 1;
}
.cult-trad-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cult-trad-desc {
  font-size: 0.81rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* ── Map Sidebar: Glory Days Tab ── */
.glory-days-tab { padding: 12px 4px; }
.glory-days-header {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.glory-eras { display: flex; flex-direction: column; gap: 14px; }
.glory-era-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid #c9a84c;
  border-radius: 10px;
  padding: 12px 14px;
}
.glory-era-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.glory-era-years {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  color: #c9a84c;
  font-weight: 700;
}
.glory-era-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
}
.glory-era-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}
.glory-titles { color: #f59e0b; font-size: 0.8rem; }
.glory-record { color: #94a3b8; }
.glory-headline {
  font-weight: 600;
  font-size: 0.875rem;
  color: #e8dcc8;
  margin-bottom: 6px;
}
.glory-narrative {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 8px;
}
.glory-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.glory-wins-list {
  padding-left: 16px;
  margin: 0 0 8px;
  font-size: 0.77rem;
  color: #94a3b8;
}
.glory-wins-list li { margin-bottom: 2px; }
.glory-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}
.glory-player-chip {
  font-size: 0.72rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: #c9a84c;
  border-radius: 10px;
  padding: 1px 8px;
}
.glory-empty { padding: 20px; text-align: center; }

/* =========================================================
   TEAMS PAGE — CULTURE & TRADITIONS EXPANDABLE SECTION
   ========================================================= */
.culture-collapse-section {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.culture-collapse-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
  user-select: none;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.culture-collapse-toggle:hover { color: #e8dcc8; }
.culture-icon { color: #c9a84c; flex-shrink: 0; }

/* The chant shown inline in the collapsed toggle row */
.culture-chant-display {
  font-family: 'Cinzel', serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 4px;
  opacity: 0.9;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.culture-toggle-arrow {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.culture-collapse-toggle.open .culture-toggle-arrow { transform: rotate(180deg); }

.culture-collapse-body {
  padding: 4px 4px 12px;
}

/* Gameday vibe blockquote */
.culture-blockquote {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #b8a99a;
  line-height: 1.6;
  border-left: 2px solid rgba(201,168,76,0.3);
  padding: 6px 12px;
  margin: 0 0 12px 0;
}

/* Traditions grid */
.culture-traditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.culture-tradition-card {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 10px 12px;
}

.culture-tradition-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.culture-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}

.culture-tradition-name {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8dcc8;
  letter-spacing: 0.02em;
}

.culture-tradition-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   CSS TOOLTIP SYSTEM — data-tooltip attribute
   ============================================================ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #2a2520;
  border: 1px solid rgba(201,168,76,0.4);
  color: #e8dcc8;
  font-family: sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 260px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; }

/* Prevent leaflet map from trapping navbar hover state */
.leaflet-container { isolation: isolate; }

/* GOTW inside grid — full width */
.home-grid > .shiny-html-output:has(.home-gotw) { display: contents; }
.home-grid .home-gotw { grid-column: 1 / -1; }
/* Data Pulse card */
.home-card-pulse { grid-column: 1 / -1; }
.home-pulse-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.home-pulse-subtitle { font-size: 0.72rem; color: #8b9db0; font-style: italic; }
/* ── Data Pulse banner ── */
.home-banner-pulse {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(26,20,16,0.95) 50%, rgba(201,168,76,0.06) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
/* ── Pulse Ticker ── */
.pulse-ticker-viewport {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
  padding: 10px 0 6px;
  touch-action: pan-x;
}
.pulse-ticker-viewport::-webkit-scrollbar { height: 4px; }
.pulse-ticker-viewport::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
.pulse-ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: pulse-scroll 60s linear infinite;
  padding: 4px 14px;
}
.pulse-ticker-track:hover { animation-play-state: paused; }
@keyframes pulse-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pulse-ticker-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.pulse-ticker-card:hover { border-color: rgba(201,168,76,0.3); }
.pulse-freeze-btn {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.pulse-freeze-btn:hover { color: #c9a84c; border-color: rgba(201,168,76,0.4); }
/* New category colors */
.home-pulse-cat-recruiting-intel { background: rgba(251,191,36,0.15); color: #fbbf24; }
.home-pulse-cat-conference-watch { background: rgba(14,165,233,0.15); color: #38bdf8; }
.home-pulse-cat-defense-watch { background: rgba(99,102,241,0.15); color: #818cf8; }
.home-pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.home-pulse-story { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s; }
.home-pulse-story:hover { border-color: rgba(201,168,76,0.2); }
.home-pulse-story-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pulse-revised {
  font-family: 'Teko', sans-serif;
  font-size: 0.65rem;
  color: #7a8a9b;
  letter-spacing: 0.03em;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-pulse-num { font-family: 'Teko', sans-serif; font-size: 1.5em; font-weight: 700; color: #c9a84c; line-height: 1; min-width: 22px; }
.home-pulse-cat { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 10px; }
.home-pulse-cat-analytics-edge { background: rgba(59,130,246,0.15); color: #60a5fa; }
.home-pulse-cat-portal-watch { background: rgba(168,85,247,0.15); color: #c084fc; }
.home-pulse-cat-momentum-alert { background: rgba(239,68,68,0.15); color: #f87171; }
.home-pulse-cat-coaching-intel { background: rgba(34,197,94,0.15); color: #4ade80; }
.home-pulse-story-text { font-family: 'Libre Baskerville', serif; font-size: 0.84em; color: #c8bfb0; line-height: 1.6; margin: 0; flex: 1; }
.pulse-see-why {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  color: #c9a84c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s;
  align-self: flex-start;
}
.pulse-see-why:hover { color: #e8dcc8; }
/* Expanded card state — trophy case clipping feel */
.pulse-ticker-card.pulse-expanded,
.home-pulse-story.pulse-expanded {
  background: linear-gradient(160deg, #1e1a14 0%, #2a2318 60%, #1e1a14 100%);
  border-color: rgba(201,168,76,0.4);
  border-left: 3px solid #c9a84c;
  box-shadow: inset 0 1px 0 rgba(201,168,76,0.08), 0 4px 20px rgba(0,0,0,0.35);
  padding-bottom: 16px;
}
.pulse-ticker-card.pulse-expanded,
.home-pulse-story.pulse-expanded { flex: 0 0 min(420px, calc(100vw - 40px)); }
.pulse-ticker-card.pulse-expanded .home-pulse-story-text,
.home-pulse-story.pulse-expanded .home-pulse-story-text {
  color: #e8dcc8;
  font-weight: 600;
}
.pulse-article {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  color: #c8bfaa;
  line-height: 1.75;
  padding: 14px 14px 6px;
  margin-top: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.1);
  position: relative;
}
.pulse-article::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.pulse-article p { margin: 0 0 12px; }
.pulse-article p:last-child { margin-bottom: 0; }
.pulse-article p:first-child::first-letter {
  font-size: 1.65rem;
  font-family: 'Cinzel', serif;
  color: #c9a84c;
  vertical-align: baseline;
  line-height: 1;
}
.rankings-freshness {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}
@media (max-width: 768px) { .home-pulse-grid { grid-template-columns: 1fr; } }

/* Mobile: kill ticker animation, use static scrollable row */
@media (max-width: 768px) {
  .pulse-ticker-track {
    animation: none !important;
    width: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .pulse-ticker-card {
    scroll-snap-align: start;
    flex: 0 0 min(280px, calc(100vw - 50px));
  }
  /* Hide duplicated cards (2nd half) — only needed for infinite animation */
  .pulse-ticker-track > .pulse-ticker-card:nth-child(n+11) { display: none; }
  .pulse-freeze-btn { display: none; }
}

/* ── Betting Edge season toggle ── */
.edge-season-toggle { margin-bottom: 0.5rem; }
.edge-season-toggle .shiny-input-radiogroup { display: flex; gap: 0; }
.edge-season-toggle .radio-inline {
  padding: 0.3rem 0.8rem; margin: 0;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border, #3e4047);
  color: #94a3b8; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.edge-season-toggle .radio-inline:first-child { border-radius: 3px 0 0 4px; }
.edge-season-toggle .radio-inline:last-child { border-radius: 0 4px 4px 0; }
.edge-season-toggle .radio-inline:has(input:checked) {
  background: rgba(201,168,76,0.15); border-color: #c9a84c; color: #c9a84c;
}
.edge-season-toggle .radio-inline input { display: none; }

/* ── Betting Edge tab ── */
.edge-accuracy-banner { display: flex; align-items: baseline; gap: 10px; background: rgba(201,168,76,0.06); border-left: 3px solid #c9a84c; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.edge-acc-num { font-family: 'Teko', sans-serif; font-size: 2em; font-weight: 700; color: #c9a84c; line-height: 1; }
.edge-acc-pct { font-family: 'Teko', sans-serif; font-size: 1.65rem; font-weight: 700; line-height: 1; }
.edge-acc-label { font-size: 0.8rem; color: #94a3b8; }
.edge-acc-note { font-size: 0.72rem; color: #8b9db0; width: 100%; margin-top: 4px; }
.edge-section-label { font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 0 8px; }
.edge-table-wrap { display: flex; flex-direction: column; gap: 2px; }
.edge-row { display: grid; grid-template-columns: 2.5fr 80px 80px 80px 1fr; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 6px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }
.edge-row:hover { background: rgba(255,255,255,0.04); }
.edge-row-strong { border-color: rgba(201,168,76,0.15); background: rgba(201,168,76,0.04); }
.edge-matchup { font-family: 'Teko', sans-serif; font-size: 1.1rem; color: #e8dcc8; display: flex; align-items: center; gap: 6px; }
.edge-at { color: #8b9db0; font-size: 0.875rem; }
.edge-col { display: flex; flex-direction: column; align-items: center; }
.edge-mini-label { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }
.edge-mini-val { font-family: 'Teko', sans-serif; font-size: 1em; color: #94a3b8; }
.edge-mini-num { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; }
.edge-verdict { font-size: 0.8rem; font-weight: 600; }
@media (max-width: 768px) { .edge-row { grid-template-columns: 1fr 1fr; } .edge-verdict { grid-column: 1/-1; } }

/* ── Coaching Trees ── */
.coach-career-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.coach-hdr { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.coach-hdr-name { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; color: #c9a84c; flex: 1; min-width: 180px; }
.coach-active-badge { font-size: 0.72rem; background: rgba(34,197,94,0.12); color: #22c55e; padding: 3px 9px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.coach-hdr-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.coach-stat { display: flex; flex-direction: column; align-items: center; }
.coach-stat-num { font-family: 'Teko', sans-serif; font-size: 1.4em; font-weight: 700; color: #e8dcc8; line-height: 1; }
.coach-stat-lbl { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }
.coach-timeline { display: flex; flex-direction: column; gap: 3px; }
.coach-season-row { display: grid; grid-template-columns: 48px 12px 1.4fr 1fr 70px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 3px; transition: background 0.1s; }
.coach-season-row:hover { background: rgba(255,255,255,0.03); }
.coach-yr { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #8b9db0; }
.coach-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.coach-school { font-size: 0.875rem; color: #e8dcc8; }
.coach-bar-wrap { height: 4px; background: rgba(255,255,255,0.06); border-radius: 3px; }
.coach-bar { height: 4px; border-radius: 3px; }
.coach-rec { font-family: 'Teko', sans-serif; font-size: 0.95rem; text-align: right; }
.coach-section-label { font-family: 'Teko', sans-serif; font-size: 0.875rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 0 6px; display: flex; align-items: center; gap: 6px; }
.coach-peers-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px; }
.coach-peer-chip { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 6px; padding: 8px 12px; min-width: 170px; display: flex; flex-direction: column; gap: 3px; }
.coach-peer-chip.coach-peer-active { border-color: rgba(34,197,94,0.2); background: rgba(34,197,94,0.04); }
.coach-peer-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coach-peer-name { font-family: 'Libre Baskerville', serif; font-size: 0.875rem; font-weight: 700; color: #e8dcc8; letter-spacing: 0.01em; }
.coach-peer-school { font-size: 0.72rem; color: #c9a84c; }
.coach-peer-rec { font-size: 0.72rem; color: #94a3b8; }
.coach-peer-badge { font-size: 0.65rem; background: rgba(34,197,94,0.15); color: #4ade80; padding: 1px 6px; border-radius: 3px; font-weight: 600; flex-shrink: 0; }
.hot-seat-list { display: flex; flex-direction: column; gap: 5px; }
.hot-seat-row { display: grid; grid-template-columns: 12px 1.2fr 1.2fr 1fr 36px 80px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.08); }
.hot-pressure { font-family: 'Teko', sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1; text-align: center; }
.hot-seat-explainer { font-size: 0.7rem; color: #7a8a9b; margin: 4px 0 10px; line-height: 1.4; }
.hot-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.hot-school { font-family: 'Teko', sans-serif; font-size: 1em; font-weight: 700; color: #e8dcc8; }
.hot-coach { font-size: 0.8rem; color: #94a3b8; }
.hot-bar-wrap { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; }
.hot-bar { height: 5px; border-radius: 3px; }
.hot-rec { font-family: 'Teko', sans-serif; font-size: 0.95rem; text-align: right; }

/* ========== Team Schedule Tiles ========== */
.team-schedule-list { display: flex; flex-direction: column; gap: 0; }

.schedule-week-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; margin-bottom: 6px; margin-top: 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--schedule-banner-color, #c9a84c);
  border-radius: 3px;
}
.schedule-week-banner:first-child { margin-top: 0; }
.schedule-postseason-banner { border-left-color: #c9a84c; background: rgba(201,168,76,0.06); }
.schedule-week-banner-text {
  font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700;
  color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em;
}

.schedule-week-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 4px;
}

.schedule-game-tile {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid #c9a84c; border-radius: 6px;
  padding: 9px 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  min-width: 0;
}
.schedule-game-tile:hover { background: rgba(255,255,255,0.06); }
.tile-active { border-color: rgba(201,168,76,0.4) !important; background: rgba(201,168,76,0.05) !important; }
.tile-full-width { grid-column: 1 / -1; }

.schedule-tile-row1 {
  display: flex; align-items: center; gap: 7px; margin-bottom: 5px;
}
.schedule-tile-ha {
  font-family: 'Teko', sans-serif; font-size: 0.8rem; color: #8b9db0;
  min-width: 14px; text-align: center; flex-shrink: 0;
}
.schedule-tile-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.schedule-tile-opp {
  font-family: 'Libre Baskerville', serif; font-size: 0.875rem;
  font-weight: 700; color: #e8dcc8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.schedule-tile-row2 {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.schedule-tile-score {
  font-family: 'Teko', sans-serif; font-size: 1rem; color: #94a3b8;
}
.schedule-tile-wl {
  font-family: 'Teko', sans-serif; font-size: 0.72rem; font-weight: 700;
  padding: 1px 7px; border-radius: 10px; letter-spacing: 0.04em;
}
.tile-win { background: rgba(34,197,94,0.15); color: #22c55e; }
.tile-loss { background: rgba(239,68,68,0.15); color: #ef4444; }
.tile-proj { opacity: 0.65; }

/* Expanded game detail panel */
.game-expanded {
  background: rgba(255,255,255,0.025); border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255,255,255,0.06); border-left: 3px solid #c9a84c;
  padding: 12px 14px; margin-bottom: 6px; margin-top: -2px;
}
.game-detail-grid {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.game-detail-team { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.game-detail-name {
  font-family: 'Teko', sans-serif; font-size: 1rem; font-weight: 700; color: #e8dcc8;
}
.game-detail-conf { font-size: 0.72rem; color: #8b9db0; }
.game-detail-vs {
  font-size: 0.8rem; color: #8b9db0; text-align: center;
  font-family: sans-serif; flex-shrink: 0;
}
.game-detail-stat { font-size: 0.8rem; color: #94a3b8; }

.game-preview-prediction {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.game-preview-winner {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; color: #c9a84c;
}
.game-preview-conf { font-size: 0.72rem; color: #8b9db0; }

.game-preview-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.game-preview-stat {
  display: flex; align-items: center; gap: 6px; font-size: 0.8rem;
}
.game-preview-val {
  font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #e8dcc8;
}
.game-preview-lbl {
  font-size: 0.65rem; color: #8b9db0; text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 576px) {
  .schedule-week-grid { grid-template-columns: 1fr; }
  .tile-full-width { grid-column: 1; }
}

/* Tier badge — rankings rows */
.tier-badge { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid; border-radius: 10px; padding: 1px 7px; font-family: 'Teko', sans-serif; white-space: nowrap; margin-left: 6px; vertical-align: middle; display: inline-block; }

/* ================================================================
   2026 Projections (mod_predict.R — 2026 Outlook sub-tab)
   ================================================================ */
.proj-grid { display: flex; flex-direction: column; gap: 3px; }
.proj-summary { font-size: 0.72rem; color: #8b9db0; padding: 6px 0 10px; }
.proj-row { display: grid; grid-template-columns: 50px 2fr 1.5fr 90px 70px; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 6px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }
.proj-row:hover { background: rgba(255,255,255,0.04); }
.proj-week { font-family: 'Teko', sans-serif; font-size: 0.875rem; color: #8b9db0; }
.proj-matchup { font-family: 'Teko', sans-serif; font-size: 1em; display: flex; align-items: center; gap: 6px; }
.proj-at { color: #8b9db0; font-size: 0.8rem; }
.proj-winner { font-size: 0.8rem; }
.proj-winner-label { color: #8b9db0; font-size: 0.95rem; }
.proj-prob { display: flex; align-items: center; gap: 6px; font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; }
.proj-conf-badge { font-size: 0.58rem; border: 1px solid; border-radius: 10px; padding: 1px 6px; font-family: 'Teko', sans-serif; }
.proj-margin { font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #94a3b8; text-align: right; }
@media (max-width: 768px) { .proj-row { grid-template-columns: 40px 1fr 1fr; } .proj-margin { display: none; } }

/* ================================================================
   Advanced Analytics section in team detail cards (mod_teams.R)
   ================================================================ */
.adv-stats-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.adv-stats-title { font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.adv-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adv-stat-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 8px 10px; text-align: center; }
.adv-stat-value { font-family: 'Teko', sans-serif; font-size: 1.35rem; font-weight: 700; color: #e8dcc8; line-height: 1; }
.adv-stat-label { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.adv-stat-avg { font-size: 0.58em; color: #8b9db0; margin-top: 1px; }

/* ================================================================
   Player Stat Leaders section (mod_teams.R — reserved for future use)
   ================================================================ */
.team-leaders-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.team-leaders-title { font-family: 'Teko', sans-serif; font-size: 0.8rem; font-weight: 700; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.team-leaders-grid { display: flex; flex-direction: column; gap: 5px; }
.leader-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.leader-stat-label { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; min-width: 65px; font-family: 'Teko', sans-serif; letter-spacing: 0.04em; }
.leader-name { font-size: 0.875rem; color: #e8dcc8; flex: 1; }
.leader-value { font-family: 'Teko', sans-serif; font-size: 1em; color: #c9a84c; font-weight: 700; }

/* ================================================================
   L1 — Advanced stats icon
   ================================================================ */
.adv-stats-icon { color: #94a3b8; font-size: 0.875rem; margin-right: 2px; }

/* ================================================================
   M1 — Advanced stats grid mobile breakpoints
   ================================================================ */
@media (max-width: 576px) {
  .adv-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 380px) {
  .adv-stats-grid { grid-template-columns: 1fr !important; }
}

/* ================================================================
   CENTERING SWEEP — tab intro text, card headers, stat labels
   ================================================================ */

/* Tab-level lead/intro paragraphs */
.matchups-container > .text-muted,
.matchups-container > p.text-muted,
.learn-container > .text-muted,
.learn-container > .lead,
.learn-container > p.text-muted {
  text-align: center;
}

/* Rankings tab controls area */
.rankings-controls h4 { text-align: center; }

/* Home card label rows used as section headers */
.home-banner + .text-muted { text-align: center; }

/* Predict tab — weights help text */
.predict-weights-help { text-align: center; }

/* Compare tab — intro text */
.compare-panel > p.text-muted,
.compare-panel > .text-muted { text-align: center; }

/* Portal tab — intro / team search label */
.portal-team-search-label { text-align: center; }

/* Schedule tab — sim section descriptions */
.sim-section-intro { text-align: center; }

/* Teams tab — empty / fallback messages */
.teams-empty-state { text-align: center; }

/* Draft tab — section headers */
.draft-tab-content h3 { text-align: center; }
.draft-tab-content h4 { text-align: center; }
.draft-tab-content h5 { text-align: center; }

/* Dynasties tab — section headers */
.dynasty-tab-content h3 { text-align: center; }
.dynasty-tab-content h4 { text-align: center; }

/* ── Engine Factor Cards ── */
.engine-tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.engine-factor-card {
  background: rgba(26,20,16,0.7);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 10px;
  padding: 12px;
}
.engine-factor-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.engine-factor-name {
  color: #e8dcc8;
  font-family: Cinzel, serif;
  font-size: 0.95rem;
}
.engine-factor-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 6px 0;
}
.engine-factor-leader {
  color: #c9a84c;
  font-size: 0.8rem;
}
.engine-factor-weight {
  color: #8b9db0;
  font-size: 0.72rem;
  margin-top: 4px;
}

/* ── Batch 4: CSS Polish ─────────────────────────────────── */

/* Factor bar animations */
.rank-pip-fill, .pip-fill, [class*="factor"] [class*="fill"] {
  transition: width 0.4s ease-out, background-color 0.3s ease;
}

/* Confidence tier badges */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: Teko, sans-serif;
}
.confidence-badge.strong {
  color: #22c55e;
  border: 1.5px solid #22c55e;
  background: rgba(34,197,94,0.08);
}
.confidence-badge.moderate {
  color: #c9a84c;
  border: 1.5px solid #c9a84c;
  background: rgba(201,168,76,0.08);
}
.confidence-badge.coinflip {
  color: #94a3b8;
  border: 1.5px dashed #94a3b8;
  background: rgba(148,163,184,0.06);
}

/* Confidence arc gauge */
.confidence-gauge {
  position: relative;
  width: 120px;
  height: 60px;
  margin: 8px auto;
}
.confidence-gauge-bg {
  width: 120px;
  height: 60px;
  border-radius: 60px 60px 0 0;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.confidence-gauge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 60px;
  border-radius: 60px 60px 0 0;
  transform-origin: center bottom;
  transition: transform 0.6s ease-out;
}
.confidence-gauge-label {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Teko, sans-serif;
  font-size: 1.1rem;
  color: #e8dcc8;
}

/* Skeleton loading */
.skeleton-container { padding: 12px 14px; }
.skeleton-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.skeleton-circle { width: 32px; height: 32px; border-radius: 50%; background: rgba(201,168,76,0.06); animation: skeleton-shimmer 1.5s ease-in-out infinite; }
.skeleton-lines { flex: 1; }
.skeleton-line { height: 10px; border-radius: 3px; background: rgba(201,168,76,0.06); animation: skeleton-shimmer 1.5s ease-in-out infinite; margin-bottom: 6px; }
.skeleton-line-long { width: 80%; }
.skeleton-line-short { width: 50%; }
@keyframes skeleton-shimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ═══════════════════════════════════════════════════════════════
   Coaching Trees
   ═══════════════════════════════════════════════════════════════ */
.coaching-tree-root {
  margin-bottom: 16px;
}
.coaching-tree-node {
  background: rgba(26,20,16,0.7);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.coaching-tree-node:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.coaching-tree-node.root-node {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  cursor: default;
  display: inline-block;
}
.coaching-tree-node.root-node:hover {
  transform: none;
  box-shadow: none;
}
.tree-node-name {
  color: #e8dcc8;
  font-family: Cinzel, serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.tree-node-school {
  color: #c9a84c;
  font-size: 0.8rem;
  margin-top: 2px;
}
.tree-node-role {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 8px;
}
.tree-node-meta {
  color: #8b9db0;
  font-size: 0.72rem;
  margin-top: 4px;
}
.coaching-tree-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.coaching-tree-branch {
  margin-bottom: 16px;
  padding-left: 20px;
  border-left: 2px solid rgba(201,168,76,0.2);
}
.tree-branch-label {
  margin-bottom: 6px;
}

/* ============================================================
   INJURY IMPACT PANEL — Predict tab
   ============================================================ */

.iip-panel {
  margin-top: 18px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  background: rgba(26,20,16,0.7);
  overflow: hidden;
}

/* Toggle header */
.iip-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background: rgba(201,168,76,0.06);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: background 0.15s;
  user-select: none;
}
.iip-toggle:hover {
  background: rgba(201,168,76,0.12);
}
.iip-toggle-icon {
  color: #c9a84c;
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.iip-toggle-text {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.iip-toggle-title {
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  color: #c9a84c;
  letter-spacing: 0.04em;
}
.iip-toggle-summary {
  font-size: 0.8rem;
  color: #8b9db0;
}
.iip-toggle-arrow {
  color: #8b9db0;
  font-size: 0.8rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.iip-toggle.iip-toggle-open .iip-toggle-arrow {
  transform: rotate(180deg);
}

/* Collapsible body */
.iip-body {
  padding: 14px 16px;
}
.iip-body-collapsed {
  display: none;
}
.iip-subhead {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.iip-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.iip-footer {
  margin-top: 12px;
  font-size: 0.72rem;
  color: #8b9db0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

/* Individual player row */
.iip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid transparent;
}
.iip-row-high {
  border-left-color: #ef4444;
  background: rgba(239,68,68,0.05);
}
.iip-row-med {
  border-left-color: #f97316;
  background: rgba(249,115,22,0.04);
}
.iip-row-low {
  border-left-color: #eab308;
  background: rgba(234,179,8,0.03);
}

/* Player info column */
.iip-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.iip-team-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.4);
}
.iip-player-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.iip-player-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iip-player-pos-team {
  font-size: 0.72rem;
  color: #8b9db0;
  white-space: nowrap;
}

/* Status + injury description */
.iip-status-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.iip-status-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.iip-badge-out {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.iip-badge-doubtful {
  background: rgba(249,115,22,0.12);
  color: #fb923c;
  border: 1px solid rgba(249,115,22,0.25);
}
.iip-injury-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Delta column */
.iip-delta-col {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.iip-delta {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.iip-delta-high { color: #ef4444; }
.iip-delta-med  { color: #f97316; }
.iip-delta-low  { color: #eab308; }
.iip-prob-label {
  font-size: 0.67rem;
  color: #8b9db0;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 600px) {
  .iip-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .iip-player-info { flex: 1 1 100%; }
  .iip-status-info { flex: 1 1 auto; }
  .iip-delta-col { flex: 0 0 auto; }
  .iip-injury-desc { display: none; }
}

/* ================================================================
   Bowl Games — Rivals tab grid + Home spotlight
   ================================================================ */

/* Section title */
.bowl-section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: #c9a84c;
  letter-spacing: 2px;
}

/* Eligibility explainer box */
.bowl-eligibility-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid #c9a84c;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}
.bowl-elig-header {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Bowl card grid — matches rivalry-grid layout */
.bowl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .bowl-grid { grid-template-columns: 1fr; } }

/* Individual bowl card */
.bowl-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.bowl-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
.bowl-card-header {
  padding: 20px 18px 14px;
  text-align: center;
  position: relative;
}
.bowl-card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.bowl-card-nickname {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.bowl-card-body {
  padding: 14px 16px 16px;
  background: rgba(0,0,0,0.15);
}
.bowl-card-city {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.bowl-city-icon { color: #c9a84c; margin-right: 2px; }
.bowl-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bowl-meta-chip {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: 0.04em;
}
.bowl-meta-label {
  font-weight: 400;
  color: #8b9db0;
  font-size: 0.875rem;
  margin-right: 2px;
}

/* Conference tie-in chips */
.bowl-tieins {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.bowl-tiein-chip {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
  border-radius: 10px;
  padding: 1px 10px;
  letter-spacing: 0.04em;
}
.bowl-tiein-lg { font-size: 0.95rem; padding: 3px 14px; }

/* CFP role badge */
.bowl-cfp-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9a84c;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* Bowl card description */
.bowl-card-desc {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bowl card projected matchup chip */
.bowl-proj-matchup {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}
.bowl-proj-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.bowl-proj-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.bowl-proj-team {
  font-size: 0.8rem;
  color: #e8dcc8;
  font-weight: 600;
}
.bowl-proj-vs {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── CFP Watch Panel ── */
.cfpw-panel {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  padding: 18px 20px 14px;
  margin-bottom: 20px;
}
.cfpw-header {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8dcc8;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cfpw-header-note {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0;
  margin-left: 8px;
}
.cfpw-subhead {
  font-size: 0.8rem;
  color: #7a8a9b;
  margin-bottom: 14px;
  line-height: 1.45;
}
.cfpw-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cfpw-section-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  padding: 6px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4px;
}
.cfpw-section-label:first-child { border-top: none; margin-top: 0; }
.cfpw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.cfpw-row:hover { background: rgba(255,255,255,0.03); }
.cfpw-seed {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #8b9db0;
  min-width: 18px;
  text-align: right;
}
.cfpw-seed-bye {
  color: #c9a84c;
}
.cfpw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cfpw-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cfpw-bid {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.cfpw-bid-champ {
  color: #c9a84c;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
}
.cfpw-bid-atlarge {
  color: #7a8a9b;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.cfpw-bye-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 3px;
  padding: 1px 5px;
}
.cfpw-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.77em;
  color: #94a3b8;
}
.cfpw-link {
  color: #c9a84c !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cfpw-link:hover { color: #e8dcc8 !important; }

/* Bowl modal details */
.bowl-modal-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.bowl-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bowl-detail-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 110px;
  flex-shrink: 0;
}
.bowl-detail-val {
  font-size: 0.875rem;
  color: #e8dcc8;
}

/* ── Home page bowl spotlight — purpose-built layout ── */
.home-bowl-spotlight {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bowl-home-header {
  padding: 20px 20px 16px;
  text-align: center;
  border-radius: 10px 12px 0 0;
}
.bowl-home-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}
.bowl-home-nickname {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.bowl-home-body {
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.bowl-home-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bowl-home-fact {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8dcc8;
  letter-spacing: 0.04em;
}
.bowl-fact-icon { color: #c9a84c; margin-right: 3px; }
.bowl-home-fact-sep { color: #4a4d55; }
.bowl-home-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bowl-home-cfp {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9a84c;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 2px 10px;
}
.bowl-home-desc {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.7;
  text-align: center;
  margin: 0;
  flex: 1;
}

/* ================================================================
   CENTERING PASS — "If it's not conveying a lot of info but is
   meant to grab the eye — center it."
   ================================================================ */

/* Teams tab — section header + subtitle */
.teams-dir-header h3 { text-align: center; }
.teams-dir-header .text-muted,
.teams-dir-header p { text-align: center; }

/* Teams tab — summary chip row centered */
.teams-summary-bar { justify-content: center; }

/* Rankings + Dynasties inner panel — subtitle text under h3 */
.rankings-header-row .text-muted,
.rankings-header-row p.text-muted { text-align: center; }

/* Schedule tab — section-header (h2 + p.muted-text) */
.section-header { text-align: center; margin-bottom: 16px; }
.section-header h2 { color: #f59e0b; margin-bottom: 4px; }
.section-header .muted-text { color: #94a3b8; font-size: 0.875rem; }

/* Portal tab — Winners/Losers toggle bar centered */
.wl-toggle-bar { justify-content: center; }

/* Portal tab — slim stat bar centered */
.portal-slim-statbar { justify-content: center; }

/* Predict tab — Factor Breakdown description text centered */
.predict-factors > p.text-muted { text-align: center; }

/* Predict tab — Matchup Adjustments sub-header centered */
.adjustment-header { text-align: center; }

/* Draft tab — summary stat boxes row centered */
.draft-summary-bar { justify-content: center; }

/* Geography tab — global summary stat row centered */
.geography-container .pipeline-stats-row { justify-content: center; }

/* ── Disconnect overlay ─────────────────────────────────────────────────── */
#shiny-disconnected-overlay {
  background: #2b2d31ee !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  z-index: 99998 !important;
}

/* ── Cross-site Terranalytics switcher ─────────────────────────────────────── */
.pm-switcher { position: relative; }
.pm-trigger {
  background: none;
  border: 1px solid #3e4047;
  color: #94a3b8;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Cinzel', serif;
}
.pm-trigger:hover { border-color: #c9a84c; color: #e8dcc8; }
.pm-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #2a2520;
  border: 1px solid #3e4047;
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 220px;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pm-dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.pm-switcher:hover .pm-dropdown,
.pm-switcher:focus-within .pm-dropdown { display: block; }
.pm-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-radius: 6px;
  text-decoration: none; color: #94a3b8; font-size: 0.875rem;
}
.pm-row:hover { background: #33281e; color: #e8dcc8; }
.pm-current { background: rgba(201,168,76,0.08); color: #c9a84c !important; }
.pm-row-text { display: flex; flex-direction: column; }
.pm-name { font-weight: 600; font-family: 'Cinzel', serif; }
.pm-sub { font-size: 0.72rem; color: #8b9db0; }
.pm-divider { border-color: #3e4047; margin: 0.3rem 0; }
@media (max-width: 900px) { .pm-switcher { display: none; } }
#shiny-disconnected-overlay::before {
  content: 'Connection lost';
  font-size: 1.4rem;
  font-weight: 600;
  color: #c9a84c;
  margin-bottom: 0.5rem;
}
#shiny-disconnected-overlay::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 1rem;
  border: 2px solid rgba(201,168,76,0.15);
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: splash-spin 0.7s linear infinite;
}

/* ── Accessibility ──────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-to-content {
  position: absolute; top: -100%; left: 16px; z-index: 100000;
  padding: 8px 16px; background: #c9a84c; color: #2b2d31;
  border-radius: 0 0 6px 6px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-to-content:focus { top: 0; }
*:focus-visible { outline: 2px solid #c9a84c; outline-offset: 2px; }

/* ── Mobile tap targets (44px minimum per WCAG 2.5.5) ──────────────────── */
@media (max-width: 767.98px) {
  .navbar-nav .nav-link { min-height: 44px; }
  .dropdown-item { min-height: 44px; padding: 10px 16px; }
  .form-check-input { width: 20px; height: 20px; }
  .form-check-label { min-height: 44px; display: flex; align-items: center; }
  .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   CFB MOBILE AUDIT FIXES — 375px / iPhone SE  (March 2026)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. DataTables wrapper: scroll horizontally on phones ── */
.dataTables_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 2. Factor pips already hidden at 576px above — also hide at 375px ── */
@media (max-width: 375px) {
  .ranking-factors { display: none !important; }
}

/* ── 3. Site switcher: hide on phones (navbar too cramped) ── */
/* (dead .site-switcher rule removed — class was replaced by .pm-switcher) */

/* ── 4. Coaching tree season rows: prevent 5-col grid overflow at 375px ── */
@media (max-width: 480px) {
  .coach-season-row {
    grid-template-columns: 40px 10px 1fr 60px !important;
    gap: 5px !important;
  }
  .coach-bar-wrap { display: none; }
}

/* ── 5. Hot seat row: stack on phones (updated for 6-col pressure grid) ── */
@media (max-width: 768px) {
  .hot-seat-row {
    grid-template-columns: 10px 1fr auto auto !important;
    gap: 5px 8px !important;
  }
  .hot-seat-row .hot-coach { display: none; }
  .hot-bar-wrap { display: none; }
}
@media (max-width: 480px) {
  .hot-seat-row {
    grid-template-columns: 10px 1fr auto !important;
    gap: 5px !important;
  }
  .hot-seat-row .hot-pressure { display: none; }
}

/* ── 6. Peer chips: ensure they don't overflow ── */
@media (max-width: 480px) {
  .coach-peer-chip { min-width: 0; flex: 1 1 calc(50% - 8px); }
}

/* ── 7. Schedule week grid: 1-col on phones ── */
@media (max-width: 480px) {
  .schedule-week-grid { grid-template-columns: 1fr !important; }
}

/* ── 8. Predict container: ensure no overflow at 375px ── */
@media (max-width: 375px) {
  .predict-container { padding: 8px 6px !important; }
  .ranking-detail-panel { margin-left: 0 !important; padding: 10px 10px !important; }
}

/* ── 9. Edge table row: tighten at 375px ── */
@media (max-width: 480px) {
  .edge-row { grid-template-columns: 1fr 1fr !important; padding: 6px 8px; }
  .edge-verdict { grid-column: 1/-1; }
  .edge-mini-label { font-size: 0.55em; }
}

/* ── 10. Standings and ranking rows: extra tightening at 375px ── */
@media (max-width: 375px) {
  .ranking-row { padding: 7px 8px !important; gap: 5px !important; }
  .ranking-team-info { min-width: 70px !important; }
}

/* ── 11. Conference legend: already hidden below 575px — also block at 375px ── */
@media (max-width: 375px) {
  .conference-legend-inline { display: none !important; }
}

/* ── 12. Playoff path / bowl grid table scrollable ── */
@media (max-width: 576px) {
  .playoff-path-table-wrap,
  .bowl-bracket-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ════════════════════════════════════════════════════════════════════════════
   CFB MOBILE FIX — March 2026 Round 3
   Root cause: site-legal-footer <div> was inside <head>, causing browser to
   auto-close <head> early and create broken nested <body> tags.  Fixed in
   app.R (moved footer to page_navbar footer param).  Also: body width was
   set to 100vw which is wider than the visual viewport on some mobile
   browsers (100vw includes scrollbar area).  Changed to 100%.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── A. Prevent horizontal overflow — use % not vw ── */
html { overflow-x: hidden !important; }
body { overflow-x: hidden !important; max-width: 100% !important; width: 100% !important; }
body > .container-fluid { overflow-x: hidden !important; max-width: 100% !important; }
.bslib-page-navbar > .container-fluid { overflow-x: hidden !important; }
.tab-content { overflow-x: hidden !important; }
.tab-pane { overflow-x: hidden !important; }
/* Kill Bootstrap row negative margins that cause horizontal overflow */
@media (max-width: 767.98px) {
  .row { --bs-gutter-x: 8px !important; }
}

/* ── B. Home hero: prevent subtitle clipping on mobile ── */
@media (max-width: 767.98px) {
  .home-hero {
    padding: 24px 16px 20px !important;
    word-wrap: break-word;
  }
  .home-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ── C. Legal footer: desktop shows full text, mobile shows details/summary ── */
@media (max-width: 767.98px) {
  .site-legal-full { display: none !important; }
  .site-legal-mobile { display: block; }
}
@media (min-width: 768px) {
  .site-legal-mobile { display: none !important; }
  .site-legal-full { display: inline; }
}

/* Style the mobile disclaimer toggle */
.site-legal-mobile {
  font-size: 0.72rem;
  color: #8b9db0;
  text-align: center;
  padding: 2px 0;
}
.site-legal-mobile summary {
  cursor: pointer;
  font-style: italic;
  color: #8b9db0;
  list-style: none;
  display: inline-block;
}
.site-legal-mobile summary::-webkit-details-marker { display: none; }
.site-legal-mobile[open] summary { margin-bottom: 4px; }

/* ── Situational Spot Badges ──────────────────────────────────────────────── */
.spot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.spot-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}
.spot-badge-icon {
  font-size: 0.72rem;
  flex-shrink: 0;
}
.spot-badge-label {
  font-weight: 700;
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8dcc8;
}
.spot-badge-detail {
  font-size: 0.72rem;
  color: #8b9db0;
  font-style: italic;
}
.spot-letdown { background: rgba(245, 158, 11, 0.06); }
.spot-lookahead { background: rgba(59, 130, 246, 0.06); }
.spot-revenge { background: rgba(239, 68, 68, 0.06); }
.spot-trap { background: rgba(249, 115, 22, 0.08); border-left-width: 4px; }
@media (max-width: 600px) {
  .spot-badge { flex-direction: column; align-items: flex-start; gap: 2px; }
  .spot-badge-detail { font-size: 0.65rem; }
}

/* ── Additional 375px/480px fixes Round 2 (March 2026) ──────────────── */
@media (max-width: 480px) {
  .selectize-control, .form-select, select { width: 100% !important; max-width: 100% !important; }
}
@media (max-width: 375px) {
  .ranking-team-info { min-width: 60px !important; }
  .portal-expand-headline { min-width: 0 !important; }
}

/* ── Playoff Picture ──────────────────────────────────────────────────────── */
.playoff-header { margin-bottom: 1.5rem; }
.playoff-title {
  font-family: 'Cinzel', serif; font-size: 1.65rem; color: #c9a84c;
  margin: 0 0 0.3rem;
}
.playoff-subtitle { font-size: 0.8rem; color: #8b9db0; margin: 0; }
.playoff-meta { font-size: 0.72rem; color: #6b7280; margin: 0.2rem 0 0; }
.playoff-section-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem; color: #e8dcc8;
  margin: 1.5rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.playoff-no-data { text-align: center; padding: 3rem; color: #8b9db0; }

/* Playoff field list */
.playoff-list { display: flex; flex-direction: column; gap: 2px; }
.playoff-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #2a2520; border-radius: 6px; transition: background 0.15s;
}
.playoff-row:hover { background: #33281e; }
.playoff-bye { border-left: 3px solid #c9a84c; }
.playoff-rank {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: #c9a84c; width: 28px; text-align: center; flex-shrink: 0;
}
.playoff-team-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.35); }
.playoff-team-name {
  font-weight: 600; color: #e8dcc8; font-size: 0.875rem;
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playoff-conf { font-size: 0.72rem; font-weight: 600; flex-shrink: 0; width: 50px; text-align: center; }
.playoff-record { font-size: 0.8rem; color: #8b9db0; width: 40px; text-align: center; flex-shrink: 0; }
.playoff-bar-wrap {
  width: 100px; height: 6px; background: #3e4047; border-radius: 3px;
  overflow: hidden; flex-shrink: 0;
}
.playoff-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.playoff-pct { font-family: 'Teko', sans-serif; font-size: 1rem; font-weight: 700; color: #e8dcc8; width: 45px; text-align: right; flex-shrink: 0; }
.playoff-bye-badge {
  font-size: 0.55rem; font-weight: 700; color: #c9a84c; background: rgba(201,168,76,0.12);
  padding: 1px 6px; border-radius: 10px; letter-spacing: 0.07em; flex-shrink: 0;
}
.playoff-bye-note { font-size: 0.72rem; color: #6b7280; margin-top: 0.5rem; }

/* Bubble */
.playoff-row-bubble { background: #1a1410; }
.playoff-row-bubble .playoff-rank { color: #6b7280; }

/* Conference grid */
.playoff-conf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.playoff-conf-card {
  background: #2a2520; border-radius: 10px; padding: 10px 12px;
  border-top: 3px solid #3e4047;
}
.playoff-conf-header {
  font-family: 'Cinzel', serif; font-size: 0.875rem; font-weight: 700;
  margin-bottom: 8px;
}
.playoff-conf-body { display: flex; flex-direction: column; gap: 4px; }
.playoff-conf-team {
  display: flex; align-items: center; gap: 6px; font-size: 0.8rem;
}
.playoff-conf-team-name { flex: 1; color: #e8dcc8; }
.playoff-conf-team-pct { font-weight: 700; color: #c9a84c; font-family: 'Teko', sans-serif; font-size: 0.95rem; }
.playoff-conf-bar {
  height: 3px; border-radius: 3px; transition: width 0.5s;
  position: absolute; bottom: 0; left: 0;
}
.playoff-conf-team { position: relative; padding-bottom: 5px; }

/* Team detail */
.playoff-team-detail { margin-top: 1rem; }
.playoff-team-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.playoff-stat-card {
  background: #2a2520; border-radius: 10px; padding: 10px 16px;
  text-align: center; flex: 1; min-width: 80px;
}
.playoff-stat-val { font-family: 'Teko', sans-serif; font-size: 1.65rem; font-weight: 700; color: #c9a84c; }
.playoff-stat-label { font-size: 0.65rem; color: #8b9db0; text-transform: uppercase; letter-spacing: 0.04em; }

/* Schedule swing values */
.playoff-schedule { margin-top: 1rem; }
.playoff-swing-explainer { font-size: 0.72rem; color: #6b7280; margin-bottom: 0.5rem; }
.playoff-game-list { display: flex; flex-direction: column; gap: 3px; }
.playoff-game-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: #2a2520; border-radius: 3px; font-size: 0.8rem;
}
.playoff-game-week { color: #6b7280; font-size: 0.72rem; width: 36px; flex-shrink: 0; }
.playoff-game-loc { color: #6b7280; font-size: 0.72rem; width: 16px; flex-shrink: 0; }
.playoff-game-opp { color: #e8dcc8; font-weight: 600; flex: 1; }
.playoff-game-prob { color: #8b9db0; font-size: 0.72rem; width: 35px; text-align: right; flex-shrink: 0; }
.playoff-swing-bar { display: flex; gap: 8px; flex-shrink: 0; }
.swing-if-win { color: #22c55e; font-weight: 600; font-size: 0.72rem; }
.swing-if-loss { color: #ef4444; font-weight: 600; font-size: 0.72rem; }
.swing-huge { border-left: 3px solid #c9a84c; }
.swing-big { border-left: 3px solid #8b9db0; }
.playoff-picker { margin: 1.5rem 0; }

@media (max-width: 600px) {
  .playoff-bar-wrap { display: none; }
  .playoff-conf { display: none; }
  .playoff-team-stats { flex-direction: column; }
  .playoff-conf-grid { grid-template-columns: 1fr; }
}

/* ── Command Center Playoff Embed ─────────────────────────────────────────── */
.mtcc-playoff-embed {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.1);
}
.mtcc-playoff-odds {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}
.mtcc-playoff-stat { text-align: center; }
.mtcc-playoff-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}
.mtcc-playoff-lbl {
  font-size: 0.65rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mtcc-playoff-swing {
  font-size: 0.72rem;
  color: #e8dcc8;
  text-align: center;
  margin: 4px 0;
}
.mtcc-playoff-link {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: #c9a84c;
  text-decoration: none;
  margin-top: 4px;
  cursor: pointer;
}
.mtcc-playoff-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════════
   CFB MOBILE FIX — April 2026  (Definitive Root Cause Fix)
   ────────────────────────────────────────────────────────────────────────────
   ROOT CAUSE: .home-container { margin: 0 auto } — as a non-fill flex item
   (flex: 0 0 auto) inside the column-flex tab-pane, margin: auto in the
   cross-axis (horizontal) causes the item to shrink to its min-content width
   rather than stretching. The @media (max-width: 768px) override now adds
   width: 100%; margin: 0; box-sizing: border-box to override this behavior.

   SECONDARY: .countdown-right-panel { min-width: 260px } was never reset
   on mobile, contributing to the home-container's min-content calculation.
   Fixed with min-width: 0 !important in the @media (max-width: 680px) block.

   Both fixes are in the canonical media query blocks above (search for
   .home-container and .countdown-right-panel). Items below are supplementary.
   ════════════════════════════════════════════════════════════════════════════ */

/* Stop iOS Safari from auto-scaling fonts */
html { -webkit-text-size-adjust: 100%; }

/* ── Nullify bslib tab-pane padding on mobile — modules provide their own ── */
@media (max-width: 767.98px) {
  .navbar + .container-fluid > .tab-content > .tab-pane.active.html-fill-container {
    padding: 0 !important;
    gap: 0 !important;
  }
}

/* ── Home subtitle: trim letter-spacing on small screens ── */
@media (max-width: 480px) {
  .home-subtitle {
    letter-spacing: 0;
    font-size: 1em;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ════════════════════════════════════════════════════════════════════════════ */

.sport-bnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  height: 56px;
  background: #1e1810;
  border-top: 1px solid #3e3428;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  flex-direction: row;
  align-items: stretch;
}

@media (max-width: 767.98px) {
  .sport-bnav { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important; }
}

.sport-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #7a8a9b;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 4px 0;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-ui, 'Libre Baskerville', serif);
}

.sport-bnav-item.active { color: #c9a84c; }
.sport-bnav-item:active { opacity: 0.65; }
.sport-bnav-item i { font-size: 1.1rem; }

.sport-bnav-label {
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  font-family: var(--font-ui, sans-serif);
}

/* ===========================================================================
   CONFERENCE RADAR CARD (Command Center)
   =========================================================================== */
.mtcc-conf-radar { }
.ccr-legend { display:flex; align-items:center; gap:6px; padding:4px 0 8px; font-size:0.72rem; }
.ccr-legend-team { font-weight:700; }
.ccr-legend-sep { color:#7a8a9b; }
.ccr-legend-conf { color:#7a8a9b; }
.ccr-rows { display:flex; flex-direction:column; gap:5px; }
.ccr-row { display:grid; grid-template-columns:72px 1fr 32px; align-items:center; gap:6px; }
.ccr-label { display:flex; flex-direction:column; gap:1px; }
.ccr-label-text { font-size:0.68rem; color:#94a3b8; font-family:'Teko',sans-serif; letter-spacing:0.04em; }
.ccr-rank { font-size:0.65rem; color:#7a8a9b; }
.ccr-rank.top { color:#c9a84c; font-weight:700; }
.ccr-bars { display:flex; flex-direction:column; gap:2px; }
.ccr-bar-row { display:flex; align-items:center; gap:4px; }
.ccr-bar-track { flex:1; height:5px; background:rgba(255,255,255,0.06); border-radius:3px; overflow:hidden; }
.ccr-bar-fill { height:100%; border-radius:3px; transition:width 0.3s ease; }
.ccr-bar-val { font-size:0.62rem; color:#7a8a9b; font-family:'Teko',sans-serif; width:22px; text-align:right; flex-shrink:0; }
.ccr-bar-val.muted { color:#4a5568; }
.ccr-delta { font-size:0.68rem; font-family:'Teko',sans-serif; font-weight:700; text-align:right; }
.ccr-delta.pos { color:#22c55e; }
.ccr-delta.neg { color:#ef4444; }

/* ===========================================================================
   PREDICT TAB — Share Card + Key Edge
   =========================================================================== */
.pred-share-card { background:rgba(255,255,255,0.03); border-radius:8px; padding:12px 14px; margin-top:12px; }
.pred-share-teams { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-family:'Teko',sans-serif; font-size:1.1rem; }
.pred-share-winner { font-weight:700; font-size:1.25rem; }
.pred-share-pct { background:rgba(201,168,76,0.15); color:#c9a84c; padding:2px 8px; border-radius:4px; font-weight:700; }
.pred-share-vs { color:#7a8a9b; font-size:0.85rem; }
.pred-share-loser { color:#94a3b8; }
.pred-share-context { font-size:0.72rem; color:#7a8a9b; margin-top:4px; }
.pred-share-actions { display:flex; gap:8px; margin-top:10px; align-items:center; }
.pred-copy-btn { background:rgba(201,168,76,0.12); border:1px solid rgba(201,168,76,0.3); color:#c9a84c; padding:5px 12px; border-radius:5px; font-size:0.78rem; cursor:pointer; transition:background 0.15s; }
.pred-copy-btn:hover { background:rgba(201,168,76,0.22); }
.pred-full-link { font-size:0.78rem; color:#7a8a9b; text-decoration:none; }
.pred-full-link:hover { color:#c9a84c; }
.pred-edge-callout { background:rgba(201,168,76,0.06); border-left:3px solid #c9a84c; border-radius:0 6px 6px 0; padding:8px 12px; margin-top:8px; font-size:0.8rem; color:#e8dcc8; }

/* ===========================================================================
   MY TEAM — Universal highlight + glow (rankings, playoff, simulator)
   =========================================================================== */
.my-team-row {
  background: rgba(201,168,76,0.08) !important;
  border-left: 3px solid #c9a84c !important;
  position: relative;
}
.my-team-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.18);
}
/* Team name turns gold */
.my-team-row .playoff-team-name,
.my-team-row .simulate-swing-team,
.my-team-row span[style*="color:#e8dcc8"] {
  color: #c9a84c !important;
  font-weight: 700;
}
/* Flash animation on scroll-into-view */
@keyframes mt-flash {
  0% { background: rgba(201,168,76,0.25); }
  100% { background: rgba(201,168,76,0.08); }
}
.my-team-row.mt-flash {
  animation: mt-flash 1.2s ease-out;
}
/* Compact "YOUR TEAM" badge */
.mt-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  background: rgba(201,168,76,0.12);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  flex-shrink: 0;
}
/* My Team's Path card */
.mt-path-card {
  background: #2a2520;
  border-radius: 10px;
  border-left: 4px solid #c9a84c;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.mt-path-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mt-path-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.mt-path-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mt-path-stat-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.mt-path-stat-label {
  font-size: 0.62rem;
  color: #8b9db0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mt-path-narrative {
  font-size: 0.82rem;
  color: #e8dcc8;
  line-height: 1.5;
}
.mt-path-must-wins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}
.mt-path-game-chip {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  color: #e8dcc8;
}
.mt-path-game-chip .chip-swing {
  color: #f59e0b;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  margin-left: 4px;
}

/* Portal — My Team highlight rows */
.portal-my-team {
  background: rgba(201,168,76,0.06);
  border-left: 2px solid #c9a84c;
}

@media (max-width: 767.98px) {
  .mt-path-stats { gap: 10px; }
  .mt-path-card { padding: 0.8rem; }
}

/* ===========================================================================
   MOBILE HARDENING — Upgrade 4
   =========================================================================== */

/* Compare tab: prevent tug-of-war overflow */
@media (max-width: 768px) {
  .compare-container {
    overflow-x: hidden;
    width: 100%;
    padding: 12px;
  }
  .tug-bar-container {
    overflow-x: hidden;
    width: 100%;
  }
}

/* Portal tab: nav pills scrollable on mobile */
@media (max-width: 768px) {
  .portal-container .nav-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .portal-container .nav-pills .nav-item {
    flex: 0 0 auto;
  }
}

/* Home command center: stack single column on small phones */
@media (max-width: 640px) {
  .mtcc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Data Pulse articles: cap height on mobile */
@media (max-width: 768px) {
  .pulse-article {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ===========================================================================
   RANKINGS — Factor "why this matters" micro-copy
   =========================================================================== */
.rd-factor-why {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 2px 0 4px;
  line-height: 1.35;
  font-style: italic;
}

/* ===========================================================================
   HOME OVERHAUL — 20260422
   Strip per-card gradients/colors, add GOTW hero, thin typography
   =========================================================================== */

/* Strip per-card banner gradients — everything competes, nothing wins */
.home-banner-rankings,
.home-banner-rivalry,
.home-banner-portal,
.home-banner-predict,
.home-banner-recruiting,
.home-banner-draft,
.home-banner-map,
.home-banner-preview { background: transparent !important; }

/* Mute all banner icons to neutral */
.home-banner-icon { color: #8b9db0 !important; }

/* Section header text: quiet, uppercase, thin */
.home-card-header h3,
.home-banner h3 {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  color: #8b9db0 !important;
  font-family: 'Teko', sans-serif !important;
}

/* Card body copy: 300-weight, clearly supporting text */
.home-card-body p,
.home-card-body .text-muted {
  font-weight: 300 !important;
}

/* ── Game of the Week Hero ───────────────────────────────────────────────── */
.home-gotw {
  border-radius: 16px;
  padding: 2rem 2.5rem 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.home-gotw-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
@media (max-width: 540px) {
  .home-gotw-eyebrow {
    letter-spacing: 0.04em;
    font-size: 0.65rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .home-gotw {
    padding: 1.25rem 1rem 1.25rem;
  }
}
.home-gotw-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.home-gotw-team {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-gotw-team-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.home-gotw-team-prob {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 0.2rem;
}
.home-gotw-vs {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  color: #8b9db0;
  font-weight: 400;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}
.home-gotw-prob-bar {
  height: 6px;
  border-radius: 3px;
  margin: 0 0 0.6rem;
  position: relative;
  overflow: hidden;
}
.home-gotw-prob-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}
.home-gotw-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.home-gotw-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-gotw-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.5);
  color: #c9a84c;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-transform: uppercase;
}
.home-gotw-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: #c9a84c;
}

/* ── App stats bar ──────────────────────────────────────────────────────── */
.home-app-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}
.home-app-stat { text-align: center; }
.home-app-stat-num {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.home-app-stat-lbl {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b9db0;
  margin-top: 0.1rem;
}
.home-app-stat-dot { color: #334155; font-size: 0.95rem; align-self: center; }

/* ── Schedule predictions spotlight ────────────────────────────────────── */
.sched-picks-panel {
  background: #1e2028;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.sched-picks-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
.sched-pick-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sched-pick-row:last-child { border-bottom: none; }
.sched-pick-teams {
  flex: 1;
  min-width: 0;
}
.sched-pick-matchup {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-pick-meta { font-size: 0.72rem; color: #94a3b8; }
.sched-pick-bar {
  width: 100px;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.sched-pick-fill { height: 100%; border-radius: 3px; }
.sched-pick-pct {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
  text-align: right;
}
.sched-upset-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Upset Watch panel */
.sched-upset-panel {
  background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
}
.sched-upset-header {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.sched-upset-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sched-upset-row:last-child { border-bottom: none; }
.sched-upset-dog { font-weight: 700; }
.sched-upset-vs { color: #7a8a9b; font-size: 0.7rem; }
.sched-upset-opp { color: #94a3b8; }
.sched-upset-pct {
  margin-left: auto;
  font-family: Teko, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── Portal Intel sub-tab ───────────────────────────────────────────────── */
.portal-intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
}
@media (max-width: 768px) { .portal-intel-grid { grid-template-columns: 1fr; } }
.portal-intel-card {
  background: #1e2028;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.portal-intel-card-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
.portal-grade-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
}
.portal-grade-row:last-child { border-bottom: none; }
.portal-grade-rank { font-size: 0.72rem; color: #8b9db0; width: 18px; flex-shrink: 0; }
.portal-grade-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.35); }
.portal-grade-team { flex: 1; font-size: 0.875rem; font-weight: 600; color: #e2e8f0; }
.portal-grade-bar-wrap { width: 80px; }
.portal-grade-bar-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.portal-grade-bar-fill { height: 100%; border-radius: 3px; }
.portal-grade-badge {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.portal-intel-full { grid-column: 1 / -1; }

/* ── Bracket Simulator ──────────────────────────────────────────────────── */
.bracket-container { padding: 0.5rem 0; }
.bracket-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.bracket-run-btn {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  border: none;
  color: #1a1810;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.bracket-run-btn:hover { opacity: 0.9; }
.bracket-seed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .bracket-seed-grid { grid-template-columns: 1fr 1fr; } }
.bracket-seed-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: #1e2028;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.bracket-seed-num {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: #8b9db0;
  width: 18px;
  flex-shrink: 0;
}
.bracket-results-table { width: 100%; border-collapse: collapse; }
.bracket-results-table th {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9db0;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.bracket-results-table td {
  padding: 0.45rem 0.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.bracket-prob-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}
.bracket-prob-fill { height: 100%; border-radius: 3px; background: #c9a84c; }
.bracket-champ-pct {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: #c9a84c;
}
/* Bracket mode toggle */
.bracket-mode-toggle {
  display: flex; align-items: center; gap: 8px;
}
.bracket-toggle-label {
  font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600;
}
.bracket-mode-toggle .shiny-input-radiogroup {
  display: flex; gap: 0; margin: 0;
}
.bracket-mode-toggle .radio-inline {
  padding: 4px 12px; margin: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: #94a3b8;
  cursor: pointer; transition: all 0.2s;
}
.bracket-mode-toggle .radio-inline:first-child { border-radius: 4px 0 0 4px; }
.bracket-mode-toggle .radio-inline:last-child  { border-radius: 0 4px 4px 0; border-left: none; }
.bracket-mode-toggle .radio-inline input[type="radio"] { display: none; }
.bracket-mode-toggle .radio-inline:has(input:checked) {
  background: rgba(201,168,76,0.15); border-color: #c9a84c; color: #c9a84c;
}
/* Bracket odds summary chips */
.bracket-odds-summary {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 1.25rem; padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.bracket-odds-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid; font-size: 0.82rem;
  background: rgba(255,255,255,0.02);
}
.bracket-odds-pct { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 700; color: #e8dcc8; }
/* Best Path styles */
.bp-champion-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 10px;
  border: 2px solid; margin-bottom: 1.5rem;
  background: rgba(201,168,76,0.03);
}
.bp-champion-icon { font-size: 2.5rem; line-height: 1; }
.bp-champion-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #94a3b8; font-weight: 600;
}
.bp-champion-name { font-family: 'Cinzel', serif; font-size: 1.6rem; font-weight: 700; }
.bp-champion-path-prob {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; color: #c9a84c;
}
.bp-bracket { display: flex; flex-direction: column; gap: 14px; margin-bottom: 1.5rem; }
.bp-round { }
.bp-round-title {
  font-family: 'Teko', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #7a8a9b; margin-bottom: 6px;
}
.bp-round-teams { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-team-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid; background: rgba(255,255,255,0.02);
  font-size: 0.85rem;
}
.bp-team-chip.bp-team-bye { opacity: 0.7; }
.bp-team-prob { font-family: 'Teko', sans-serif; font-size: 0.95rem; color: #94a3b8; }
.bp-bye-badge {
  font-size: 0.6rem; background: rgba(201,168,76,0.15); color: #c9a84c;
  padding: 1px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.05em;
}
.bp-path-summary { margin-top: 1rem; }
.bp-summary-title {
  font-family: 'Teko', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #7a8a9b; margin-bottom: 8px;
}
.bp-summary-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-odds-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid; font-size: 0.8rem;
  background: rgba(255,255,255,0.02);
}
.bp-odds-val { font-family: 'Teko', sans-serif; font-size: 1rem; font-weight: 700; color: #e8dcc8; }
/* Auto-qualifier badges */
.playoff-qualifier-legend {
  font-size: 0.72rem; color: #7a8a9b; margin-bottom: 10px;
}
.playoff-aq-badge {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3);
}
.playoff-al-badge {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2);
}

/* ── Coaching Tree ──────────────────────────────────────────────────────── */
.coach-tree-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.coach-tree-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.coach-tree-pill:hover,
.coach-tree-pill.active {
  background: rgba(201,168,76,0.15);
  border-color: #c9a84c;
  color: #c9a84c;
}
.coach-detail-card {
  background: #1e2028;
  border-left: 3px solid #c9a84c;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-top: 1rem;
  animation: fadeUp 0.3s ease;
}
.coach-detail-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.coach-detail-meta { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; }
.coach-detail-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.coach-detail-stat-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  color: #e2e8f0;
  display: block;
}
.coach-detail-stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b9db0;
}

/* ── Coaching Family Tree Network ─────────────────────────────────────── */
.tree-summary-strip {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}
.tree-sum-stat {
  text-align: center;
  min-width: 64px;
}
.tree-sum-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #c9a84c;
}
.tree-sum-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-top: 2px;
}

/* Chips grid below tree graph */
.tree-chips-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin: 0.75rem 0 0.5rem;
}
.tree-chips-hint {
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  color: #8b9db0;
  margin-left: 6px;
}
.tree-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tree-chip {
  background: #23211d;
  border: 1px solid #3e4047;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 120px;
  max-width: 190px;
}
.tree-chip-has-tree {
  border-color: rgba(201,168,76,0.45);
}
.tree-chip-name {
  font-size: 0.8rem;
  color: #e8dcc8;
  font-weight: 500;
}
.tree-chip-role {
  font-size: 0.65rem;
  color: #94a3b8;
}
.tree-chip-yrs {
  font-family: 'Teko', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 2px;
}
.tree-chip-record {
  font-family: 'Teko', sans-serif;
  font-size: 0.82rem;
  color: #c9a84c;
  margin-top: 1px;
}
.tree-chip-active {
  font-size: 0.55rem; background: rgba(34,197,94,0.12); color: #22c55e;
  padding: 1px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.04em;
  margin-left: 4px;
}
.tree-win-rate {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; margin-bottom: 10px;
  background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
}
.tree-wr-label {
  font-family: 'Teko', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8;
}
.tree-wr-val {
  font-family: 'Teko', sans-serif; font-size: 1.1rem; color: #c9a84c; font-weight: 700;
}

/* ===========================================================================
   PREDICT — Factor Advantage Rows (delta view)
   =========================================================================== */

.predict-adv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.predict-adv-row:hover {
  background: rgba(255,255,255,0.03);
}

/* Impact tiers — subtle left accent */
.adv-impact-high {
  border-left: 3px solid #f59e0b;
}
.adv-impact-med {
  border-left: 3px solid rgba(245,158,11,0.4);
}
.adv-impact-low {
  border-left: 3px solid transparent;
}

/* Factor label: name + weight */
.adv-factor-label {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.adv-factor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8dcc8;
  text-transform: capitalize;
}
.adv-factor-weight {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Bar container */
.adv-bar-wrap {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

/* Advantage bars */
.adv-bar {
  height: 100%;
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.4s ease;
}
.adv-bar-a {
  /* Team A: grows from left */
  position: absolute;
  left: 0;
  top: 0;
}
.adv-bar-b {
  /* Team B: grows from right */
  position: absolute;
  right: 0;
  top: 0;
}
.adv-bar-even {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

/* Edge label */
.adv-edge-label {
  flex: 0 0 110px;
  text-align: right;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .adv-factor-label { flex: 0 0 90px; }
  .adv-factor-name { font-size: 0.8rem; }
  .adv-edge-label { flex: 0 0 80px; font-size: 0.875rem; }
  .predict-adv-row { padding: 5px 8px; gap: 6px; }
}

/* ── Matchups sub-tab pills ────────────────────────────────────────────── */
#matchups_sub { margin-bottom: 1rem; }
#matchups_sub > .nav-pills { gap: 6px; }
#matchups_sub > .nav-pills .nav-link {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 4px 16px;
}
#matchups_sub > .nav-pills .nav-link.active {
  color: #1a1410;
  background: #c9a84c;
  border-color: #c9a84c;
}

/* ── Loading skeleton shimmer ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-slot:has(> .shiny-html-output:empty) {
  min-height: 120px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  background-color: rgba(255,255,255,0.02);
}

/* ── Collapsible weight sliders in Rankings ── */
.rank-slider-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: #c9a84c;
  font-size: 0.8rem;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.rank-slider-toggle:hover { background: rgba(201,168,76,0.08); }
.rank-slider-arrow { transition: transform 0.25s; font-size: 0.65rem; }
.rank-slider-toggle.open .rank-slider-arrow { transform: rotate(180deg); }
.rank-slider-body { transition: max-height 0.3s ease, opacity 0.2s ease; overflow: hidden; }
.rank-slider-body.collapsed { max-height: 0 !important; opacity: 0; overflow: hidden; }
.rank-slider-body:not(.collapsed) { max-height: 2000px; opacity: 1; }

/* ════════════════════════════════════════════════════════════════════════════
   CFB MOBILE RESPONSIVENESS — May 2026
   Comprehensive pass: sub-tab scrolling, tug bars, plotly heights,
   matchup pills, nav overflow, additional grid collapses
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Schedule sub-tab strips: horizontal scroll on phones ── */
@media (max-width: 600px) {
  .schedule-subtab,
  div[style*="display: flex"][style*="gap"]:has(> .schedule-subtab-btn),
  div[style*="display:flex"]:has(> .schedule-subtab-btn) {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .schedule-subtab-btn {
    flex-shrink: 0;
    font-size: 0.72rem !important;
    padding: 5px 10px !important;
  }
}

/* ── 2. Matchup sub-tab pills: scrollable row on mobile ── */
@media (max-width: 600px) {
  #matchups_sub > .nav-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  #matchups_sub > .nav-pills .nav-item {
    flex: 0 0 auto;
  }
  #matchups_sub > .nav-pills .nav-link {
    font-size: 0.78rem;
    padding: 4px 10px;
    white-space: nowrap;
  }
}

/* ── 3. Tug bar labels: truncate on mobile to prevent overflow ── */
@media (max-width: 600px) {
  .tug-team-name,
  .compare-team-label,
  .rivalry-team-name {
    font-size: 0.72rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tug-track { height: 20px; }
  .compare-overall { flex-wrap: wrap; gap: 8px; }
}

/* ── 4. Plotly charts: reduce height on small screens ── */
@media (max-width: 600px) {
  .js-plotly-plot {
    max-width: 100% !important;
  }
  .plotly .main-svg {
    max-width: 100%;
  }
  .shiny-plot-output,
  .plotly-graph-div {
    min-height: 200px !important;
    max-height: 300px;
  }
}

/* ── 5. Dynasty repeat(6) grid: 2-col tablet, 1-col phone ── */
@media (max-width: 900px) {
  .dynasty-era-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .dynasty-era-grid { grid-template-columns: 1fr !important; }
}

/* ── 6. Tables: ensure DataTables scroll horizontally ── */
@media (max-width: 768px) {
  .dataTables_wrapper .dataTable { min-width: 500px; }
}

/* ── 7. Navbar collapse: full-width items on mobile ── */
@media (max-width: 767.98px) {
  .navbar-collapse { background: #1a1410; padding: 4px 0 8px; }
  .navbar-collapse .nav-link { padding: 8px 16px !important; }
}

/* ── 8. Slider handles: bigger touch target ── */
@media (max-width: 767.98px) {
  .irs--shiny .irs-handle > i:first-child {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ── 9. Bracket seed grid: 1-col on phones ── */
@media (max-width: 480px) {
  .bracket-seed-grid { grid-template-columns: 1fr !important; }
}

/* ── 10. Recruiting roster row: tighter layout on phones ── */
@media (max-width: 480px) {
  .recruit-row { font-size: 0.75rem !important; gap: 4px !important; padding: 5px 8px !important; }
}

/* ── 11. Portal intel grid: 1-col on phones ── */
@media (max-width: 480px) {
  .portal-intel-grid { grid-template-columns: 1fr !important; }
}

/* ── 12. Verdict chips in compare: wrap on phones ── */
@media (max-width: 575.98px) {
  .verdict-edge-row { flex-wrap: wrap; gap: 4px; }
  .verdict-scores { gap: 8px; }
  .compare-verdict { font-size: 0.8rem; padding: 8px 10px; }
}

/* ── 13. Module containers: tighter padding on phones ── */
@media (max-width: 575.98px) {
  .module-container    { padding: 10px 12px 24px !important; }
  .rankings-container  { padding: 10px 12px 24px !important; }
}

/* ── 14. Inline sub-tab flex rows: allow wrap at narrow widths ── */
@media (max-width: 575.98px) {
  .module-container > div[style*="flex"][style*="gap: 8px"],
  .module-container > div[style*="flex"][style*="gap: 6px"] {
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SPRING PORTAL WATCH — home page teaser strip (Feb 1 – May 15)
   ═══════════════════════════════════════════════════════════════════════ */
.spw-container {
  background: #2a2520;
  border: 1px solid #3e4047;
  border-left: 3px solid #22c55e;
  border-radius: 8px;
  padding: 14px 18px 16px;
  margin: 8px 0 10px;
  position: relative;
  overflow: hidden;
}
.spw-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* Header row */
.spw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.spw-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spw-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8dcc8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spw-badge-live {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 4px;
  padding: 2px 7px;
  animation: spw-pulse 2.2s ease-in-out infinite;
}
@keyframes spw-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.spw-full-link {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  color: #c9a84c;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.spw-full-link:hover { color: #e8dcc8; text-decoration: underline; }

/* Stat strip */
.spw-stat-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid #3e4047;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.spw-stat {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
}
.spw-stat-val {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: #c9a84c;
}
.spw-stat-lbl {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}
.spw-stat-sep {
  width: 1px;
  align-self: stretch;
  background: #3e4047;
  flex-shrink: 0;
}

/* Body (two-column: movers + heat/quality) */
.spw-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spw-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spw-section-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8a9b;
  margin-bottom: 7px;
}

/* Top 10 movers (scrollable) */
.spw-movers-scroll {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.25) transparent;
}
.spw-movers-scroll::-webkit-scrollbar { width: 4px; }
.spw-movers-scroll::-webkit-scrollbar-track { background: transparent; }
.spw-movers-scroll::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.25);
  border-radius: 2px;
}
.spw-movers-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.45);
}
.spw-movers-list { cursor: pointer; }
.spw-mover-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1px solid #3e404730;
  transition: background 0.12s;
}
.spw-mover-row:last-child { border-bottom: none; }
.spw-mover-row:hover { background: rgba(201,168,76,0.05); border-radius: 4px; }
.spw-mover-rank {
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  color: #7a8a9b;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.spw-mover-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.spw-mover-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.spw-mover-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spw-mover-pos {
  font-family: 'Teko', sans-serif;
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 0 4px;
  flex-shrink: 0;
}
.spw-mover-arrow {
  color: #c9a84c;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.spw-mover-dest {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spw-mover-stars {
  font-size: 0.62rem;
  color: #fbbf24;
  letter-spacing: -1px;
  flex-shrink: 0;
}

/* Activity heat */
.spw-heat-list { display: flex; flex-direction: column; gap: 7px; }
.spw-heat-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.spw-heat-rank {
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  color: #7a8a9b;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.spw-heat-bar-wrap {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  height: 8px;
  overflow: hidden;
}
.spw-heat-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  outline: 1px solid rgba(255,255,255,0.35);
  outline-offset: -1px;
}
.spw-heat-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.spw-heat-count {
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  color: #22c55e;
  flex-shrink: 0;
}

/* Mobile: stack body single-column */
@media (max-width: 767.98px) {
  .spw-body { grid-template-columns: 1fr; gap: 12px; }
  .spw-stat-strip { flex-wrap: wrap; }
  .spw-stat { flex: 1 1 45%; }
  .spw-stat-sep { display: none; }
  .spw-heat-name { max-width: 90px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — May 2026
   Comprehensive sweep: home bottom cards, vegas pulse, data pulse,
   bracket sim, rivalry index, coaching tree, betting module, playoff
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Home: below-CC grid inherits home-grid 1fr but needs padding ── */
@media (max-width: 767.98px) {
  .home-grid-below-cc {
    margin-top: 1rem;
    padding: 0;
  }
  /* Bottom cards: ensure full width, no span issues */
  .home-card-classes,
  .home-card-draft,
  .home-card-hotseat,
  .home-card-vegas,
  .home-card-keydates {
    grid-column: 1 / -1 !important;
  }
}

/* ── Home Vegas Pulse: internal layout fixes ── */
@media (max-width: 767.98px) {
  .home-vegas-content {
    padding: 8px 10px;
  }
  .home-vegas-stats-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
  }
  .home-vegas-stat {
    flex: 0 0 calc(50% - 8px);
  }
  .home-vegas-val {
    font-size: 1.35rem;
  }
  .home-vegas-leaderboard {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .home-vegas-callout-row {
    flex-direction: column;
    gap: 8px;
  }
  .home-vegas-callout {
    flex-direction: row;
    gap: 8px;
  }
  .home-vegas-conf-hero {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .home-vegas-conf-grid {
    gap: 4px;
    justify-content: center;
  }
  .home-vegas-conf-chip {
    font-size: 0.72rem;
    padding: 3px 6px;
  }
  /* My Team Vegas callout */
  .home-vegas-myteam {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .home-vegas-myteam-stats {
    gap: 10px;
    justify-content: center;
  }
  .home-vegas-myteam-val {
    font-size: 1.2rem;
  }
}

/* ── Home Vegas Pulse: extra-small phones ── */
@media (max-width: 480px) {
  .home-vegas-val {
    font-size: 1.15rem;
  }
  .home-vegas-lbl {
    font-size: 0.65rem;
  }
  .home-vegas-upset {
    font-size: 0.78rem;
  }
  .hvc-hero-conf { font-size: 1.1rem; }
  .hvc-hero-pct { font-size: 1.3rem; }
  .hvc-hero-label { font-size: 0.65rem; }
}

/* ── Data Pulse ticker: mobile improvements ── */
@media (max-width: 767.98px) {
  .home-card-pulse {
    grid-column: 1 / -1 !important;
  }
  .pulse-ticker-viewport {
    max-height: none;
  }
  .pulse-ticker-card {
    min-width: 260px;
    max-width: 85vw;
    padding: 12px;
  }
  .home-pulse-story-text {
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .pulse-article {
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .pulse-article p {
    margin-bottom: 0.6rem;
  }
}

/* ── Home banner headers: consistent mobile sizing ── */
@media (max-width: 767.98px) {
  .home-banner h3 {
    font-size: 1rem;
  }
  .home-card-header {
    padding: 8px 12px;
  }
  .home-banner-title {
    gap: 6px;
  }
  .home-view-all {
    font-size: 0.7rem;
  }
}

/* ── Key Dates card: tighter on mobile ── */
@media (max-width: 767.98px) {
  .keydates-row {
    gap: 8px;
    padding: 5px 8px;
  }
  .keydates-label {
    font-size: 0.82rem;
  }
  .keydates-desc {
    font-size: 0.7rem;
  }
  .keydates-time {
    font-size: 0.68rem;
    white-space: nowrap;
  }
}

/* ── Betting Edge module: full mobile stack ── */
@media (max-width: 767.98px) {
  .betting-container {
    padding: 10px 6px;
  }
  .mvv-accuracy-grid {
    grid-template-columns: 1fr !important;
  }
  .mvv-edge-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mvv-edge-table table {
    min-width: 500px;
  }
  .ats-conf-bar-track {
    min-width: 100px;
  }
  .unit-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .unit-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Bracket Simulator: new elements mobile ── */
@media (max-width: 767.98px) {
  .bracket-mode-toggle {
    flex-wrap: wrap;
  }
  .bracket-mode-toggle .shiny-input-radiogroup {
    flex-wrap: nowrap;
  }
  .bracket-controls {
    gap: 8px;
  }
  .bracket-odds-summary {
    gap: 6px;
    padding: 8px 10px;
  }
  .bracket-odds-chip {
    font-size: 0.75rem;
    padding: 3px 7px;
  }
  /* Best Path display */
  .bp-champion-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    text-align: center;
  }
  .bp-champion-name {
    font-size: 1.3rem;
  }
  .bp-champion-icon {
    font-size: 2rem;
  }
  .bp-round-teams {
    gap: 6px;
  }
  .bp-team-chip {
    font-size: 0.78rem;
    padding: 4px 8px;
  }
  .bp-summary-chips {
    gap: 6px;
  }
  .bp-odds-chip {
    font-size: 0.72rem;
    padding: 3px 7px;
  }
  /* Results table scroll on mobile */
  .bracket-results-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bracket-results-table th,
  .bracket-results-table td {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.35rem 0.4rem;
  }
}

/* ── Playoff: auto-qualifier badges and conf grid ── */
@media (max-width: 767.98px) {
  .playoff-qualifier-legend {
    font-size: 0.65rem;
    text-align: center;
  }
  .playoff-aq-badge,
  .playoff-al-badge {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
  .playoff-conf-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .playoff-row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .playoff-bar-wrap {
    flex: 1 1 100%;
    order: 10;
  }
}
@media (max-width: 480px) {
  .playoff-conf-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Rivalry Index badge: mobile sizing ── */
@media (max-width: 767.98px) {
  .rivalry-index-badge {
    padding: 3px 6px;
    min-width: 38px;
  }
  .rivalry-index-badge .ri-score {
    font-size: 1.2rem;
  }
  .rivalry-index-badge .ri-label {
    font-size: 0.5rem;
  }
  .rivalry-card-header {
    padding: 10px 12px;
    min-height: 48px;
  }
  .rivalry-name {
    font-size: 1.1rem;
  }
}

/* ── Coaching Tree: records, active badges, win rate ── */
@media (max-width: 767.98px) {
  .tree-chips-grid {
    gap: 6px;
  }
  .tree-chip {
    min-width: 100px;
    max-width: none;
    flex: 1 1 calc(50% - 6px);
  }
  .tree-chip-name {
    font-size: 0.75rem;
  }
  .tree-chip-record {
    font-size: 0.75rem;
  }
  .tree-win-rate {
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
  }
  .tree-wr-val {
    font-size: 0.95rem;
  }
}

/* ── Predictions: projected score + why pills mobile ── */
@media (max-width: 767.98px) {
  .predict-projected-score {
    padding: 10px 12px;
  }
  .pps-scores {
    font-size: 1.3rem;
    gap: 6px;
  }
  .predict-why-pick {
    padding: 8px 10px;
  }
  .pwp-pills {
    gap: 6px;
    flex-wrap: wrap;
  }
  .pwp-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
}

/* ── Rankings: AP badge mobile ── */
@media (max-width: 767.98px) {
  .rank-ap-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
  .rank-delta-arrow {
    font-size: 0.55rem;
  }
}

/* ── DataTables: reduce min-width on phones ── */
@media (max-width: 480px) {
  .dataTables_wrapper .dataTable {
    min-width: 100% !important;
  }
}

/* ── Hot Seat detail panel: mobile-friendly layout ── */
@media (max-width: 767.98px) {
  .hotseat-detail-inner {
    padding: 8px 10px 10px 16px;
  }
  .hotseat-factors-compact {
    max-width: none;
  }
  .home-hotseat-detail.expanded {
    max-height: 360px;
  }
  .hotseat-factor-label {
    width: 48px;
    font-size: 0.72rem;
  }
  .home-hotseat-row {
    gap: 6px;
  }
  .home-hotseat-name {
    font-size: 0.88rem;
  }
  .home-hotseat-meta {
    font-size: 0.72rem;
  }
  .home-hotseat-pressure {
    font-size: 1.15rem;
  }
  .home-hotseat-legend {
    font-size: 0.7rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .home-hotseat-row {
    gap: 4px;
  }
  .home-hotseat-name {
    font-size: 0.82rem;
  }
  .home-hotseat-pressure {
    font-size: 1rem;
  }
  .home-hotseat-pressure-label {
    display: none;
  }
  .home-hotseat-rank {
    width: 18px;
    font-size: 0.85rem;
  }
}

/* ── Vegas card: tablet grid span fix ── */
@media (max-width: 1200px) {
  .home-card-vegas {
    grid-column: 1 / -1;
  }
}

/* ── Vegas content: phone-specific tightening ── */
@media (max-width: 480px) {
  .home-vegas-content {
    padding: 6px 8px;
  }
  .home-vegas-section-title {
    font-size: 0.8rem;
  }
  .vegas-callout-text {
    font-size: 0.75rem;
  }
  .vegas-callout-label {
    font-size: 0.8rem;
  }
  .vegas-callout-icon {
    font-size: 1.1rem;
  }
  .home-vegas-callout {
    padding: 6px 8px;
    gap: 6px;
  }
  .home-vegas-lb-row {
    font-size: 0.75rem;
    gap: 4px;
  }
  .home-vegas-lb-rank {
    font-size: 0.95rem;
    min-width: 12px;
  }
  .home-vegas-season-label {
    font-size: 0.78rem;
  }
}

/* ── Home banner: phone-specific title sizing ── */
@media (max-width: 480px) {
  .home-banner-title h3 {
    font-size: 0.92rem;
  }
  .home-hotseat-subtitle {
    display: none;
  }
  .home-banner-icon {
    font-size: 0.85rem;
  }
  .home-view-all {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

/* ── Classes card: phone tightening ── */
@media (max-width: 480px) {
  .home-classes-list {
    padding: 6px 10px 12px;
  }
  .home-classes-row {
    gap: 6px;
  }
  .home-classes-rating-val {
    font-size: 0.95rem;
  }
  .home-classes-rating-lbl {
    font-size: 0.62rem;
  }
  .home-classes-name {
    font-size: 0.82rem;
  }
  .home-classes-meta {
    font-size: 0.72rem;
  }
}

/* ── Draft card: phone chip wrapping ── */
@media (max-width: 480px) {
  .home-draft-row {
    padding: 8px 10px 12px;
  }
  .home-draft-yr-chip {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .home-draft-yr-year {
    font-size: 0.95rem;
  }
  .home-draft-yr-count {
    font-size: 0.95rem;
  }
  .home-draft-pipeline-note {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}

/* ── Home ranking row: phone team column ── */
@media (max-width: 480px) {
  .home-rank-team {
    flex: 0 0 95px;
  }
  .home-rank-name {
    font-size: 0.85rem;
  }
}

/* ── Command Center factor grid: phone stacking ── */
@media (max-width: 480px) {
  .mtcc-factor-grid {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
}

/* ── Generic fixes: prevent overflow on all card content ── */
@media (max-width: 767.98px) {
  .home-card > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  /* Ensure betting/schedule/other module containers don't exceed viewport */
  .matchups-container,
  .betting-container,
  .schedule-container,
  .playoff-tab-content {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ================================================================
   BUG FIXES & POLISH PASS (2026-05-01)
   ================================================================ */

/* Issue 2: Conference radar "vs. CONF AVG" clipping on mobile */
.mtcc-conf-radar {
  overflow: visible;
}
.mtcc-conf-radar .mtcc-card-header {
  overflow: visible;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px 6px;
}
@media (max-width: 640px) {
  .mtcc-conf-radar .mtcc-card-header {
    padding: 8px 10px 6px;
  }
  .ccr-row {
    grid-template-columns: 60px 1fr 28px;
    gap: 4px;
  }
  .ccr-label-text { font-size: 0.62rem; }
}

/* Issue 3: Font for subtitle spans (mtcc-card-sub and similar) */
.mtcc-card-sub {
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  color: #7a8a9b;
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* Issue 5: Vegas Pulse Sharp Money / Fade Alert badges — compact sizing */
.vegas-callout-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 2px 6px;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .vegas-callout-label {
    font-size: 0.6rem;
  }
}

/* Issue 6: Conference color dots — white outline for contrast */
.conf-cluster-chip,
.home-vegas-conf-chip,
.game-color-dot {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.4);
}
.conf-cluster-chip {
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}

/* Issue 7: Rankings TRLX/Custom mode toggle buttons — themed */
.rank-mode-btn {
  background: #211d19;
  color: #94a3b8;
  border: 1px solid #3e4047;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rank-mode-btn:hover {
  border-color: #c9a84c;
  color: #e8dcc8;
}
.rank-mode-btn.rank-mode-active {
  background: rgba(201,168,76,0.12);
  border-color: #c9a84c;
  color: #c9a84c;
  font-weight: 600;
}
.rank-mode-toggle {
  margin-bottom: 10px;
}

/* Issue 8: Rankings row hover feedback (clickable) */
.trlx-row:hover {
  background: rgba(201,168,76,0.06);
}
.ranking-row:hover {
  background: rgba(201,168,76,0.06);
}

/* Issue 12: Predict VS badge — spacing for neutral site */
.predict-vs-badge .selectize-control {
  margin-top: 8px;
}
@media (max-width: 767.98px) {
  .predict-vs-badge .selectize-control {
    margin-top: 4px;
  }
}

/* Proactive D: Prevent clipping on themed cards for overflow content */
.mtcc-card.mtcc-season,
.mtcc-card.mtcc-rivalry,
.mtcc-card.mtcc-nextgame,
.mtcc-card.mtcc-path,
.mtcc-card.mtcc-pulse,
.mtcc-card.mtcc-identity {
  overflow: visible;
}

/* Proactive G: iOS input zoom prevention (font-size < 16px triggers zoom) */
@media (max-width: 767.98px) {
  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  select,
  .selectize-input,
  .selectize-input input,
  textarea {
    font-size: 16px !important;
  }
}

/* Proactive H: Touch targets minimum 44px */
@media (max-width: 767.98px) {
  .btn-preset,
  .btn-predict-link,
  .mtcc-action-chip,
  .rank-jump-btn,
  .rank-mode-btn,
  .sport-bnav-item,
  .home-soul-link,
  .schedule-game-tile,
  .custom-preset-chip .btn-custom-preset,
  .custom-preset-chip .btn-delete-preset {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Proactive F: Better contrast for conference badges and colored text on dark bg */
.cfp-conf-tag {
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}
.mover-badge {
  text-shadow: 0 0 2px rgba(0,0,0,0.6);
}

/* Issue 10: Season tab compact header on mobile */
@media (max-width: 767.98px) {
  .schedule-container .section-header {
    margin-bottom: 8px;
  }
  .schedule-container .section-header h2 {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .schedule-container .section-header .muted-text {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  .schedule-subtab .row {
    margin-bottom: 4px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE DEEP PASS #2 — May 2026
   Additional fixes from manual testing: CC clipping, rank buttons, conference
   readability, empty card collapse, schedule, predict spacing
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Command Center: prevent card clipping on small phones ── */
@media (max-width: 480px) {
  .mtcc-grid {
    gap: 10px;
    padding: 0;
  }
  .mtcc-card {
    border-radius: 8px;
  }
  .mtcc-card-header {
    padding: 8px 10px 5px;
    gap: 5px;
  }
  .mtcc-card-title {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }
  .mtcc-card-body {
    padding: 8px 10px;
  }
  .mtcc-conf-radar .mtcc-card-header {
    padding: 6px 8px 5px;
  }
  .ccr-rows {
    padding: 0 2px;
  }
  .ccr-row {
    grid-template-columns: 52px 1fr 24px;
    gap: 3px;
  }
  .ccr-label-text {
    font-size: 0.58rem;
  }
  .ccr-bar-val {
    font-size: 0.58rem;
    width: 18px;
  }
}

/* ── CC empty cards: collapse when no content ── */
.mtcc-card:empty {
  display: none;
}
.mtcc-card-body:empty {
  padding: 0;
  min-height: 0;
}

/* ── Rank-mode buttons: explicit reset for all browsers ── */
.rank-mode-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rank-mode-btn i {
  font-size: 0.8rem;
}

/* ── Conference chips in Vegas: enhanced readability for dark blues ── */
.home-vegas-conf-chip {
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), inset 0 0 0 0.5px rgba(255,255,255,0.1);
}
.hvc-conf {
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
}
.hvc-pct {
  text-shadow: 0 0 2px rgba(0,0,0,0.6);
}

/* ── Predict: VS badge + neutral spacing fix ── */
.predict-vs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vs-circle {
  margin-bottom: 2px;
}
@media (max-width: 767.98px) {
  .predict-vs-badge {
    flex: 0 0 auto;
    min-width: 100px;
    gap: 4px;
  }
  .vs-circle {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .predict-matchup-bar {
    gap: 8px;
  }
}

/* ── Schedule: compact dropdowns, don't push content off-screen ── */
@media (max-width: 767.98px) {
  .schedule-subtab > .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    margin: 0;
  }
  .schedule-subtab > .row > [class^="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
  }
  .schedule-container .form-group {
    margin-bottom: 4px;
  }
  .schedule-container .form-group label {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }
}

/* ── Generic: collapsed/empty renderings ── */
.shiny-html-output:empty {
  display: none !important;
}

/* ── Rankings: tighter on mobile ── */
@media (max-width: 480px) {
  .rank-jump-btns {
    gap: 4px;
  }
  .rank-jump-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .rank-mode-toggle {
    gap: 4px !important;
  }
  .rank-mode-btn {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

/* ================================================================
   THE PULSE — .mtcc-intel-*
   AI-generated team articles in Command Center
   ================================================================ */

/* ── Season Story (ML Narrative Intelligence) ── */
.mtcc-season-story {
  background: linear-gradient(160deg, #1e1a14 0%, #1c1917 60%, #1e1a14 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--team-accent, #c9a84c);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.mtcc-story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mtcc-story-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mtcc-story-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #d4c9b5;
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 6px 6px 0;
}

.mtcc-intel-briefing {
  background: linear-gradient(160deg, #1e1a14 0%, #252017 60%, #1e1a14 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--team-accent, #c9a84c);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mtcc-intel-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mtcc-intel-icon {
  color: var(--team-accent, #c9a84c);
  font-size: 0.95rem;
}
.mtcc-intel-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--team-accent, #c9a84c);
  font-weight: 500;
}
.mtcc-intel-meta {
  font-family: 'Teko', sans-serif;
  font-size: 0.7rem;
  color: #7a8a9b;
  letter-spacing: 0.03em;
  margin-left: auto;
}

/* Individual article card */
.intel-article-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.intel-article-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
}
.intel-article-card.intel-expanded {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(201, 168, 76, 0.35);
}
.intel-article-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.intel-headline {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #e8dcc8;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
}
.intel-lede {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}
.intel-body {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  color: #c8bfaa;
  line-height: 1.75;
  padding: 12px 0 4px;
  margin-top: 6px;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}
.intel-body p {
  margin: 0 0 12px;
}
.intel-body p:last-child {
  margin-bottom: 0;
}
.intel-body p:first-child::first-letter {
  font-size: 1.55rem;
  font-family: 'Cinzel', serif;
  color: #c9a84c;
  vertical-align: baseline;
  line-height: 1;
}
.intel-expand-btn {
  font-family: 'Teko', sans-serif;
  font-size: 0.78rem;
  color: #c9a84c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
}
.intel-expand-btn:hover {
  color: #e8dcc8;
}
.intel-disclosure {
  font-family: 'Teko', sans-serif;
  font-size: 0.62rem;
  color: #5a6a7b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

/* Intel Briefing article category colors */
.home-pulse-cat-program-rebuild { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.home-pulse-cat-championship-contender { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.home-pulse-cat-hot-seat { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.home-pulse-cat-recruiting-surge { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.home-pulse-cat-portal-strategy { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.home-pulse-cat-breakout-watch { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.home-pulse-cat-regression-risk { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.home-pulse-cat-dynasty-watch { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.home-pulse-cat-schedule-gauntlet { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.home-pulse-cat-playoff-watch { background: rgba(234, 179, 8, 0.15); color: #facc15; }

/* Mobile responsiveness */
@media (max-width: 640px) {
  .mtcc-intel-briefing {
    padding: 12px 14px;
    gap: 10px;
  }
  .intel-headline {
    font-size: 0.95rem;
  }
  .intel-lede {
    font-size: 0.8rem;
  }
  .intel-body {
    font-size: 0.78rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Season Simulator Module
   ═══════════════════════════════════════════════════════════════════════════ */

.simulate-container { padding: 0.5rem; }
.simulate-subtab { padding: 0.5rem 0; }

.simulate-header { text-align: center; margin-bottom: 1.2rem; }
.simulate-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.04em;
}
.simulate-subtitle { font-size: 0.78rem; color: #8b9db0; margin-top: 0.2rem; }

.simulate-section { margin-bottom: 1.8rem; }
.simulate-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

/* Stats row */
.simulate-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.simulate-stats-row .stat-box { flex: 1; min-width: 110px; }

/* Projected record label in leaderboard */
.simulate-proj-record {
  font-size: 0.82rem;
  color: #8b9db0;
  width: 55px;
  text-align: center;
  flex-shrink: 0;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
}

/* Leaderboard reuses .playoff-row from existing CSS */
.simulate-leaderboard .playoff-row { cursor: default; }

/* Conference championship grid */
.simulate-conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.simulate-conf-card {
  background: #2a2520;
  border-radius: 8px;
  overflow: hidden;
}
.simulate-conf-card-header {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #e8dcc8;
}
.simulate-conf-card-body { padding: 6px 12px 10px; }
.simulate-conf-contender {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.8rem;
}
.simulate-conf-team-name {
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e8dcc8;
}
.simulate-conf-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.simulate-conf-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.simulate-conf-pct {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8dcc8;
  width: 36px;
  text-align: right;
}

/* Bowl eligibility grid */
.simulate-bowl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.simulate-bowl-card {
  background: #2a2520;
  border-radius: 8px;
  padding: 10px 12px;
}
.simulate-bowl-conf {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 6px;
}
.simulate-bowl-teams { display: flex; flex-wrap: wrap; gap: 4px; }
.simulate-bowl-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
}
.simulate-bowl-chip.bowl-high { color: #22c55e; background: rgba(34,197,94,0.08); }
.simulate-bowl-chip.bowl-mid { color: #f59e0b; background: rgba(245,158,11,0.08); }

/* Team Drill */
.simulate-team-picker { margin-bottom: 1rem; }
.simulate-team-header {
  padding: 1rem;
  background: #2a2520;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.simulate-team-name-big {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.simulate-team-conf {
  font-size: 0.78rem;
  color: #8b9db0;
  margin-bottom: 0.8rem;
}
.simulate-timeline-wrap,
.simulate-hist-wrap {
  background: #2a2520;
  border-radius: 10px;
  padding: 12px;
}

/* Swing game rows */
.simulate-swing-list { display: flex; flex-direction: column; gap: 4px; }
.simulate-swing-card { margin-bottom: 2px; }
.simulate-swing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #2a2520;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.85rem;
}
.simulate-swing-row:hover { background: #33281e; }

.simulate-swing-rank {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #8b9db0;
  width: 24px;
  text-align: center;
}
.simulate-swing-week {
  font-size: 0.72rem;
  color: #8b9db0;
  width: 40px;
  flex-shrink: 0;
}
.simulate-swing-team {
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.simulate-swing-vs {
  color: #8b9db0;
  font-size: 0.7rem;
}
.simulate-swing-matchup {
  color: #e8dcc8;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.simulate-swing-if-win {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #22c55e;
  width: 52px;
  text-align: right;
}
.simulate-swing-if-loss {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ef4444;
  width: 52px;
  text-align: right;
}
.simulate-swing-leverage {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
  width: 48px;
  text-align: right;
}

/* Swing ripple (expandable) */
.simulate-swing-ripple {
  background: #1a1410;
  border-radius: 0 0 6px 6px;
  padding: 8px 16px;
  margin-top: -2px;
}
.simulate-ripple-inner { display: flex; flex-direction: column; gap: 3px; }
.simulate-ripple-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 2px 0;
}

/* Narrative block */
.simulate-narrative {
  background: #2a2520;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.simulate-narrative-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.simulate-narrative-text {
  font-size: 0.85rem;
  color: #e8dcc8;
  line-height: 1.5;
}

/* What-If Controls */
.whatif-controls {
  background: #2a2520;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,168,76,0.1);
}
.whatif-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.whatif-week-select { width: auto; }
.whatif-week-select .form-group { margin-bottom: 0; }
.whatif-lock-info {
  font-size: 0.78rem;
  color: #94a3b8;
}
.whatif-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c9a84c;
  background: rgba(201,168,76,0.12);
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

.whatif-week-games {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 440px;
  overflow-y: auto;
}
.whatif-game-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #1a1410;
  border-radius: 6px;
  font-size: 0.82rem;
}
.whatif-game-prob {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b9db0;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.whatif-game-home {
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatif-game-vs {
  color: #8b9db0;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.whatif-game-away {
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatif-game-options {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.whatif-option {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatif-option:hover { background: rgba(255,255,255,0.06); color: #e8dcc8; }
.whatif-option.whatif-option-active {
  background: rgba(201,168,76,0.15);
  border-color: #c9a84c;
  color: #c9a84c;
  font-weight: 600;
}

.whatif-action-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

/* Chaos mode button */
.chaos-mode-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  transition: opacity 0.15s, filter 0.15s;
}
.chaos-mode-btn:hover { opacity: 0.9; filter: brightness(1.1); }

/* What-If Delta Results */
.whatif-delta-section { margin-bottom: 1rem; }
.whatif-delta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.whatif-delta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #2a2520;
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: 0.82rem;
}
.whatif-delta-team {
  color: #e8dcc8;
  font-weight: 600;
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatif-delta-base { color: #8b9db0; width: 48px; text-align: right; font-family: 'Teko', sans-serif; font-size: 0.95rem; }
.whatif-delta-new { color: #e8dcc8; width: 48px; text-align: right; font-weight: 600; font-family: 'Teko', sans-serif; font-size: 0.95rem; }
.whatif-delta-value {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  width: 72px;
  text-align: right;
}
.whatif-delta-positive { color: #22c55e; }
.whatif-delta-negative { color: #ef4444; }

/* Conference Races */
.simulate-conf-standings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.simulate-conf-race-card {
  background: #2a2520;
  border-radius: 8px;
  overflow: hidden;
}
.simulate-conf-race-header {
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #e8dcc8;
}
.simulate-conf-race-body { padding: 4px 12px 10px; }
.simulate-conf-race-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  margin-bottom: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9db0;
}
.simulate-conf-race-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.simulate-conf-race-row.conf-race-leader { color: #e8dcc8; }
.simulate-conf-race-cell-team {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.simulate-conf-race-cell-rec {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  width: 42px;
  text-align: center;
}
.simulate-conf-race-cell-bar { flex: 1; }
.simulate-conf-race-cell-pct {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  width: 36px;
  text-align: right;
  color: #e8dcc8;
}

/* Muted text + No data state */
.simulate-container .muted-text,
.simulate-muted {
  color: #94a3b8;
  font-size: 0.82rem;
}
.sim-no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: #8b9db0;
}

/* ── Mobile responsive ── */
@media (max-width: 767.98px) {
  .simulate-stats-row { gap: 6px; }
  .simulate-stats-row .stat-box { min-width: 80px; flex-basis: calc(50% - 6px); }
  .simulate-conf-grid { grid-template-columns: 1fr; }
  .simulate-bowl-grid { grid-template-columns: 1fr; }
  .simulate-conf-standings { grid-template-columns: 1fr; }
  .whatif-game-row { flex-wrap: wrap; gap: 4px; }
  .whatif-game-options { width: 100%; justify-content: flex-end; }
  .whatif-top-row { gap: 8px; }
  .simulate-swing-row { flex-wrap: wrap; gap: 4px; padding: 6px 8px; }
  .simulate-swing-team { max-width: 80px; }
  .simulate-team-name-big { font-size: 1.1rem; }
  .whatif-delta-row { flex-wrap: wrap; }
  .whatif-delta-team { width: 100%; }
}
