:root {
  --white: #FFFFFF;
  --silver: #C0C8D8;
  --sb-width: 280px;
  --rn-width: 195px;
  --team-bg1: #002580;
  --team-bg2: #000D3A;
  --team-bg3: #000510;
  --team-header1: #001E62;
  --team-header2: #003DA5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, var(--team-bg1) 0%, var(--team-bg2) 55%, var(--team-bg3) 100%);
  font-family: 'Inter', sans-serif;
  color: var(--white);
  transition: background 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.025) 28px, rgba(255,255,255,0.025) 29px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 220px;
  background: radial-gradient(ellipse, rgba(0,80,30,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header Bar ── */
.opening-day-bar {
  width: 100%;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.025) 28px, rgba(255,255,255,0.025) 29px),
    linear-gradient(90deg, var(--team-header1) 0%, var(--team-header2) 50%, var(--team-header1) 100%);
  transition: background 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: 'Inter', sans-serif;
  position: sticky;
  top: 0;
  z-index: 100;
}

.bar-logo { height: 44px; width: auto; filter: drop-shadow(0 0 6px rgba(0,61,165,0.7)); cursor: pointer; }
.bar-team-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.1em; color: #fff; line-height: 1; }
.bar-team-sub { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

/* Team name display */
.bar-team-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.bar-actions { position: absolute; right: 1.5rem; display: flex; align-items: center; gap: 0.4rem; }

/* Live scoreboard ticker */
.scoreboard-ticker {
  display: flex; overflow-x: auto; gap: 0; background: rgba(0,4,18,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  margin-left: var(--sb-width); margin-right: var(--rn-width);
  position: sticky; top: 56px; z-index: 95;
}
.scoreboard-ticker::-webkit-scrollbar { display: none; }
.scoreboard-ticker:empty { display: none; }
.st-game {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 0.4rem 0.75rem; gap: 0.15rem; min-width: 80px;
  border-right: 1px solid rgba(255,255,255,0.06); cursor: default;
  transition: background 0.15s;
}
.st-game:last-child { border-right: none; }
.st-game:hover { background: rgba(255,255,255,0.04); }
.st-my { background: rgba(0,61,165,0.12); }
.st-game-live { background: rgba(251,191,36,0.06); }
.st-team {
  display: flex; align-items: center; gap: 0.3rem; width: 100%;
  font-size: 0.62rem; color: rgba(255,255,255,0.5);
}
.st-winner { color: #fff; }
.st-winner .st-score { font-weight: 800; }
.st-logo { height: 14px; width: 14px; flex-shrink: 0; }
.st-abbr { font-weight: 600; font-size: 0.58rem; letter-spacing: 0.04em; width: 26px; }
.st-score { margin-left: auto; font-family: 'Bebas Neue', sans-serif; font-size: 0.82rem; min-width: 12px; text-align: right; }
.st-status { font-size: 0.46rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.st-live { color: #fbbf24; animation: sr-pulse 1.5s ease-in-out infinite; }
.st-final { color: rgba(255,255,255,0.2); }

/* Settings gear button & dropdown */
.bar-settings-btn { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.45); padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; position: relative; }
.bar-settings-btn:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.bar-settings-btn.open { color: #fff; background: rgba(255,255,255,0.08); }
.settings-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: rgba(0,7,32,0.97); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0.4rem 0; z-index: 200; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.settings-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.sd-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.7); cursor: pointer; transition: background 0.12s, color 0.12s; width: 100%; background: none; border: none; text-align: left; }
.sd-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sd-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.55; }

/* ── Fixed Left Sidebar ── */
.fixed-sidebar { position: fixed; top: 72px; left: 0; bottom: 0; width: var(--sb-width); z-index: 50; overflow-y: auto; scrollbar-width: none; padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 0.85rem; background: rgba(0,4,20,0.52); border-right: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.fixed-sidebar::-webkit-scrollbar { display: none; }

/* ── Right Navigation Panel ── */
.right-nav { position: fixed; top: 72px; right: 0; bottom: 0; width: var(--rn-width); z-index: 50; display: flex; flex-direction: column; background: rgba(0,4,20,0.52); border-left: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); padding: 1.2rem 0; overflow-y: auto; scrollbar-width: none; }
.right-nav::-webkit-scrollbar { display: none; }
.rn-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.2); text-transform: uppercase; padding: 0 1rem 0.6rem; }
.rn-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; border: none; background: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.4); text-align: left; width: 100%; border-left: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s; -webkit-tap-highlight-color: transparent; }
.rn-item:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.04); }
.rn-item.active { color: #fff; border-left-color: var(--team-header2, #003DA5); background: rgba(255,255,255,0.06); }
.rn-badge { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.1em; background: #e53; color: #fff; border-radius: 4px; padding: 1px 4px; }

/* ── Main Content ── */
.main-content { margin-left: var(--sb-width); margin-right: var(--rn-width); overflow-x: hidden; }
body.no-left-sidebar .fixed-sidebar { display: none; }
body.no-left-sidebar .main-content { margin-left: 0; }
body.no-left-sidebar .scoreboard-ticker { margin-left: 0; }
.view-section { display: none; }
.view-section.active { display: block; }

/* ── Dashboard Cards ── */
.dash-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.32); }
.stats-divider { opacity: 0.3; }
.dash-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.9rem 0.85rem; }
.dash-card-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.dash-card-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.dash-card-sub { font-size: 0.65rem; color: rgba(255,255,255,0.28); letter-spacing: 0.06em; }

/* ── Team Stats Grid ── */
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.85rem 0.4rem; border-right: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 0.03em; color: #fff; line-height: 1; }
.stat-lbl { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); white-space: nowrap; text-align: center; }
.stat-rank { font-size: 0.48rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.22); white-space: nowrap; }

/* ── Last Game Score ── */
.lg-score { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.9rem 0 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1rem; }
.lgs-side { display: flex; align-items: center; gap: 0.6rem; }
.lgs-abbr { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.38); }
.lgs-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.lgs-sep { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: rgba(255,255,255,0.15); }

/* ── Performers ── */
.performers-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 0.5rem; padding-top: 0.25rem; }
.performers { display: flex; flex-direction: column; gap: 0; }
.performer { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.performer:last-child { border-bottom: none; }
.p-name { font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-line { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.03em; color: rgba(255,255,255,0.42); }

/* ── Hero Section ── */
#view-home { height: calc(100dvh - 72px); overflow: hidden; }
.hero-section { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 2rem; gap: 1.1rem; }
.hero-logo { height: clamp(130px, 14vw, 200px); width: auto; filter: drop-shadow(0 0 40px rgba(0,61,165,0.8)) drop-shadow(0 0 16px rgba(0,100,255,0.4)); opacity: 0.95; }
.hero-wordmark { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1; }
.hero-city { font-family: 'Inter', sans-serif; font-size: clamp(1.1rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero-team-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4.5rem, 11vw, 8.5rem); letter-spacing: 0.08em; color: #fff; line-height: 0.92; text-shadow: 0 0 60px rgba(0,61,165,0.7), 0 0 120px rgba(0,61,165,0.3); }
.hero-champs { font-size: clamp(0.58rem, 1.1vw, 0.78rem); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(220,160,30,0.8); border: 1px solid rgba(220,160,30,0.25); border-radius: 4px; padding: 0.28rem 1rem; margin-top: 0.4rem; }
.hero-scroll { position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255,255,255,0.22); animation: scrollbob 2.2s ease-in-out infinite; white-space: nowrap; }
@keyframes scrollbob { 0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.22; } 50% { transform: translateX(-50%) translateY(8px); opacity: 0.45; } }

/* ── WS Championship Banners ── */
.ws-banners { display: flex; align-items: flex-start; gap: 5px; flex-wrap: wrap; justify-content: center; }
.ws-banner { width: 32px; height: 57px; background: linear-gradient(175deg, #1e44cc 0%, #1830a8 100%); clip-path: polygon(3% 0, 97% 0, 100% 4%, 100% 78%, 50% 100%, 0 78%, 0 4%); display: flex; align-items: flex-start; justify-content: center; padding-top: 9px; filter: drop-shadow(0 0 2px rgba(180,140,20,0.85)) drop-shadow(0 0 1px rgba(180,140,20,0.6)); transition: filter 0.2s, transform 0.2s; cursor: pointer; }
.ws-banner:hover { filter: drop-shadow(0 0 5px rgba(220,170,30,1)) drop-shadow(0 0 2px rgba(220,170,30,0.8)); transform: translateY(-3px); }
.ws-banner-year { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.1em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); user-select: none; }

/* ── Next Game Card ── */
.hero-next { display: flex; flex-direction: column; gap: 0.4rem; background: rgba(0,30,100,0.3); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 0.75rem 0.85rem; flex-shrink: 0; margin: auto 0.6rem 0.75rem; overflow: hidden; }
.hero-next-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.hero-next-venue { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-next-matchup { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.hero-next-logo { height: 24px; width: auto; flex-shrink: 0; }
.hero-next-sep { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.28); }
.hero-next-team { font-size: 0.78rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-next-time { font-size: 0.7rem; color: rgba(255,255,255,0.38); letter-spacing: 0.05em; }

@keyframes livepulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.bases-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.base { position: absolute; width: 11px; height: 11px; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); transform: rotate(45deg); }
.base.on { background: rgba(230,170,40,0.85); border-color: rgba(230,170,40,1); }
.base-2b { top: 2px; left: 50%; margin-left: -5.5px; }
.base-1b { right: 2px; top: 50%; margin-top: -5.5px; }
.base-3b { left: 2px; top: 50%; margin-top: -5.5px; }
.base-home { bottom: 2px; left: 50%; margin-left: -5.5px; background: rgba(255,255,255,0.04); }
.count-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.count-row { display: flex; align-items: center; gap: 0.28rem; }
.count-lbl { font-size: 0.48rem; font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); width: 10px; }
.count-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2); background: transparent; }
.count-dot.ball { background: rgba(100,200,100,0.85); border-color: rgba(100,200,100,1); }
.count-dot.strike { background: rgba(230,170,40,0.85); border-color: rgba(230,170,40,1); }
.count-dot.out { background: rgba(220,60,40,0.85); border-color: rgba(220,60,40,1); }

/* ── Game Breakdown Center ── */
.gbc-game-picker { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 0.5rem; }
.gbc-picker-label { display: block; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.4rem; }
.gbc-game-picker select { width: 100%; padding: 0.6rem 2rem 0.6rem 0.75rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-family: 'Inter',sans-serif; font-size: 0.75rem; font-weight: 500; cursor: pointer; outline: none; transition: border-color 0.15s; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.gbc-game-picker select:focus { border-color: rgba(255,255,255,0.25); }
.gbc-game-picker select option { background: #1a1a2e; color: #fff; }
.gbc-loading { padding: 3rem 1.5rem; text-align: center; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; color: rgba(255,255,255,0.2); }
.gbc { display: flex; flex-direction: column; gap: 1.25rem; }
.gbc-header { text-align: center; padding: 1.5rem 1rem 0.5rem; }
.gbc-header-tag { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 0.4rem; }
.gbc-header-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.1em; color: #fff; line-height: 1.1; }
.gbc-header-sub { font-size: 0.62rem; color: rgba(255,255,255,0.35); margin-top: 0.3rem; letter-spacing: 0.04em; }
.gbc-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1rem; }
.gbc-section-title { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.75rem; }
.gbc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* WPA Chart */
.gbc-wpa { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gbc-wpa-svg { display: block; width: 100%; height: auto; min-width: 500px; }

/* Turning Points */
.gbc-turns { display: flex; flex-direction: column; gap: 0.5rem; }
.gbc-tp-card { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.65rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.gbc-tp-card:last-child { border-bottom: none; }
.gbc-tp-rank { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: rgba(255,255,255,0.15); line-height: 1; min-width: 22px; text-align: center; }
.gbc-tp-body { flex: 1; min-width: 0; }
.gbc-tp-title { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.88); margin-bottom: 0.15rem; }
.gbc-tp-inn { font-size: 0.58rem; color: rgba(255,255,255,0.35); margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.gbc-tp-desc { font-size: 0.66rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.gbc-tp-delta { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.04em; flex-shrink: 0; min-width: 48px; text-align: right; }
.gbc-tp-delta.pos { color: rgba(100,200,100,0.85); }
.gbc-tp-delta.neg { color: rgba(240,80,80,0.85); }

/* Best At-Bats */
.gbc-abs { display: flex; flex-direction: column; gap: 0.5rem; }
.gbc-ab-card { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.gbc-ab-card:last-child { border-bottom: none; }
.gbc-ab-rank { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: rgba(255,255,255,0.12); line-height: 1; min-width: 18px; text-align: center; }
.gbc-ab-body { flex: 1; min-width: 0; }
.gbc-ab-top { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.1rem; }
.gbc-ab-name { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.gbc-ab-result { font-size: 0.6rem; font-weight: 600; color: rgba(255,255,255,0.45); }
.gbc-ab-meta { font-size: 0.55rem; color: rgba(255,255,255,0.3); margin-bottom: 0.2rem; }
.gbc-ab-wpa { font-weight: 700; }
.gbc-ab-wpa.pos { color: rgba(100,200,100,0.8); }
.gbc-ab-wpa.neg { color: rgba(240,80,80,0.8); }
.gbc-ab-note { font-size: 0.62rem; color: rgba(255,255,255,0.35); line-height: 1.45; }

/* Pitch Sequencing */
.gbc-pitches { display: flex; flex-direction: column; gap: 0.45rem; }
.gbc-pitch-label { font-size: 0.55rem; color: rgba(255,255,255,0.25); margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.gbc-pitch-bar { display: grid; grid-template-columns: 110px 1fr 36px 48px; align-items: center; gap: 0.5rem; padding: 0.22rem 0; }
.gbc-pitch-type { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbc-pitch-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.gbc-pitch-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.gbc-pitch-pct { font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.55); text-align: right; }
.gbc-pitch-velo { font-size: 0.58rem; color: rgba(255,255,255,0.3); text-align: right; white-space: nowrap; }

/* Bullpen Usage */
.gbc-bullpen { display: flex; flex-direction: column; gap: 1rem; }
.gbc-bp-team { font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.gbc-bp-table { width: 100%; border-collapse: collapse; }
.gbc-bp-table th { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 0.4rem 0.5rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gbc-bp-table th:first-child { text-align: left; }
.gbc-bp-table td { font-size: 0.72rem; color: rgba(255,255,255,0.6); padding: 0.45rem 0.5rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; letter-spacing: 0.04em; }
.gbc-bp-table td:first-child { text-align: left; font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.gbc-bp-name { display: flex; align-items: center; gap: 0.4rem; }
.gbc-bp-role { font-size: 0.48rem; font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); border-radius: 2px; padding: 0.08rem 0.25rem; margin-left: 0.3rem; }

/* Grade Badges */
.gbc-grade { display: inline-block; font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; letter-spacing: 0.06em; padding: 0.1rem 0.45rem; border-radius: 4px; line-height: 1.2; }
.gbc-grade.a { color: rgba(100,200,100,0.95); background: rgba(100,200,100,0.12); }
.gbc-grade.b { color: rgba(100,160,255,0.95); background: rgba(100,160,255,0.12); }
.gbc-grade.c { color: rgba(255,180,60,0.95); background: rgba(255,180,60,0.12); }
.gbc-grade.d { color: rgba(240,80,80,0.95); background: rgba(240,80,80,0.12); }

/* Manager Decisions */
.gbc-decs { display: flex; flex-direction: column; gap: 0.5rem; }
.gbc-dec-card { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.gbc-dec-card:last-child { border-bottom: none; }
.gbc-dec-badge { flex-shrink: 0; min-width: 36px; text-align: center; }
.gbc-dec-body { flex: 1; min-width: 0; }
.gbc-dec-title { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.82); margin-bottom: 0.2rem; }
.gbc-dec-impact { font-size: 0.64rem; color: rgba(255,255,255,0.38); line-height: 1.5; }

/* ── Hub View ── */
.hub-wrap { max-width: 600px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.hub-header { margin-bottom: 1.75rem; }
.hub-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.08em; color: #fff; line-height: 1; }
.hub-sub { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hub-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1.75rem 1rem 1.5rem; cursor: pointer; color: rgba(255,255,255,0.8); font-family: 'Inter', sans-serif; transition: background 0.15s, border-color 0.15s; -webkit-tap-highlight-color: transparent; text-align: center; }
.hub-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.hub-card:active { background: rgba(255,255,255,0.1); }
.hub-card svg { width: 32px; height: 32px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.hub-card-label { font-size: 0.88rem; font-weight: 600; color: #fff; }
.hub-card-desc { font-size: 0.62rem; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }
.hub-card-disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ── Prospects View ── */
.prospects-wrap { max-width: 700px; margin: 0 auto; padding: 2rem 1.25rem 6rem; }
.prospect-header-row {
  display: grid; grid-template-columns: 2.2rem 1fr 3rem 4rem 3rem;
  gap: 0.5rem; padding: 0.5rem 0.5rem 0.4rem; align-items: center;
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.prospect-hdr-rank { text-align: center; }
.prospect-hdr-ovr, .prospect-hdr-eta { text-align: center; }
.prospect-row {
  display: grid; grid-template-columns: 2.2rem 1fr 3rem 4rem 3rem;
  gap: 0.5rem; padding: 0.65rem 0.5rem; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s;
}
.prospect-row:hover { background: rgba(255,255,255,0.03); }
.prospect-rank { text-align: center; font-weight: 700; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.prospect-name { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prospect-pos { font-size: 0.62rem; color: rgba(255,255,255,0.45); text-align: center; font-weight: 500; }
.prospect-ovr { font-size: 0.7rem; text-align: center; color: rgba(255,255,255,0.5); font-weight: 600; }
.prospect-eta { font-size: 0.68rem; text-align: center; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ── Breakdown View Wrap ── */
.breakdown-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 2.5rem 4rem; }

/* Line Score Table */
.gbc-linescore { margin-bottom: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gbc-ls-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.gbc-ls-table th { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 0.4rem 0.45rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gbc-ls-table td { font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); padding: 0.4rem 0.45rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); }
.gbc-ls-team { text-align: left !important; font-family: 'Inter', sans-serif !important; font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.1em !important; color: rgba(255,255,255,0.5) !important; }
.gbc-ls-rhe { font-weight: 700; color: rgba(255,255,255,0.8); }
.gbc-ls-total { border-left: 1px solid rgba(255,255,255,0.08); }

/* ── Sidebar Nav ── */
.sb-nav { background: rgba(5,7,20,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin-bottom: 0.5rem; flex-shrink: 0; }
.sb-nav-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem; border: none; border-bottom: 1px solid rgba(255,255,255,0.06); background: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.45); text-align: left; width: 100%; transition: background 0.15s, color 0.15s; -webkit-tap-highlight-color: transparent; }
.sb-nav-item:last-child { border-bottom: none; }
.sb-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.sb-nav-item.active { background: rgba(255,255,255,0.10); color: #fff; font-weight: 600; }
.sb-nav-lbl { flex: 1; }
.sb-nav-badge { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.12em; color: #ff4444; background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.35); border-radius: 3px; padding: 1px 4px; animation: livepulse 1.4s ease-in-out infinite; flex-shrink: 0; }

/* ── Depth Chart ── */
.dc-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.dc-page-header { margin-bottom: 1.75rem; }
.dc-page-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.08em; color: #fff; line-height: 1; }
.dc-page-sub { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem; font-family: 'Inter', sans-serif; }
.dc-section-label { font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.3); margin-bottom: 0.6rem; margin-top: 1.75rem; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.dc-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.dc-pos-header { background: rgba(0,30,98,0.6); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0.45rem 0.75rem; display: flex; align-items: baseline; gap: 0.5rem; }
.dc-pos-abbr { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.06em; color: #fff; }
.dc-pos-name { font-size: 0.62rem; color: rgba(255,255,255,0.35); font-family: 'Inter', sans-serif; }
.dc-players { display: flex; flex-direction: column; }
.dc-player { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); position: relative; }
.dc-player:last-child { border-bottom: none; }
.dc-player[onclick]:hover { background: rgba(255,255,255,0.06); }
.dc-player.dc-starter { background: rgba(255,255,255,0.03); }
.dc-player.dc-starter[onclick]:hover { background: rgba(255,255,255,0.08); }
.dc-photo-wrap { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.dc-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dc-photo-fallback { font-size: 1rem; color: rgba(255,255,255,0.2); }
.dc-player-info { flex: 1; min-width: 0; }
.dc-player-name { font-size: 0.75rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-player.dc-starter .dc-player-name { color: #fff; }
.dc-player:not(.dc-starter) .dc-player-name { color: rgba(255,255,255,0.55); font-weight: 400; }
.dc-depth-num { font-family: 'Bebas Neue', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.18); flex-shrink: 0; }
.dc-starter .dc-depth-num { color: rgba(255,255,255,0.35); }
.dc-loading { color: rgba(255,255,255,0.25); font-size: 0.8rem; padding: 3rem 0; text-align: center; }

/* ── News ── */
.news-page-wrap { max-width: 1000px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.news-page-header { margin-bottom: 1.5rem; }
.news-page-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 0.08em; line-height: 1; }
.news-page-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.news-page-featured { margin-bottom: 1.5rem; }
.news-featured-card { display: flex; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; transition: background 0.2s, border-color 0.2s; }
.news-featured-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.news-featured-img { width: 45%; min-height: 200px; object-fit: cover; display: block; flex-shrink: 0; background: rgba(0,30,80,0.5); }
.news-featured-body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.news-featured-tag { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(220,170,30,0.85); background: rgba(220,170,30,0.1); border: 1px solid rgba(220,170,30,0.2); border-radius: 999px; padding: 0.15rem 0.6rem; width: fit-content; }
.news-featured-headline { font-size: 1.3rem; font-weight: 700; line-height: 1.35; }
.news-featured-desc { font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured-meta { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.news-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.news-section-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; margin-bottom: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.news-page-section { margin-top: 1.5rem; }
.news-page-loading { text-align: center; padding: 3rem 0; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.18); }
.news-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; transition: background 0.2s, border-color 0.2s; cursor: pointer; }
.news-card:hover { background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.15); }
.news-card-img { width: 100%; height: 140px; object-fit: cover; display: block; background: rgba(0,30,80,0.5); }
.news-card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.news-card-headline { font-size: 0.88rem; font-weight: 600; line-height: 1.4; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-top: auto; }
.news-loading { grid-column: 1/-1; padding: 2.5rem 0; text-align: center; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.18); }
.news-panel-grid { display: flex; flex-direction: column; gap: 1rem; padding: 0 1rem 1rem; }
.news-panel-grid .news-card { border-radius: 12px; }
.news-panel-grid .news-card-img { height: 140px; }

/* ── Side Panel ── */
.panel-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 290; opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }
.panel-backdrop.open { opacity: 1; pointer-events: all; }
.side-panel { position: fixed; right: 0; top: 0; height: 100dvh; width: 340px; background: repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px), linear-gradient(160deg, #001850 0%, #000C30 60%, #000510 100%); border-left: 1px solid rgba(255,255,255,0.1); z-index: 300; transform: translateX(100%); transition: transform 0.28s ease; display: flex; flex-direction: column; }
.side-panel.open { transform: translateX(0); }
.sp-header { display: flex; align-items: center; gap: 0.6rem; padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1.25rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.sp-title { font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); flex: 1; }
.sp-close { background: none; border: none; color: rgba(255,255,255,0.35); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0.2rem; transition: color 0.15s; }
.sp-close:hover { color: #fff; }
.sp-tabs { display: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0 1.25rem; flex-shrink: 0; }
.sp-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 0.6rem 0.8rem; margin-bottom: -1px; font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.sp-tab:first-child { padding-left: 0; }
.sp-tab:hover { color: rgba(255,255,255,0.7); }
.sp-tab.active { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.sp-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem 2rem; }
.sp-panel { display: none; }
.sp-panel.active { display: block; }

/* ── Schedule ── */
.filter-trigger-btn { display: flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 7px; padding: 0.3rem 0.7rem; color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.15s, color 0.15s; }
.filter-trigger-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.filter-trigger-btn.has-filters { background: rgba(0,50,160,0.35); border-color: rgba(0,100,255,0.4); color: #fff; }
.filter-badge { background: #003DA5; color: #fff; font-size: 0.58rem; font-weight: 700; border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center; line-height: 1.4; }
.sched-filter-sheet { flex-shrink: 0; background: rgba(0,6,32,0.98); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.85rem 1.25rem 1rem; }
.sched-check-group-label { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 0.3rem; }
.sched-check-gap { margin-top: 0.65rem; }
.sched-check-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.42rem 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sched-check-row input[type="checkbox"] { display: none; }
.sched-check-box { width: 19px; height: 19px; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.sched-check-row input:checked ~ .sched-check-box { background: #003DA5; border-color: #003DA5; }
.sched-check-row input:checked ~ .sched-check-box::after { content: ''; display: block; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px, -1px); }
.sched-check-label { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.6); transition: color 0.12s; }
.sched-check-row input:checked ~ .sched-check-label { color: #fff; }
.filter-sheet-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.filter-clear-btn { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.5rem; color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s; }
.filter-clear-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.filter-done-btn { flex: 1; background: #003DA5; border: none; border-radius: 8px; padding: 0.5rem; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.filter-done-btn:hover { opacity: 0.85; }
.schedule-list { display: flex; flex-direction: column; }
.schedule-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background 0.12s; -webkit-tap-highlight-color: transparent; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover, .schedule-row:active { background: rgba(255,255,255,0.04); }
.sr-chevron { color: rgba(255,255,255,0.2); font-size: 0.85rem; flex-shrink: 0; margin-left: auto; }
.sr-date { display: flex; flex-direction: column; align-items: flex-start; min-width: 44px; flex-shrink: 0; }
.sr-day { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.sr-monthday { font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); line-height: 1.1; }
.sr-logo { height: 24px; width: auto; flex-shrink: 0; }
.sr-opponent { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
.sr-opp-info { display: flex; align-items: baseline; gap: 0.3rem; }
.sr-at-vs { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.sr-name { font-size: 0.78rem; font-weight: 600; color: #fff; }
.sr-time { font-size: 0.65rem; color: rgba(255,255,255,0.38); flex-shrink: 0; white-space: nowrap; }
.sr-record-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.25rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.sr-record-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.sr-record-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; color: #fff; letter-spacing: 0.05em; }
.sr-score { font-size: 0.68rem; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.sr-win { color: #34d399; }
.sr-loss { color: #f87171; }
.sr-live { color: #fbbf24; animation: sr-pulse 1.5s ease-in-out infinite; }
.sr-live-row { background: rgba(251,191,36,0.04); }
@keyframes sr-pulse { 0%,100% { opacity: 1 } 50% { opacity: .6 } }
.sr-type-header { padding: 0.65rem 1.25rem 0.35rem; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }

/* ── Game Detail ── */
.game-detail { display: flex; flex-direction: column; height: 100%; }
.gd-back { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.25rem; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.12s; text-align: left; width: 100%; flex-shrink: 0; }
.gd-back:hover { color: #fff; }
.gd-scroll { flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem 2rem; }
.gd-date-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; }
.gd-matchup { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; }
.gd-team { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }
.gd-team-logo { height: 52px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.gd-team-name { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.65); text-align: center; line-height: 1.2; }
.gd-vs { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: rgba(255,255,255,0.2); flex-shrink: 0; }
.gd-score-final { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding: 0.75rem 2rem; background: rgba(255,255,255,0.04); border-radius: 10px; }
.gd-score-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: rgba(255,255,255,0.45); }
.gd-score-num.gd-score-hi { color: #fff; }
.gd-score-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.gd-score-live .gd-score-label { color: #fbbf24; }
.gd-type-tag { display: inline-block; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); border-radius: 4px; padding: 0.25rem 0.6rem; margin-bottom: 1rem; }
.gd-info-grid { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 1rem 1.1rem; }
.gd-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; }
.gd-info-label { color: rgba(255,255,255,0.35); font-size: 0.68rem; }
.gd-info-val { color: #fff; font-weight: 500; }
.gd-tickets-btn { display: block; width: 100%; padding: 0.85rem; background: linear-gradient(135deg, #003DA5 0%, #0052cc 100%); border: none; border-radius: 10px; color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 0.1em; text-align: center; text-decoration: none; cursor: pointer; transition: opacity 0.15s; -webkit-tap-highlight-color: transparent; }
.gd-tickets-btn:hover { opacity: 0.85; }

/* ── Roster ── */
.roster-placeholder { padding: 3rem 0; text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.15); }
.roster-group { margin-top: 0.75rem; }
.roster-group:first-child { margin-top: 0.25rem; }
.roster-group-title { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 0.5rem 0 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.roster-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.38rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: opacity 0.15s; }
.roster-row:last-child { border-bottom: none; }
.roster-row:hover { opacity: 0.72; }
.roster-num { font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.35); min-width: 20px; text-align: right; flex-shrink: 0; }
.roster-name { font-size: 0.75rem; font-weight: 600; color: #fff; flex: 1; }
.roster-pos { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.28); flex-shrink: 0; }
.roster-chevron { color: rgba(255,255,255,0.2); font-size: 0.9rem; flex-shrink: 0; }

/* ── Player Overlay ── */
.player-overlay { position: fixed; inset: 0; z-index: 400; background: repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px), linear-gradient(160deg, #001850 0%, #000C30 60%, #000510 100%); transform: translateY(100%); transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; overflow: hidden; }
.player-overlay.open { transform: translateY(0); }
.po-topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.po-back { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; padding: 0; transition: color 0.15s; }
.po-back:hover { color: #fff; }
.po-team-label { font-family: 'Bebas Neue', sans-serif; font-size: 0.8rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.2); }
.po-scroll { flex: 1; overflow-y: auto; padding: 2.5rem 3rem 4rem; max-width: 860px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.po-hero { display: flex; align-items: center; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2.5rem; }
.po-headshot-wrap { width: 120px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: linear-gradient(160deg, rgba(0,40,120,0.35), rgba(0,10,40,0.4)); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: flex-end; justify-content: center; }
.po-headshot { width: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.po-identity { flex: 1; min-width: 0; }
.po-jersey-num { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.22); margin-bottom: 0.1rem; }
.po-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.02em; color: #fff; line-height: 1; margin-bottom: 0.45rem; }
.po-pos { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.32); }
.po-bio { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.07); }
.po-bio-item { display: flex; align-items: baseline; gap: 0.3rem; font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.62); white-space: nowrap; }
.po-bio-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.po-summary { display: flex; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 2.5rem; }
.po-summary-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1rem 0.5rem 0.85rem; border-right: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); }
.po-summary-stat:last-child { border-right: none; }
.po-summary-season { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 0.25rem; }
.po-summary-val { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; color: #fff; line-height: 1; }
.po-summary-lbl { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-top: 0.2rem; }
.po-bottom-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,0.07); }
.po-bottom-back { width: 60px; height: 60px; border-radius: 50%; background: var(--team-header2, #003DA5); border: 3px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.5); -webkit-tap-highlight-color: transparent; transition: opacity 0.15s; }
.po-bottom-back:active { opacity: 0.6; }
.po-bottom-back img { width: 36px; height: 36px; object-fit: contain; }
.pd-section { margin-bottom: 2rem; }
.pd-section-title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1rem; }
.pd-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pd-stat { display: flex; flex-direction: column; align-items: center; padding: 0.85rem 0.25rem; border-right: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); gap: 0.15rem; }
.pd-stat:nth-child(4n) { border-right: none; }
.pd-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.02em; color: #fff; line-height: 1; }
.pd-stat-lbl { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-top: 0.2rem; }
.pd-loading { padding: 3rem 0; text-align: center; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.18); }

/* ── WS Modal ── */
.ws-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 450; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.ws-backdrop.open { opacity: 1; pointer-events: all; }
.ws-modal { position: fixed; inset: 0; z-index: 460; display: flex; align-items: center; justify-content: center; padding: 2rem; pointer-events: none; opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.28s ease, transform 0.28s ease; }
.ws-modal.open { opacity: 1; transform: none; pointer-events: all; }
.ws-modal-card { background: linear-gradient(155deg, #001a5c 0%, #000b30 55%, #000510 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; max-width: 680px; width: 100%; max-height: 88dvh; overflow-y: auto; scrollbar-width: none; position: relative; }
.ws-modal-card::-webkit-scrollbar { display: none; }
.ws-modal-header { padding: 1.75rem 1.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ws-modal-year-num { font-family: 'Bebas Neue', sans-serif; font-size: 4.5rem; line-height: 1; color: rgba(230,170,40,0.92); letter-spacing: 0.04em; }
.ws-modal-subtitle { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 0.35rem; }
.ws-modal-close { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; flex-shrink: 0; margin-top: 0.25rem; }
.ws-modal-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
.ws-modal-body { display: flex; gap: 1.5rem; padding: 1.5rem 1.75rem 2rem; }
.ws-modal-img-wrap { width: 200px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: rgba(0,20,70,0.6); border: 1px solid rgba(255,255,255,0.07); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.ws-modal-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ws-modal-img-placeholder { font-size: 2.5rem; opacity: 0.15; }
.ws-modal-details { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.ws-modal-result { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.06em; color: #fff; line-height: 1.1; }
.ws-modal-meta { display: flex; flex-direction: column; gap: 0.55rem; }
.ws-modal-meta-row { display: flex; align-items: baseline; gap: 0.6rem; }
.ws-modal-meta-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); min-width: 55px; flex-shrink: 0; }
.ws-modal-meta-value { font-size: 0.82rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.ws-modal-desc { font-size: 0.86rem; line-height: 1.7; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; }

/* ── Contracts & Payroll ── */
.contracts-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.payroll-bar-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem 1.1rem 1.1rem; margin-bottom: 1.5rem; position: relative; }
.payroll-bar-label { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.6rem; }
.payroll-bar-track { background: rgba(255,255,255,0.07); border-radius: 4px; height: 14px; position: relative; overflow: visible; }
.payroll-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #003DA5 0%, #0052cc 100%); position: relative; transition: width 0.6s ease; }
.payroll-marker { position: absolute; top: -6px; bottom: -6px; width: 2px; background: rgba(230,170,40,0.9); border-radius: 1px; }
.payroll-marker-label { position: absolute; top: -18px; left: 4px; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; color: rgba(230,170,40,0.9); white-space: nowrap; }
.payroll-totals { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.payroll-total-item { display: flex; flex-direction: column; }
.payroll-total-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: #fff; line-height: 1; }
.payroll-total-lbl { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.salary-chart { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.5rem; }
.salary-chart-title { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.85rem; }
.salary-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.salary-row:last-child { border-bottom: none; }
.salary-name { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.8); width: 110px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salary-bar-wrap { flex: 1; background: rgba(255,255,255,0.06); border-radius: 3px; height: 8px; overflow: hidden; }
.salary-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #003DA5 0%, #0052cc 100%); }
.salary-val { font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.6); min-width: 48px; text-align: right; flex-shrink: 0; }
.salary-pos { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); width: 24px; flex-shrink: 0; }
.contract-timeline { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; }
.contract-timeline-title { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.75rem; }
.ct-year-labels { display: flex; margin-left: 110px; margin-bottom: 0.3rem; }
.ct-year-label { font-size: 0.52rem; font-weight: 700; color: rgba(255,255,255,0.22); flex: 1; text-align: center; }
.ct-row { display: flex; align-items: center; gap: 0; padding: 0.22rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ct-row:last-child { border-bottom: none; }
.ct-name { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.7); width: 110px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.5rem; }
.ct-bar-wrap { flex: 1; position: relative; height: 14px; }
.ct-bar { position: absolute; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(0,61,165,0.75), rgba(0,82,204,0.65)); border: 1px solid rgba(0,82,204,0.5); display: flex; align-items: center; padding: 0 4px; min-width: 4px; }
.ct-bar-aav { font-size: 0.48rem; font-weight: 700; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Settings Page ── */
.settings-wrap { max-width: 600px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.settings-header { margin-bottom: 2rem; }
.settings-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 0.08em; line-height: 1; }
.settings-section { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem; }
.settings-section-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.25rem; }
.settings-section-desc { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; line-height: 1.5; }
.settings-team-list { display: flex; flex-direction: column; gap: 0.4rem; }
.settings-team-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.02); border: 1.5px solid rgba(255,255,255,0.06); border-radius: 10px; cursor: pointer; transition: background 0.15s, border-color 0.15s; -webkit-tap-highlight-color: transparent; }
.settings-team-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.settings-team-row.active { border-color: var(--team-header2, #003DA5); background: rgba(0,61,165,0.08); }
.settings-team-row img { width: 34px; height: 34px; object-fit: contain; }
.settings-team-info { flex: 1; min-width: 0; }
.settings-team-name { font-size: 0.88rem; font-weight: 600; color: #fff; }
.settings-team-div { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.settings-team-check { font-size: 1.1rem; font-weight: 700; color: var(--team-header2, #003DA5); display: none; }
.settings-team-row.active .settings-team-check { display: block; }
.settings-save-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.settings-save-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--team-header2, #003DA5); border: none; border-radius: 8px; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s; -webkit-tap-highlight-color: transparent; }
.settings-save-btn:hover { opacity: 0.85; }
.settings-save-btn:active { opacity: 0.7; }
.settings-saved-msg { font-size: 0.75rem; font-weight: 600; color: rgba(80,210,120,0.9); opacity: 0; transition: opacity 0.3s; }
.settings-saved-msg.show { opacity: 1; }

/* ── Mobile Tab Bar ── */
.mob-tabs { display: none; }
.mob-home-cards { display: none; }
.mob-more-backdrop { display: none; }
.mob-more-sheet { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .gbc-grid2 { grid-template-columns: 1fr; }
  .gbc-pitch-bar { grid-template-columns: 90px 1fr 32px 42px; }
}

@media (max-width: 700px) {
  :root { --sb-width: 0px; --rn-width: 0px; }
  .fixed-sidebar { display: none; }
  .right-nav { display: none; }
  .main-content { margin-left: 0; margin-right: 0; }
  .sb-nav { display: none; }

  .opening-day-bar { padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 1rem 0.55rem; gap: 0.75rem; justify-content: flex-start; }
  .bar-logo { height: 36px; }
  .bar-team-name { font-size: 1.4rem; }
  .bar-team-sub { font-size: 0.52rem; }
  .bar-actions { right: 0.75rem; gap: 0.25rem; }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  #view-home { height: auto; overflow: visible; }
  .hero-section { min-height: auto; height: auto; padding: 2rem 1.25rem 1rem; gap: 0.7rem; }
  .hero-logo { height: clamp(75px, 26vw, 120px) !important; }
  .hero-city { font-size: clamp(0.75rem, 4.5vw, 1.2rem) !important; letter-spacing: 0.18em !important; }
  .hero-team-name { font-size: clamp(2.8rem, 18vw, 5rem) !important; }
  .hero-champs { font-size: 0.58rem !important; letter-spacing: 0.1em !important; padding: 0.28rem 0.8rem !important; margin-top: 0.4rem !important; }
  .hero-scroll { display: none; }
  .hero-wordmark { gap: 0; }
  .ws-banners { display: none !important; }

  .side-panel { width: 100%; top: 0; }
  .hub-wrap { padding: 1.25rem 1rem 3rem; }
  .hub-title { font-size: 1.8rem; }
  .breakdown-wrap { padding: 1rem 0.75rem 3rem; }
  .dc-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .dc-wrap { padding: 1rem 0.75rem 2rem; }
  .dc-page-title { font-size: 1.5rem; }
  .dc-section-label { margin-top: 1.25rem; }

  .news-page-wrap { padding: 1rem 0.75rem 3rem; }
  .news-page-title { font-size: 1.8rem; }
  .news-page-grid { grid-template-columns: 1fr; }
  .news-featured-card { flex-direction: column; }
  .news-featured-img { width: 100%; min-height: 160px; max-height: 200px; }
  .news-featured-body { padding: 1rem 1.1rem 1.15rem; }
  .news-featured-headline { font-size: 1.05rem; }
  .news-featured-desc { font-size: 0.75rem; -webkit-line-clamp: 2; }

  .settings-wrap { padding: 1rem 0.75rem 3rem; }
  .settings-title { font-size: 1.8rem; }

  .contracts-wrap { padding: 1rem 0.5rem 3rem; }
  .payroll-bar-wrap { padding: 0.75rem 0.75rem 0.85rem; }
  .payroll-bar-label { font-size: 0.5rem; }
  .payroll-total-val { font-size: 1.1rem; }
  .payroll-total-lbl { font-size: 0.46rem; letter-spacing: 0.12em; }
  .payroll-marker-label { font-size: 0.42rem; top: -16px; }
  .salary-chart { padding: 0.75rem; }
  .salary-name { width: 70px; font-size: 0.65rem; }
  .salary-val { font-size: 0.75rem; min-width: 38px; }
  .salary-pos { font-size: 0.46rem; width: 20px; }
  .salary-row { gap: 0.35rem; }
  .contract-timeline { padding: 0.75rem 0.5rem; }
  .ct-year-labels { margin-left: 70px; }
  .ct-year-label { font-size: 0.42rem; }
  .ct-name { width: 70px; font-size: 0.62rem; }
  .ct-bar-aav { font-size: 0.4rem; }

  /* Mobile Home Cards */
  .mob-home-cards { display: flex; flex-direction: column; gap: 0.75rem; padding: 0 1rem 1.5rem; }
  .mhc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .mhc-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1rem; }
  .mhc-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.6rem; }
  .mhc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .mhc-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: #fff; line-height: 1; }
  .mhc-stat-lbl { font-size: 0.58rem; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }
  .mhc-stat-rank { font-size: 0.5rem; color: rgba(220,170,30,0.7); }
  .mhc-next-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; }
  .mhc-next-matchup { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; }
  .mhc-next-matchup img { height: 22px; width: auto; }
  .mhc-next-sep { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.4); }
  .mhc-next-opp { font-size: 0.8rem; font-weight: 700; color: #fff; }
  .mhc-next-time { font-size: 0.65rem; color: rgba(255,255,255,0.4); }
  .mhc-next-tag { display: inline-block; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(220,170,30,0.85); background: rgba(220,170,30,0.1); border: 1px solid rgba(220,170,30,0.2); border-radius: 999px; padding: 0.15rem 0.5rem; margin-bottom: 0.4rem; }
  .mhc-hl-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; }
  .mhc-hl-text { font-size: 0.78rem; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,0.8); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .mhc-hl-text a { color: inherit; text-decoration: none; }
  .mhc-lg-score { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: #fff; margin-bottom: 0.4rem; }
  .mhc-performer { display: flex; justify-content: space-between; padding: 0.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .mhc-performer:last-child { border-bottom: none; }
  .mhc-p-name { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.75); }
  .mhc-p-line { font-size: 0.62rem; color: rgba(255,255,255,0.35); }

  /* Bottom tab bar */
  .mob-tabs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0, 7, 32, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 0.5px solid rgba(255,255,255,0.1);
    z-index: 350;
  }
  .mob-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 8px 2px 4px; color: rgba(255,255,255,0.32); position: relative; gap: 4px; -webkit-tap-highlight-color: transparent; transition: color 0.12s; }
  .mob-tab.active { color: #fff; }
  .mob-tab:active { opacity: 0.6; }
  .mob-tab svg { width: 22px; height: 22px; flex-shrink: 0; }
  .mob-tab-label { font-family: 'Inter', sans-serif; font-size: 0.57rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }
  .mob-tab-center { width: 64px; height: 64px; border-radius: 50%; background: var(--team-header2, #003DA5); border: 3px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); flex-shrink: 0; position: relative; z-index: 10; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.15s; padding: 0; }
  .mob-tab-center:active { opacity: 0.6; }
  .mob-tab-center img { width: 38px; height: 38px; object-fit: contain; }
  .mob-tab-center.active { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }

  /* More sheet */
  .mob-more-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 355; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .mob-more-backdrop.open { opacity: 1; pointer-events: all; }
  .mob-more-sheet { position: fixed; bottom: 0; left: 0; right: 0; max-height: 85vh; display: flex; flex-direction: column; background: rgba(0,7,32,0.98); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border-top: 1px solid rgba(255,255,255,0.1); border-radius: 22px 22px 0 0; z-index: 360; padding: 0; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  .mob-more-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
  .mob-more-sheet.open { transform: translateY(0); }
  .mob-more-sheet.dragging { transition: none !important; }
  .mob-more-handle { width: 40px; height: 5px; background: rgba(255,255,255,0.25); border-radius: 3px; margin: 0 auto 0; padding: 16px 0; background-clip: content-box; -webkit-user-select: none; user-select: none; touch-action: none; }
  .mob-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .mob-more-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.4rem 0.5rem 1.2rem; cursor: pointer; color: rgba(255,255,255,0.75); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; -webkit-tap-highlight-color: transparent; transition: background 0.15s, color 0.15s; }
  .mob-more-item:active { background: rgba(255,255,255,0.12); color: #fff; }
}

@media (max-width: 560px) {
  .ws-modal-body { flex-direction: column; }
  .ws-modal-img-wrap { width: 100%; aspect-ratio: 16/9; }
  .po-scroll { padding: 1.75rem 1.25rem 3rem; }
  .po-headshot-wrap { width: 90px; height: 108px; }
  .po-hero { gap: 1.25rem; margin-bottom: 1.75rem; padding-bottom: 1.5rem; }
  .po-name { font-size: 1.9rem; }
}

/* ── Stats AI ── */
.sai-wrap { display: flex; flex-direction: column; height: calc(100vh - 56px); max-width: 800px; margin: 0 auto; padding: 0; }
.sai-header { padding: 2rem 1.5rem 1rem; }
.sai-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.04em; color: #fff; }
.sai-sub { font-size: 0.7rem; color: rgba(255,255,255,0.35); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.15rem; }
.sai-key-bar { display: flex; gap: 0.5rem; padding: 0 1.5rem 0.75rem; align-items: center; }
.sai-key-bar.sai-key-saved { display: none; }
.sai-key-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.55rem 0.75rem; color: #fff; font-size: 0.72rem; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; }
.sai-key-input:focus { border-color: rgba(255,255,255,0.25); }
.sai-key-btn { background: var(--team-header2, #003DA5); color: #fff; border: none; border-radius: 8px; padding: 0.55rem 1rem; font-size: 0.7rem; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.sai-key-btn:hover { opacity: 0.85; }
.sai-key-needed { animation: saiShake 0.4s ease; }
@keyframes saiShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(5px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }

.sai-messages { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.sai-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 1rem; text-align: center; padding: 2rem 1rem; }
.sai-welcome-icon { color: rgba(255,255,255,0.15); }
.sai-welcome-title { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.sai-welcome-examples { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 400px; margin-top: 0.5rem; }
.sai-example { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.65rem 0.9rem; color: rgba(255,255,255,0.55); font-size: 0.72rem; font-family: 'Inter', sans-serif; cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.sai-example:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.15); }

.sai-msg { display: flex; }
.sai-msg-user { justify-content: flex-end; }
.sai-msg-ai { justify-content: flex-start; }
.sai-msg-bubble { max-width: 85%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.78rem; line-height: 1.55; font-family: 'Inter', sans-serif; word-wrap: break-word; }
.sai-msg-user .sai-msg-bubble { background: var(--team-header2, #003DA5); color: #fff; border-bottom-right-radius: 4px; }
.sai-msg-ai .sai-msg-bubble { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.88); border-bottom-left-radius: 4px; }
.sai-msg-ai .sai-msg-bubble strong { color: #fff; }
.sai-msg-ai .sai-h1 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0.5rem 0 0.3rem; }
.sai-msg-ai .sai-h2 { font-size: 0.88rem; font-weight: 700; color: #fff; margin: 0.5rem 0 0.2rem; }
.sai-msg-ai .sai-h3 { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9); margin: 0.4rem 0 0.2rem; }
.sai-msg-ai .sai-li { padding-left: 0.3rem; margin: 0.15rem 0; }
.sai-msg-ai .sai-code { background: rgba(0,0,0,0.35); border-radius: 6px; padding: 0.6rem 0.75rem; margin: 0.4rem 0; overflow-x: auto; font-size: 0.7rem; }
.sai-msg-ai .sai-inline-code { background: rgba(0,0,0,0.3); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.72rem; }

.sai-input-bar { display: flex; gap: 0.5rem; padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: rgba(0,5,20,0.8); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.06); }
.sai-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 0.6rem 0.75rem; color: #fff; font-size: 0.78rem; font-family: 'Inter', sans-serif; resize: none; max-height: 120px; outline: none; transition: border-color 0.2s; }
.sai-input:focus { border-color: rgba(255,255,255,0.25); }
.sai-send { width: 38px; height: 38px; border-radius: 10px; background: var(--team-header2, #003DA5); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: opacity 0.15s; }
.sai-send:hover { opacity: 0.85; }
.sai-send.sai-loading { opacity: 0.5; pointer-events: none; }

/* ── Advanced Stats Dashboard ── */
.adv-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 4rem; }
.adv-header { margin-bottom: 1.25rem; }
.adv-page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.adv-page-sub { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 0.3rem; }
.adv-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.5rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.adv-tabs::-webkit-scrollbar { display: none; }
.adv-tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 0.5rem 0.9rem; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.4); cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.adv-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
.adv-tab.active { color: #fff; background: var(--team-header2, rgba(255,255,255,0.1)); border-color: rgba(255,255,255,0.1); }

.adv-loading { padding: 3rem 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.adv-loading-overlay { position: absolute; top: 0; left: 0; right: 0; background: rgba(10,12,20,0.9); z-index: 5; padding: 1.5rem; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.adv-section-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }

/* Overview Grid */
.adv-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.adv-grid-4 { grid-template-columns: repeat(4, 1fr); }
.adv-stat-card { background: #111520; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.1rem 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.adv-stat-val { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.adv-stat-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.adv-rank { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.18rem 0.55rem; border-radius: 999px; margin-top: 0.15rem; }
.adv-rank-elite { color: #66bb6a; background: rgba(76,175,80,0.12); }
.adv-rank-good { color: #64b5f6; background: rgba(100,181,246,0.12); }
.adv-rank-mid { color: #ffd54f; background: rgba(255,213,79,0.1); }
.adv-rank-bad { color: #ef5350; background: rgba(239,83,80,0.12); }

/* ERA Compare Bar */
.adv-era-compare { display: flex; align-items: center; gap: 1.25rem; background: #111520; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.1rem 1.3rem; }
.adv-era-side { text-align: center; min-width: 65px; }
.adv-era-val { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; }
.adv-era-lbl { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.adv-era-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.adv-era-bar { height: 10px; border-radius: 5px; transition: width 0.6s ease; }
.adv-era-bar-scored { background: linear-gradient(90deg, rgba(76,175,80,0.75), rgba(76,175,80,0.35)); }
.adv-era-bar-allowed { background: linear-gradient(90deg, rgba(239,83,80,0.75), rgba(239,83,80,0.35)); }

/* Filter Bar */
.adv-filter-bar { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.adv-filter-pill { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 0.38rem 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.15s; }
.adv-filter-pill:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.adv-filter-pill.active { background: var(--team-header2, rgba(0,61,165,0.3)); border-color: rgba(255,255,255,0.15); color: #fff; }

/* Shared table base (Advanced Stats) */
.adv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: rgba(10,13,20,0.6); }
.adv-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.adv-table thead { position: sticky; top: 0; z-index: 2; }
.adv-table th { padding: 0.7rem 0.75rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.55); background: #0e1218; border-bottom: 2px solid rgba(255,255,255,0.1); cursor: pointer; white-space: nowrap; transition: color 0.12s; user-select: none; }
.adv-table th:hover { color: rgba(255,255,255,0.85); }
.adv-th-name { text-align: left; min-width: 140px; position: sticky; left: 0; z-index: 3; background: #0e1218; }
.adv-th-num { text-align: right; }
.adv-table td { padding: 0.6rem 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(255,255,255,0.05); }
.adv-td-name { font-weight: 600; color: #fff; white-space: nowrap; text-align: left; position: sticky; left: 0; background: #0a0d14; z-index: 1; font-size: 0.85rem; }
.adv-td-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; letter-spacing: 0.01em; }
.adv-table tbody tr:hover td { background: rgba(255,255,255,0.035); }
.adv-table tbody tr:hover .adv-td-name { background: #12161f; }
.adv-cell-elite { color: #4caf50 !important; font-weight: 700; }
.adv-cell-good { color: #81c784 !important; }
.adv-cell-bad { color: #f44336 !important; font-weight: 600; }

/* Charts */
.adv-chart-section { margin-bottom: 2rem; }
.adv-chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #111520; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 0.75rem; }
.adv-chart-svg { display: block; width: 100%; height: auto; min-width: 500px; }
.adv-chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.adv-legend-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.adv-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Radar Chart (Player Overlay) */
.po-radar-wrap { display: flex; justify-content: center; padding: 0.5rem 0; }
.po-radar-svg { width: 180px; height: 195px; }

/* Zone Chart (Player Overlay) */
.po-zone-wrap { display: flex; justify-content: center; padding: 0.5rem 0; }
.po-zone-wrap .va-zone-svg { max-width: 280px; }
.po-zone-meta { font-size: 0.68rem; color: rgba(255,255,255,0.25); text-align: center; margin-top: 0.35rem; }

/* Advanced Stats Responsive */
@media (max-width: 700px) {
  .adv-wrap { padding: 1rem 0.75rem 3rem; }
  .adv-overview-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid-4 { grid-template-columns: 1fr 1fr; }
  .adv-tabs { gap: 0.15rem; }
  .adv-tab { padding: 0.45rem 0.7rem; font-size: 0.7rem; }
  .adv-table { min-width: 600px; }
  .adv-era-compare { flex-direction: column; gap: 0.75rem; }
  .adv-era-bar-wrap { width: 100%; }
}

/* ══════════════════════════════════════════════
   Visual Analytics
   ══════════════════════════════════════════════ */
.va-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 4rem; }
.va-header { margin-bottom: 1.25rem; }
.va-page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.va-page-sub { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 0.3rem; }
.va-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.5rem; margin-bottom: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.va-tabs::-webkit-scrollbar { display: none; }
.va-tab { background: none; border: 1px solid transparent; color: rgba(255,255,255,0.45); font-size: 0.78rem; font-weight: 600; padding: 0.55rem 0.95rem; border-radius: 8px; cursor: pointer; transition: all 0.15s; white-space: nowrap; font-family: inherit; }
.va-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }
.va-tab.active { color: #fff; background: var(--team-header2, rgba(255,255,255,0.12)); border-color: rgba(255,255,255,0.12); }
.va-loading { text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.va-filter-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; }
.va-player-select { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 0.78rem; font-weight: 600; font-family: 'Inter', sans-serif; padding: 0.45rem 2rem 0.45rem 0.85rem; border-radius: 8px; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; outline: none; transition: border-color 0.15s; }
.va-player-select:focus { border-color: rgba(255,255,255,0.25); }
.va-player-select option { background: #0e1218; color: #fff; }
.va-chart-section { margin-bottom: 2rem; }
.va-chart-svg { display: block; width: 100%; height: auto; }
.va-spray-svg { max-width: 500px; margin: 0 auto; }
.va-zone-svg { max-width: 420px; margin: 0 auto; }
.va-chart-meta { font-size: 0.72rem; color: rgba(255,255,255,0.25); margin-top: 0.5rem; text-align: center; }
.va-chart-desc { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; line-height: 1.5; }
.va-wpa-game { margin-bottom: 1.5rem; }
.va-wpa-game-label { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }

/* Tooltips */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px); background: #1a1f2e; color: rgba(255,255,255,0.75); font-size: 0.65rem; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 0.4rem 0.65rem; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 20; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
[data-tooltip]:hover::after { opacity: 1; }

/* Visual Analytics Responsive */
@media (max-width: 700px) {
  .va-wrap { padding: 1rem 0.75rem 3rem; }
  .va-tabs { gap: 0.15rem; }
  .va-tab { padding: 0.45rem 0.65rem; font-size: 0.68rem; }
}

@media (max-width: 390px) {
  .opening-day-bar { padding: calc(0.4rem + env(safe-area-inset-top, 0px)) 0.75rem 0.4rem; gap: 0.5rem; }
  .bar-logo { height: 30px; }
  .bar-team-name { font-size: 1.2rem; }
  .p-name { white-space: normal; }
  .st-game { padding: 0.35rem 0.5rem; min-width: 68px; }
  .st-abbr { font-size: 0.52rem; width: 22px; }
  .st-score { font-size: 0.72rem; }
}
