.logo-grid-item {
      transition: all 0.2s;
    }
    .logo-grid-item:hover {
      transform: translateY(-2px);
    }

/* =====================
   WBL NAV BUTTON GRID
   Ensures identical 6/5 layout across all pages + all views.
   ===================== */
.wbl-nav-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.wbl-nav-grid > button{width:100%; justify-content:center;}
@media (max-width: 1024px){
  .wbl-nav-grid{grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px;}
}
@media (max-width: 640px){
  .wbl-nav-grid{grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px;}
}
  
/* TEAM HISTORY STYLES */
.team-info-header-new{text-align:center;padding:40px 20px;border-radius:20px;margin-bottom:40px;box-shadow:0 10px 30px rgba(0,0,0,0.3)}
.team-name-display{font-size:48px;font-weight:900;color:#fff;text-transform:uppercase;letter-spacing:2px;margin-bottom:8px;text-shadow:3px 3px 6px rgba(0,0,0,0.5);line-height:1.2}
.gm-display{font-size:24px;font-weight:bold;font-style:italic;color:#fbbf24;margin-bottom:15px;text-shadow:2px 2px 4px rgba(0,0,0,0.3)}
.league-display{font-size:20px;color:#e5e7eb;margin-bottom:10px;font-weight:500}
.stadium-display{font-size:22px;color:#fff;font-weight:600;margin-top:15px;text-shadow:2px 2px 4px rgba(0,0,0,0.3)}
.expansion-display{font-size:18px;color:#fbbf24;font-style:italic;margin-top:10px}
.championships-section-new{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px;margin-bottom:60px}
.trophy-display{display:flex;flex-direction:column;align-items:center;padding:30px;border-radius:20px;transition:transform .3s ease,box-shadow .3s ease}
.trophy-display:hover{transform:translateY(-10px) scale(1.05);box-shadow:0 20px 50px rgba(0,0,0,0.4)}

/* Trophy Structure */
.trophy-image{position:relative;width:180px;height:220px;display:flex;flex-direction:column;align-items:center;margin-bottom:20px}
.trophy-ball{width:80px;height:80px;border-radius:50%;position:relative;margin-bottom:-10px;z-index:2;background-size:contain;background-position:center;background-repeat:no-repeat;box-shadow:0 8px 20px rgba(0,0,0,0.3)}
.trophy-cup{width:100px;height:120px;position:relative;background:linear-gradient(to bottom,#ffd700 0%,#ffed4e 20%,#ffd700 50%,#daa520 80%,#b8860b 100%);clip-path:polygon(20% 0%,80% 0%,95% 100%,5% 100%);box-shadow:0 10px 30px rgba(0,0,0,0.4),inset 0 5px 15px rgba(255,255,255,0.3),inset 0 -5px 15px rgba(0,0,0,0.3);border-left:2px solid rgba(0,0,0,0.2);border-right:2px solid rgba(0,0,0,0.2)}
.trophy-cup::before{content:'';position:absolute;top:10%;left:10%;right:10%;height:30%;background:linear-gradient(to bottom,rgba(255,255,255,0.4),transparent);border-radius:50% 50% 0 0}
.trophy-base{width:120px;height:40px;background:linear-gradient(to bottom,#4a4a4a 0%,#2a2a2a 50%,#1a1a1a 100%);border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,0.5),inset 0 2px 4px rgba(255,255,255,0.1)}
.trophy-base::before{content:'';position:absolute;bottom:40px;left:50%;transform:translateX(-50%);width:100px;height:15px;background:linear-gradient(to bottom,#b8860b,#8b6914);border-radius:4px;box-shadow:0 3px 8px rgba(0,0,0,0.3)}

/* Gold Trophy (World Series) */
.world-series-display .trophy-cup{background:linear-gradient(to bottom,#ffd700 0%,#ffed4e 20%,#ffd700 50%,#daa520 80%,#b8860b 100%)}
.world-series-display .trophy-base::before{background:linear-gradient(to bottom,#b8860b,#8b6914)}

/* Silver Trophy (League Champions) */
.league-champion-display .trophy-cup{background:linear-gradient(to bottom,#f5f5f5 0%,#e8e8e8 20%,#d3d3d3 50%,#b8b8b8 80%,#909090 100%)}
.league-champion-display .trophy-base::before{background:linear-gradient(to bottom,#909090,#707070)}

/* Bronze Trophy (GM of the Year) */
.gm-trophy-display .trophy-cup{background:linear-gradient(to bottom,#cd7f32 0%,#e8a87c 20%,#cd7f32 50%,#b8722e 80%,#8b5a2b 100%)}
.gm-trophy-display .trophy-base::before{background:linear-gradient(to bottom,#8b5a2b,#6b4423)}

/* Trophy Engraving Plate */
.trophy-plate{background:linear-gradient(135deg,#2a2a2a 0%,#1a1a1a 100%);border:3px solid #8b6914;border-radius:12px;padding:20px;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,0.4);min-width:240px;margin-top:10px}
.trophy-title{font-size:13px;font-weight:900;color:#ffd700;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px;text-shadow:0 0 10px rgba(255,215,0,0.5)}
.trophy-year{font-size:42px;font-weight:900;color:#ffd700;margin:8px 0;text-shadow:0 0 15px rgba(255,215,0,0.6),2px 2px 4px rgba(0,0,0,0.8)}
.trophy-team{font-size:16px;font-weight:bold;color:#e0e0e0;line-height:1.3;margin-top:8px}
.trophy-subtitle{font-size:14px;color:#ffd700;font-weight:600;margin-top:5px}

/* Smaller trophies for individual awards */
.award-trophy-small{width:120px;height:150px}
.award-trophy-small .trophy-ball{width:50px;height:50px}
.award-trophy-small .trophy-cup{width:65px;height:80px}
.award-trophy-small .trophy-base{width:80px;height:25px}
.award-trophy-small .trophy-base::before{width:65px;height:10px;bottom:25px}
.award-trophy-small .trophy-cup{background:linear-gradient(to bottom,#cd7f32 0%,#e8a87c 20%,#cd7f32 50%,#b8722e 80%,#8b5a2b 100%)}

.ws-mvp-display{margin-top:20px;padding:15px 25px;background:linear-gradient(135deg,#4c1d95 0%,#7c3aed 100%);border-radius:12px;font-size:18px;font-weight:bold;color:#fbbf24;text-shadow:2px 2px 4px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(124,58,237,0.4)}
.hof-section-new{margin:80px 0 60px 0;padding:50px 30px;background:linear-gradient(135deg,#1a0f0a 0%,#2b1810 50%,#1a0f0a 100%);border-radius:25px;border:6px solid #0f0805;box-shadow:0 20px 60px rgba(0,0,0,0.8),inset 0 0 50px rgba(139,69,19,0.3);position:relative;overflow:hidden}
.hof-section-new::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(184,115,51,0.05) 10px,rgba(184,115,51,0.05) 20px);animation:shine 20s linear infinite}
@keyframes shine{0%{transform:translate(-50%,-50%) rotate(0deg)}100%{transform:translate(-50%,-50%) rotate(360deg)}}
.hof-header-new{text-align:center;position:relative;z-index:1;margin-bottom:50px}
.hof-title-new{font-size:72px;font-weight:900;text-transform:uppercase;letter-spacing:12px;background:linear-gradient(to bottom,#cd7f32 0%,#b87333 30%,#8b4513 50%,#b87333 70%,#cd7f32 100%);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;filter:drop-shadow(0 8px 12px rgba(0,0,0,0.9));animation:bronze-shimmer 4s ease-in-out infinite}
@keyframes bronze-shimmer{0%,100%{background-position:0% center}50%{background-position:200% center}}
.hof-subtitle-new{font-size:24px;color:#cd7f32;font-style:italic;margin-top:10px;text-shadow:2px 2px 6px rgba(0,0,0,0.9);letter-spacing:3px}
.hof-container-new{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:50px;position:relative;z-index:1}

/* Bronze HOF Plaque Styles */
.hof-plaque{position:relative;background:linear-gradient(135deg,#2b1f1a 0%,#3d2920 40%,#4a3529 60%,#3d2920 100%);border:8px solid #1a120d;border-radius:8px;padding:40px 30px;box-shadow:0 20px 50px rgba(0,0,0,0.9),inset 0 8px 20px rgba(0,0,0,0.6),inset 0 -8px 20px rgba(139,69,19,0.2);transition:all .4s ease}
.hof-plaque:hover{transform:translateY(-10px);box-shadow:0 30px 70px rgba(0,0,0,0.95),inset 0 8px 20px rgba(0,0,0,0.6),inset 0 -8px 20px rgba(139,69,19,0.3)}

/* Corner Screws */
.hof-plaque::before,.hof-plaque::after,.hof-plaque-screw-bl,.hof-plaque-screw-br{content:'';position:absolute;width:20px;height:20px;background:radial-gradient(circle,#5a3d2f 0%,#3d2315 50%,#1a0f0a 100%);border-radius:50%;box-shadow:inset 0 2px 4px rgba(0,0,0,0.8),0 2px 6px rgba(0,0,0,0.6);z-index:2}
.hof-plaque::before{top:15px;left:15px}
.hof-plaque::after{top:15px;right:15px}
.hof-plaque-screw-bl{position:absolute;bottom:15px;left:15px}
.hof-plaque-screw-br{position:absolute;bottom:15px;right:15px}

/* Portrait Area with Team Logo */
.hof-portrait-frame{position:relative;width:200px;height:240px;margin:0 auto 25px;background:linear-gradient(135deg,#8b6914 0%,#a0783a 50%,#8b6914 100%);border:6px solid #5a4012;border-radius:8px;box-shadow:inset 0 0 30px rgba(0,0,0,0.7),0 8px 20px rgba(0,0,0,0.6);overflow:hidden;display:flex;align-items:center;justify-content:center}
.hof-portrait-frame::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:repeating-linear-gradient(90deg,transparent,transparent 2px,rgba(0,0,0,0.1) 2px,rgba(0,0,0,0.1) 4px);pointer-events:none}
.hof-portrait-logo{width:140px;height:140px;object-fit:contain;filter:sepia(100%) saturate(50%) hue-rotate(-10deg) brightness(0.7) contrast(1.2);opacity:0.85;mix-blend-mode:multiply}

/* Decorative Baseball Elements */
.hof-decoration-left,.hof-decoration-right{position:absolute;top:50%;transform:translateY(-50%);font-size:40px;opacity:0.3;filter:drop-shadow(2px 2px 4px rgba(0,0,0,0.8))}
.hof-decoration-left{left:-15px}
.hof-decoration-right{right:-15px}

/* Player Name Plate */
.hof-name-plate{text-align:center;padding:20px 15px;background:linear-gradient(to bottom,#8b6914 0%,#6b5010 50%,#4a3809 100%);border:3px solid #3d2d08;border-radius:6px;margin-bottom:20px;box-shadow:inset 0 4px 10px rgba(0,0,0,0.6),0 4px 12px rgba(0,0,0,0.5)}
.hof-player-name-bronze{font-size:28px;font-weight:900;color:#f4e5c3;text-transform:uppercase;letter-spacing:4px;line-height:1.2;text-shadow:0 3px 8px rgba(0,0,0,0.9),0 0 20px rgba(244,229,195,0.3);font-family:Georgia,serif;margin-bottom:8px}
.hof-player-years{font-size:16px;color:#d4b896;letter-spacing:2px;font-weight:600;text-shadow:0 2px 4px rgba(0,0,0,0.8)}

/* Career Text Inscription */
.hof-inscription{background:linear-gradient(to bottom,#594528 0%,#4a3920 100%);padding:20px;border:2px solid #3d2d18;border-radius:4px;margin-bottom:20px;box-shadow:inset 0 2px 8px rgba(0,0,0,0.6)}
.hof-inscription-text{font-size:13px;line-height:1.6;color:#d4b896;text-align:center;font-family:Georgia,serif;text-shadow:1px 1px 3px rgba(0,0,0,0.8);letter-spacing:0.5px;font-weight:500}
.hof-inscription-stat{display:inline-block;margin:0 8px;white-space:nowrap}

/* HOF Vote Badge */
.hof-vote-bronze{background:linear-gradient(135deg,#8b4513 0%,#6b3410 100%);color:#f4e5c3;padding:12px 20px;border:3px solid #4a2d0e;border-radius:6px;text-align:center;font-size:16px;font-weight:900;box-shadow:inset 0 2px 6px rgba(0,0,0,0.6),0 4px 10px rgba(0,0,0,0.5);text-transform:uppercase;letter-spacing:2px;text-shadow:0 2px 4px rgba(0,0,0,0.9)}

@media (max-width:768px){.team-name-display{font-size:32px}.gm-display{font-size:18px}.trophy-top{font-size:80px}.trophy-year-ws,.trophy-year-lc,.trophy-year-gm{font-size:36px}.hof-title-new{font-size:48px;letter-spacing:4px}.hof-player-name-bronze{font-size:22px}.championships-section-new,.hof-container-new,.awards-grid{grid-template-columns:1fr}.hof-portrait-frame{width:160px;height:200px}.hof-portrait-logo{width:110px;height:110px}}

.player-awards-section-new{margin:60px 0}
.awards-section-title{font-size:42px;font-weight:900;text-align:center;color:#7c2d12;text-transform:uppercase;margin-bottom:40px;text-shadow:2px 2px 4px rgba(0,0,0,0.2)}
.awards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:25px}
.award-card{background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);border:3px solid #ea580c;border-radius:12px;padding:25px;box-shadow:0 8px 20px rgba(234,88,12,0.2);transition:all .3s ease;position:relative;overflow:hidden}
.award-card::before{content:'🏅';position:absolute;top:-10px;right:-10px;font-size:60px;opacity:0.15}
.award-card:hover{transform:translateY(-8px);box-shadow:0 12px 30px rgba(234,88,12,0.4);border-color:#c2410c}
.award-year-badge{display:inline-block;background:linear-gradient(135deg,#dc2626 0%,#991b1b 100%);color:#fbbf24;padding:8px 20px;border-radius:20px;font-size:24px;font-weight:900;margin-bottom:15px;box-shadow:0 4px 10px rgba(220,38,38,0.3)}
.award-type-text{font-size:20px;font-weight:bold;color:#9a3412;margin-bottom:10px;text-transform:uppercase;letter-spacing:0.5px}
.award-player-name{font-size:26px;font-weight:900;color:#7c2d12;line-height:1.3}
@media (max-width:768px){.team-name-display{font-size:32px}.gm-display{font-size:18px}.trophy-top{font-size:80px}.trophy-year-ws,.trophy-year-lc,.trophy-year-gm{font-size:36px}.hof-title-new{font-size:48px;letter-spacing:4px}.hof-player-name{font-size:28px}.championships-section-new,.hof-container-new,.awards-grid{grid-template-columns:1fr}}



/* ========== STATCAST SAVANT STYLES ========== */

        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 15px;
            min-height: 100vh;
        }
        
        .search-container {
            max-width: 500px;
            margin: 0 auto 15px auto;
            background: white;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        }
        
        .search-title {
            font-size: 20px;
            font-weight: 800;
            color: #2c3e50;
            margin-bottom: 12px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .wbl-logo {
            width: 35px;
            height: 35px;
        }
        
        .mode-toggle {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .mode-button {
            flex: 1;
            padding: 8px;
            background: #ecf0f1;
            border: 2px solid #bdc3c7;
            border-radius: 6px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Inter', sans-serif;
        }
        
        .mode-button.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }
        
        .hof-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
            padding: 10px;
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            color: #2c3e50;
            border: 2px solid #d4af37;
        }
        
        .hof-checkbox {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        
        .year-select {
            width: 100%;
            padding: 6px;
            font-size: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-family: 'Inter', sans-serif;
            margin-bottom: 6px;
            background: white;
        }
        
        .year-select:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .year-select:disabled {
            background: #f0f0f0;
            cursor: not-allowed;
        }
        
        .search-input {
            width: 100%;
            padding: 10px;
            font-size: 14px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            margin-bottom: 10px;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .comparison-inputs {
            display: none;
        }
        
        .comparison-inputs.active {
            display: block;
        }
        
        .player-input-group {
            margin-bottom: 10px;
        }
        
        .player-label {
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 4px;
            display: block;
            font-size: 13px;
        }
        
        .generate-button {
            width: 100%;
            padding: 10px;
            font-size: 14px;
            font-weight: 700;
            color: white;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
        }
        
        .generate-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .message {
            text-align: center;
            margin-top: 10px;
            font-weight: 600;
            min-height: 16px;
            font-size: 12px;
        }
        
        .error { color: #e74c3c; }
        .success { color: #27ae60; }
        
        .container {
            max-width: 500px;
            margin: 0 auto;
            background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
            display: none;
        }
        
        .container.visible {
            display: block;
        }
        
        .comparison-container {
            max-width: 1100px;
            margin: 0 auto;
            display: none;
            gap: 15px;
        }
        
        .comparison-container.visible {
            display: flex;
        }
        
        .comparison-card {
            flex: 1;
            background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
        }
        
        .header {
            text-align: center;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            margin: -15px -15px 15px -15px;
            padding: 12px 15px;
            border-radius: 15px 15px 0 0;
        }
        
        .title {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 8px;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .card-wbl-logo {
            width: 28px;
            height: 28px;
            filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
        }
        
        .player-name-line {
            font-size: 20px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 6px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .hof-badge {
            font-size: 11px;
            font-weight: 700;
            color: #ffd700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: block;
            margin-top: 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .team-logo {
            height: 30px;
            width: auto;
            filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
        }
        
        .player-details {
            font-size: 11px;
            color: #e8f1f8;
            text-align: center;
            font-weight: 600;
        }
        
        .legend {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            padding: 8px 12px;
            background: linear-gradient(90deg, #4a90e2 0%, #95a5a6 50%, #e74c3c 100%);
            border-radius: 8px;
        }
        
        .legend-item {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .hof-notice {
            text-align: center;
            font-size: 9px;
            font-weight: 700;
            color: #ffd700;
            background: rgba(0, 0, 0, 0.3);
            padding: 5px;
            border-radius: 6px;
            margin-top: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .category {
            margin: 12px 0;
            background: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .category-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 2px solid #34495e;
        }
        
        .category-icon {
            width: 22px;
            height: 22px;
            filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
        }
        
        .category-title {
            font-size: 13px;
            font-weight: 800;
            color: #2c3e50;
            text-transform: uppercase;
        }
        
        .stat-row {
            display: flex;
            align-items: center;
            margin: 6px 0;
            font-size: 11px;
        }
        
        .stat-label {
            width: 90px;
            text-align: right;
            padding-right: 8px;
            color: #2c3e50;
            font-weight: 700;
        }
        
        .stat-bar-container {
            flex: 1;
            height: 22px;
            background: linear-gradient(90deg, #ecf0f1 0%, #bdc3c7 100%);
            border-radius: 11px;
            position: relative;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        .stat-bar {
            height: 100%;
            border-radius: 11px;
            position: relative;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        }
        
        .percentile-badge {
            position: absolute;
            right: -32px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border-radius: 6px;
            padding: 2px 6px;
            font-weight: 800;
            font-size: 10px;
            color: #2c3e50;
            border: 1.5px solid #34495e;
            min-width: 32px;
            text-align: center;
        }
        
        .percentile-badge-center {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 6px;
            padding: 2px 6px;
            font-weight: 800;
            font-size: 10px;
            color: #7f8c8d;
            border: 1.5px solid #95a5a6;
            min-width: 32px;
            text-align: center;
        }
        
        .stat-value {
            width: 50px;
            text-align: right;
            padding-left: 38px;
            font-weight: 700;
            color: #2c3e50;
            font-size: 11px;
        }
        
        .bar-red-high { background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%); }
        .bar-red-mid { background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%); }
        .bar-red-low { background: linear-gradient(90deg, #ff9999 0%, #ff6b6b 100%); }
        .bar-gray { background: linear-gradient(90deg, #95a5a6 0%, #7f8c8d 100%); }
        .bar-blue-low { background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%); }
        .bar-blue-mid { background: linear-gradient(90deg, #4a90e2 0%, #2c5aa0 100%); }
        .bar-blue-high { background: linear-gradient(90deg, #2c5aa0 0%, #1e3a78 100%); }
        
        .savant-logo {
            text-align: center;
            margin-top: 15px;
            font-size: 10px;
            color: #7f8c8d;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
        }
        
        @media (max-width: 768px) {
            .comparison-container {
                flex-direction: column;
            }
        }
    

/* View Switching Styles */
#statcast-view { display: none; }
#statcast-view.active { display: block; }
#gabs-view { display: none; }
#gabs-view.active { display: block; }
#leaderboard-view { display: none; }
#leaderboard-view.active { display: block; }
#standings-view { display: none; }
#standings-view.active { display: block; }