/* ============================================
   HOMERUN VIP CLUB — MLB HR CHEAT SHEET
   Design: Cinematic Dark + Glassmorphism
   Typography: Space Grotesk + DM Sans + JetBrains Mono
   Palette: Deep black with cyan/electric blue accents
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
    /* Surfaces */
    --bg-deep: #020206;
    --bg-base: #06060c;
    --bg-elevated: #0c0c16;
    --bg-glass: rgba(12, 12, 26, 0.55);
    --bg-glass-hover: rgba(18, 18, 38, 0.65);
    --bg-glass-strong: rgba(12, 12, 26, 0.75);

    /* Brand Cyan */
    --cyan-50: #e0fcff;
    --cyan-100: #b8f5fe;
    --cyan-200: #7eedfc;
    --cyan-300: #3ae4fa;
    --cyan-400: #00d4f5;
    --cyan-500: #00bce6;
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.5);
    --cyan-glow-soft: rgba(0, 229, 255, 0.12);
    --cyan-glow-subtle: rgba(0, 229, 255, 0.06);

    /* Semantic */
    --green: #34d399;
    --green-dim: rgba(52, 211, 153, 0.15);
    --red: #f87171;
    --red-dim: rgba(248, 113, 113, 0.15);
    --amber: #fbbf24;
    --amber-dim: rgba(251, 191, 36, 0.15);
    --gold: #f5c842;
    --gold-glow: rgba(245, 200, 66, 0.35);

    /* Text */
    --text-primary: #ededef;
    --text-secondary: #8a8f98;
    --text-muted: #4a4f5a;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 229, 255, 0.2);

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Blur */
    --blur: 20px;
    --blur-heavy: 40px;

    /* Type */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ---- AMBIENT BACKGROUND ---- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.07;
    will-change: transform;
}
.blob-1 {
    width: 600px; height: 600px;
    background: var(--cyan);
    top: -10%; left: -5%;
    animation: blobDrift1 25s ease-in-out infinite alternate;
}
.blob-2 {
    width: 500px; height: 500px;
    background: #6366f1;
    bottom: -10%; right: -5%;
    animation: blobDrift2 30s ease-in-out infinite alternate;
}
.blob-3 {
    width: 350px; height: 350px;
    background: #00e5ff;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: blobDrift3 20s ease-in-out infinite alternate;
    opacity: 0.04;
}
@keyframes blobDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes blobDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes blobDrift3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-40%, -55%) scale(1.2); }
}

/* Everything above the bg */
#loading-overlay, header, #stats-ticker, #filter-bar, #summary-section, main, footer {
    position: relative;
    z-index: 1;
}

/* ---- LOADING OVERLAY ---- */
#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loader-logo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    animation: loaderPulse 2.4s ease-in-out infinite;
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 50px rgba(0, 229, 255, 0.35);
}
.loader-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
}
.loader-logo-video {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.loader-logo-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* iOS Safari draws a native play-button overlay when a video can't autoplay
   (Low Power Mode, data saver, etc.). Hide it everywhere, and fully drop the
   videos on mobile so the PNG poster takes over — lighter + no play button. */
.loader-logo-video::-webkit-media-controls-start-playback-button,
.loader-logo-video::-webkit-media-controls-overlay-play-button,
.loader-logo-video::-webkit-media-controls,
.brand-logo-video::-webkit-media-controls-start-playback-button,
.brand-logo-video::-webkit-media-controls-overlay-play-button,
.brand-logo-video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}
@media (max-width: 768px) {
    .loader-logo-video,
    .brand-logo-video {
        display: none;
    }
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}
.loader-content p {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.loader-bar {
    width: 160px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.loader-fill {
    width: 30%;
    height: 100%;
    background: var(--cyan);
    border-radius: 2px;
    animation: loadSlide 1s var(--ease) infinite;
}
@keyframes loadSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(450%); }
}

/* ---- HEADER ---- */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 64px;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
/* Brand logo: animated video overlays the PNG so any browser that can't play
   the MP4 still sees the static logo underneath. The video is positioned
   absolutely over the image with the same footprint. */
.brand-logo-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15), 0 0 12px rgba(0, 229, 255, 0.2);
    animation: brandLogoGlow 4s ease-in-out infinite;
}
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: rgba(0,0,0,0.3);
}
.brand-logo-video {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.brand-logo-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
}
@keyframes brandLogoGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15), 0 0 10px rgba(0, 229, 255, 0.15); }
    50%      { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 22px rgba(0, 229, 255, 0.35); }
}
.brand-text h1 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}
.brand-text h1 .glow {
    color: var(--cyan);
}
.tagline {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    display: block;
}

/* Nav links */
.header-nav {
    display: flex;
    gap: 4px;
}
.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    transition: all var(--duration) var(--ease);
    background: none;
    border: none;
    cursor: pointer;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.nav-link.active {
    color: var(--cyan);
    background: var(--cyan-glow-subtle);
    border: 1px solid rgba(0,229,255,0.15);
}

/* Mobile nav toggle — hidden on desktop, revealed via media query below */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.nav-toggle:hover { border-color: rgba(0,229,255,0.3); }
.nav-toggle-label {
    flex: 1;
    text-align: left;
    color: var(--cyan);
}
.nav-toggle-chevron {
    transition: transform var(--duration) var(--ease);
    color: var(--text-secondary);
    flex-shrink: 0;
}
#main-header.nav-open .nav-toggle-chevron { transform: rotate(180deg); }

/* View panels */
.view-panel {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px 60px;
}
.view-panel.active {
    display: block;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--green);
    background: var(--green-dim);
    padding: 4px 10px;
    border-radius: 100px;
}
.pulse {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(52,211,153,0); }
}
.date-display {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ---- TICKER ---- */
#stats-ticker {
    background: rgba(0, 229, 255, 0.02);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    animation: tickerScroll 80s linear infinite;
    padding: 0 20px;
}
.ticker-track span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ticker-track span strong {
    color: var(--cyan);
    font-weight: 500;
}
.ticker-headshot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-elevated);
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- FILTER BAR ---- */
#filter-bar {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    padding: 10px 28px;
}
.filter-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.filter-group label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.filter-group select {
    appearance: none;
    background-color: #0e0e1a;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a4f5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 7px 28px 7px 10px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all var(--duration) var(--ease);
    min-width: 130px;
}
.filter-group select option {
    background: #0e0e1a;
    color: var(--text-primary);
    padding: 8px;
}
.filter-group select:focus {
    border-color: var(--border-accent);
    background-color: #0e0e1a;
}
.refresh-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 229, 255, 0.08);
    color: var(--cyan);
    border: 1px solid var(--border-accent);
    padding: 7px 16px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-family: var(--font-body);
}
.refresh-btn:hover {
    background: rgba(0, 229, 255, 0.14);
    transform: translateY(-1px);
}
.refresh-btn svg {
    flex-shrink: 0;
}

/* ---- SUMMARY STRIP ---- */
#summary-section {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 28px;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.summary-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 18px;
    transition: all var(--duration) var(--ease);
}
.summary-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.summary-card.accent {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, var(--bg-glass) 100%);
}
.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.summary-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.summary-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 2px 6px;
    border-radius: 4px;
}
.summary-badge.hot {
    color: var(--cyan);
    background: var(--cyan-glow-subtle);
}
.summary-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.summary-card.accent .summary-value {
    color: var(--cyan);
}

/* ---- MAIN CONTENT ---- */

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 18px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}
.section-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* ---- SPOTLIGHT CARD ---- */
.spotlight-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.4;
}
.spotlight-card::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--cyan-glow-subtle) 0%, transparent 70%);
    pointer-events: none;
}
.spotlight-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.spotlight-player {
    display: flex;
    align-items: center;
    gap: 18px;
}
.spotlight-headshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
    object-fit: cover;
    background: var(--bg-elevated);
}
.spotlight-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}
.spotlight-team {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.spotlight-matchup {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}
.spotlight-matchup strong {
    color: var(--amber);
    font-weight: 500;
}
.spotlight-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.spotlight-stat {
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 10px 6px;
    border-radius: var(--r-sm);
}
.spotlight-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.spotlight-stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3px;
}
.spotlight-edge {
    text-align: center;
    padding: 0 8px;
}
.edge-score-big {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan);
    text-shadow: 0 0 40px var(--cyan-glow);
}
.edge-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 6px;
}
.spotlight-prob {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    margin-top: 10px;
}
.spotlight-prob span {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.spotlight-odds {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    margin-top: 2px;
}
/* Spotlight Advantages */
.spotlight-advantages {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.advantage-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.advantage-tag.positive {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.advantage-tag.negative {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}
.advantage-tag.neutral {
    background: var(--amber-dim);
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ---- PICKS GRID ---- */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 12px;
}

.pick-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--ease);
}
.pick-card:hover {
    border-color: var(--border-accent);
    background: rgba(12, 16, 30, 0.85);
    transform: scale(1.04);
    z-index: 10;
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.15),
        0 24px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(0, 229, 255, 0.1);
}
.pick-card:hover .pick-headshot {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow-soft);
    transform: scale(1.08);
}
.pick-card .pick-headshot {
    transition: all 0.35s var(--ease);
}
.pick-card:hover .pick-name {
    color: var(--cyan);
}
.pick-card .pick-name {
    transition: color 0.35s var(--ease);
}
.pick-card:hover .pick-edge-badge {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
}
.pick-card .pick-edge-badge {
    transition: all 0.35s var(--ease);
}
.pick-card.elite-edge {
    border-color: rgba(245, 200, 66, 0.25);
}
/* Top accent line — subtle color strip per tier (badge itself is rendered as
   a roi-bdg pill in the header via JS so it's in sync with the tracker). */
.pick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    opacity: 0.4;
}
.pick-card.elite-edge { border-color: rgba(0, 229, 255, 0.2); }
.pick-card.elite-edge::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.pick-card.strong-edge { border-color: rgba(251, 191, 36, 0.15); }
.pick-card.strong-edge::before { background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: 0.25; }

.pick-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.pick-headshot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.pick-info { flex: 1; min-width: 0; }
.pick-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}
.pick-team-line {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}
.pick-team-logo {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.pick-edge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.pick-tier-bdg {
    font-size: 9px;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    white-space: nowrap;
}
.spotlight-tier-bdg {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    margin-bottom: 6px;
    white-space: nowrap;
}
.pick-edge-badge {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-align: right;
    min-width: 44px;
    flex-shrink: 0;
    line-height: 1;
}
.edge-elite { color: var(--gold); }
.edge-strong { color: var(--green); }
.edge-moderate { color: var(--cyan); }
.edge-low { color: var(--text-muted); }

/* Probability & Odds Bar */
.pick-prob-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.prob-info {
    display: flex;
    flex-direction: column;
    min-width: 60px;
}
.prob-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.prob-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.prob-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    overflow: hidden;
}
.prob-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s var(--ease);
}
.prob-odds {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--amber);
    min-width: 55px;
    text-align: right;
    letter-spacing: 0.5px;
}
.prob-odds-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 55px;
}
.market-odds {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.5px;
}
.prob-book {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}
.prob-book-fd {
    color: var(--amber);
    font-weight: 800;
    text-shadow: 0 0 6px rgba(245, 200, 66, 0.3);
}
.prob-book-model {
    color: var(--text-muted);
    font-style: italic;
}
.spotlight-book {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
}
.spotlight-book-fd {
    color: var(--amber);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(245, 200, 66, 0.35);
}
.spotlight-book-model {
    color: var(--text-muted);
    font-style: italic;
}

/* Advanced Metrics Row */
.pick-advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.adv-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 4px;
}
.adv-gauge {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.adv-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.adv-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}
.adv-lbl {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* HR Due Tracker */
.hr-due-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.due-info {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}
.due-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.due-label strong {
    color: var(--text-secondary);
}
.due-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 1px;
}
.due-bar-wrap {
    flex: 1;
    position: relative;
}
.due-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    overflow: visible;
    position: relative;
}
.due-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s var(--ease);
    max-width: 100%;
}
.due-bar-marker {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 1px;
    transform: translateX(-1px);
}
.due-status {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* Pick stats row */
.pick-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.pick-stat {
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 7px 2px;
    border-radius: var(--r-sm);
}
.pick-stat-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.pick-stat-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}
.stat-hot { color: var(--green); }
.stat-warm { color: var(--cyan); }
.stat-cold { color: var(--red); }
.stat-neutral { color: var(--text-primary); }

/* Pick matchup bar */
.pick-matchup {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.matchup-vs {
    font-size: 12px;
    color: var(--text-secondary);
}
.matchup-vs strong {
    color: var(--text-primary);
    font-weight: 600;
}
.matchup-pitcher-stats {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 2px;
}
.matchup-game-info {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 10px;
    text-align: right;
    flex-shrink: 0;
}

/* Pitcher Hand Badge */
.hand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--bg-deep);
    background: var(--amber);
    width: 16px;
    height: 16px;
    border-radius: 3px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 3px;
    letter-spacing: 0;
}

.bat-hand {
    background: var(--cyan);
}

/* Lineup Badge */
.lineup-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
.lineup-badge.in {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.lineup-badge.out {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Platoon Split Bar */
.pick-split-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.split-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    flex-shrink: 0;
}
.split-stat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
}
.split-stat strong {
    color: var(--text-primary);
    font-weight: 700;
}
.split-stat.muted {
    color: var(--text-muted);
    margin-left: auto;
}

/* BvP Section */
.bvp-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 10px;
    overflow: hidden;
}
.bvp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 229, 255, 0.03);
}
.bvp-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.5px;
}
.bvp-games {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}
.bvp-stats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    padding: 6px 4px;
}
.bvp-stat {
    text-align: center;
    padding: 4px 2px;
}
.bvp-stat-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: var(--text-primary);
}
.bvp-stat-lbl {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}
.bvp-none {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
}
.bvp-team .bvp-header {
    background: rgba(251, 191, 36, 0.03);
}
.bvp-team .bvp-title {
    color: var(--amber);
}
.bvp-no-data {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 480px) {
    .bvp-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Pick advantages */
.pick-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.pick-adv {
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.pick-adv.pro {
    background: var(--green-dim);
    color: var(--green);
}
.pick-adv.con {
    background: var(--red-dim);
    color: var(--red);
}
.pick-adv.info {
    background: var(--cyan-glow-subtle);
    color: var(--cyan);
}

/* ---- GAMES GRID ---- */
.games-grid {
    width: 100%;
}
.game-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    transition: all var(--duration) var(--ease);
}
.game-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}
.game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.game-team {
    display: flex;
    align-items: center;
    gap: 10px;
}
.game-team-logo {
    width: 28px;
    height: 28px;
}
.game-team-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}
.game-team-record {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}
.game-vs {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.game-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.game-time {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--cyan);
    font-size: 11px;
}
.game-venue {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 10px;
}
.game-weather {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* ---- WEATHER SECTION ---- */
.wx-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.wx-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.wx-card:hover {
    border-color: var(--border-light);
}
.wx-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.wx-teams {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.wx-team-logo {
    width: 20px;
    height: 20px;
}
.wx-at {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}
.wx-time {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan);
    margin-left: auto;
}
.wx-venue {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    display: none;
}
.wx-card-body {
    display: grid;
    grid-template-columns: 48px 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 14px;
    gap: 8px;
}
.wx-condition {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wx-icon {
    width: 32px;
    height: 32px;
}
.wx-metric {
    text-align: center;
}
.wx-metric-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}
.wx-metric-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.wx-wind-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wx-wind-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wx-wind-text .wx-metric-value {
    font-size: 16px;
}
.wx-wind-text .wx-metric-label {
    text-align: center;
}
.wind-diamond {
    flex-shrink: 0;
    line-height: 0;
}
/* Weather environment badges */
.wx-env-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}
.wx-env-hot {
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.wx-env-warm {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}
.wx-env-neutral {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.wx-env-cold {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Card border accents for environment */
.wx-border-hot {
    border-color: rgba(52, 211, 153, 0.25) !important;
}
.wx-border-hot .wx-card-header {
    border-bottom-color: rgba(52, 211, 153, 0.1);
}
.wx-border-cold {
    border-color: rgba(248, 113, 113, 0.2) !important;
}
.wx-border-cold .wx-card-header {
    border-bottom-color: rgba(248, 113, 113, 0.08);
}

/* Footer row with venue + park factor */
.wx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}
.wx-venue-name {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.wx-pf {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.wx-empty {
    text-align: center;
    padding: 30px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   REDESIGNED WEATHER CARD (compass + metrics grid)
   ===================================================== */

/* Override the legacy 4-col body when the redesigned class is applied */
.wx-card-body.wx-body-redesign {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px 18px;
}

/* ---- Compass container ---- */
.wx-compass-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 110px;
}
.wx-compass-svg {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.wx-compass-card {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    fill: var(--text-muted);
    letter-spacing: 0.6px;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    user-select: none;
}
.wx-compass-ring {
    fill: rgba(255, 255, 255, 0.015);
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1;
}
.wx-compass-ticks line {
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1.2;
    stroke-linecap: round;
}
.wx-compass-of {
    fill: rgba(52, 211, 153, 0.035);
    stroke: rgba(52, 211, 153, 0.12);
    stroke-width: 0.6;
}
.wx-compass-diamond {
    fill: rgba(139, 115, 85, 0.14);
    stroke: rgba(180, 150, 110, 0.3);
    stroke-width: 0.6;
    stroke-linejoin: round;
}
.wx-compass-mound { fill: rgba(200, 180, 140, 0.7); }
.wx-compass-plate {
    fill: #fff;
    opacity: 0.85;
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 0.5;
}
.wx-compass-arrow-group {
    transform-origin: 60px 60px;
    transition: transform 600ms var(--ease, cubic-bezier(.4,0,.2,1));
}
/* Gust pulse — only when .wx-compass-gusting is on the wrap */
.wx-compass-wrap.wx-compass-gusting::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.5);
    animation: wx-gust-pulse 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes wx-gust-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.45); }
    50%      { box-shadow: 0 0 0 9px rgba(245, 200, 66, 0); }
}

/* Compass center label (below the SVG) */
.wx-compass-center-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: 2px;
    line-height: 1.15;
}
.wx-compass-speed {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.wx-compass-unit {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}
.wx-compass-dir {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 3px;
}
.wx-compass-dir-green {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}
.wx-compass-dir-red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}
.wx-compass-dir-amber {
    color: #f5c842;
    background: rgba(245, 200, 66, 0.12);
}
.wx-compass-gust {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #f5c842;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ---- Metrics grid (right side of card body) ---- */
.wx-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    align-content: start;
}
.wx-metric-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 6px;
    align-items: baseline;
    padding: 4px 0;
}
.wx-metric-row .wx-metric-lbl {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.wx-metric-row .wx-metric-val {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wx-metric-row .wx-metric-sub {
    grid-column: 2;
    grid-row: 2;
    font-family: var(--font-body);
    font-size: 10px;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}
.wx-metric-row .wx-metric-impact {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
    white-space: nowrap;
}
.wx-metric-impact.pos {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.wx-metric-impact.neg {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.wx-metric-impact.neutral {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
}

/* Condition row spans both columns (sky + icon) */
.wx-metric-row.wx-metric-condition {
    grid-column: 1 / span 2;
    grid-template-columns: 70px 1fr;
}
.wx-metric-row.wx-metric-condition .wx-metric-val {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wx-metric-row.wx-metric-condition .wx-metric-val .wx-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wx-grid { grid-template-columns: 1fr; }
    .wx-venue { display: block; }
}

@media (max-width: 720px) {
    .wx-card-body.wx-body-redesign {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-items: center;
        padding: 14px;
    }
    .wx-compass-wrap { width: 100%; max-width: 200px; }
    .wx-compass-svg { width: 92px; height: 92px; }
    .wx-compass-wrap.wx-compass-gusting::before { width: 92px; height: 92px; }
    .wx-metrics-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .wx-metric-row { grid-template-columns: 80px 1fr auto; }
    .wx-metric-row.wx-metric-condition { grid-column: 1; grid-template-columns: 80px 1fr; }
}
@media (min-width: 1200px) {
    .wx-venue { display: block; }
}

/* =====================================================
   WEATHER TAB v2 — GRID OF GAME CARDS
   ===================================================== */

.wx-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.wx-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
    overflow: hidden;
}
.wx-card-v2:hover {
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
}
.wx-card-v2.wx-card-v2-hot {
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 0 28px rgba(52, 211, 153, 0.08), inset 0 0 32px rgba(52, 211, 153, 0.03);
}
.wx-card-v2.wx-card-v2-cold {
    border-color: rgba(248, 113, 113, 0.25);
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.06);
}

/* Card header: matchup + time */
.wx-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.wx-card-v2-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.4px;
}
.wx-card-v2-logo { width: 22px; height: 22px; flex-shrink: 0; }
.wx-card-v2-teamcode {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}
.wx-card-v2-at {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin: 0 1px;
}
.wx-card-v2-time {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--cyan);
    white-space: nowrap;
}

/* 3-column stats row: WIND | FORECAST | HUMIDITY */
.wx-card-v2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wx-card-v2-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.wx-card-v2-stat-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: var(--text-muted);
}
.wx-card-v2-stat-val {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.wx-card-v2-stat-unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.wx-card-v2-stat-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 2px;
}
.wx-card-v2-stat-sub.wx-chip-humid { color: var(--cyan); background: rgba(0, 229, 255, 0.1); }
.wx-card-v2-stat-sub.wx-chip-crisp { color: var(--green); background: rgba(52, 211, 153, 0.1); }
.wx-card-v2-stat-sub.wx-chip-avg { color: var(--text-secondary); }
.wx-card-v2-stat-sub.wx-chip-neutral { color: var(--text-muted); }

/* HR rating strip: big % + env badge */
.wx-card-v2-rating {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.wx-card-v2-rating-pct {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}
.wx-card-v2-split {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.wx-split-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
}
.wx-split-tag em {
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.wx-split-tag b {
    font-weight: 700;
    font-size: 11px;
}

/* Stadium-field container inside each card */
.wx-card-v2-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
}
.wx-card-v2-field .wx-compass-wrap { width: 210px; }
.wx-card-v2-field .wx-compass-svg { width: 210px; height: 210px; }
.wx-card-v2-field .wx-compass-wrap.wx-compass-gusting::before { width: 210px; height: 210px; }
.wx-card-v2-field .wx-compass-speed { font-size: 20px; }
.wx-card-v2-field .wx-compass-unit { font-size: 11px; }
.wx-card-v2-field .wx-compass-dir { font-size: 12px; padding: 1px 8px; }
.wx-card-v2-field .wx-compass-gust { font-size: 10px; }

/* Card footer: venue + park factor */
.wx-card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
}
.wx-card-v2-venue {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wx-card-v2-pf {
    font-size: 10px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .wx-grid-v2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .wx-card-v2 { padding: 14px; }
    .wx-card-v2-rating-pct { font-size: 26px; }
}

@media (max-width: 480px) {
    .wx-card-v2 { padding: 12px; border-radius: var(--r-md); }
    .wx-card-v2-teams { font-size: 13px; }
    .wx-card-v2-logo { width: 20px; height: 20px; }
    .wx-card-v2-teamcode { font-size: 11px; }
    .wx-card-v2-stat-val { font-size: 15px; }
    .wx-card-v2-stat-unit { font-size: 10px; }
    .wx-card-v2-rating-pct { font-size: 23px; }
    .wx-card-v2-field .wx-compass-wrap { width: 190px; }
    .wx-card-v2-field .wx-compass-svg { width: 190px; height: 190px; }
    .wx-card-v2-field .wx-compass-wrap.wx-compass-gusting::before { width: 190px; height: 190px; }
    .wx-card-v2-venue { font-size: 10px; max-width: 180px; }
}

/* =====================================================
   STADIUM FIELD (replaces the old simple compass SVG)
   ===================================================== */

/* The wrap still uses .wx-compass-wrap for its pulse + sizing; SVG gets new styles */
.wx-stadium-svg {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.wx-stadium-card {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    fill: var(--text-muted);
    letter-spacing: 0.6px;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    user-select: none;
}

/* Fair territory (outfield + infield combined) — radial-gradient grass */
.wx-stadium-fair {
    stroke: none;
}

/* Warning track: tan stripe just inside the wall */
.wx-stadium-track {
    fill: none;
    stroke: rgba(180, 140, 100, 0.35);
    stroke-width: 6;
}

/* Outfield wall — brand-orange signature element */
.wx-stadium-wall {
    fill: none;
    stroke: #f97316;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* Foul lines: solid white chalk lines from home to foul poles */
.wx-stadium-foul {
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 0.9;
    stroke-linecap: round;
}

/* Infield skin: rounded pentagon of dirt (more realistic than a pure diamond) */
.wx-stadium-skin {
    fill: rgba(155, 112, 72, 0.62);
    stroke: rgba(200, 160, 120, 0.45);
    stroke-width: 0.5;
    stroke-linejoin: round;
}

/* Inner infield grass diamond (between base paths) */
.wx-stadium-infield-grass {
    fill: rgba(62, 130, 72, 0.55);
    stroke: rgba(90, 160, 100, 0.3);
    stroke-width: 0.4;
}

/* Base paths: thin darker-brown strips tracing the baselines */
.wx-stadium-basepath {
    fill: none;
    stroke: rgba(120, 85, 55, 0.85);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.wx-stadium-mound {
    fill: rgba(200, 160, 120, 0.72);
    stroke: rgba(220, 180, 140, 0.55);
    stroke-width: 0.5;
}

/* Pitching rubber (small white slab on the mound) */
.wx-stadium-rubber {
    fill: rgba(255, 255, 255, 0.85);
}

/* Home-team logo ghosted over the infield (between mound and 2B) */
.wx-stadium-logo {
    pointer-events: none;
}

.wx-stadium-base {
    fill: rgba(255, 255, 255, 0.8);
    stroke: rgba(0, 0, 0, 0.25);
    stroke-width: 0.3;
}

.wx-stadium-plate {
    fill: #fff;
    opacity: 0.92;
    stroke: rgba(0, 0, 0, 0.25);
    stroke-width: 0.4;
}

.wx-stadium-backstop {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 0.8;
    stroke-linecap: round;
}

/* ---- Wind arrows (scattered across the field) ---- */
.wx-stadium-arrow {
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}
.wx-stadium-arrow-shaft {
    stroke-width: 1.8;
    stroke-linecap: round;
}
.wx-stadium-arrow-head {
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Pulse cadence scales with wind intensity */
.wx-stadium-arrows.wx-arrow-pulse-light .wx-stadium-arrow {
    animation: wx-arrow-pulse 2.2s ease-in-out infinite;
}
.wx-stadium-arrows.wx-arrow-pulse-med .wx-stadium-arrow {
    animation: wx-arrow-pulse 1.3s ease-in-out infinite;
}
.wx-stadium-arrows.wx-arrow-pulse-heavy .wx-stadium-arrow {
    animation: wx-arrow-pulse 0.7s ease-in-out infinite;
}
@keyframes wx-arrow-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* ---- Wind particles ---- */
.wx-stadium-particle {
    transform-box: view-box;
    transform-origin: 0 0;
    opacity: 0;
    animation-name: wx-particle-flow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
@keyframes wx-particle-flow {
    0%   { transform: translateY(210px); opacity: 0; }
    12%  { opacity: 0.9; }
    85%  { opacity: 0.75; }
    100% { transform: translateY(-10px); opacity: 0; }
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .wx-stadium-flag-body,
    .wx-stadium-particle { animation: none !important; }
    .wx-compass-wrap.wx-compass-gusting::before { animation: none !important; }
}

/* ---- GAME SIMS ---- */
.sims-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.sims-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.sims-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.sims-iterations {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--cyan);
    background: var(--cyan-glow-subtle);
    border: 1px solid rgba(0,229,255,0.2);
    padding: 4px 10px;
    border-radius: 100px;
}

.sim-model-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.smi-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}
.smi-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

/* Sim table */
.sim-table {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 24px;
}
.sim-header, .sim-row {
    display: grid;
    grid-template-columns: 1.1fr 0.4fr 0.4fr 0.4fr 0.4fr 0.5fr 0.5fr 0.5fr 0.7fr 0.3fr 0.7fr 0.3fr 0.7fr 0.5fr 0.5fr 0.5fr 0.4fr 0.4fr 0.4fr 0.4fr 1.1fr;
    gap: 2px;
    align-items: center;
}
.sim-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
}
.sim-header > div {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
}
.sim-row {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}
.sim-row:last-child { border-bottom: none; }
.sim-row:hover { background: rgba(0,229,255,0.02); }

.sim-col-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}
.sim-team-home { justify-content: flex-end; }
.sim-team-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.sim-team-info { display: flex; flex-direction: column; }
.sim-team-info-right { align-items: flex-end; }
.sim-team-abbr {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.sim-team-record {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}
.sim-col-small {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 4px 2px;
    border-radius: 4px;
    color: var(--text-secondary);
}
.sim-stat { color: var(--text-secondary); }
.sim-col-runs {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--amber);
}
.sim-col-vs {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}
.sim-time {
    font-weight: 600;
    color: var(--cyan);
}
.sim-venue {
    margin-top: 1px;
    font-size: 8px;
}
.sim-lineup-status {
    margin-top: 3px;
}
.lu-pill {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
}
.lu-confirmed {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(52,211,153,0.25);
}
.lu-projected {
    background: var(--cyan-glow-subtle);
    color: var(--cyan);
    border: 1px solid rgba(0,229,255,0.2);
}
.lu-season {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.sim-col-win {
    text-align: center;
    padding: 6px 4px;
    border-radius: 4px;
}
.sim-win-cell {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

/* Probability color scale (brand palette) */
.sim-hot {
    background: rgba(52, 211, 153, 0.22);
    color: #6eebb5;
}
.sim-warm {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
}
.sim-neutral {
    background: rgba(251, 191, 36, 0.12);
    color: var(--amber);
}
.sim-cool {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}
.sim-cold {
    background: rgba(248, 113, 113, 0.1);
    color: #e89999;
}

/* Methodology block */
.sim-methodology {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-top: 20px;
}
.sim-methodology h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.sim-methodology p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.sim-methodology p strong { color: var(--text-primary); }
.sim-methodology ul {
    list-style: none;
    padding: 0;
}
.sim-methodology li {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    padding: 5px 0 5px 16px;
    position: relative;
    line-height: 1.5;
}
.sim-methodology li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
}
.sim-methodology li strong { color: var(--text-primary); font-weight: 700; }

@media (max-width: 1200px) {
    .sim-table { overflow-x: auto; }
    .sim-header, .sim-row { min-width: 1100px; }
}

/* ---- PROJECTIONS (COMPACT TABLE) ---- */
.proj-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.proj-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}
.proj-filter-inline {
    display: flex;
    gap: 8px;
}
.proj-filter-inline select {
    appearance: none;
    background-color: var(--bg-glass);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a4f5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 7px 28px 7px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
.proj-filter-inline select option { background: #0e0e1a; color: var(--text-primary); }

/* Prop Tabs */
.pt-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    padding: 6px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow-x: auto;
    scrollbar-width: none;
}
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tab {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 7px 14px;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.2px;
}
.pt-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.pt-tab-active {
    background: var(--cyan);
    color: var(--bg-deep);
    font-weight: 700;
}
.pt-tab-active:hover { background: var(--cyan); color: var(--bg-deep); }

/* Table */
.pt-table {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.pt-header-row, .pt-row {
    display: grid;
    /* LINES | ODDS | 2026 | 2025 | STREAK | H2H | MATCHUP | PROJ % | EDGE */
    grid-template-columns: 2.8fr 0.8fr 0.7fr 0.7fr 0.8fr 0.8fr 0.8fr 1.3fr 1.0fr;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
/* Sortable headers */
.pt-header-row .pt-sortable {
    cursor: pointer;
    user-select: none;
    transition: color 150ms ease;
    gap: 4px;
}
.pt-header-row .pt-sortable:hover { color: var(--cyan); }
.pt-header-row .pt-sort-active { color: var(--cyan); }
.pt-sort-ind {
    font-size: 9px;
    opacity: 0.45;
    margin-left: 3px;
    letter-spacing: 0;
}
.pt-sort-ind.active { opacity: 1; color: var(--cyan); }
.pt-header-row {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 5;
}
.pt-header-row .pt-cell {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.pt-row {
    border-bottom: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.pt-row:last-child { border-bottom: none; }
.pt-row:hover { background: rgba(0,229,255,0.02); }
.pt-cell {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* Player cell */
.pt-player {
    gap: 10px;
}
.pt-headshot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-light);
    flex-shrink: 0;
}
.pt-player-info { display: flex; flex-direction: column; min-width: 0; }
.pt-player-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pt-player-team {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pt-prop-line {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 1px;
    font-weight: 500;
}

/* Columns */
.pt-odds { font-weight: 700; color: var(--text-primary); }
.pt-rate { font-weight: 600; }
.pt-rate.muted { color: var(--text-muted); font-weight: 500; }
.pt-streak { justify-content: flex-start; }
.streak-val { font-weight: 700; color: var(--text-primary); }
.streak-val.muted { color: var(--text-muted); }
.streak-val.streak-hot { color: var(--amber); }
.pt-h2h {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.pt-h2h-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
}
.pt-matchup {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    justify-content: center;
}
.pt-score {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pt-score-val {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    min-width: 24px;
}
.pt-score-bar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.pt-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s var(--ease);
}
.pt-edge {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pt-edge-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    min-width: 32px;
}
.pt-edge-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}
.pt-edge-fill {
    height: 100%;
    border-radius: 2px;
}
.muted { color: var(--text-muted); }

@media (max-width: 1200px) {
    .pt-header-row, .pt-row {
        grid-template-columns: 2.5fr 1.4fr 0.7fr 0.6fr 0.6fr 0.7fr 1.1fr 0.9fr;
    }
    .pt-rate:nth-of-type(5), .pt-h2h { display: none; }
}
@media (max-width: 900px) {
    .pt-header-row, .pt-row {
        grid-template-columns: 2fr 1fr 0.8fr 0.8fr 0.8fr;
        gap: 8px;
    }
    .pt-odds, .pt-streak, .pt-matchup { display: none; }
}

/* =====================================================
   PROJECTIONS LEADERBOARD — brand-tailored card grid
   ===================================================== */

/* ---- Header ---- */
.proj-lb-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.proj-lb-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.proj-lb-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
}
.proj-lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 3px 9px;
    border-radius: 100px;
}
.proj-lb-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}
.proj-lb-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    flex-wrap: wrap;
}
.proj-lb-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f5c842;
    box-shadow: 0 0 6px rgba(245, 200, 66, 0.6);
}
.proj-lb-sub-lbl { color: var(--text-secondary); font-weight: 700; }
.proj-lb-sub-cat { color: var(--cyan); font-weight: 700; letter-spacing: 1px; }
.proj-lb-sub-count { color: var(--text-muted); font-weight: 600; }
.proj-lb-sep { color: var(--text-muted); opacity: 0.5; }

/* ---- Category tabs ---- */
.proj-cat-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 1px 12px 1px;
    margin-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
    -webkit-overflow-scrolling: touch;
}
.proj-cat-row::-webkit-scrollbar { height: 6px; }
.proj-cat-row::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.2); border-radius: 100px; }

.proj-cat-tab {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.2px;
}
.proj-cat-tab:hover {
    color: var(--text-primary);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}
.proj-cat-tab.active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2), 0 6px 18px rgba(0, 229, 255, 0.12);
}

/* ---- Controls: topN + search + watchlist ---- */
.proj-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.proj-topn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 3px 3px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
}
.proj-topn-lbl {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding-right: 4px;
}
.proj-topn-pill {
    background: transparent;
    border: none;
    padding: 6px 11px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.proj-topn-pill:hover { color: var(--text-primary); }
.proj-topn-pill.active {
    background: var(--cyan);
    color: var(--bg-deep);
}

.proj-search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 360px;
}
.proj-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.proj-search {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px 9px 32px;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--duration) var(--ease);
}
.proj-search::placeholder { color: var(--text-muted); }
.proj-search:focus {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
.proj-search:focus + .proj-search-icon { color: var(--cyan); }

.proj-wl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.proj-wl-btn:hover {
    color: var(--text-primary);
    border-color: rgba(245, 200, 66, 0.35);
}
.proj-wl-btn.active {
    background: rgba(245, 200, 66, 0.12);
    color: #f5c842;
    border-color: rgba(245, 200, 66, 0.45);
    box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.2);
}
.proj-wl-star { color: #f5c842; }
.proj-wl-count {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(245, 200, 66, 0.18);
    border-radius: 100px;
    margin-left: 2px;
}

/* ---- Tag filter row ---- */
.proj-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 2px 14px 2px;
    margin-bottom: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}
.proj-tag-row::-webkit-scrollbar { height: 6px; }
.proj-tag-row::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.2); border-radius: 100px; }

.proj-tag-lbl {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-right: 4px;
}

.proj-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}
.proj-tag-pill:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}
.proj-tag-count {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    color: var(--text-muted);
}

/* Tag themes (brand palette) */
.proj-tag-pill.tag-green      { border-color: rgba(52, 211, 153, 0.3); color: var(--green); }
.proj-tag-pill.tag-green .proj-tag-count { background: rgba(52, 211, 153, 0.18); color: var(--green); }
.proj-tag-pill.tag-cyan       { border-color: rgba(0, 229, 255, 0.3); color: var(--cyan); }
.proj-tag-pill.tag-cyan .proj-tag-count { background: rgba(0, 229, 255, 0.18); color: var(--cyan); }
.proj-tag-pill.tag-gold       { border-color: rgba(245, 200, 66, 0.3); color: #f5c842; }
.proj-tag-pill.tag-gold .proj-tag-count { background: rgba(245, 200, 66, 0.18); color: #f5c842; }
.proj-tag-pill.tag-amber      { border-color: rgba(251, 191, 36, 0.3); color: var(--amber); }
.proj-tag-pill.tag-amber .proj-tag-count { background: rgba(251, 191, 36, 0.18); color: var(--amber); }
.proj-tag-pill.tag-red        { border-color: rgba(248, 113, 113, 0.3); color: var(--red); }
.proj-tag-pill.tag-red .proj-tag-count { background: rgba(248, 113, 113, 0.18); color: var(--red); }

.proj-tag-pill.active {
    background: var(--bg-glass-strong);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px currentColor, 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---- Empty state ---- */
.proj-lb-empty {
    padding: 50px 30px;
    text-align: center;
    background: var(--bg-glass);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
}
.proj-lb-empty-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.proj-lb-empty-sub {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Leaderboard card ---- */
.proj-lb-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj-lb-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    transition: all var(--duration) var(--ease);
    overflow: hidden;
}
.proj-lb-card:hover {
    border-color: rgba(0, 229, 255, 0.28);
    transform: translateY(-1px);
}
.proj-lb-card.proj-lb-top3 {
    border-color: rgba(245, 200, 66, 0.25);
    box-shadow: 0 0 22px rgba(245, 200, 66, 0.06);
}
.proj-lb-card.proj-lb-top1 {
    border-color: rgba(245, 200, 66, 0.45);
    box-shadow: 0 0 30px rgba(245, 200, 66, 0.1), inset 0 0 40px rgba(245, 200, 66, 0.03);
}

/* Top row: rank + player + identity + metric */
.proj-lb-row-top {
    display: grid;
    grid-template-columns: 44px 60px 1fr auto;
    gap: 14px;
    align-items: center;
}

.proj-lb-rank {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}
.proj-lb-rank.rank-gold-1 {
    color: #f5c842;
    text-shadow: 0 0 12px rgba(245, 200, 66, 0.5);
}
.proj-lb-rank.rank-gold { color: #f5c842; }
.proj-lb-rank.rank-cyan { color: var(--cyan); }
.proj-lb-rank.rank-muted { color: var(--text-muted); }

.proj-lb-player {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.proj-lb-headshot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-elevated);
    object-fit: cover;
}
.proj-lb-teamlogo {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    background: var(--bg-deep);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.proj-lb-id {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.proj-lb-team-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.proj-lb-teamabbr { color: var(--text-secondary); }
.proj-lb-hand {
    padding: 1px 6px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
    border-radius: 3px;
    font-size: 9px;
    letter-spacing: 0.6px;
}
.proj-lb-grade {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.proj-lb-namerow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.proj-lb-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proj-lb-star {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
    line-height: 1;
}
.proj-lb-star:hover {
    color: #f5c842;
    background: rgba(245, 200, 66, 0.08);
}
.proj-lb-star.active {
    color: #f5c842;
    text-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
}

.proj-lb-matchup {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}
.proj-lb-matchup .proj-lb-sep { color: var(--text-muted); opacity: 0.5; }
.proj-lb-lineup {
    font-weight: 700;
    color: var(--cyan);
}
.proj-lb-pf { color: var(--text-secondary); }

.proj-lb-metric {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 90px;
}
.proj-lb-metric-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}
.proj-lb-metric-val {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.2px;
    font-variant-numeric: tabular-nums;
}
.proj-lb-edge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ---- WHY strip (the reasoning) ---- */
.proj-lb-why {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 229, 255, 0.01) 100%);
    border-left: 2px solid rgba(0, 229, 255, 0.45);
    border-radius: 6px;
}
.proj-lb-why-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--cyan);
    flex-shrink: 0;
    padding-top: 1px;
}
.proj-lb-why-text {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}
.proj-lb-why-sep {
    color: var(--text-muted);
    opacity: 0.55;
    margin: 0 2px;
}

/* ---- Tag chips on card ---- */
.proj-lb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.proj-lb-tag {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.02);
}
.proj-lb-tag.tag-green { color: var(--green); background: rgba(52, 211, 153, 0.08); }
.proj-lb-tag.tag-cyan  { color: var(--cyan);  background: rgba(0, 229, 255, 0.08); }
.proj-lb-tag.tag-gold  { color: #f5c842;      background: rgba(245, 200, 66, 0.08); }
.proj-lb-tag.tag-amber { color: var(--amber); background: rgba(251, 191, 36, 0.08); }
.proj-lb-tag.tag-red   { color: var(--red);   background: rgba(248, 113, 113, 0.08); }

/* ---- H2H strips (batter vs pitcher, batter vs team) ---- */
.proj-lb-h2h {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}
/* Pitcher strip: gold accent (direct matchup) */
.proj-lb-h2h.proj-lb-h2h-pitcher {
    background: linear-gradient(90deg, rgba(245, 200, 66, 0.06) 0%, rgba(245, 200, 66, 0.01) 100%);
    border-left-color: rgba(245, 200, 66, 0.45);
}
.proj-lb-h2h.proj-lb-h2h-pitcher .proj-lb-h2h-lbl { color: #f5c842; }
/* Team strip: cyan accent (broader matchup context) */
.proj-lb-h2h.proj-lb-h2h-team {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 229, 255, 0.01) 100%);
    border-left-color: rgba(0, 229, 255, 0.45);
}
.proj-lb-h2h.proj-lb-h2h-team .proj-lb-h2h-lbl { color: var(--cyan); }
.proj-lb-h2h-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.proj-lb-h2h-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f5c842;
    flex-shrink: 0;
}
.proj-lb-h2h-subj {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.proj-lb-h2h-games {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}
.proj-lb-h2h-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.proj-lb-h2h-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
}
.proj-lb-h2h-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.proj-lb-h2h-val.h2h-hot  { color: var(--green); }
.proj-lb-h2h-val.h2h-warm { color: var(--amber); }
.proj-lb-h2h-val.h2h-cold { color: var(--red); }
.proj-lb-h2h-sub {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.proj-lb-h2h-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.015);
    border-left-color: rgba(255, 255, 255, 0.12);
}
.proj-lb-h2h-none {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
    margin-left: auto;
}

@media (max-width: 480px) {
    .proj-lb-h2h-stats { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .proj-lb-h2h-val { font-size: 12px; }
    .proj-lb-h2h-sub { font-size: 8px; }
    .proj-lb-h2h-subj { font-size: 11px; }
}

/* ---- 8-col stats grid ---- */
.proj-lb-grid-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.proj-grid-cell {
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    text-align: center;
    transition: all var(--duration) var(--ease);
}
.proj-grid-cell.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.08);
}
.proj-grid-lbl {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.proj-grid-cell.active .proj-grid-lbl { color: var(--cyan); }
.proj-grid-span {
    opacity: 0.55;
    font-weight: 600;
    margin-left: 2px;
}
.proj-grid-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .proj-lb-title { font-size: 22px; }
    .proj-lb-row-top {
        grid-template-columns: 36px 48px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .proj-lb-metric {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        text-align: left;
        min-width: 0;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }
    .proj-lb-rank { font-size: 26px; }
    .proj-lb-player, .proj-lb-headshot { width: 46px; height: 46px; }
    .proj-lb-teamlogo { width: 20px; height: 20px; }
    .proj-lb-metric-val { font-size: 28px; }
    .proj-lb-name { font-size: 15px; }
    .proj-lb-grid-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .proj-lb-card { padding: 12px; border-radius: var(--r-md); }
    .proj-lb-rank { font-size: 22px; }
    .proj-lb-player, .proj-lb-headshot { width: 40px; height: 40px; }
    .proj-lb-metric-val { font-size: 24px; }
    .proj-lb-name { font-size: 14px; }
    .proj-lb-matchup { font-size: 9.5px; }
    .proj-lb-why { padding: 8px 10px; font-size: 11px; gap: 8px; }
    .proj-lb-why-text { font-size: 11.5px; }
    .proj-lb-tag { font-size: 10px; padding: 2px 7px; }
    .proj-controls { gap: 8px; }
    .proj-search-wrap { min-width: 100%; order: 3; max-width: none; }
    .proj-wl-btn { order: 2; }
    .proj-lb-grid-row { grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .proj-grid-cell { padding: 5px 2px; }
    .proj-grid-val { font-size: 11.5px; }
}

.proj-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cyan);
    margin-left: auto;
    letter-spacing: 0.5px;
}
.proj-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.proj-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 18px;
    position: relative;
    transition: all 0.35s var(--ease);
    overflow: hidden;
}
.proj-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0,229,255,0.08);
}
.proj-card.proj-elite {
    border-color: rgba(52, 211, 153, 0.25);
    background: linear-gradient(135deg, rgba(52,211,153,0.04) 0%, var(--bg-glass) 100%);
}
.proj-card.proj-elite::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0.5;
}
.proj-card.proj-strong { border-color: rgba(0,229,255,0.2); }
.proj-card.proj-solid { border-color: rgba(251,191,36,0.15); }

.proj-rank {
    position: absolute;
    top: 12px;
    left: -1px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-deep);
    background: var(--text-muted);
    padding: 2px 8px 2px 6px;
    border-radius: 0 4px 4px 0;
}
.proj-elite .proj-rank { background: var(--green); }
.proj-strong .proj-rank { background: var(--cyan); }

.proj-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    margin-left: 24px;
}
.proj-headshot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.proj-info { flex: 1; min-width: 0; }
.proj-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.proj-team-line {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.proj-main-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.proj-score-ring {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.proj-score-num {
    position: absolute;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.proj-tier-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 100px;
}
.proj-tier-tag.proj-elite { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.proj-tier-tag.proj-strong { background: var(--cyan-glow-subtle); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.proj-tier-tag.proj-solid { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.proj-tier-tag.proj-lean { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }

/* Props Grid */
.proj-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.proj-prop {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all var(--duration) var(--ease);
}
.proj-prop.proj-prop-active {
    background: var(--cyan-glow-subtle);
    border-color: rgba(0,229,255,0.25);
}
.proj-prop-lbl {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.proj-prop-active .proj-prop-lbl { color: var(--cyan); }
.proj-prop-bar {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}
.proj-prop-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s var(--ease);
}
.proj-prop-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

/* Context strip */
.proj-context {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.proj-ctx {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}
.proj-ctx strong {
    color: var(--text-primary);
    font-weight: 700;
}
.proj-tag-good {
    background: var(--green-dim);
    color: var(--green) !important;
    border: 1px solid rgba(52,211,153,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .proj-props-grid { grid-template-columns: repeat(3, 1fr); }
    .proj-filter-bar { flex-direction: column; }
    .proj-filter-group select { width: 100%; }
}

/* ---- PITCHERS TO TARGET ---- */
.pitcher-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.pitcher-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pitcher-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 18px;
    position: relative;
    transition: all var(--duration) var(--ease);
}
.pitcher-card:hover {
    border-color: var(--border-light);
    transform: translateX(2px);
}
.pitcher-card.pitcher-smash {
    border-color: rgba(52, 211, 153, 0.25);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.04) 0%, var(--bg-glass) 100%);
}
.pitcher-card.pitcher-smash::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0.4;
}
.pitcher-rank {
    position: absolute;
    top: 12px;
    left: -1px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-deep);
    background: var(--text-muted);
    padding: 2px 8px 2px 6px;
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.5px;
}
.pitcher-smash .pitcher-rank {
    background: var(--green);
}
.pitcher-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 24px;
}
.pitcher-headshot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.pitcher-info { flex: 1; min-width: 0; }
.pitcher-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}
.pitcher-team-line {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}
.pitcher-vuln-score {
    text-align: center;
    flex-shrink: 0;
}
.vuln-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    display: block;
    line-height: 1;
}
.vuln-tag {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 100px;
    margin-top: 4px;
    display: inline-block;
}
.vuln-elite { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.vuln-high { background: var(--cyan-glow-subtle); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.vuln-mid { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.vuln-low { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }

/* Vulnerability Bar */
.vuln-bar-wrap {
    margin: 10px 0;
    margin-left: 24px;
}
.vuln-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
}
.vuln-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s var(--ease);
}

/* Pitcher Stats Grid */
.pitcher-stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    margin: 10px 0;
    margin-left: 24px;
    background: var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.p-stat {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-card);
}
.p-stat-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: var(--text-primary);
}
.p-stat-lbl {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Note: stat-hot/warm/cold already defined for batter stats — reused here
   where red = bad for pitcher (high ERA = hittable = good for us) */

/* Pitcher Platoon Weakness */
.pitcher-platoon {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    margin-left: 24px;
    position: relative;
}
.platoon-side {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    transition: all var(--duration) var(--ease);
}
.platoon-weak {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.04);
}
.platoon-strong {
    border-color: var(--border);
    opacity: 0.6;
}
.platoon-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    min-width: 42px;
    flex-shrink: 0;
}
.platoon-weak .platoon-label {
    color: var(--red);
}
.platoon-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}
.platoon-val.muted {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: auto;
}
.platoon-weak .platoon-val {
    color: var(--red);
}
.weak-side-tag {
    position: absolute;
    top: -8px;
    right: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-deep);
    background: var(--red);
    padding: 1px 7px;
    border-radius: 3px;
}

@media (max-width: 600px) {
    .pitcher-platoon { flex-direction: column; }
}

/* ===== Best Batter Matchups strip ===== */
.matchup-strip {
    margin: 14px 24px 4px;
    padding: 12px 14px;
    background: rgba(0,229,255,0.025);
    border: 1px solid rgba(0,229,255,0.12);
    border-radius: var(--r-sm);
}
.matchup-strip-empty {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
    text-align: center;
    padding: 14px;
}
.matchup-strip-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.matchup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.matchup-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: all var(--duration) var(--ease);
}
.matchup-main {
    display: grid;
    grid-template-columns: auto 38px 1fr;
    gap: 10px;
    align-items: center;
}
.matchup-card:hover {
    background: rgba(0,229,255,0.05);
    border-color: rgba(0,229,255,0.25);
    transform: translateY(-1px);
}
.matchup-card-open {
    background: rgba(0,229,255,0.04);
    border-color: rgba(0,229,255,0.3);
}
/* Featured HR pick highlight */
.matchup-featured {
    border-color: rgba(245,200,66,0.35);
    box-shadow: 0 0 0 1px rgba(245,200,66,0.15), 0 0 20px rgba(245,200,66,0.08);
}
.matchup-featured.matchup-featured-top-rated {
    border-color: rgba(0,229,255,0.4);
    box-shadow: 0 0 0 1px rgba(0,229,255,0.2), 0 0 22px rgba(0,229,255,0.12);
    background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(255,255,255,0.03) 60%);
}
.matchup-featured.matchup-featured-hot-pick {
    border-color: rgba(245,200,66,0.45);
    background: linear-gradient(135deg, rgba(245,200,66,0.06) 0%, rgba(255,255,255,0.03) 60%);
}
.matchup-featured-ribbon {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 10px;
    margin: -10px -12px 10px;
    border-top-left-radius: var(--r-sm);
    border-top-right-radius: var(--r-sm);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.matchup-featured-top-rated .matchup-featured-ribbon {
    background: rgba(0,229,255,0.12);
    color: var(--cyan);
}
.matchup-featured-hot-pick .matchup-featured-ribbon {
    background: rgba(245,200,66,0.12);
    color: var(--amber);
}

/* Expand/collapse button */
.matchup-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(0,229,255,0.05);
    border: 1px solid rgba(0,229,255,0.18);
    border-radius: 4px;
    color: var(--cyan);
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.matchup-expand-btn:hover {
    background: rgba(0,229,255,0.12);
    border-color: var(--cyan);
}
.mx-btn-caret { font-size: 10px; opacity: 0.8; transition: transform 200ms ease; }

/* Expanded detail panel */
.matchup-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,229,255,0.25);
    animation: mxSlideDown 200ms ease;
}
@keyframes mxSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mx-detail-body { display: flex; flex-direction: column; gap: 12px; }
.mx-section {
    padding: 10px 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    border-left: 2px solid rgba(0,229,255,0.2);
}
.mx-section-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mx-adv {
    color: var(--amber);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}
.mx-synergy-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}
.mx-synergy-text strong { color: var(--cyan); }
.mx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 720px) {
    .mx-grid { grid-template-columns: 1fr; }
}
.mx-col { display: flex; flex-direction: column; }
.mx-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 6px;
}
.mx-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 44px;
}
.mx-stat-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.mx-stat-val.muted { color: var(--text-muted); font-weight: 500; }
.mx-stat-lbl {
    font-family: var(--font-body);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 1px;
}
.mx-note {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 4px;
}
.mx-note strong { color: var(--text-primary); font-weight: 700; }
.mx-note.muted { color: var(--text-muted); font-style: italic; }
.mx-proj-list { display: flex; flex-direction: column; gap: 6px; }
.mx-proj-row {
    display: grid;
    grid-template-columns: 110px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.mx-proj-row.mx-proj-best .mx-proj-label { color: var(--amber); font-weight: 800; }
.mx-proj-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}
.mx-proj-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.mx-proj-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 400ms ease;
}
.mx-proj-pct {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}
.mx-score-breakdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.mx-score-chip {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    color: var(--text-secondary);
}
.mx-score-chip-pos { color: var(--green); background: rgba(52,211,153,0.12); }
.mx-score-chip strong { color: var(--text-primary); }
.mx-score-chip-pos strong { color: var(--green); }
.mx-score-plus { color: var(--text-muted); font-size: 10px; }
.mx-env-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}
.matchup-rank {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.matchup-headshot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-light);
}
.matchup-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.matchup-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.matchup-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matchup-hand {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    color: var(--text-secondary);
}
.matchup-prop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border: 1px solid;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 0.2px;
}
.matchup-prob {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    padding-left: 4px;
    border-left: 1px solid currentColor;
    opacity: 0.85;
}
.matchup-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.matchup-reason {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-secondary);
    padding: 2px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    letter-spacing: 0.2px;
}
.matchup-reason.muted { color: var(--text-muted); font-style: italic; }

@media (max-width: 720px) {
    .matchup-strip { margin: 12px 8px 4px; padding: 10px; }
    .matchup-cards { grid-template-columns: 1fr; }
    .matchup-card { padding: 8px 10px; }
    .matchup-headshot { width: 32px; height: 32px; }
    .matchup-name { font-size: 12px; }
}

/* Context Row */
.pitcher-context {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.pitcher-opp, .pitcher-env, .pitcher-prev {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ctx-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.ctx-val {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}
.pitcher-prev {
    margin-left: auto;
}

@media (max-width: 768px) {
    .pitcher-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .pitcher-context { flex-wrap: wrap; gap: 8px; }
}

/* ---- DATE NAVIGATION ---- */
.date-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px 8px;
    overflow: hidden;
}
.date-arrow {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
    font-family: var(--font-body);
    line-height: 1;
}
.date-arrow:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.date-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}
.date-tabs::-webkit-scrollbar { display: none; }
.date-tab {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 60px;
}
.date-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.date-tab.active {
    color: var(--cyan);
    background: var(--cyan-glow-subtle);
    border: 1px solid rgba(0,229,255,0.15);
    font-weight: 700;
}
.date-tab.today { color: var(--text-primary); }
.date-tab .dt-day {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.date-tab .dt-date {
    font-size: 12px;
    font-weight: 700;
}
.games-date-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ---- LIVE SCOREBOARD ---- */
.scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.sb-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0;
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.sb-card:hover { border-color: var(--border-light); }
.sb-card.sb-live { border-color: rgba(52, 211, 153, 0.3); }

/* Header bar */
.sb-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.sb-matchup-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.sb-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--green);
    background: var(--green-dim);
    padding: 2px 8px;
    border-radius: 100px;
}
.sb-live-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}
.sb-inning {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
}
.sb-final-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.sb-pre-time {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan);
}

/* Score area — away | center | home */
.sb-score-area {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}
.sb-team-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.sb-row-dim { opacity: 0.4; }
.sb-logo-lg { width: 36px; height: 36px; flex-shrink: 0; }
.sb-team-details { display: flex; flex-direction: column; }
.sb-team-right { text-align: right; }
.sb-team-abbr-lg {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.sb-record {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}
.sb-score-lg {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 36px;
    text-align: center;
}
.sb-score-win { color: var(--green); }

/* Center — diamond + count or VS */
.sb-center-live, .sb-center-pre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    flex-shrink: 0;
}
.sb-vs-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.sb-bases-lg { flex-shrink: 0; }
.sb-base {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    transition: fill 0.3s;
}
.sb-base.base-on { fill: var(--amber); stroke: var(--amber); }

/* B-S-O count */
.sb-bso { display: flex; flex-direction: column; gap: 1px; }
.bso-row { display: flex; align-items: center; gap: 2px; }
.bso-label {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    width: 10px;
}

/* Live pitcher/batter strip */
.sb-matchup-strip {
    display: flex;
    border-top: 1px solid var(--border);
}
.sb-player-chip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}
.sb-player-chip:first-child { border-right: 1px solid var(--border); }
.sb-player-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.sb-player-info { display: flex; flex-direction: column; min-width: 0; }
.sb-player-right { text-align: right; margin-left: auto; }
.sb-player-right + .sb-player-img { order: 1; }
.sb-player-chip:last-child { flex-direction: row-reverse; }
.sb-player-chip:last-child .sb-player-info { text-align: right; align-items: flex-end; }
.sb-player-role {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.sb-player-name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-player-line {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Linescore */
.sb-linescore {
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    overflow-x: auto;
}
.ls-header, .ls-row {
    display: flex;
    align-items: center;
}
.ls-team-col {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 50px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.ls-mini-logo { width: 12px; height: 12px; }
.ls-inn, .ls-val {
    font-family: var(--font-mono);
    font-size: 10px;
    text-align: center;
    min-width: 20px;
    padding: 3px 1px;
    flex-shrink: 0;
}
.ls-inn {
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.ls-val { color: var(--text-secondary); font-weight: 500; }
.ls-rhe { color: var(--cyan); font-weight: 700; margin-left: 6px; }
.ls-rhe-val { color: var(--text-primary); font-weight: 700; margin-left: 6px; }
.ls-dim { opacity: 0.4; }
.ls-header .ls-team-col { visibility: hidden; }

/* Last play */
.sb-lastplay {
    padding: 6px 14px 8px;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}
.lp-label {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-right: 4px;
}

/* Pre-game SP strip */
.sb-pitchers-strip {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    gap: 10px;
}
.sb-sp-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.sb-sp-block-right { align-items: flex-end; }
.sb-sp-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}
.sb-sp-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}
.sb-sp-right { justify-content: flex-end; }
.sb-sp-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}
.sb-sp-info { display: flex; flex-direction: column; min-width: 0; }
.sb-sp-role {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.sb-sp-right .sb-sp-role { justify-content: flex-end; }
.sb-sp-name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-sp-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 5px 4px;
}
.sp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sp-stat strong {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.sp-stat span {
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 1px;
}
.sp-stat-empty {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
}

@media (max-width: 1100px) {
    .sb-pitchers-strip { flex-direction: column; gap: 10px; }
    .sb-sp-divider { display: none; }
    .sb-sp-block-right { align-items: flex-start; }
}

@media (max-width: 900px) {
    .scoreboard-grid { grid-template-columns: 1fr; }
    .sb-team-abbr-lg { font-size: 16px; }
    .sb-score-lg { font-size: 26px; }
}

/* ---- LOADING / EMPTY STATES ---- */
.loading-placeholder, .spotlight-loading {
    text-align: center;
    padding: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.no-games {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.no-games h3 {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ---- FOOTER ---- */
footer {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--border);
    padding: 24px 28px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--r-sm);
    opacity: 0.6;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
}
.footer-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .spotlight-player { flex-direction: column; text-align: center; }
    .spotlight-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .header-nav { gap: 2px; }
}
@media (max-width: 768px) {
    #main-header { padding: 0 16px; }
    .header-inner { gap: 10px; }
    #filter-bar { padding: 10px 16px; }
    .filter-inner { flex-direction: column; align-items: stretch; }
    .filter-group select { width: 100%; }
    .refresh-btn { margin-left: 0; justify-content: center; }
    #summary-section { padding: 0 16px; }
    .view-panel { padding: 0 16px 40px; }
    .picks-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .pick-stats { grid-template-columns: repeat(3, 1fr); }
    .spotlight-card { padding: 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .brand-text h1 { font-size: 14px; }
    .summary-grid { grid-template-columns: 1fr; }
    .summary-value { font-size: 26px; }
    .pick-stats { grid-template-columns: repeat(3, 1fr); }
    .edge-score-big { font-size: 44px; }
}

/* ---- AI ANALYST PANEL ---- */
.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    color: var(--cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 8px 30px rgba(0,0,0,0.4);
    transition: all 0.3s var(--ease);
}
.ai-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.25), 0 12px 40px rgba(0,0,0,0.5);
    border-color: var(--cyan);
}
.ai-fab-label {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: -2px;
}
.ai-fab.hidden { display: none; }

/* Panel */
.ai-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 201;
    width: 420px;
    max-height: 600px;
    background: rgba(6, 6, 14, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1), 0 30px 80px rgba(0,0,0,0.6);
    animation: aiSlideUp 0.35s var(--ease);
}
.ai-panel.open { display: flex; }

@keyframes aiSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ai-panel-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.ai-panel-close:hover { color: var(--text-primary); }

/* Messages */
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
}
.ai-msg { display: flex; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bot { justify-content: flex-start; }

.ai-msg-content {
    max-width: 90%;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-body);
}
.ai-msg-user .ai-msg-content {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}
.ai-msg-bot .ai-msg-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.ai-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* AI Pick Card inline */
.ai-pick {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin: 8px 0;
}
.ai-pick-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ai-pick-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    object-fit: cover;
}
.ai-pick-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    flex: 1;
}
.ai-pick-edge {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
}
.ai-pick-details {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.ai-pick-details strong {
    color: var(--green);
}
.ai-pick-details .con {
    color: var(--red);
}

/* Typing indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}
.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input */
.ai-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.ai-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.ai-input:focus { border-color: var(--border-accent); }
.ai-input::placeholder { color: var(--text-muted); }
.ai-send {
    background: var(--cyan);
    border: none;
    border-radius: var(--r-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-deep);
    flex-shrink: 0;
    transition: all 0.2s;
}
.ai-send:hover { background: var(--cyan-100); transform: scale(1.05); }

@media (max-width: 480px) {
    .ai-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
    .ai-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* Expand button hidden on desktop */
.pick-expand-btn { display: none; }

/* =========================================================
   ROI TRACKER
   ========================================================= */
.roi-header {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.roi-title-block { flex: 1; min-width: 220px; }
.roi-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.roi-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.roi-bankroll-input, .roi-stake-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.roi-bankroll-input label, .roi-stake-input label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.roi-bankroll-input input, .roi-stake-input input {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: border-color var(--duration) var(--ease);
    width: 130px;
}
.roi-bankroll-input input:focus, .roi-stake-input input:focus { border-color: var(--border-accent); }

/* Summary grid */
.roi-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.roi-summary-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all var(--duration) var(--ease);
}
.roi-summary-card:hover { border-color: var(--border-light); }
.roi-sum-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.roi-sum-val {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
}
.roi-sum-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Data info banner under the summary cards */
.roi-data-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    flex-wrap: wrap;
}
.roi-df-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.roi-df-range {
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.roi-df-pill {
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.roi-df-storage {
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* Controls bar */
/* ===== Date Navigator ===== */
.roi-date-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.roi-date-nav-left,
.roi-date-nav-mid,
.roi-date-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.roi-date-nav-mid { margin-left: auto; }
.roi-date-nav-right { margin-left: auto; }
.roi-nav-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    min-width: 34px;
}
.roi-nav-btn:hover { background: rgba(0,229,255,0.08); border-color: var(--cyan); color: var(--cyan); }
.roi-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.roi-nav-btn-today {
    color: var(--cyan);
    border-color: rgba(0,229,255,0.25);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.roi-date-display {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 7px 14px;
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.roi-date-display:hover { background: rgba(0,229,255,0.12); border-color: var(--cyan); }
.roi-date-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.3px;
    pointer-events: none;
}
#roi-date-picker {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    color-scheme: dark;
}
.roi-mode-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: var(--r-sm);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all var(--duration) var(--ease);
    text-transform: uppercase;
}
.roi-mode-btn:hover { color: var(--text-primary); border-color: var(--border-light); }
.roi-mode-btn.active {
    background: var(--cyan-glow-subtle);
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0,229,255,0.2);
}
.roi-history-btn {
    color: var(--amber);
    border-color: rgba(245,200,66,0.25);
    font-weight: 700;
}
.roi-history-btn:hover { background: rgba(245,200,66,0.1); border-color: var(--amber); }
.roi-archive-btn {
    color: var(--cyan);
    border-color: rgba(0,229,255,0.25);
    font-weight: 700;
}
.roi-archive-btn:hover { background: rgba(0,229,255,0.1); border-color: var(--cyan); }

/* ===== Picks Archive Modal ===== */
.roi-archive-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    min-height: 420px;
}
.roi-archive-dates {
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 6px;
    background: rgba(0,0,0,0.15);
}
.roi-archive-date-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 3px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.roi-archive-date-btn:hover {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.25);
}
.roi-archive-date-btn.active {
    background: rgba(0,229,255,0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(0,229,255,0.15);
}
.roi-archive-date-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
.roi-archive-date-btn.active .roi-archive-date-count {
    color: var(--cyan);
    background: rgba(0,229,255,0.15);
}
.roi-archive-picks {
    overflow-y: auto;
    padding: 6px 10px;
}
.roi-archive-pick-row {
    display: grid;
    grid-template-columns: 24px 1fr 90px 80px 80px 90px;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
}
.roi-archive-pick-row:hover { background: rgba(0,229,255,0.04); }
.roi-archive-rank {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
}
.roi-archive-player {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}
.roi-archive-player-sub {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
}
.roi-archive-bdg {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    text-align: center;
}
.roi-archive-edge,
.roi-archive-odds,
.roi-archive-market {
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: right;
    color: var(--text-secondary);
}
.roi-archive-market .book {
    display: block;
    font-size: 8px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
}
.roi-archive-market .book-fd { color: var(--amber); }
.roi-archive-header-row {
    display: grid;
    grid-template-columns: 24px 1fr 90px 80px 80px 90px;
    gap: 10px;
    padding: 8px 10px;
    position: sticky;
    top: 0;
    background: var(--bg-primary, #0a0e1a);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.roi-archive-empty-picks {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 12px;
}
@media (max-width: 720px) {
    .roi-archive-layout { grid-template-columns: 1fr; }
    .roi-archive-dates {
        max-height: 120px;
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .roi-archive-date-btn { min-width: 140px; margin-bottom: 0; }
    .roi-archive-pick-row,
    .roi-archive-header-row { grid-template-columns: 20px 1fr 70px 80px; }
    .roi-archive-pick-row > :nth-child(n+5),
    .roi-archive-header-row > :nth-child(n+5) { display: none; }
}

/* ===== History Modal ===== */
.roi-history-body {
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.roi-history-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.roi-history-sub {
    font-size: 12px;
    color: var(--text-secondary);
}
.roi-history-totals {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.roi-history-totals strong { color: var(--text-primary); }
.roi-history-totals .pos { color: var(--green); }
.roi-history-totals .neg { color: var(--red); }
.roi-history-table-wrap {
    overflow-y: auto;
    flex: 1;
    padding: 0 8px 8px;
}
.roi-history-table {
    width: 100%;
    border-collapse: collapse;
}
.roi-history-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-primary, #0a0e1a);
    padding: 10px 12px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}
.roi-history-table thead th:hover { color: var(--cyan); }
.roi-history-table tbody tr {
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}
.roi-history-table tbody tr:hover {
    background: rgba(0,229,255,0.06);
}
.roi-history-table tbody tr.roi-history-today {
    background: rgba(245,200,66,0.04);
}
.roi-history-table tbody tr.roi-history-today:hover {
    background: rgba(245,200,66,0.1);
}
.roi-history-table tbody tr.roi-history-active {
    background: rgba(0,229,255,0.12);
    box-shadow: inset 3px 0 0 var(--cyan);
}
.roi-history-table td {
    padding: 11px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.roi-history-date-main {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.roi-history-date-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}
.roi-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 720px) {
    .roi-date-nav { padding: 8px; gap: 8px; }
    .roi-date-nav-left,
    .roi-date-nav-mid,
    .roi-date-nav-right { width: 100%; margin: 0; justify-content: center; }
    .roi-date-display { min-width: 140px; }
    .roi-mode-btn { font-size: 10px; padding: 6px 8px; }
    .roi-history-body { width: 100%; max-height: 100vh; border-radius: 0; }
    .roi-history-totals { font-size: 10px; gap: 8px; }
    .roi-history-table td,
    .roi-history-table th { padding: 8px 6px; font-size: 11px; }
}

.roi-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
/* ===== Ranking Filter Bar ===== */
.roi-rank-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.roi-rank-filter-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-right: 4px;
}
.roi-rank-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.roi-rank-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: rgba(255,255,255,0.05);
}
.roi-rank-icon { font-size: 13px; }
.roi-rank-count {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    color: var(--text-muted);
    min-width: 26px;
    text-align: center;
}
.roi-rank-btn.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0,229,255,0.08);
    box-shadow: 0 0 10px rgba(0,229,255,0.15);
}
.roi-rank-btn.active .roi-rank-count {
    background: rgba(0,229,255,0.18);
    color: var(--cyan);
}
/* Per-ranking active colors */
.roi-rank-btn.rank-top.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0,229,255,0.1);
    box-shadow: 0 0 14px rgba(0,229,255,0.22);
}
.roi-rank-btn.rank-hot.active {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(245,200,66,0.1);
    box-shadow: 0 0 14px rgba(245,200,66,0.22);
}
.roi-rank-btn.rank-hot.active .roi-rank-count {
    background: rgba(245,200,66,0.2);
    color: var(--amber);
}
.roi-rank-btn.rank-solid.active {
    border-color: #b8b8b8;
    color: #e8e8e8;
    background: rgba(184,184,184,0.1);
    box-shadow: 0 0 12px rgba(184,184,184,0.18);
}
.roi-rank-btn.rank-solid.active .roi-rank-count {
    background: rgba(184,184,184,0.2);
    color: #e8e8e8;
}
.roi-rank-btn.rank-sleeper.active {
    border-color: #a78bfa;
    color: #c4b5fd;
    background: rgba(167,139,250,0.1);
    box-shadow: 0 0 12px rgba(167,139,250,0.2);
}
.roi-rank-btn.rank-sleeper.active .roi-rank-count {
    background: rgba(167,139,250,0.2);
    color: #c4b5fd;
}
@media (max-width: 720px) {
    .roi-rank-filter { padding: 8px; gap: 6px; }
    .roi-rank-filter-label { width: 100%; margin-bottom: 4px; }
    .roi-rank-btn { padding: 6px 10px; font-size: 11px; }
}

.roi-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.3);
    color: var(--cyan);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    box-shadow: 0 0 12px rgba(0,229,255,0.12);
    cursor: help;
}
.roi-controls-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.roi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.roi-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--border-light); }
.roi-btn-primary {
    background: var(--cyan-glow-subtle);
    color: var(--cyan);
    border-color: rgba(0,229,255,0.25);
    font-weight: 700;
}
.roi-btn-primary:hover { background: rgba(0,229,255,0.15); }
.roi-btn-sm { font-size: 11px; padding: 7px 10px; }
.roi-btn-danger { color: var(--red); border-color: rgba(248,113,113,0.2); }
.roi-btn-danger:hover { background: rgba(248,113,113,0.1); }
.roi-controls-right select {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    padding: 7px 26px 7px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a4f5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.roi-controls-right select option { background: #0e0e1a; color: var(--text-primary); }

/* Table */
.roi-table-wrap {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow-x: auto;
}
.roi-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}
.roi-table thead {
    background: rgba(255,255,255,0.03);
}
.roi-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: relative;
}
.roi-table th[data-sort]:hover { color: var(--cyan); }
.roi-table th.roi-sort-asc::after { content: ' ▲'; color: var(--cyan); font-size: 8px; }
.roi-table th.roi-sort-desc::after { content: ' ▼'; color: var(--cyan); font-size: 8px; }
.roi-table td {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.roi-row { transition: background var(--duration) var(--ease); }
.roi-row:hover { background: rgba(0,229,255,0.02); }
.roi-row-win { background: rgba(52,211,153,0.02); }
.roi-row-loss { background: rgba(248,113,113,0.02); }

.roi-td-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
.roi-td-player { min-width: 140px; }
.roi-player-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}
.roi-player-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}
.roi-td-edge {
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
}
.roi-td-odds {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--amber);
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 60px;
}
.roi-book {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 500;
}
.roi-td-profit, .roi-td-roi {
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
}
.roi-stake-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    width: 72px;
    outline: none;
}
.roi-stake-input:focus { border-color: var(--border-accent); }
.roi-result-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 20px 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a4f5a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.roi-result-select option { background: #0e0e1a; color: var(--text-primary); }
.roi-del-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.roi-del-btn:hover { color: var(--red); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.05); }

/* Badge pills */
.roi-bdg {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 7px;
    border-radius: 3px;
    white-space: nowrap;
}
.roi-bdg-top-rated { background: var(--cyan); color: var(--bg-deep); }
.roi-bdg-hot-pick { background: var(--amber); color: var(--bg-deep); }
.roi-bdg-solid { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.roi-bdg-sleeper { background: rgba(147,51,234,0.5); color: #e9d5ff; }

.roi-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: var(--text-muted) !important;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Manual Bet Modal */
.roi-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.roi-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
}
.roi-modal-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(0,229,255,0.1);
    animation: roiModalIn 0.25s var(--ease);
}
@keyframes roiModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.roi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.roi-modal-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.roi-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.roi-modal-close:hover { color: var(--text-primary); }
.roi-modal-body { padding: 20px 24px; }
.roi-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.roi-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.roi-form-grid input, .roi-form-grid select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}
.roi-form-grid input:focus, .roi-form-grid select:focus { border-color: var(--border-accent); }
.roi-form-grid select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a4f5a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.roi-form-grid select option { background: #0e0e1a; color: var(--text-primary); }
.roi-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .roi-form-grid { grid-template-columns: 1fr; gap: 10px; }
    .roi-modal-card { max-height: 95vh; }
}

/* Live HR Notification Panel */
.hr-notif-panel {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 9999;
}
.hr-notif-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-accent);
    color: var(--cyan);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: all var(--duration) var(--ease);
}
.hr-notif-toggle:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,229,255,0.2); }
.hr-notif-icon { filter: hue-rotate(180deg); }
.hr-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: var(--red);
    color: white;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    animation: hrBadgePulse 2s infinite;
}
@keyframes hrBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(248,113,113,0); }
}
.hr-notif-drawer {
    position: absolute;
    top: 54px;
    right: 0;
    width: 340px;
    max-height: 480px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,229,255,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
}
.hr-notif-drawer.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hr-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0,229,255,0.05);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
}
.hr-notif-controls { display: flex; align-items: center; gap: 8px; }
.hr-notif-toggle-sound {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.hr-notif-toggle-sound input { display: none; }
.hr-notif-toggle-sound input:not(:checked) + span { opacity: 0.3; }
.hr-notif-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.hr-notif-close:hover { color: var(--text-primary); }
.hr-notif-list {
    overflow-y: auto;
    max-height: 420px;
}
.hr-notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    animation: hrItemIn 0.3s var(--ease);
}
@keyframes hrItemIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
.hr-notif-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hr-notif-player {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.hr-notif-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}
.hr-notif-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.hr-notif-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.hr-stat-chip {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.hr-stat-ev {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
    border-color: rgba(52, 211, 153, 0.2);
}
.hr-stat-dist {
    background: rgba(245, 200, 66, 0.1);
    color: var(--gold);
    border-color: rgba(245, 200, 66, 0.2);
}
.hr-stat-pitcher {
    background: rgba(0, 229, 255, 0.05);
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.15);
}
.hr-toast-stats {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--gold);
    margin-top: 3px;
    letter-spacing: 0.3px;
}
.hr-notif-empty {
    padding: 30px 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* HR Toast Stack — vertical column in bottom-right */
.hr-toast-stack {
    position: fixed;
    bottom: 24px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}
.hr-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(245,200,66,0.18), var(--bg-elevated));
    border: 1px solid var(--gold);
    border-radius: var(--r-md);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 30px rgba(245,200,66,0.25);
    color: var(--text-primary);
    min-width: 260px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(40px) scale(0.85);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
/* Pop in */
.hr-toast.hr-toast-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Ascend & fade out */
.hr-toast.hr-toast-rise {
    opacity: 0;
    transform: translateY(-120px) scale(0.92);
    transition:
        opacity 1.8s cubic-bezier(0.4, 0, 0.6, 1),
        transform 1.8s cubic-bezier(0.2, 0.8, 0.3, 1);
    filter: blur(1px);
}
.hr-toast-bolt {
    font-size: 28px;
    animation: hrBoltSpin 0.6s var(--ease);
}
@keyframes hrBoltSpin {
    0% { transform: scale(0) rotate(-180deg); }
    60% { transform: scale(1.3) rotate(20deg); }
    100% { transform: scale(1) rotate(0); }
}
.hr-toast-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}
.hr-toast-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 1px;
}

@media (max-width: 768px) {
    .hr-notif-panel { top: 120px; right: 12px; }
    .hr-notif-toggle { width: 40px; height: 40px; font-size: 18px; }
    .hr-notif-drawer { width: calc(100vw - 24px); max-width: 340px; top: 50px; right: 0; }
    .hr-toast-stack { right: 12px; left: 12px; bottom: 16px; max-width: none; width: auto; }
    .hr-toast { min-width: 0; }
}

/* Flash messages */
.roi-flash {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,229,255,0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s var(--ease);
    pointer-events: none;
}
.roi-flash.roi-flash-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.roi-flash-success { border-color: var(--green); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(52,211,153,0.2); }
.roi-flash-error { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(248,113,113,0.2); }

@media (max-width: 900px) {
    .roi-summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .roi-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .roi-summary-card { padding: 10px 12px; }
    .roi-sum-val { font-size: 18px; }
    .roi-sum-label { font-size: 9px; }
    .roi-sum-sub { font-size: 9px; }
    .roi-header { gap: 10px; }
    .roi-heading { font-size: 18px; }
    .roi-bankroll-input input, .roi-stake-input input { width: 110px; font-size: 13px; }
    .roi-controls { gap: 6px; }
    .roi-controls-right { margin-left: 0; width: 100%; }
    .roi-controls-right select { flex: 1; min-width: 0; }
    .roi-btn { font-size: 11px; padding: 7px 10px; }
    .roi-btn-sm { font-size: 10px; padding: 6px 8px; }
    .roi-table { font-size: 12px; min-width: 720px; }
    .roi-table th, .roi-table td { padding: 8px 8px; }
    .roi-player-name { font-size: 12px; }
    .roi-player-sub { font-size: 9px; }
    .roi-stake-input { width: 56px; font-size: 11px; }
    .roi-flash { top: 100px; font-size: 12px; padding: 8px 16px; }
}
@media (max-width: 480px) {
    .roi-summary-grid { grid-template-columns: 1fr 1fr; }
    .roi-sum-val { font-size: 16px; }
    .roi-header { flex-direction: column; align-items: stretch; }
    .roi-bankroll-input, .roi-stake-input { width: 100%; }
    .roi-bankroll-input input, .roi-stake-input input { width: 100%; }
}

/* ---- SELECTION ---- */
::selection { background: rgba(0, 229, 255, 0.25); color: white; }

/* =========================================================
   FULL MOBILE & TABLET OPTIMIZATION
   Applied on top of existing styles to unify responsive UX
   ========================================================= */

/* Base: tap-friendly, no zoom on input focus */
@media (max-width: 1024px) {
    input, select, textarea, button { font-size: 14px; }
    .nav-link, button.nav-link { min-height: 36px; }
}

/* ---- TABLET (<= 1024px) ---- */
@media (max-width: 1024px) {
    /* Header becomes scrollable horizontally */
    #main-header { padding: 0 16px; }
    .header-inner { gap: 12px; }
    .brand-logo-wrap { width: 36px; height: 36px; }
    .brand-logo { width: 36px; height: 36px; }
    .brand-text h1 { font-size: 15px; letter-spacing: 1.5px; }
    .tagline { font-size: 8px; letter-spacing: 2px; }
    .header-nav {
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }
    .header-nav::-webkit-scrollbar { display: none; }
    .nav-link { white-space: nowrap; font-size: 12px; padding: 6px 10px; }
    .date-display { display: none; }
    .live-badge { padding: 3px 8px; font-size: 9px; }

    /* KPI cards */
    .summary-grid { gap: 8px; }
    .summary-value { font-size: 26px; }

    /* Main content */
    .view-panel { padding: 0 16px 40px; }

    /* Pick cards already responsive */
    .picks-grid { gap: 10px; }

    /* Filter bar stacks nicely */
    #filter-bar { padding: 10px 16px; }
    .filter-inner { gap: 10px; }
    .filter-group select { min-width: 110px; }

    /* Projections table - horizontal scroll */
    .pt-table { overflow-x: auto; }
    .pt-header-row, .pt-row { min-width: 820px; }

    /* Weather grid */
    .wx-grid { grid-template-columns: 1fr; }

    /* Pitcher cards */
    .pitcher-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- MOBILE (<= 768px) ---- */
@media (max-width: 768px) {
    body { font-size: 14px; }

    /* Header: stacked, sticky, compact with scrollable nav */
    #main-header { height: auto; padding: 8px 12px; }
    .header-inner { flex-wrap: wrap; gap: 8px; }
    .brand { order: 1; }
    .header-meta { order: 2; margin-left: auto; }
    /* Nav toggle: full-width button, its own row */
    .nav-toggle {
        display: flex;
        order: 3;
    }
    /* Nav becomes a vertical dropdown panel — collapsed until #main-header.nav-open */
    .header-nav {
        order: 4;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: var(--r-sm);
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin-top: 0;
        pointer-events: none;
        transition: opacity 0.2s var(--ease), margin-top 0.2s var(--ease), padding 0.2s var(--ease);
    }
    #main-header.nav-open .header-nav {
        max-height: 520px;
        opacity: 1;
        padding: 6px;
        margin-top: 4px;
        pointer-events: auto;
    }
    .header-nav .nav-link {
        width: 100%;
        text-align: left;
        padding: 11px 14px;
        font-size: 13px;
    }
    .brand-logo-wrap { width: 32px; height: 32px; }
    .brand-logo { width: 32px; height: 32px; }
    .brand-text h1 { font-size: 13px; }
    .tagline { font-size: 7px; letter-spacing: 1.5px; }

    /* Ticker */
    #stats-ticker { height: 28px; }
    .ticker-track span { font-size: 10px; gap: 4px; }
    .ticker-headshot { width: 18px; height: 18px; }

    /* KPI */
    #summary-section { margin: 12px auto 0; padding: 0 12px; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .summary-card { padding: 12px 14px; }
    .summary-top { margin-bottom: 4px; }
    .summary-value { font-size: 22px; }
    .summary-label { font-size: 10px; }
    .summary-badge { font-size: 8px; padding: 1px 5px; }

    /* Section headers */
    .section-header { margin: 20px 0 12px; gap: 10px; }
    .section-title { font-size: 16px; }

    /* Spotlight card */
    .spotlight-card { padding: 16px 14px; }
    .spotlight-inner { gap: 18px; grid-template-columns: 1fr; }
    .spotlight-player { flex-direction: column; text-align: center; }
    .spotlight-headshot { width: 70px; height: 70px; }
    .spotlight-name { font-size: 18px; }
    .spotlight-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
    .spotlight-stat { padding: 8px 4px; }
    .spotlight-stat-value { font-size: 14px; }
    .edge-score-big { font-size: 42px; }
    .spotlight-prob { font-size: 12px; }
    .spotlight-odds { font-size: 15px; }

    /* Mobile pick cards — compact summary with expand toggle */
    .picks-grid { grid-template-columns: 1fr; gap: 10px; }
    .pick-card { padding: 14px 16px; }
    .pick-name { font-size: 15px; }

    /* Hide heavy detail sections by default on mobile */
    .pick-card .pick-stats,
    .pick-card .pick-advanced,
    .pick-card .pick-matchup,
    .pick-card .pick-split-bar,
    .pick-card .bvp-section,
    .pick-card .pick-advantages {
        display: none;
    }
    .pick-card.pick-expanded .pick-stats,
    .pick-card.pick-expanded .pick-advanced,
    .pick-card.pick-expanded .bvp-section {
        display: grid;
    }
    .pick-card.pick-expanded .pick-matchup,
    .pick-card.pick-expanded .pick-advantages,
    .pick-card.pick-expanded .pick-split-bar {
        display: flex;
    }

    .pick-stats { grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
    .pick-stat { padding: 6px 2px; }
    .pick-stat-value { font-size: 12px; }
    .pick-stat-label { font-size: 8px; letter-spacing: 1px; }
    .pick-advanced { grid-template-columns: repeat(2, 1fr); gap: 4px; }

    /* Expand button */
    .pick-expand-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        background: rgba(0,229,255,0.05);
        border: 1px solid rgba(0,229,255,0.15);
        color: var(--cyan);
        font-family: var(--font-mono);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 8px 12px;
        border-radius: var(--r-sm);
        cursor: pointer;
        margin-top: 8px;
        transition: all var(--duration) var(--ease);
    }
    .pick-expand-btn:hover, .pick-expand-btn:active {
        background: rgba(0,229,255,0.1);
    }
    .pick-expand-icon { transition: transform 0.25s var(--ease); }
    .pick-expand-icon.rotated { transform: rotate(180deg); }
    .adv-metric { padding: 6px; gap: 5px; }
    .adv-val { font-size: 12px; }
    .adv-gauge { width: 26px; height: 26px; }
    .pick-prob-bar { padding: 6px 8px; gap: 8px; }
    .prob-value { font-size: 13px; }
    .prob-odds, .market-odds { font-size: 12px; }
    .pick-matchup { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
    .matchup-game-info { text-align: left; }
    .hr-due-tracker { flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
    .due-info { min-width: 80px; }
    .due-status { min-width: unset; font-size: 8px; }
    .bvp-section { margin-bottom: 8px; }
    .bvp-stats { grid-template-columns: repeat(4, 1fr); }
    .bvp-stat-val { font-size: 11px; }
    .bvp-stat-lbl { font-size: 6px; }
    .pick-split-bar { padding: 5px 8px; gap: 6px; flex-wrap: wrap; }
    .split-stat { font-size: 9px; }

    /* Projections: convert to stacked cards layout on mobile */
    .pt-tabs {
        gap: 2px;
        padding: 4px;
    }
    .pt-tab { padding: 6px 10px; font-size: 11px; }
    .proj-topbar { gap: 8px; }
    .proj-heading { font-size: 16px; }
    .proj-filter-inline { gap: 6px; width: 100%; }
    .proj-filter-inline select { flex: 1; font-size: 11px; padding: 6px 24px 6px 10px; }
    .pt-table { background: transparent; border: none; }
    .pt-header-row { display: none; }
    .pt-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        min-width: unset;
        padding: 12px 10px;
        background: var(--bg-glass);
        backdrop-filter: blur(var(--blur));
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        margin-bottom: 8px;
    }
    .pt-row .pt-cell { align-self: center; }
    .pt-row .pt-player { grid-column: 1 / 3; grid-row: 1; }
    .pt-row .pt-score { grid-column: 3; grid-row: 1; justify-self: end; }
    .pt-row .pt-odds { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--amber); }
    .pt-row .pt-rate:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 11px; }
    .pt-row .pt-rate:nth-child(4) { display: none; }
    .pt-row .pt-streak { grid-column: 3; grid-row: 2; justify-self: end; }
    .pt-row .pt-h2h { grid-column: 1; grid-row: 3; font-size: 11px; }
    .pt-row .pt-matchup { grid-column: 2; grid-row: 3; justify-self: center; }
    .pt-row .pt-edge { grid-column: 3; grid-row: 3; justify-self: end; }
    .pt-score-val { font-size: 16px; }
    .pt-score { gap: 6px; }
    .pt-score-bar { width: 60px; }
    .pt-headshot { width: 32px; height: 32px; }
    .pt-player-name { font-size: 12px; }
    .pt-prop-line { font-size: 9px; }

    /* Game Sims — condensed single-line cards on mobile */
    .sim-table { overflow: visible; background: transparent; border: none; }
    .sim-header { display: none; }
    .sim-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: unset;
        padding: 10px 12px;
        background: var(--bg-glass);
        backdrop-filter: blur(var(--blur));
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        margin-bottom: 6px;
    }
    /* Hide everything except team blocks, win cells, and time */
    .sim-row .sim-col-small,
    .sim-row .sim-col-runs { display: none; }
    .sim-col-team {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    .sim-team-away { justify-content: flex-start; }
    .sim-team-home { justify-content: flex-end; }
    .sim-team-logo { width: 28px; height: 28px; }
    .sim-team-abbr { font-size: 14px; }
    .sim-team-record { font-size: 8px; }
    .sim-col-win {
        flex-shrink: 0;
        padding: 6px 10px;
        border-radius: var(--r-sm);
        font-family: var(--font-display);
        font-weight: 700;
    }
    .sim-win-cell { font-size: 16px; min-width: 50px; text-align: center; }
    .sim-col-vs {
        flex-shrink: 0;
        padding: 0 4px;
        min-width: 0;
    }
    .sim-col-vs .sim-time { font-size: 9px; }
    .sim-col-vs .sim-venue { display: none; }
    .sim-col-vs .sim-lineup-status { margin-top: 2px; }
    .sim-col-vs .lu-pill { font-size: 7px; padding: 1px 4px; }
    .sim-methodology { padding: 14px 16px; }
    .sim-methodology p, .sim-methodology li { font-size: 12px; }
    .sim-methodology h3 { font-size: 14px; }

    /* Scoreboard */
    .scoreboard-grid { grid-template-columns: 1fr; }
    .sb-score-area { padding: 10px 12px; }
    .sb-logo-lg { width: 28px; height: 28px; }
    .sb-team-abbr-lg { font-size: 15px; }
    .sb-score-lg { font-size: 24px; min-width: 28px; }
    .sb-pitchers-strip { flex-direction: column; gap: 8px; padding: 10px 12px; }
    .sb-sp-divider { display: none; }
    .sb-sp-stats { gap: 1px; padding: 4px 3px; }
    .sp-stat strong { font-size: 10px; }
    .sp-stat span { font-size: 6px; }

    /* Pitchers to Target */
    .pitcher-header { margin-left: 18px; gap: 10px; }
    .pitcher-headshot { width: 44px; height: 44px; }
    .pitcher-name { font-size: 13px; }
    .pitcher-stats-grid { grid-template-columns: repeat(4, 1fr); margin-left: 18px; }
    .p-stat-val { font-size: 11px; }
    .p-stat-lbl { font-size: 6px; }
    .pitcher-platoon { flex-direction: column; margin-left: 18px; gap: 6px; }
    .platoon-side { padding: 6px 8px; flex-wrap: wrap; gap: 6px; }
    .platoon-val { font-size: 10px; }
    .pitcher-context { margin-left: 18px; flex-wrap: wrap; gap: 8px; }
    .vuln-bar-wrap { margin-left: 18px; }
    .vuln-num { font-size: 22px; }

    /* Weather cards */
    .wx-card-body { grid-template-columns: 40px 1fr 1fr 1fr; padding: 10px 12px; gap: 6px; }
    .wx-metric-value { font-size: 13px; }
    .wx-metric-label { font-size: 7px; }

    /* Dates nav on scoreboard */
    .date-nav { padding: 4px 6px; }
    .date-tab { min-width: 48px; padding: 5px 8px; }
    .date-tab .dt-day { font-size: 8px; }
    .date-tab .dt-date { font-size: 11px; }

    /* Footer */
    footer { padding: 16px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
    .footer-disclaimer { font-size: 10px; }

    /* Section titles sticky on projections/sims so user knows where they are */
    .sims-topbar { gap: 8px; }
    .sims-heading { font-size: 18px; }
    .sims-sub { font-size: 10px; }
}

/* ---- SMALL MOBILE (<= 480px) ---- */
@media (max-width: 480px) {
    .brand-text h1 { font-size: 12px; letter-spacing: 1px; }
    .nav-link { padding: 5px 8px; font-size: 11px; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .summary-value { font-size: 20px; }
    .summary-label { font-size: 9px; }

    /* Pick cards stay single column on small mobile */
    .picks-grid { grid-template-columns: 1fr; gap: 10px; }
    .pick-card { padding: 12px 14px; }
    .pick-headshot { width: 44px; height: 44px; }
    .pick-name { font-size: 14px; }
    .pick-team-line { font-size: 11px; }
    .pick-edge-badge { font-size: 22px; }
    .pick-prob-bar { padding: 7px 10px; gap: 8px; }
    .prob-value { font-size: 14px; }
    .prob-odds, .market-odds { font-size: 13px; }
    .hr-due-tracker { padding: 7px 10px; gap: 8px; }
    .due-label { font-size: 8px; }
    .due-count { font-size: 10px; }
    .due-status { font-size: 8px; }
    .pick-expand-btn { font-size: 10px; padding: 7px 10px; }

    .pt-tab { padding: 5px 9px; font-size: 10px; }
    .proj-heading { font-size: 14px; }
    .proj-filter-inline { flex-wrap: wrap; }
    .proj-filter-inline select { font-size: 10px; }

    .sim-row { padding: 8px 10px; gap: 6px; }
    .sim-win-cell { font-size: 14px; min-width: 44px; padding: 5px 6px; }
    .sim-team-logo { width: 24px; height: 24px; }
    .sim-team-abbr { font-size: 12px; }
    .sim-col-vs .sim-time { font-size: 8px; }
    .sim-col-vs .lu-pill { display: none; }

    .spotlight-stats { grid-template-columns: repeat(2, 1fr); }
    .spotlight-stat-value { font-size: 12px; }

    /* AI FAB */
    .ai-fab { width: 44px; height: 44px; bottom: 12px; right: 12px; }
    .ai-panel { width: calc(100vw - 24px); right: 12px; bottom: 64px; max-height: 70vh; }

    /* Hide venue on scoreboard for space */
    .sb-pre-time { font-size: 10px; }
    .ls-team-col { min-width: 36px; }
}

/* ---- SAFE AREA (notched devices) ---- */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        body { padding-bottom: env(safe-area-inset-bottom); }
        #main-header { padding-top: max(8px, env(safe-area-inset-top)); }
    }
}

/* ---- TOUCH-FRIENDLY HIT TARGETS ---- */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .pt-tab, .date-tab, .filter-group select, .proj-filter-inline select, .refresh-btn {
        min-height: 40px;
    }
    .pick-card:hover { transform: none; } /* disable hover scale on touch */
    .pick-card:active { transform: scale(0.98); }
}

/* ==============================================================
   AUTH & PREVIEW MODE
   ============================================================== */

/* Header auth chip — either "Connect Discord" button OR signed-in avatar pill */
.auth-chip { display: flex; align-items: center; }

/* Narrow-desktop fix: collapse Connect-Discord button to icon-only between
   720-1300px. Content otherwise overflows the header on mid-width viewports. */
@media (min-width: 721px) and (max-width: 1300px) {
    .auth-login-btn span { display: none; }
    .auth-login-btn { padding: 7px 10px; }
}

.auth-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.3);
    transition: all var(--duration) var(--ease);
}
.auth-login-btn:hover {
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.55);
    transform: translateY(-1px);
}
.auth-login-btn:active { transform: translateY(0); }
.auth-discord-icon { flex-shrink: 0; }

.auth-chip-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 100px;
}
.auth-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(88, 101, 242, 0.5);
    flex-shrink: 0;
}
.auth-username {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-logout-btn {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.auth-logout-btn:hover {
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

/* Preview banner — shown to non-subscribers above everything */
.preview-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg,
        rgba(0, 229, 255, 0.12) 0%,
        rgba(245, 200, 66, 0.1) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 10px 24px;
}
.preview-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.preview-banner-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}
.preview-banner-text strong {
    color: var(--cyan);
    font-weight: 700;
}
.preview-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #5865F2;
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}
.preview-banner-cta:hover {
    background: #4752C4;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.6);
}

/* Preview HR picks teaser (top 3 + locked row) */
.preview-picks-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 0;
}
.preview-picks-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.preview-pick-card {
    display: grid;
    grid-template-columns: auto 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.preview-rank {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
.preview-headshot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 2px solid var(--border-light);
}
.preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.preview-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.preview-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}
.preview-odds {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--amber);
}
.preview-locked-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 20px;
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, rgba(88, 101, 242, 0.05) 100%),
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.02) 0 10px,
            transparent 10px 20px);
    border: 1px dashed rgba(0, 229, 255, 0.25);
    border-radius: var(--r-md);
    text-align: center;
}
.preview-locked-count {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.3px;
}
.preview-locked-details {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.5;
}
.preview-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.preview-unlock-btn:hover {
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6);
    transform: translateY(-1px);
}
.preview-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Locked view panels (Projections, Pitchers, Weather, etc.) */
.locked-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 420px;
    padding: 60px 24px;
    background:
        radial-gradient(circle at 50% 30%, rgba(88, 101, 242, 0.08) 0%, transparent 70%),
        var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin: 20px auto;
    max-width: 640px;
}
.locked-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 12px rgba(0, 229, 255, 0.3));
}
.locked-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    margin: 0;
}
.locked-blurb {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 520px;
    margin: 0;
}
.locked-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    transition: all var(--duration) var(--ease);
    margin-top: 4px;
}
.locked-cta:hover {
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6);
    transform: translateY(-1px);
}

/* Auth "denied" modal */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}
.auth-modal-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    max-width: 440px;
    width: 100%;
    padding: 36px 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.auth-modal-icon { font-size: 36px; }
.auth-modal-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.auth-modal-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.auth-modal-card p strong { color: var(--amber); font-weight: 700; }
.auth-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.auth-modal-primary,
.auth-modal-secondary {
    padding: 9px 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.auth-modal-primary {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
}
.auth-modal-primary:hover { box-shadow: 0 4px 16px rgba(88, 101, 242, 0.6); }
.auth-modal-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.auth-modal-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* Auth error toast */
.auth-error-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 12px 18px;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 100px;
    color: var(--red);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}
.auth-error-toast a {
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}

/* In preview mode, hide things that would be confusing / broken for non-subs */
body.auth-preview #filter-bar,
body.auth-preview #stats-ticker,
body.auth-preview #spotlight-section,
body.auth-preview #weather-section,
body.auth-preview #games-section,
body.auth-preview #pitchers-section {
    display: none;
}
/* Nav links to locked views get dimmed + a small lock glyph on hover */
body.auth-preview .nav-link[data-view="projections-view"]::after,
body.auth-preview .nav-link[data-view="sims-view"]::after,
body.auth-preview .nav-link[data-view="roi-view"]::after,
body.auth-preview .nav-link[data-view="matchups-view"]::after,
body.auth-preview .nav-link[data-view="pitchers-view"]::after,
body.auth-preview .nav-link[data-view="weather-view"]::after {
    content: ' 🔒';
    font-size: 9px;
    opacity: 0.6;
    margin-left: 2px;
}

@media (max-width: 720px) {
    .preview-banner { padding: 10px 12px; }
    .preview-banner-inner { gap: 10px; }
    .preview-banner-text { font-size: 11.5px; }
    .preview-banner-cta { padding: 6px 10px; font-size: 11px; }
    .auth-login-btn span { display: none; }
    .auth-login-btn { padding: 7px 10px; }
    .auth-username { max-width: 80px; font-size: 11px; }
    .locked-overlay { padding: 40px 16px; min-height: 320px; }
    .locked-title { font-size: 18px; }
    .preview-pick-card { grid-template-columns: auto 44px 1fr; padding: 10px 12px; gap: 10px; }
    .preview-headshot { width: 44px; height: 44px; }
}
