.page-header-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.banner-sport-toggle {
    display: inline-flex;
    background: #e9ecef;
    border-radius: 20px;
    padding: 3px;
    margin-top: 0.5rem;
    gap: 2px;
}
.banner-sport-btn {
    border: none;
    background: transparent;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.25rem;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.banner-sport-btn:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.06);
}
.banner-sport-btn.active {
    background: #0c2340;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Global box-sizing fix for mobile */
* {
    box-sizing: border-box;
}

/* Reset any potential scroll issues */
html, body {
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Force main container to not have scroll */
.main-container,
.container-fluid {
    overflow: visible !important;
    height: auto !important;
}

/* Override body min-height to prevent vertical scroll */
body.min-vh-100 {
    min-height: 100vh !important;
}

body.d-flex.flex-column {
    min-height: 100vh !important;
}

body {
    overflow-y: auto !important;
}

.container-fluid {
    overflow: visible !important;
}

.insights-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
    /* Global fix for height constraints */
    #selected-game-analysis,
    #selected-game-analysis > *,
    .game-analysis,
    .game-analysis-wrapper,
    .team-stats-container,
    .team-stats-card {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: unset !important;
    }
    
    /* Make spread buttons smaller on mobile */
    .btn-primary.rounded-pill {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .insights-container {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .container, .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
}

.insight-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

#content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    position: relative !important;
}

/* Ensure no vertical scrolling on the games section specifically */
.games-main-content {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Allow containers to expand naturally */
.sidebar-container,
.games-main-content,
.insights-container,
.insight-card,
#content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Remove scroll from the games area */
.insight-card {
    overflow: visible !important;
}

#content {
    overflow: visible !important;
}

.game-tiles-container {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .insights-container {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .insight-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.game-analysis {
    overflow: visible !important;
    height: auto !important;
    min-height: fit-content !important;
}

.game-analysis p {
    line-height: 1.6;
    margin-bottom: 0;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.5);
    border-left: 3px solid #dee2e6;
    border-radius: 0 4px 4px 0;
}

.blur-content {
    background: rgba(0, 0, 0, 0.1);
    color: transparent;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    padding: 0 2px;
}

.game-insight-card {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.game-insight-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.game-insight-card .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.game-insight-card .card-body {
    padding: 1rem;
}

.game-tile {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.4rem;
}

@media (max-width: 991px) {
    .game-tile {
        height: 85px;
        margin-bottom: 0.75rem;
    }
    
    .game-tile .card-body {
        padding: 0.5rem !important;
    }
    
    .game-tile img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .game-tile .fw-bold {
        font-size: 0.85rem;
    }
    
    .game-tile .small {
        font-size: 0.7rem !important;
    }
    
    .game-tile .d-flex {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    
    .game-tile .mx-2 {
        margin: 0 0.2rem !important;
    }
}

@media (max-width: 480px) {
    .game-tile {
        height: 90px;
    }
    
    .game-tile .card-body {
        padding: 0.75rem !important;
    }
    
    .game-tile img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .game-tile .fw-bold {
        font-size: 0.9rem;
    }
    
    .game-tile .small {
        font-size: 0.75rem !important;
    }
    
    .game-tile .mx-2 {
        margin: 0 0.25rem !important;
    }
}

.game-tile:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.game-tile .card-body {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Clean selected state with subtle highlight */
.game-tile.selected {
    background: #e7f1ff;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.game-tile.selected .team-matchup {
    font-weight: 600;
    color: #212529;
}

.game-tile.selected .game-time {
    color: #0d6efd;
    font-weight: 500;
}

.game-analysis-section {
    margin-top: 1rem;
    overflow: visible !important;
    height: auto !important;
    min-height: unset !important;
}

.game-analysis-section h5 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.game-analysis p {
    line-height: 1.6;
    margin-bottom: 0;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.5);
    border-left: 3px solid #dee2e6;
    border-radius: 0 4px 4px 0;
}

/* Sidebar Layout - Flexbox approach for better control */
.sidebar-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
}

.sidebar-filter {
    width: 160px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    height: fit-content;
    align-self: flex-start;
}

.sidebar-filter h6 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-main-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

/* Enhanced sport filter styles */
.sport-filter {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

/* Sidebar sport filter styles */
.sidebar-sport-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-sport-filter .btn {
    justify-content: flex-start;
    text-align: left;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #495057;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-sport-filter .btn:hover {
    background: rgba(13, 110, 253, 0.05);
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.1);
}

.sidebar-sport-filter .btn.active {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.sidebar-sport-filter .btn i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.sport-filter .btn {
    border: none !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sport-filter .btn:not(.active):hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.sport-filter .btn.active {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Responsive Sidebar Layout */
@media (max-width: 1024px) {
    .sidebar-container {
        gap: 1rem;
    }
    
    .sidebar-filter {
        flex: 0 0 140px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-filter {
        flex: none;
        width: 100%;
        position: static;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .sidebar-filter h6 {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }
    
    .sidebar-sport-filter {
        flex-direction: row;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
        gap: 0.5rem;
    }
    
    .sidebar-sport-filter .btn {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .games-main-content {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sidebar-filter {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-sport-filter {
        max-width: 280px;
        gap: 0.4rem;
    }
    
    .sidebar-sport-filter .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .sidebar-sport-filter .btn i {
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }
}

/* Sport filter mobile optimization */
@media (max-width: 768px) {
    .sport-filter .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
        font-weight: 600;
    }
    
    .sport-filter .btn i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sport-filter .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Game analysis mobile optimization */
@media (max-width: 768px) {
    .game-analysis-section {
        margin-top: 1rem;
    }
    
    .game-analysis-section h5 {
        font-size: 1.1rem;
    }
    
    .game-analysis p {
        padding: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
}

/* Full width game report styles */
.compact-game-report {
    width: 100% !important;
    max-width: 100% !important;
}

.compact-game-report .table-responsive {
    overflow-x: hidden !important;
    margin-bottom: 0 !important;
}

.compact-game-report .table {
    width: 100% !important;
    max-width: 100% !important;
}

/* Performance ROI Section (Key Stats Comparison) - Larger Text */
.performance-roi-section {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e0e6ed;
}

.performance-roi-section h5 {
    font-size: 1.4rem !important;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #000 !important;
}

.performance-roi-section .table {
    font-size: 1rem !important;
    color: #000 !important;
    margin-bottom: 0;
}

.performance-roi-section .table th {
    color: #000 !important;
    font-weight: 600;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.performance-roi-section .table td {
    color: #000 !important;
    padding: 0.75rem;
    border-color: #dee2e6;
}

.performance-roi-section .table th small,
.performance-roi-section .table td small {
    color: #666 !important;
    font-size: 0.8rem;
}

/* Number/Percentage Blurring for Non-Admin/Non-MVP Users */
.blur-content {
    filter: blur(3px);
    transition: filter 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blur-content::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    opacity: 0.7;
    pointer-events: none;
}

.blur-content:hover::after {
    content: "Upgrade for access";
    font-size: 0.6rem;
    color: #007bff;
    background: rgba(255,255,255,0.9);
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Game Analysis Wrapper for mobile */
.game-analysis-wrapper {
    overflow: visible;
    min-height: fit-content;
    height: auto;
}

/* Team Stats Cards Layout */
.team-stats-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    min-height: fit-content;
    height: auto;
}

.team-stats-card {
    flex: 1;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    padding-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: unset;
    height: auto;
    overflow: visible;
}

.team-stats-card .team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
    color: #007bff;
}

.team-stats-card .team-logo {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.team-stats-card .team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.team-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    min-height: auto;
    flex-wrap: nowrap;
}

.team-stats-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.team-stats-label {
    color: #666;
    font-size: 0.95rem;
    flex: 1 1 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
    padding-right: 0.5rem;
    white-space: normal;
    line-height: 1.3;
}

.team-stats-value {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    white-space: nowrap;
    flex: 0 0 auto;
    align-self: center;
}

.team-stats-value.positive {
    color: #20c997;
}

.team-stats-value.negative {
    color: #dc3545;
}

.team-stats-value.neutral {
    color: #333;
}

@media (max-width: 768px) {
    .game-analysis-wrapper {
        overflow: visible !important;
        min-height: unset !important;
        height: auto !important;
        padding-bottom: 2rem;
    }
    
    .team-stats-container {
        flex-direction: row;
        gap: 0.5rem;
        padding-bottom: 2rem;
        overflow: visible !important;
        height: auto !important;
        min-height: unset !important;
        flex-wrap: nowrap;
    }
    
    .team-stats-card {
        padding: 0.75rem;
        padding-bottom: 1.5rem !important;
        overflow: visible !important;
        min-height: unset !important;
        height: auto !important;
        margin-bottom: 1rem;
        display: block;
        flex: 1;
        min-width: 0;
    }
    
    .team-stats-card .team-header {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .team-stats-card .team-header img {
        width: 20px;
        height: 20px;
    }
    
    .team-stats-card .team-name {
        font-size: 1rem;
    }

    /* NBA team metrics cards - stack vertically on mobile */
    .team-split-metrics {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }
    .team-metrics-box {
        padding: 0.75rem;
    }
    .team-metrics-header {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .team-metric-label {
        font-size: 0.8rem;
    }
    .team-metric-value {
        font-size: 0.85rem;
    }

    .team-stats-row {
        min-height: unset;
        align-items: flex-start;
        padding: 0.4rem 0;
        display: flex;
        gap: 0.5rem;
        flex-wrap: nowrap;
        margin-bottom: 0.2rem;
    }
    
    .team-stats-label {
        font-size: 0.75rem;
        line-height: 1.3;
        flex: 1 1 auto;
        max-width: 65%;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .team-stats-value {
        font-size: 0.75rem;
        flex: 0 0 auto;
        line-height: 1.3;
        min-width: fit-content;
        font-weight: 600;
    }
}

.performance-roi-section th {
    font-size: 1.05rem !important;
    font-weight: 600;
    padding: 0.75rem !important;
}

.performance-roi-section td {
    font-size: 1.1rem !important;
    padding: 0.65rem !important;
    font-weight: 500;
}

.performance-roi-section .text-muted {
    font-size: 1rem !important;
}

/* Mobile table wrapper */
@media (max-width: 768px) {
    .compact-game-report .table-wrapper {
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }
    
    .compact-game-report table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    
    /* Force columns to fit */
    .compact-game-report td,
    .compact-game-report th {
        max-width: 25% !important;
        min-width: auto !important;
    }
}

.compact-game-report .container,
.compact-game-report .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Custom 5-column grid */
@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Mobile: 3 columns on all mobile screens for better layout */
@media (max-width: 991px) {
    .game-tile-mobile {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Very small screens: 2 columns for phones in portrait */
@media (max-width: 480px) {
    .game-tile-mobile {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Game tiles container - compact grid with fixed widths */
.game-tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0;
    overflow: visible !important;
    height: auto !important;
    width: 100%;
    justify-content: flex-start;
}

/* Fixed width for tiles - 5 per row */
.game-tile {
    width: 165px !important;
    flex-shrink: 0;
}

@media (max-width: 1400px) {
    .game-tile {
        width: 155px !important;
    }
}

@media (max-width: 1200px) {
    .game-tile {
        width: 145px !important;
    }
}

@media (max-width: 992px) {
    .game-tiles-container {
        justify-content: center;
    }
    
    .game-tile {
        width: 140px !important;
    }
}

@media (max-width: 768px) {
    .game-tile {
        width: 130px !important;
    }
}

@media (max-width: 576px) {
    .game-tile {
        width: 48% !important;
        max-width: none !important;
        min-width: 140px !important;
    }
}

/* Ensure game tiles fit properly in the grid */
.game-tile {
    box-sizing: border-box;
}

/* Mobile game selector dropdown */
@media (max-width: 768px) {
    .game-tiles-container {
        display: none !important;
    }
    
    .mobile-game-carousel {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    .mobile-game-carousel.carousel-hidden {
        display: none !important;
    }
    
    .carousel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .carousel-title {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }
    
    .carousel-counter {
        font-size: 0.875rem;
        color: #666;
        background: #f8f9fa;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
    }
    
    .carousel-container {
        position: relative;
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        border: 2px solid #e3f2fd;
        border-radius: 12px;
        padding: 1rem;
        overflow: hidden;
    }
    
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #e3f2fd;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10;
        font-size: 0.875rem;
        color: #666;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .carousel-nav:hover {
        background: #ffffff;
        border-color: #4fc3f7;
        color: #4fc3f7;
        transform: translateY(-50%) scale(1.05);
    }
    
    .carousel-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: translateY(-50%);
    }
    
    .carousel-nav:disabled:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: #e3f2fd;
        color: #666;
        transform: translateY(-50%);
    }
    
    .carousel-nav-prev {
        left: 8px;
    }
    
    .carousel-nav-next {
        right: 8px;
    }
    
    .carousel-track {
        overflow: hidden;
        touch-action: pan-y;
        user-select: none;
        position: relative;
        margin-bottom: 1rem;
    }
    
    .carousel-slides {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 0 10%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .carousel-slides::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-game-card {
        min-width: 60%;
        max-width: 60%;
        margin: 0 5%;
        background: #ffffff;
        border: 2px solid #f0f0f0;
        border-radius: 8px;
        padding: 0.75rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        opacity: 0.5;
        transform: scale(0.85);
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    
    .carousel-game-card.center {
        opacity: 1;
        transform: scale(1);
        border-color: #4fc3f7;
        background: #f8fdff;
        box-shadow: 0 4px 16px rgba(79, 195, 247, 0.2);
        z-index: 2;
        position: relative;
    }
    
    .carousel-game-card:hover {
        border-color: #4fc3f7;
        box-shadow: 0 4px 12px rgba(79, 195, 247, 0.15);
        transform: translateY(-1px);
    }
    
    .carousel-game-card.selected {
        border-color: #4fc3f7;
        background: #f8fdff;
    }
    
    .carousel-teams {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .carousel-team {
        display: flex;
        align-items: center;
        flex-direction: column;
        margin: 0 0.25rem;
    }
    
    .carousel-team-logo {
        width: 28px;
        height: 28px;
        margin-bottom: 0.25rem;
        object-fit: contain;
    }
    
    .carousel-team-name {
        font-size: 0.7rem;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1;
    }
    
    .carousel-vs {
        margin: 0 0.5rem;
        font-size: 0.75rem;
        color: #666;
        font-weight: 500;
    }
    
    .carousel-game-time {
        font-size: 0.65rem;
        color: #666;
        text-align: center;
        line-height: 1.2;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        width: 100%;
        margin: 0 auto;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .carousel-dot.active {
        background: #4fc3f7;
        transform: scale(1.2);
    }
}

@media (min-width: 769px) {
    .mobile-game-carousel {
        display: none !important;
    }
}

/* Enhanced mobile optimization for better UX */
@media (max-width: 768px) {
    /* Mobile viewport and touch optimization */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Container and spacing improvements */
    .container, .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix Bootstrap row negative margins on mobile */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    /* Improved sport filter mobile experience */
    .sport-filter {
        padding: 2px;
        margin: 0 auto;
        max-width: 300px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .sport-filter .btn {
        min-height: 44px; /* Touch target size */
        border-radius: 18px !important;
        font-size: 0.95rem;
        padding: 0.6rem 1.8rem;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    /* Enhanced game tiles for mobile */
    .game-tile {
        min-height: 100px;
        margin-bottom: 0.5rem !important;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .game-tile:active {
        transform: scale(0.98);
    }
    
    .game-tile .card-body {
        padding: 0.75rem !important;
    }
    
    .game-tile img {
        width: 22px !important;
        height: 22px !important;
    }
    
    .game-tile .fw-bold {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .game-tile .small {
        font-size: 0.75rem !important;
        margin-top: 0.25rem;
    }
    
    .game-tile .mx-2 {
        margin: 0 0.3rem !important;
        font-size: 0.8rem;
    }
    
    /* Analysis section mobile optimization */
    .game-analysis-section {
        margin-top: 1.5rem;
    }
    
    .game-analysis p {
        padding: 0.75rem;
        font-size: 0.9rem;
        line-height: 1.5;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    /* Modal improvements for mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
}

/* Extra small screens optimization */
@media (max-width: 400px) {
    .container, .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .insights-container {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .sport-filter {
        max-width: 280px;
    }
    
    .sport-filter .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .game-tile {
        min-height: 95px;
    }
    
    .game-tile .card-body {
        padding: 0.6rem !important;
    }
    
    .game-tile .fw-bold {
        font-size: 0.85rem;
    }
    
    .game-tile .mx-2 {
        margin: 0 0.2rem !important;
    }
    
    h5 {
        font-size: 1rem !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    .game-tile {
        min-height: 80px;
        margin-bottom: 0.4rem !important;
    }
    
    .game-tile .card-body {
        padding: 0.5rem !important;
    }
    
    .insights-container {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-tile img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Team metrics tables mobile optimization */
@media (max-width: 768px) {
    /* Performance and ROI section mobile layout */
    .performance-roi-section {
        display: block !important;
        gap: 1rem !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    .performance-roi-section .table {
        margin-bottom: 1.5rem !important;
        font-size: 1rem;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .performance-roi-section th,
    .performance-roi-section td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .performance-roi-section th {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    /* Override inline font sizes for mobile stats table rows */
    .stats-table .mobile-offense-row td,
    .stats-table .mobile-defense-row td {
        font-size: 0.75rem !important;
    }
    
    .stats-table .mobile-offense-row td strong,
    .stats-table .mobile-defense-row td strong {
        font-size: 0.8rem !important;
    }
    
    .stats-table .mobile-offense-row td small,
    .stats-table .mobile-defense-row td small {
        font-size: 0.7rem !important;
    }
    
    /* Override very specific inline styles */
    .stats-table td[style*="font-size: 0.45rem"],
    .stats-table td[style*="font-size: 0.6rem"] {
        font-size: 0.75rem !important;
    }
    
    .stats-table small[style*="font-size: 0.5rem"],
    .stats-table small[style*="font-size: 0.65rem"] {
        font-size: 0.7rem !important;
    }
    
    /* Team split metrics mobile optimization */
    .team-split-metrics,
    .team-metrics-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.25rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        gap: 0.75rem !important;
    }

    .team-metrics-box {
        margin-bottom: 0 !important;
        padding: 1rem !important;
        border-radius: 8px;
        background: white;
        border: 1px solid #dee2e6;
        flex: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .team-metrics-header {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center;
        font-weight: 700;
    }
    
    .team-metric-row {
        padding: 0.4rem 0 !important;
        font-size: 0.8rem;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .team-metric-label {
        font-size: 0.8rem;
        flex: 0 0 50% !important;
        padding-right: 8px;
        white-space: normal !important;
    }

    .team-metric-value {
        flex: 1 !important;
        text-align: left !important;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: normal !important;
    }
    
    /* Compact metrics mobile optimization */
    .compact-metrics {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .metric-item {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: transparent;
        border-radius: 6px;
        border: none;
    }
    
    .metric-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem;
    }
    
    .metric-value {
        font-size: 1rem !important;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    /* Extra small screen table optimizations */
    .performance-roi-section {
        padding: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .performance-roi-section .table {
        font-size: 0.75rem;
    }
    
    .performance-roi-section th,
    .performance-roi-section td {
        padding: 0.375rem 0.125rem !important;
        font-size: 0.7rem;
    }
    
    .team-metrics-box {
        padding: 0.75rem 0.5rem !important;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    .team-metrics-header {
        font-size: 0.9rem !important;
    }
    
    .team-metric-row {
        padding: 0.3rem 0 !important;
        font-size: 0.8rem;
    }
    
    .team-metric-label {
        font-size: 0.75rem;
    }
    
    .team-metric-value {
        font-size: 0.8rem;
        white-space: nowrap !important;
    }
    
    .metric-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .metric-label {
        font-size: 0.7rem !important;
    }
    
    .metric-value {
        font-size: 0.9rem !important;
    }
}

/* Mobile-optimized spread pill/badge styling */
@media (max-width: 768px) {
    /* Target any blue badges/pills that might contain spread info */
    .btn-primary, .badge-primary, .bg-primary,
    .compact-header .btn, .compact-header .badge,
    .compact-header .d-flex .btn-primary,
    .compact-header .d-flex .badge-primary {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    /* Specific styling for spread indicators */
    .compact-header .btn-primary:last-child,
    .compact-header .badge-primary:last-child,
    .compact-header .bg-primary:last-child {
        margin-left: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure proper spacing in header flex containers */
    .compact-header .d-flex {
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    /* Make spread pills more touch-friendly on mobile */
    .compact-header .btn-primary,
    .compact-header .badge-primary,
    .compact-header .bg-primary {
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - even more compact */
    .btn-primary, .badge-primary, .bg-primary,
    .compact-header .btn, .compact-header .badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 10px !important;
    }
}

/* Mobile optimization for compact game header */
@media (max-width: 768px) {
    .compact-header {
        padding: 0.75rem !important;
        margin: 0 0 1rem 0 !important;
    }
    
    /* Optimize team header layout */
    .compact-header h4,
    .compact-header h5 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    /* Team logos sizing */
    .compact-header img {
        width: 20px !important;
        height: 20px !important;
        margin-right: 0.25rem !important;
    }
    
    /* Team records styling */
    .compact-header small {
        font-size: 0.75rem !important;
        color: #6c757d !important;
        margin-left: 0.25rem !important;
    }
    
    /* Improve flex layout for team info */
    .compact-header .d-flex {
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    /* Ensure @ symbol has proper spacing */
    .compact-header .d-flex > span {
        margin: 0 0.3rem !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 480px) {
    .compact-header {
        padding: 0.5rem !important;
    }
    
    .compact-header h4,
    .compact-header h5 {
        font-size: 1rem !important;
    }
    
    .compact-header img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .compact-header small {
        font-size: 0.7rem !important;
    }
    
    /* Stack team info more efficiently on very small screens */
    .compact-header .d-flex {
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
}

/* Loading container styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loading-container .spinner-border {
    width: 48px;
    height: 48px;
    border-width: 4px;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Mobile loading styles */
@media (max-width: 768px) {
    .loading-container {
        min-height: 200px;
        padding: 40px 20px;
    }
    
    .loading-container .spinner-border {
        width: 36px;
        height: 36px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

/* Analysis loading state */
.analysis-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.analysis-loading .spinner-border-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MLB UPCOMING INSIGHTS REDESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Circle Indicators (replaces emojis) ────────────────────────────────── */
.mlb-ci {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.mlb-ci::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
.mlb-ci.green { background: #16a34a; }
.mlb-ci.red { background: #dc2626; }
.mlb-ci.blue { background: #2563eb; }
.mlb-ci.orange { background: #ea580c; }
.mlb-ci.sm {
    width: 16px;
    height: 16px;
}
.mlb-ci.sm::after {
    width: 6px;
    height: 6px;
}
/* Arrow-down variant for green */
.mlb-ci.green::after {
    width: 0; height: 0;
    border-radius: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid white;
    background: none;
}
/* Arrow-up variant for red (alert) */
.mlb-ci.red::after {
    content: '!';
    width: auto; height: auto;
    border-radius: 0;
    background: none;
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1;
}

/* ── MLB Game Cards (rich matchup cards) ────────────────────────────────── */
.mlb-cards-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.mlb-cards-container::-webkit-scrollbar { height: 4px; }
.mlb-cards-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.mlb-game-card {
    flex: 0 0 240px;
    min-height: 130px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.mlb-game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #0c2340;
    border-radius: 12px 12px 0 0;
}
.mlb-game-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #94a3b8;
}
.mlb-game-card.selected {
    border-color: #0c2340;
    box-shadow: 0 4px 16px rgba(12,35,64,0.2);
    background: #f0f4f8;
}
.mlb-game-card.selected::before {
    height: 5px;
    background: linear-gradient(90deg, #0c2340, #1e4976);
}

.mlb-card-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    white-space: nowrap;
}
.mlb-card-team {
    display: flex;
    align-items: center;
    gap: 5px;
}
.mlb-card-team img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
}
.mlb-card-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}
.mlb-card-vs {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.mlb-card-pitchers {
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.mlb-card-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mlb-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #475569;
}
.mlb-card-stat strong {
    color: #0c2340;
    font-weight: 700;
}
.mlb-card-insight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: #334155;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Featured Insights Row ──────────────────────────────────────────────── */
.mlb-featured-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    margin: 16px 0 8px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mlb-featured-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.mlb-featured-row {
    display: flex;
    gap: 0;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.mlb-featured-card {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    box-shadow: none;
}
.mlb-featured-card:last-child {
    border-right: none;
}

.mlb-featured-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.mlb-featured-card {
    align-items: center;
}
.mlb-featured-text {
    display: flex;
    flex-direction: column;
}
.mlb-featured-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.3;
}
.mlb-featured-sub {
    font-size: 0.84rem;
    color: #475569;
    margin-top: 2px;
    line-height: 1.3;
}

/* ── Matchup Breakdown Section ──────────────────────────────────────────── */
.mlb-matchup-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 1rem;
}

.mlb-matchup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0c2340, #1a3a5c);
    border-radius: 10px;
    color: white;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.2);
}
.mlb-matchup-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
}
.mlb-mh-logo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Three-column breakdown grid */
.mlb-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.mlb-breakdown-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mlb-bk-header {
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}
.mlb-bk-header { background: linear-gradient(135deg, #0c2340, #1a3a5c); }

.mlb-bk-body {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.5;
}

/* SP matchup inside pitching preview */
.mlb-sp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.mlb-sp-name {
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}
.mlb-sp-vs {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Stat items inside breakdown cards */
.mlb-bk-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #1e293b;
}
.mlb-bk-item:last-child { border-bottom: none; }
.mlb-bk-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 1px;
}
.mlb-bk-label {
    color: #64748b;
    font-weight: 500;
    min-width: 70px;
}
.mlb-bk-value {
    font-weight: 600;
    color: #1e293b;
}
.mlb-bk-value.good { color: #16a34a; }
.mlb-bk-value.bad { color: #dc2626; }

.mlb-hot-alert {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    margin-top: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #991b1b;
}

/* ── Bottom Grid: Model Projections + Detail ────────────────────────────── */
.mlb-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mlb-proj-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mlb-proj-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0c2340;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.mlb-proj-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.mlb-proj-row:last-child { border-bottom: none; }
.mlb-proj-label {
    color: #475569;
    font-weight: 500;
}
.mlb-proj-value {
    font-weight: 700;
    color: #1e293b;
    margin-left: auto;
}
.mlb-proj-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.mlb-confidence {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mlb-confidence.high { background: #dcfce7; color: #166534; }
.mlb-confidence.medium { background: #fef9c3; color: #854d0e; }
.mlb-confidence.low { background: #fee2e2; color: #991b1b; }

/* ── Bullpen Section ────────────────────────────────────────────────────── */
.mlb-bullpen-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}
.mlb-bullpen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mlb-bullpen-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0c2340;
}
.mlb-bp-btn-group {
    display: flex;
    gap: 3px;
}
.mlb-bp-btn {
    font-size: 0.72rem;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.mlb-bp-btn:hover { background: #f1f5f9; }
.mlb-bp-btn.active {
    background: #0c2340;
    color: white;
    border-color: #0c2340;
}

/* ── Comparison Mini-Tables (inside breakdown cards) ────────────────────── */
.mlb-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 6px;
    table-layout: fixed;
}
.mlb-mini-table th {
    padding: 5px 8px;
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mlb-mini-table th:first-child {
    text-align: left;
    width: 38%;
}
.mlb-mini-table td {
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
}
.mlb-mini-table td:first-child {
    text-align: left;
    color: #334155;
    font-weight: 600;
}
.mlb-mini-table td.better {
    color: #16a34a;
    font-weight: 700;
}

/* ── Mobile Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mlb-breakdown-grid {
        grid-template-columns: 1fr;
    }
    .mlb-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mlb-cards-container {
        gap: 10px;
        padding: 2px 0 8px;
    }
    .mlb-game-card {
        flex: 0 0 180px;
        padding: 10px 12px 8px;
    }
    .mlb-card-team img {
        width: 22px;
        height: 22px;
    }
    .mlb-card-team-name {
        font-size: 0.85rem;
    }
    .mlb-card-stats {
        gap: 2px;
    }
    .mlb-card-stat {
        font-size: 0.7rem;
    }
    .mlb-featured-row {
        gap: 8px;
        margin: 8px 0 2px;
    }
    .mlb-featured-card {
        min-width: 180px;
        padding: 8px 10px;
        font-size: 0.76rem;
    }
    .mlb-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mlb-bottom-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mlb-matchup-header h3 {
        font-size: 0.92rem;
    }
    .mlb-bk-body {
        padding: 10px 12px;
    }
    .mlb-proj-card {
        padding: 12px;
    }
}
