  :root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface2: #eef1f6;
    --border: #dde2ea;
    --accent: #16a34a;
    --accent-blue: #1a56db;
    --accent2: #e05a2b;
    --text: #111827;
    --muted: #6b7280;
    --win: #16a34a;
    --loss: #dc2626;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; min-height: 100vh; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

  header {
    background: #0f1923;
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    height: 62px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .home-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
  }
  .logo-lockup {
    display: flex; flex-direction: column; justify-content: center; gap: 0;
  }
  .logo-wordmark {
    font-family: 'Bebas Neue'; font-size: 26px; letter-spacing: 3px;
    color: #ffffff; display: flex; align-items: baseline; gap: 4px;
  }
  .logo-claim {
    font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700;
    letter-spacing: .7px; text-transform: uppercase;
    color: #ffffff; line-height: 1;
    background: #1a56db; border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px; padding: 3px 7px; width: fit-content;
    white-space: nowrap;
  }
  .logo-icon {
    width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
  }
  .logo-icon img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .logo-wordmark span { color: var(--accent); }
  .season-badge {
    background: #1a56db;
    border: 1px solid rgba(255,255,255,.16);
    color: #fff; font-family: 'Barlow Condensed'; font-weight: 700;
    padding: 4px 12px; font-size: 12px; letter-spacing: 2px;
    border-radius: 4px;
  }

  .tabs {
    display: flex; gap: 0; border-bottom: 2px solid var(--border);
    background: var(--surface); padding: 0 20px; overflow-x: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .tab-btn {
    background: none; border: none; color: var(--muted); font-family: 'Barlow Condensed';
    font-weight: 700; font-size: 14px; letter-spacing: 1.5px; padding: 14px 18px;
    cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all .2s; white-space: nowrap; text-transform: uppercase;
  }
  .tab-btn.active { color: #1a56db; border-bottom-color: #1a56db; }
  .tab-btn:hover:not(.active) { color: var(--text); }

  main { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  .section-title {
    font-family: 'Bebas Neue'; font-size: 26px; letter-spacing: 3px;
    color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
  }
  .section-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }
  .section-title::before { content: ''; width: 4px; height: 24px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }

  /* ── HERO CARD ── */
  .hero-card {
    background: linear-gradient(135deg, #0f1923 0%, #1a2e1f 60%, #0f1923 100%);
    border-radius: 12px; padding: 20px 24px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; overflow: hidden; position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
  }
  .hero-card::before {
    content: '⚾'; position: absolute; right: -10px; top: -10px;
    font-size: 100px; opacity: .04; transform: rotate(15deg);
    pointer-events: none;
  }
  .hero-title {
    font-family: 'Bebas Neue'; font-size: 32px; letter-spacing: 3px;
    color: #fff; line-height: 1;
  }
  .hero-subtitle {
    font-family: 'Barlow Condensed'; font-size: 12px; letter-spacing: 2px;
    color: rgba(255,255,255,.5); margin-top: 4px; text-transform: uppercase;
  }
  .hero-stat {
    text-align: right; flex-shrink: 0;
  }
  .hero-stat-val {
    font-family: 'Bebas Neue'; font-size: 48px; line-height: 1;
    color: var(--accent); letter-spacing: 2px;
  }
  .hero-stat-label {
    font-family: 'Barlow Condensed'; font-size: 11px; letter-spacing: 2px;
    color: rgba(255,255,255,.5); text-transform: uppercase;
  }
  .hero-pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .hero-pill {
    font-family: 'Barlow Condensed'; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.07);
  }
  .hero-pill.green { border-color: rgba(22,163,74,.5); color: #4ade80; background: rgba(22,163,74,.12); }
  .hero-pill.blue { border-color: rgba(26,86,219,.5); color: #93c5fd; background: rgba(26,86,219,.12); }

  .standings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .standings-table th {
    font-family: 'Barlow Condensed'; font-weight: 600; font-size: 11px; letter-spacing: 1.5px;
    color: var(--muted); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border);
  }
  .standings-table th.num { text-align: right; }
  .standings-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .standings-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
  .standings-table tr:hover td { background: var(--surface2); }

  .team-cell { display: flex; align-items: center; gap: 10px; }
  .team-logo-sm { width: 28px; height: 28px; object-fit: contain; }
  .pct { font-family: 'Barlow Condensed'; font-weight: 600; }

  .schedule-list { display: flex; flex-direction: column; gap: 8px; }
  .game-row {
    display: grid; grid-template-columns: 90px 1fr 60px 1fr 120px;
    align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 12px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .game-date { font-family: 'Barlow Condensed'; font-size: 13px; color: var(--muted); }
  .game-team { display: flex; align-items: center; gap: 8px; }
  .game-team-logo { width: 24px; height: 24px; object-fit: contain; }
  .game-team-name { font-family: 'Barlow Condensed'; font-weight: 600; font-size: 15px; }
  .game-score { font-family: 'Bebas Neue'; font-size: 22px; text-align: center; }
  .game-info { font-size: 12px; color: var(--muted); text-align: right; }
  .game-status { font-family: 'Barlow Condensed'; font-size: 12px; letter-spacing: 1px; }
  .game-status.live { color: var(--win); animation: pulse 1.5s infinite; }
  .game-status.final { color: var(--muted); }
  .game-status.upcoming { color: var(--accent); }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }

  .loading { display: flex; align-items: center; justify-content: center; padding: 60px; flex-direction: column; gap: 16px; }
  .spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .loading-text { font-family: 'Barlow Condensed'; color: var(--muted); letter-spacing: 2px; font-size: 14px; }

  .error-box { background: rgba(224,90,43,.1); border: 1px solid rgba(224,90,43,.3); padding: 20px; color: var(--loss); font-size: 14px; }

  .legend { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
  .legend-dot { width: 10px; height: 10px; }
  .legend-dot.div { background: var(--win); }
  .legend-dot.wc { background: #1a56db; }
  .legend-dot.out { background: var(--loss); opacity: .6; }
  .standings-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 0 0 14px; flex-wrap: wrap;
  }
  .standings-date-info {
    font-family: 'Bebas Neue'; font-size: 16px; letter-spacing: 1.5px;
    color: #1a56db;
  }

  .divisions-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
  .divisions-grid .division-card { flex: 1 1 calc(50% - 10px); min-width: 280px; }
  @media (max-width: 768px) { .divisions-grid .division-card { flex: 1 1 100%; min-width: 0; } }
  .division-card { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; border-radius: 8px; }
  .division-header { background: var(--surface2); padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); border-left: 3px solid var(--accent); }
  .division-name { font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: 2px; color: var(--text); }
  .division-league { font-family: 'Barlow Condensed'; font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
  .div-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .div-table th { font-family: 'Barlow Condensed'; font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--border); background: var(--surface); }
  .div-table th.r { text-align: right; }
  .div-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .div-table td.r { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Barlow Condensed'; font-size: 14px; }
  .div-table tr:last-child td { border-bottom: none; }
  .div-table tr:hover td { background: var(--surface2); }
  .standings-team-row { cursor: pointer; }
  .standings-team-row.open td { background: #f8fbff; }
  .standings-team-detail { display: none; }
  .standings-team-detail.open { display: table-row; }
  .standings-team-detail td {
    padding: 0; background: #f8fbff; border-bottom: 1px solid var(--border);
  }
  .standings-next-wrap {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px 14px;
    font-family: 'Barlow Condensed'; font-size: 14px; color: var(--muted); flex-wrap: wrap;
  }
  .standings-next-link { cursor: pointer; }
  .standings-next-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent-blue);
  }
  .standings-next-matchup {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0;
    font-weight: 800; color: var(--text); font-size: 15px;
  }
  .standings-next-meta {
    color: var(--text); font-weight: 800; font-size: 12px; white-space: nowrap;
  }
  .standings-next-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
  .standings-next-record { font-weight: 800; font-size: 15px; }
  .standings-better { color: var(--win); }
  .standings-worse { color: var(--loss); }
  .standings-equal { color: var(--text); }
  .div-table tr.div-leader td:first-child { border-left: 3px solid var(--win); }
  .div-table tr.wc-spot td:first-child { border-left: 3px solid var(--accent-blue); }
  .div-table tr.elim-row td { opacity: .4; }
  .games-rem { font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface2); padding: 1px 6px; border: 1px solid var(--border); }
  .badge-div { background: rgba(22,163,74,.1); color: var(--win); border: 1px solid rgba(22,163,74,.3); font-family: 'Barlow Condensed'; font-size: 11px; letter-spacing: 1px; font-weight: 700; padding: 2px 7px; }
  .badge-wc { background: rgba(26,86,219,.08); color: var(--accent-blue); border: 1px solid rgba(26,86,219,.25); font-family: 'Barlow Condensed'; font-size: 11px; letter-spacing: 1px; font-weight: 700; padding: 2px 7px; }
  .gb-val { font-family: 'Barlow Condensed'; font-weight: 600; }
  .gb-leader { color: var(--win); font-weight: 700; }

  .tracker-section { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #1a56db; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 20px; margin-bottom: 28px; border-radius: 0 8px 8px 0; }
  .tracker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
  .tracker-title { font-family: 'Bebas Neue'; font-size: 18px; letter-spacing: 2px; color: var(--text); }
  .tracker-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .tracker-select { font-family: 'Barlow Condensed'; font-size: 13px; font-weight: 600; letter-spacing: 1px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 5px 10px; cursor: pointer; }
  .tracker-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: var(--border); outline: none; cursor: pointer; margin: 10px 0; }
  .tracker-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .tracker-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
  .tracker-div-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  .tracker-div-btn { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 5px 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); cursor: pointer; transition: all .15s; white-space: nowrap; }
  .tracker-div-btn:hover:not(.active) { color: var(--text); border-color: #aaa; }
  .tracker-div-btn.active { background: #1a56db; color: #fff; border-color: #1a56db; }
  .tracker-date-label { font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: 2px; color: var(--accent); }
  #trackerMaxGR { font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: 2px; color: var(--muted); font-weight: normal; }
  .hist-tip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; font-family: 'Barlow Condensed'; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 3px 8px; white-space: nowrap; pointer-events: none; z-index: 20; margin-bottom: 4px; }
  .hist-dots { position: relative; }
  .tracker-loading { font-family: 'Barlow Condensed'; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
  #trackerCanvas { width: 100%; display: block; }
  .tracker-legend-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
  .tracker-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); font-family: 'Barlow Condensed'; }
  /* By default show full name, hide abbr */
  .team-name-abbr { display: none; }
  .team-name-full { display: inline; }
  .tracker-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

  /* ── BOTTOM NAV (mobile only) ── */
  .bottom-nav { display: none; }
  .app-footer {
    margin-top: 32px;
    margin-bottom: 8px;
    padding: 14px 16px 4px;
    text-align: center;
    color: var(--muted);
    font-family: 'Barlow Condensed';
    font-size: 13px;
    letter-spacing: .8px;
  }
  .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(26,86,219,.2);
    border-radius: 999px;
    background: rgba(26,86,219,.06);
    color: var(--accent-blue);
    text-decoration: none;
    font-family: 'Barlow Condensed';
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background .15s, border-color .15s, color .15s;
  }
  .contact-btn:hover {
    background: rgba(26,86,219,.1);
    border-color: rgba(26,86,219,.32);
    color: #1749b5;
  }
  @media (max-width: 768px) {
    .app-footer {
      margin-top: 36px;
      margin-bottom: 0;
      padding: 18px 12px 10px;
      font-size: 12px;
    }
    .bottom-nav {
      display: flex; position: fixed; bottom: 0; left: 0; right: 0;
      background: #0f1923;
      border-top: none;
      box-shadow: 0 -2px 16px rgba(0,0,0,.2);
      z-index: 200; height: 58px;
      padding-bottom: env(safe-area-inset-bottom);
    }
    .bnav-btn {
      flex: 1; display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 3px; background: none; border: none;
      color: rgba(255,255,255,.4); cursor: pointer; padding: 6px 4px; transition: color .15s;
      font-family: 'Barlow Condensed'; font-size: 10px; font-weight: 700;
      letter-spacing: .8px; text-transform: uppercase;
    }
    .bnav-btn svg { width: 20px; height: 20px; }
    .bnav-btn.active { color: var(--accent); }
    #desktopTabs { display: none; }
    main { padding-bottom: 100px; }
  }

  /* ── STANDINGS VIEW TOGGLE ── */
  .standings-toggle {
    display: flex; margin-bottom: 0;
    border: 1px solid var(--border); overflow: hidden; width: fit-content;
    border-radius: 6px;
  }
  .standings-toggle-btn {
    font-family: 'Barlow Condensed'; font-weight: 700; font-size: 13px;
    letter-spacing: 1.5px; padding: 8px 20px; border: none; background: var(--surface);
    color: var(--muted); cursor: pointer; transition: all .15s; white-space: nowrap;
  }
  .standings-toggle-btn.active.division-btn { background: var(--accent); color: #fff; }
  .standings-toggle-btn.active.wildcard-btn { background: #1a56db; color: #fff; }
  .standings-toggle-btn.active { background: var(--accent); color: #fff; }
  .standings-toggle-btn:hover:not(.active) { color: var(--text); background: var(--surface2); }
  /* Division card — clickable header */
  .division-header { cursor: pointer; transition: background .12s; }
  .division-header:hover { background: #e4e8f0; }
  .division-header.selected { background: var(--surface2); border-left-color: var(--accent); }
  .division-header.selected .division-name { color: var(--text); }
  .division-header.selected .division-league { color: var(--muted); }
  .div-chevron { transition: transform .2s; color: var(--muted); flex-shrink: 0; }
  .division-header.selected .div-chevron { color: var(--muted); transform: rotate(180deg); }
  /* Desktop: disable collapse, show all divisions, hide chevron */
  @media (min-width: 769px) {
    .division-header { cursor: default; pointer-events: none; }
    .division-header:hover { background: var(--surface2); }
    .div-chevron { display: none; }
  }

  /* ── WILD CARD TABLE ── */
  .wc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
  .wc-table th { font-family: 'Barlow Condensed'; font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
  .wc-table th.r { text-align: right; }
  .wc-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .wc-table td.r { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Barlow Condensed'; font-size: 14px; }
  .wc-table tr:last-child td { border-bottom: none; }
  .wc-table tr:hover td { background: var(--surface2); }
  .wc-team-row { cursor: pointer; }
  .wc-team-row.open td { background: #f8fbff; }
  .wc-team-detail { display: none; }
  .wc-team-detail.open { display: table-row; }
  .wc-team-detail td { padding: 0; background: #f8fbff; border-bottom: 1px solid var(--border); }
  .wc-table tr.wc-div td { border-left: 3px solid var(--win); }
  .wc-table tr.wc-wc td { border-left: 3px solid #1a56db; }
  .wc-table tr.wc-elim td { opacity: .45; }
  @media (max-width: 768px) {
    .wc-table tr.wc-div td { background: none; border-left: 3px solid var(--win); }
    .wc-table tr.wc-wc td { background: none; border-left: 3px solid #1a56db; }
    .wc-col-l10 { display: none; }
  }

  .bracket-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
    margin-bottom: 32px;
  }
  .series-card {
    background: var(--surface); border: 1px solid var(--border);
    padding: 16px; position: relative; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
  }
  .series-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
  }
  .series-round {
    font-family: 'Barlow Condensed'; font-size: 11px; letter-spacing: 2px;
    color: var(--muted); margin-bottom: 12px;
  }
  .series-matchup { display: flex; flex-direction: column; gap: 8px; }
  .series-team {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; background: var(--bg);
  }
  .series-team.winner { background: rgba(22,163,74,.06); border-left: 3px solid var(--win); }
  .series-team.eliminated { opacity: .5; border-left: 3px solid var(--loss); }
  .series-team-info { display: flex; align-items: center; gap: 10px; }
  .series-logo { width: 32px; height: 32px; object-fit: contain; }
  .series-name { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 16px; }
  .series-record { font-size: 11px; color: var(--muted); }
  .series-wins { font-family: 'Bebas Neue'; font-size: 28px; color: var(--text); }
  .series-wins.w { color: var(--win); }

  @media (max-width: 768px) {
    /* Header */
    header { padding: 0 12px; height: 58px; }
    .logo-wordmark { font-size: 22px; letter-spacing: 2px; gap: 3px; }
    .logo-lockup { gap: 0; }
    .logo-claim {
      font-size: 10px; letter-spacing: .45px; line-height: 1;
      white-space: nowrap; padding: 2px 6px;
    }
    .season-badge { font-size: 11px; padding: 3px 8px; letter-spacing: 1px; }

    /* Tabs */
    .tabs { padding: 0 8px; }
    .tab-btn { padding: 12px 12px; font-size: 12px; }

    /* Main */
    main { padding: 16px 12px calc(110px + env(safe-area-inset-bottom)); }
    .section-title { font-size: 18px; }

    /* Standings / division tables */
    .div-table { font-size: 13px; }
    .div-table th, .div-table td { padding: 7px 8px; }
    .standings-table { font-size: 13px; }
    .standings-table th, .standings-table td { padding: 7px 8px; }
    .team-cell { gap: 6px; }
    .team-logo-sm { width: 22px; height: 22px; }
    /* Hide secondary columns on mobile — keep TEAM W L PCT L10 STRK HIST */
    .div-col-strk { display: table-cell; }
    .div-col-l10, .div-col-mn, .div-col-hist { display: table-cell; }
    /* Show abbr instead of full name on mobile */
    .team-name-full { display: none; }
    .team-name-abbr { display: inline; }
    /* Hide DIV/WC badges on mobile, use row background color instead */
    .badge-div, .badge-wc { display: none; }
    .div-table tr.div-leader td:first-child { background: none; border-left: 3px solid var(--win); }
    .div-table tr.div-leader:hover td { background: var(--surface2); }
    .div-table tr.wc-spot td:first-child { background: none; border-left: 3px solid #1a56db; }
    .div-table tr.wc-spot:hover td { background: var(--surface2); }
    .div-table tr.elim-row td { background: none; opacity: .4; }
    .standings-next-wrap { gap: 8px; padding: 10px 8px 12px 14px; }
    .standings-next-label { font-size: 10px; }
    .standings-next-matchup { font-size: 14px; }
    .standings-next-meta { font-size: 11px; }
    .standings-next-record { font-size: 14px; }

    /* Schedule rows — stack into 2-line layout */
    .game-row {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      gap: 6px 8px;
      padding: 10px 12px;
      font-size: 13px;
    }
    .game-date   { grid-column: 1 / 2; grid-row: 1; align-self: center; }
    .game-info   { grid-column: 2 / 3; grid-row: 1; text-align: right; align-self: center; }
    .game-team:first-of-type { grid-column: 1 / 2; grid-row: 2; }
    .game-score  { grid-column: 2 / 3; grid-row: 2; font-size: 18px; text-align: right; }
    .game-team:last-of-type  { grid-column: 1 / 2; grid-row: 3; }
    .game-status { grid-column: 2 / 3; grid-row: 3; text-align: right; align-self: center; }
    .game-team-name { font-size: 14px; }

    /* Bracket cards */
    .bracket-grid { grid-template-columns: 1fr; }
    .series-name { font-size: 14px; }
    .series-wins { font-size: 22px; }

    /* Tracker */
    .tracker-section { padding: 14px 12px; }
    /* Tracker division pills: 3 per row on mobile */
    .tracker-div-pills { display: grid; grid-template-columns: repeat(3, 1fr); }
    .tracker-div-btn { text-align: center; }
    .tracker-header { flex-wrap: nowrap; gap: 8px; align-items: center; }
    .tracker-title { font-size: 15px; white-space: nowrap; }
    .tracker-date-label { font-size: 17px; }
    #trackerMaxGR { font-size: 17px; }
    .standings-meta { margin-bottom: 12px; }
    .standings-date-info { font-size: 15px; }

    /* Teams / roster panel */
    .team-selector-list { max-height: 220px; }
    .diamond-panel { padding: 14px 12px; }
    .dfield-container { height: 360px; }
    .dfield-circle { width: 36px; height: 36px; font-size: 10px; }
    .dfield-btn.active .dfield-circle,
    .dfield-btn-inline.active .dfield-circle { width: 42px; height: 42px; }
    .dfield-pill { font-size: 11px; max-width: 88px; }
    .il-row { grid-template-columns: 1fr 80px; gap: 6px; }
    .impact-stats-line { font-size: 11px; white-space: normal; overflow: visible; margin-top: 2px; }
    .impact-name { font-size: 13px; }
    .impact-name > * { flex-shrink: 0; }
    .impact-bar-val { font-size: 15px; }
    .impact-bar-label { font-size: 9px; }
    .dp-team-name { font-size: 22px; }

    /* Legend */
    .legend { gap: 12px; }
  }

  .teams-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
  @media (max-width: 960px) { .teams-layout { grid-template-columns: 1fr; } }

  .team-selector-card {
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden; border-radius: 8px;
  }
  .team-selector-header {
    background: var(--surface2); padding: 11px 14px; border-bottom: 1px solid var(--border);
    font-family: 'Inter'; font-weight: 700; font-size: 11px; letter-spacing: 1px;
    color: var(--muted); text-transform: uppercase;
  }
  .team-selector-list { max-height: 540px; overflow-y: auto; }
  .team-selector-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
    cursor: pointer; border-bottom: 1px solid var(--border); transition: background .12s;
  }
  .team-selector-item:hover { background: var(--surface2); }
  .team-selector-item.active { background: rgba(26,86,219,.07); border-left: 3px solid #1a56db; }
  .team-selector-item img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
  .team-selector-name { font-weight: 600; font-size: 14px; color: var(--text); }
  .team-selector-abbr { font-size: 11px; color: var(--muted); margin-left: auto; letter-spacing: .5px; }
  .team-selector-wl { font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: auto; letter-spacing: .5px; }
  .team-div-group {}
  .team-div-label {
    font-family: 'Barlow Condensed'; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent); padding: 7px 14px 4px;
    background: var(--surface2); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1;
  }
  .team-div-pos {
    font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700; color: var(--muted);
    width: 14px; text-align: center; flex-shrink: 0;
  }

  /* Badges — LHB gets blue like LHP */
  .hand-badge { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
    background: rgba(184,15,33,.1); color: #b80f21; letter-spacing: .3px; }
  .hand-badge.lhp, .hand-badge.lhb { background: rgba(0,90,156,.1); color: #005A9C; }
  .hand-badge.swi { background: rgba(107,114,128,.12); color: var(--muted); }

  /* Secondary positions pill */
  .sec-pos-badge {
    font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px;
    background: rgba(26,86,219,.07); color: var(--accent); border: 1px solid rgba(26,86,219,.2);
    letter-spacing: .3px; white-space: nowrap;
  }

  .diamond-panel {
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 20px;
    min-height: 420px; border-radius: 8px;
  }
  .diamond-panel-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
  }
  .dp-logo { width: 48px; height: 48px; object-fit: contain; }
  .dp-team-name { font-family: 'Bebas Neue'; font-size: 26px; letter-spacing: 2px; line-height: 1; }
  .dp-subtitle { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .5px; margin-top: 3px; }

  .diamond-box {
    background: #eef2f9; border: 1px solid #dde5f0; border-radius: 12px;
    padding: 14px 14px 18px; margin-bottom: 4px;
  }
  .diamond-section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 12px;
  }

  .dfield-container { position: relative; height: 440px; width: 100%; }

  .dfield-rombo {
    position: absolute; left: 50%; top: 58%;
    width: 200px; height: 200px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 2.5px solid rgba(100,120,200,.2); border-radius: 10px;
    pointer-events: none;
  }
  .dfield-homeplate {
    position: absolute; left: 50%; top: 78%;
    width: 8px; height: 8px; transform: translate(-50%, -50%);
    border-radius: 50%; background: rgba(26,86,219,.4); pointer-events: none;
  }

  .dfield-btn {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: transparent; border: none; padding: 0; cursor: pointer; z-index: 2;
  }
  .dfield-btn-inline {
    display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
    background: transparent; border: none; padding: 0; cursor: pointer; min-width: 64px;
  }

  .dfield-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter'; font-weight: 800; font-size: 11px; color: #fff;
    border: 2.5px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 12px rgba(22,28,39,.15);
    transition: all .18s ease;
  }  .dfield-btn.active .dfield-circle, .dfield-btn-inline.active .dfield-circle {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,.95);
    box-shadow: 0 8px 20px rgba(0,66,117,.22);
  }
  .dfield-pill {
    font-size: 12px; font-weight: 600; color: var(--text);
    background: rgba(241,243,255,.9);
    padding: 2px 8px; border-radius: 999px;
    border: 1px solid rgba(200,210,240,.7);
    white-space: nowrap; max-width: 110px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .dfield-btn.active .dfield-pill, .dfield-btn-inline.active .dfield-pill {
    font-weight: 700; border-color: var(--btn-color, var(--accent));
  }

  /* Impact rows (player detail cards) */
  .impact-detail-card {
    background: #f8f9fd; border: 1px solid #e4eaf5; border-radius: 10px; padding: 10px 12px;
  }
  .impact-row {
    display: grid; grid-template-columns: 1fr 80px;
    gap: 8px 12px; align-items: start; padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  .impact-row:last-child { border-bottom: none; }
  .impact-row-left { display: flex; align-items: center; gap: 9px; min-width: 0; grid-column:1; grid-row:1/3; }
  .impact-photo {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--border); flex-shrink: 0; background: var(--surface2);
  }
  .impact-name-block { min-width: 0; overflow: hidden; }
  .impact-name {
    font-weight: 700; font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.3;
  }
  .impact-stats-line { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 500; letter-spacing: .1px; }
  .impact-bar-block { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; grid-column:2; grid-row:1; align-self:end; margin-bottom:2px; }
  .impact-bar-bg { width:100%; height:100%; border-radius: 999px; overflow:hidden; }
  .impact-bar-fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
  .impact-bar-val-wrap { text-align: right; grid-column:2; grid-row:2; align-self:start; }
  .impact-bar-label { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; display: block; }
  .impact-bar-val { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 16px; line-height: 1; }

  /* Badges */
  .rookie-badge {
    font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px;
    background: rgba(234,179,8,.15); color: #b45309; letter-spacing: .5px;
  }
  .award-pip {
    position: absolute; width: 17px; height: 17px; border-radius: 50%;
    background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); pointer-events: none;
  }
  .award-inline-badge { display: inline-flex; align-items: center; vertical-align: middle; }
  .rest-dot {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
    letter-spacing: .3px;
  }
  .rest-dot::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; display: inline-block;
  }
  .rest-0 { background: rgba(220,38,38,.1);  color: #dc2626; } /* pitched today/yesterday */
  .rest-1 { background: rgba(234,88,12,.1);  color: #ea580c; } /* 1 day */
  .rest-2 { background: rgba(234,179,8,.1);  color: #ca8a04; } /* 2 days */
  .rest-3 { background: rgba(22,163,74,.1);  color: #16a34a; } /* 3+ days — fresh */
  .il-badge {
    font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px;
    background: rgba(220,38,38,.1); color: var(--loss); letter-spacing: .5px;
  }

  .alts-section-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent); margin: 8px 0 4px;
  }

  /* Pitcher groups */
  .pitcher-area { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
  .pitcher-area-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 14px;
  }
  .pitcher-group-wrap { padding: 10px 0; border-top: 1px solid var(--border); }
  .pitcher-group-wrap:first-child { border-top: none; padding-top: 0; }
  .pitcher-group-label {
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
  }
  .pitcher-circles-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .pitcher-detail-card {
    margin-top: 10px; background: #f8f9fd;
    border: 1px solid #e4eaf5; border-radius: 10px; padding: 10px 12px;
  }

  /* ── Team Stats vs League ── */
  .team-stats-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
  }
  .team-stats-title {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 14px;
  }
  .team-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  }
  .team-stat-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
  .team-stat-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  }
  .team-stat-label {
    font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  }
  .team-stat-val {
    font-family: 'Barlow Condensed'; font-weight: 800; font-size: 22px; line-height: 1;
  }
  .team-stat-rank {
    font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700; letter-spacing: .5px;
    padding: 2px 6px; border-radius: 3px; white-space: nowrap;
  }
  .team-stat-rank.top      { background: rgba(22,163,74,.12);  color: var(--win); }
  .team-stat-rank.mid-blue { background: rgba(26,86,219,.10);  color: #1a56db; font-weight: 700; }
  .team-stat-rank.mid      { background: rgba(107,114,128,.1); color: var(--muted); }
  .team-stat-rank.bot      { background: rgba(220,38,38,.10);  color: var(--loss); }
  .team-stat-bar-wrap { position: relative; height: 5px; background: var(--border); border-radius: 999px; overflow: visible; }
  .team-stat-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
  .team-stat-bar-dots {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; justify-content: space-between; width: 100%; pointer-events: none;
  }
  .innings-split-row { grid-column: 1 / -1; margin-top: 8px; }
  .innings-split-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
  }
  .innings-bar-wrap {
    height: 20px; border-radius: 4px; overflow: hidden; display: flex;
    border: 1px solid var(--border);
  }
  .innings-bar-sp {
    background: #1a56db; display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed'; font-size: 11px; font-weight: 700; color: #fff;
    letter-spacing: .5px; transition: width .4s ease; white-space: nowrap; overflow: hidden;
    min-width: 0;
  }
  .innings-bar-rp {
    background: #94a3b8; flex: 1; display: flex; align-items: center; justify-content: flex-end;
    padding-right: 6px; font-family: 'Barlow Condensed'; font-size: 11px; font-weight: 700; color: #fff;
    letter-spacing: .5px; white-space: nowrap; overflow: hidden; min-width: 0;
  }
  .innings-legend { display: flex; gap: 14px; margin-top: 5px; }
  .innings-legend-item {
    display: flex; align-items: center; gap: 5px;
    font-family: 'Barlow Condensed'; font-size: 11px; color: var(--muted); font-weight: 600;
  }
  .innings-legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

  /* ── Narrative player badges ── */
  .narrative-badge {
    display: inline-flex; align-items: center;
    font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
    letter-spacing: .4px; white-space: nowrap; vertical-align: middle;
    background: rgba(245,158,11,.15); color: #b45309;
    border: 1px solid rgba(245,158,11,.3);
    margin-right: 2px;
  }
  .narrative-badge.skill {
    background: rgba(245,158,11,.15); color: #b45309;
    border-color: rgba(245,158,11,.3);
  }
  .narrative-badge.descriptor {
    background: rgba(124,58,237,.13); color: #6d28d9;
    border-color: rgba(124,58,237,.28);
  }
  .narrative-badges-row {
    display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px;
  }

  /* ── Player trend indicator ── */
  .trend-badge {
    display: block; text-align: right;
    font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px;
    letter-spacing: .2px; white-space: normal; word-break: break-word;
    margin-top: 3px; line-height: 1.2;
  }
  .trend-up-strong { background: rgba(22,163,74,.15);  color: var(--win); }
  .trend-up        { background: rgba(26,86,219,.12);  color: #1a56db; font-weight: 700; }
  .trend-flat      { background: rgba(107,114,128,.1); color: var(--muted); }
  .trend-down      { background: rgba(220,38,38,.10);  color: var(--loss); }
  .trend-down-strong { background: rgba(220,38,38,.18); color: var(--loss); }
  .trend-badge svg { flex-shrink: 0; }

  /* IL section */
  .il-section { margin-top: 20px; border-top: 2px solid rgba(220,38,38,.15); padding-top: 16px; }
  .il-section-title {
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--loss); margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
  }
  .il-accordion,
  .il-group-accordion {
    border: 0;
  }
  .il-accordion > summary,
  .il-group-accordion > summary {
    list-style: none; cursor: pointer; user-select: none;
  }
  .il-accordion > summary::-webkit-details-marker,
  .il-group-accordion > summary::-webkit-details-marker {
    display: none;
  }
  .il-summary-row,
  .il-group-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .il-summary-chevron,
  .il-group-chevron {
    width: 14px; height: 14px; color: var(--muted); flex-shrink: 0;
    transition: transform .2s ease;
  }
  .il-accordion[open] .il-summary-chevron,
  .il-group-accordion[open] .il-group-chevron {
    transform: rotate(180deg);
  }
  .il-group { margin-bottom: 14px; }
  .il-group-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px; padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
  }
  .il-group-accordion { margin-bottom: 10px; }
  .il-group-summary {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); padding-bottom: 5px; border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
  }
  .il-players-grid { display: flex; flex-direction: column; }
  .il-row {
    display: grid; grid-template-columns: 1fr 80px;
    gap: 8px 12px; align-items: start; padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
  }
  .il-row:last-child { border-bottom: none; }

  /* ── PLAYERS tab ── */
  .players-layout {
    display: flex; flex-direction: column; gap: 32px;
  }
  .players-section-header {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  }
  .players-section-title {
    font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: 2px; color: var(--text);
  }
  .players-section-desc {
    font-size: 12px; color: var(--muted); font-style: italic;
  }
  .players-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
  }
  .player-rank-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .15s;
  }
  .player-rank-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.09); }
  .player-rank-num {
    font-family: 'Bebas Neue'; font-size: 26px; color: var(--border);
    width: 28px; text-align: center; flex-shrink: 0; line-height: 1;
  }
  .player-rank-num.top3 { color: var(--accent); }
  .player-rank-photo {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--border); flex-shrink: 0; background: var(--surface2);
  }
  .player-rank-info { flex: 1; min-width: 0; }
  .player-rank-name {
    font-weight: 700; font-size: 14px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .player-rank-team {
    font-family: 'Barlow Condensed'; font-size: 12px; color: var(--muted);
    font-weight: 600; letter-spacing: .5px; margin-top: 1px;
  }
  .player-rank-stat {
    text-align: right; flex-shrink: 0;
  }
  .player-rank-stat-val {
    font-family: 'Barlow Condensed'; font-weight: 800; font-size: 20px; line-height: 1;
    display: block;
  }
  .player-rank-stat-lbl {
    font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .5px;
    text-transform: uppercase; display: block; margin-top: 2px;
  }
  .players-divider {
    height: 1px; background: var(--border); margin: 4px 0 20px;
  }

  /* Season history dots */
  .season-dots-row {
    display: flex; gap: 3px; align-items: center; justify-content: flex-end;
    margin-top: 4px;
  }
  .season-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0; opacity: 0.85;
  }
  /* ── Last 5 seasons dots ── */
  .hist-dots { display: flex; gap: 3px; align-items: center; justify-content: flex-end; }
  .hist-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; cursor: default; }
  .hist-dot.ws  { background: #f59e0b; }
  .hist-dot.div { background: #16a34a; }
  .hist-dot.wc  { background: #1a56db; }
  .hist-dot.out { background: #d1d5db; }
  .hist-dot.bad { background: #dc2626; }

  .season-dot-label {
    font-size: 8px; font-weight: 700; color: var(--muted);
    letter-spacing: .5px; text-transform: uppercase; margin-right: 2px;
    white-space: nowrap;
  }
  @media (max-width: 768px) {
    .players-grid { grid-template-columns: 1fr; }
    .player-rank-card { padding: 10px 12px; }
  }

  /* ── MVP TRACKER ── */
  .mvp-page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
  }
  .mvp-page-title {
    font-family: 'Bebas Neue'; font-size: 32px; letter-spacing: 4px; color: var(--text);
    line-height: 1;
  }
  .mvp-page-subtitle {
    font-family: 'Barlow Condensed'; font-size: 13px; color: var(--muted);
    letter-spacing: 1px; margin-top: 4px;
  }
  .mvp-tabs-row {
    display: flex; gap: 8px; flex-wrap: wrap;
  }
  .mvp-tab-btn {
    font-family: 'Barlow Condensed'; font-weight: 700; font-size: 13px;
    letter-spacing: 1.5px; padding: 7px 16px; border: 1px solid var(--border);
    background: var(--surface); color: var(--muted); cursor: pointer;
    border-radius: 4px; transition: all .15s; white-space: nowrap;
  }
  .mvp-tab-btn.active {
    background: #1a56db; color: #fff; border-color: #1a56db;
  }
  .mvp-tab-btn:hover:not(.active) { color: var(--text); border-color: #aaa; }

  .mvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  @media (max-width: 900px) { .mvp-grid { grid-template-columns: 1fr; } }

  .mvp-tracker-card {
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.07); overflow: hidden; border-radius: 8px;
  }
  .mvp-card-header {
    background: #0f1923; padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .mvp-card-title {
    font-family: 'Bebas Neue'; font-size: 19px; letter-spacing: 2px; color: #fff;
  }
  .mvp-card-league {
    font-family: 'Barlow Condensed'; font-size: 11px; letter-spacing: 1.5px;
    color: rgba(255,255,255,.4); font-weight: 700;
  }
  .mvp-card-body { padding: 0; }

  .mvp-row-wrap {
    border-bottom: 1px solid var(--border);
  }
  .mvp-row-wrap:last-child { border-bottom: none; }
  .mvp-row {
    display: grid;
    grid-template-columns: 28px 36px 1fr 52px 24px;
    align-items: center; gap: 10px;
    padding: 10px 14px;
    transition: background .12s;
    cursor: pointer;
    list-style: none;
  }
  .mvp-row::-webkit-details-marker,
  .mvp-row::marker { display: none; content: ''; }
  .mvp-row:hover { background: var(--surface2); }
  .mvp-row-wrap[open] .mvp-row { background: #f8faff; }
  .mvp-row.rank1 { border-left: 3px solid #f59e0b; }
  .mvp-row.rank2 { border-left: 3px solid #94a3b8; }
  .mvp-row.rank3 { border-left: 3px solid #cd7c4c; }

  .mvp-rank {
    font-family: 'Bebas Neue'; font-size: 22px;
    color: var(--border); text-align: center; line-height: 1;
  }
  .mvp-rank.top { color: var(--accent); }

  .mvp-photo {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--border); flex-shrink: 0; background: var(--surface2);
  }

  .mvp-info { min-width: 0; }
  .mvp-name {
    font-weight: 700; font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 4px;
    flex-wrap: wrap; line-height: 1.3;
  }
  .mvp-name > .mvp-name-text {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 0 1 auto; min-width: 0;
  }
  .mvp-meta {
    display: flex; align-items: center; gap: 6px; margin-top: 1px;
    flex-wrap: wrap;
  }
  .mvp-team {
    font-family: 'Barlow Condensed'; font-size: 11px; color: var(--muted);
    font-weight: 700; letter-spacing: .5px;
  }
  .mvp-why {
    font-size: 10px; color: var(--muted); margin-top: 2px;
    line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* Colored stat chips inside mvp-why */
  .sw { color: var(--win);  font-weight: 700; }   /* green  — elite */
  .sb { color: #1a56db; font-weight: 700; } /* blue   — good  */
  .sg { color: var(--muted); }                    /* grey   — average */
  .sr { color: var(--loss); font-weight: 700; }   /* red    — poor  */
  /* Next game line */
  .mvp-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px; font-weight: 700; color: var(--accent-blue);
    margin-top: 4px; white-space: normal; line-height: 1.3;
  }
  .mvp-next.confirmed,
  .mvp-next.today { color: var(--text); }
  .mvp-next.unconfirmed { opacity: .45; font-weight: 400; }
  .mvp-next.linkable { cursor: pointer; }
  @media (max-width: 768px) {
    .mvp-next-sep { display: none; }
    .mvp-next-datetime { display: block; }
  }
  .mvp-next-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
  }
  /* IL badge */
  .mvp-il {
    font-size: 9px; font-weight: 700; color: var(--loss);
    margin-top: 2px;
  }
  .mvp-heat {
    font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
    letter-spacing: .3px; white-space: nowrap;
  }
  .mvp-heat.hot  { background: rgba(239,68,68,.12);  color: #dc2626; }
  .mvp-heat.warm { background: rgba(234,179,8,.12);  color: #b45309; }
  .mvp-heat.cold { background: rgba(107,114,128,.1); color: var(--muted); }

  .mvp-score-block { text-align: right; }
  .mvp-score-val {
    font-family: 'Barlow Condensed'; font-weight: 800; font-size: 20px;
    color: var(--win); line-height: 1;
  }
  .mvp-score-lbl {
    font-size: 8px; font-weight: 700; color: var(--muted);
    letter-spacing: .5px; text-transform: uppercase;
  }

  .mvp-pos-pill {
    display: inline-block; font-family: 'Barlow Condensed'; font-size: 10px; font-weight: 700;
    letter-spacing: .5px; padding: 1px 5px; margin-right: 4px;
    background: rgba(107,114,128,.12); color: var(--muted); border-radius: 3px;
  }
  .mvp-award-badge {
    display: inline-flex; align-items: center; font-size: 9px; font-weight: 800;
    padding: 1px 5px; border-radius: 3px; letter-spacing: .3px;
    background: rgba(245,158,11,.15); color: #b45309;
    border: 1px solid rgba(245,158,11,.3); white-space: nowrap;
  }
  .mvp-trend {
    font-size: 16px; text-align: center; line-height: 1;
  }
  .mvp-row-detail {
    padding: 0 14px 14px 88px;
    background: #f8faff;
  }
  .mvp-detail-block {
    border-top: 1px solid rgba(148,163,184,.22);
    padding-top: 12px;
  }
  .mvp-detail-title {
    font-family: 'Barlow Condensed';
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .mvp-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .mvp-snapshot-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 9px;
    min-width: 0;
  }
  .mvp-snapshot-label {
    display: block;
    font-family: 'Barlow Condensed';
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .mvp-snapshot-value {
    display: block;
    font-family: 'Barlow Condensed';
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
  }
  .mvp-tone-elite .mvp-snapshot-value { color: var(--win); }
  .mvp-tone-good .mvp-snapshot-value { color: var(--accent-blue); }
  .mvp-tone-avg .mvp-snapshot-value { color: var(--muted); }
  .mvp-tone-poor .mvp-snapshot-value { color: var(--loss); }
  .mvp-detail-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .mvp-detail-next-text {
    font-family: 'Barlow Condensed';
    font-size: 13px;
    color: var(--text);
    letter-spacing: .3px;
  }
  .mvp-detail-next-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(26,86,219,.22);
    background: rgba(26,86,219,.08);
    color: var(--accent-blue);
    font-family: 'Barlow Condensed';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
  }
  .mvp-detail-next-link:hover {
    background: rgba(26,86,219,.12);
    border-color: rgba(26,86,219,.34);
  }

  .mvp-formula-box {
    background: var(--surface2); border: 1px solid var(--border);
    padding: 14px 16px; margin-bottom: 24px; font-size: 12px;
  }
  .mvp-formula-title {
    font-family: 'Barlow Condensed'; font-weight: 700; font-size: 11px;
    letter-spacing: 2px; color: var(--muted); text-transform: uppercase;
    margin-bottom: 10px;
  }
  .mvp-formula-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .mvp-chip {
    font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 3px; letter-spacing: .5px;
    background: rgba(26,86,219,.08); color: var(--accent);
    border: 1px solid rgba(26,86,219,.2);
  }
  .mvp-chip.pitch { background: rgba(22,163,74,.08); color: var(--win); border-color: rgba(22,163,74,.2); }

  .mvp-last-update {
    font-family: 'Barlow Condensed'; font-size: 11px; color: var(--muted);
    letter-spacing: 1px; margin-top: 12px; text-align: right;
  }
  @media (max-width: 768px) {
    .mvp-row-detail { padding: 0 12px 12px; }
    .mvp-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  /* ── TOP GAMES ACCORDION ── */
  .tg-day-block { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .tg-day-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; cursor: pointer; user-select: none; background: #0f1923; border-bottom: 1px solid transparent; transition: background .12s; -webkit-tap-highlight-color: transparent; }
  .tg-day-header:hover,
  .tg-day-header:active { background: #1a56db; }
  .tg-day-header.open { background: #1a56db; border-bottom-color: rgba(255,255,255,.14); }
  .tg-day-header.open:hover { background: #1e4fc9; }
  .tg-day-title { font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: 2px; color: #ffffff; }
  .tg-day-count { font-family: 'Barlow Condensed'; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .5px; }
  .tg-day-header.open .tg-day-count { color: rgba(255,255,255,.82); }
  .tg-day-chevron { transition: transform .2s; color: rgba(255,255,255,.5); flex-shrink: 0; }
  .tg-day-header.open .tg-day-chevron { color: rgba(255,255,255,.82); }
  .tg-day-chevron.open { transform: rotate(180deg); }
  .tg-day-body { display: none; }
  .tg-day-body.open { display: block; }
  .tg-game-row { display: flex; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; gap: 0; }
  .tg-game-row:last-child { border-bottom: none; }
  .tg-game-row:hover { background: var(--surface2); }
  .tg-score-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-right: 12px; }
  .tg-teams { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
  .tg-team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
  .tg-abbr { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 16px; }
  .tg-score { font-family: 'Bebas Neue'; font-size: 18px; color: var(--text); margin: 0 2px; }
  .tg-sep { font-family: 'Barlow Condensed'; color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 3px; }
  .tg-time { font-family: 'Barlow Condensed'; font-size: 13px; font-weight: 700; color: var(--muted); margin-left: auto; flex-shrink: 0; padding-left: 10px; }
  .tg-badges { display: flex; gap: 5px; margin-left: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; max-width: min(360px, 44vw); }
  .tg-detail { display: none; background: #f7f9fd; border-top: 1px solid var(--border); padding: 14px 18px 16px; }
  .tg-detail.open { display: block; }
  .tg-detail .impact-detail-card { background: #ffffff; border-color: #dfe6f2; box-shadow: 0 1px 4px rgba(15,25,35,.04); }
  .tg-detail .impact-row { border-bottom-color: rgba(15,25,35,.08); }
  .tg-detail .impact-name, .tg-detail .impact-stats-line { color: inherit; }
  .tg-detail .impact-bar-bg { background: var(--border); }
  .tg-detail .impact-bar-label { color: var(--muted); }
  .tg-detail-grid { display: grid; grid-template-columns: 1fr 36px 1fr; gap: 10px; align-items: start; }
  /* Detail inner: 2 cols on desktop, 1 col on mobile */
  .tg-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
  .tg-detail-col { display: flex; flex-direction: column; gap: 8px; }
  @media (max-width: 768px) {
    .tg-day-title { font-size: 16px; }
    .tg-game-row { padding: 10px 14px; }
    .tg-badges { max-width: 34vw; }
    .tg-detail { padding: 12px 14px 14px; }
    .tg-detail-grid { display: flex; flex-direction: column; gap: 12px; }
    .tg-detail-at { display: none; }
    .tg-detail-inner { grid-template-columns: 1fr; }
  }
  /* ── TOP GAMES day selector ── */
  .tg-day-selector { display:flex; gap:8px; margin-bottom:16px; }
  .tg-day-btn { flex:1; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:10px 6px; cursor:pointer; text-align:center; transition:background .15s,border-color .15s; -webkit-tap-highlight-color:transparent; }
  .tg-day-btn:hover { background:var(--surface2); }
  .tg-day-btn.active { background:#0f1923; border-color:#1a56db; }
  .tg-day-btn-label { display:block; font-family:'Bebas Neue'; font-size:22px; letter-spacing:2px; color:var(--text); }
  .tg-day-btn.active .tg-day-btn-label { color:#fff; }
  .tg-day-btn-date { display:block; font-family:'Barlow Condensed'; font-size:10px; font-weight:700; color:var(--muted); letter-spacing:.5px; margin-top:1px; }
  .tg-day-btn.active .tg-day-btn-date { color:rgba(255,255,255,.6); }
