body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f8fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-small {
    max-width: 150px;
    margin: 15px auto;
    display: block;
}

.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #656565;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-button.active {
    background: #fff;
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.selection-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.comparison-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    display: none;
}

.selection-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    justify-content: center;
}

label {
    font-weight: bold;
    min-width: 70px;
    text-align: right;
}

select, input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 480px;
    box-sizing: border-box;
}

#game-select-container {
    min-height: 50px;
}

/* Divisional Game Indicator */
.divisional-indicator {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    font-weight: 600;
    border-radius: 5px;
    display: none;
}

.divisional-indicator.divisional {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.divisional-indicator.non-divisional {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* Schedule Shuffle Alert */
.schedule-shuffle-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9500;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    font-weight: 600;
    color: #856404;
    display: none;
    animation: pulseAlert 2s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

.schedule-shuffle-alert .alert-title {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #b8860b;
}

.schedule-shuffle-alert .alert-details {
    font-size: 0.95em;
    color: #856404;
    margin-left: 10px;
}

/* Data Selection Dropdowns */
.data-selection-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.data-selection-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.data-selection-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.data-selection-dropdown {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    width: 220px !important;
}

.teams-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.team-info {
    text-align: center;
    padding: 15px;
}

.team-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.team-type {
    color: #656565;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.pitcher-info {
    font-size: 0.85em;
    color: #555;
    background-color: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.vs-divider {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

.advantage-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.advantage-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.advantage-score {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
}

.advantage-label {
    font-size: 0.9em;
    color: #656565;
    margin-top: 5px;
}

.advantage-vs {
    text-align: center;
    font-weight: bold;
    color: #007bff;
}

.team-strengths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.strength-box {
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.strength-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.strength-list {
    font-size: 0.85em;
    color: #656565;
    line-height: 1.4;
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    text-align: left;
}

.team-names-display {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Clean Comparison Table */
.clean-comparison-table {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 20px;
}

.clean-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.5fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.clean-table-header-cell {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.clean-table-header-cell:first-child {
    text-align: left;
    padding-left: 12px;
}

.clean-table-header-cell:last-child {
    border-right: none;
    text-align: right;
    padding-right: 12px;
}

.clean-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.5fr;
    border-bottom: 1px solid #e0e0e0;
    min-height: 44px;
    align-items: center;
}

.clean-table-row:last-child {
    border-bottom: none;
}

.clean-table-cell {
    padding: 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clean-table-cell:last-child {
    border-right: none;
}

.clean-table-cell.stat-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-align: left;
    justify-content: flex-start;
    padding-left: 12px;
}

.clean-table-cell.stat-label.right-align {
    text-align: right;
    justify-content: flex-end;
    padding-right: 12px;
    padding-left: 8px;
}

.clean-table-cell.better {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #0f5132 !important;
}

.clean-table-cell.worse {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #58151c !important;
}

.clean-table-cell.rank {
    font-size: 0.8em;
    color: #656565;
    background-color: #f8f9fa;
}

.clean-table-cell.rank.elite {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #0f5132 !important;
}

.clean-table-cell.rank.average {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    color: #856404 !important;
}

.clean-table-cell.rank.below-average {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #58151c !important;
}

/* Four Column Table for Standings */
.clean-table-header-4col {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.clean-table-header-4col .clean-table-header-cell:first-child {
    text-align: left;
    padding-left: 12px;
}

.clean-table-header-4col .clean-table-header-cell:last-child {
    text-align: right;
    padding-right: 12px;
    border-right: none;
}

.clean-table-row-4col {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    border-bottom: 1px solid #e0e0e0;
    min-height: 44px;
    align-items: center;
}

.clean-table-row-4col .clean-table-cell:first-child {
    text-align: left;
    justify-content: flex-start;
    padding-left: 12px;
}

.clean-table-row-4col .clean-table-cell:last-child {
    text-align: right;
    justify-content: flex-end;
    padding-right: 12px;
}

/* Trends Table */
.trends-comparison-table {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 20px;
}

.trends-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.trends-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    border-bottom: 1px solid #e0e0e0;
    min-height: 44px;
    align-items: center;
}

.trends-table-cell {
    padding: 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trends-table-cell:last-child {
    border-right: none;
}

.trends-table-cell.trend-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-align: left;
    justify-content: flex-start;
    padding-left: 12px;
}

.trends-table-cell.trend-label.right-align {
    text-align: right;
    justify-content: flex-end;
    padding-right: 12px;
    padding-left: 8px;
}

.trends-table-cell.trend-good {
    background-color: #d4edda !important;
    color: #0f5132 !important;
}

.trends-table-cell.trend-bad {
    background-color: #f8d7da !important;
    color: #58151c !important;
}

/* Category Tables for Deep Dive */
.category-table-container {
    margin-bottom: 25px;
}

.category-table-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    font-size: 1.0em;
}

.category-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.category-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    border-bottom: 1px solid #e0e0e0;
    min-height: 40px;
    align-items: center;
}

.category-table-row:last-child {
    border-bottom: none;
}

.category-table-cell {
    padding: 6px 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.85em;
    font-weight: 500;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-table-cell:last-child {
    border-right: none;
}

.category-table-cell.stat-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-align: left;
    justify-content: flex-start;
    padding-left: 12px;
}

.category-table-cell.stat-label.right-align {
    text-align: right;
    justify-content: flex-end;
    padding-right: 12px;
    padding-left: 8px;
}

.category-table-cell.better {
    background-color: #d4edda !important;
    color: #0f5132 !important;
}

.category-table-cell.worse {
    background-color: #f8d7da !important;
    color: #58151c !important;
}

/* Highlights section - keep existing format but smaller */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.highlights-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.highlights-column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.highlights-column-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    font-size: 0.9em;
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.highlights-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.highlights-stat-label {
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 0.8em;
    padding: 4px 6px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #ddd;
    min-width: 60px;
}

.highlights-stat-cell {
    text-align: center;
    padding: 4px 6px;
    border-radius: 3px;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 0.8em;
    color: #333;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlights-stat-cell.better {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #0f5132 !important;
}

.highlights-stat-cell.worse {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #58151c !important;
}

/* Mini summary styles */
.highlights-mini-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
    font-size: 0.95em;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.highlights-mini-summary .winner {
    color: #1976d2;
    font-weight: bold;
}

.quick-glance-category {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

/* Trends Section */
.trends-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9800;
}

.trends-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ff9800;
}

/* Game Logs Section */
.game-logs-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

.game-logs-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
}

.game-logs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-logs-team-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.game-logs-team-header {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.0em;
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.game-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.game-logs-table th {
    background: #fff;
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    color: #555;
    border: 1px solid #ddd;
    font-size: 0.8em;
}

.game-logs-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
}

.game-logs-table .win {
    color: #28a745;
    font-weight: bold;
}

.game-logs-table .loss {
    color: #dc3545;
    font-weight: bold;
}

.game-logs-table .home {
    background-color: #e8f5e8;
}

.game-logs-table .away {
    background-color: #fff3cd;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .clean-table-header,
    .clean-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .clean-table-header-4col,
    .clean-table-row-4col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .trends-table-header,
    .trends-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .category-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-logs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .selection-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .data-selection-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .data-selection-dropdown {
        width: 240px !important;
    }
    select, input[type="date"] {
        width: 100%;
    }
    .tab-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    .container {
        padding: 10px;
    }
    .section-title {
        font-size: 1.1em;
        padding: 8px;
    }
    .advantage-summary {
        padding: 15px;
    }
    .advantage-line {
        padding: 10px;
    }
    .advantage-score {
        font-size: 1.1em;
    }
    .team-info {
        padding: 10px;
    }
    .team-name {
        font-size: 1.3em;
    }
    .pitcher-info {
        font-size: 0.8em;
        padding: 6px;
    }
    .schedule-shuffle-alert {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .highlights-stat-row {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }
    .highlights-stat-label {
        order: -1;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .tab-button {
        font-size: 12px;
        padding: 8px 12px;
    }
    .highlights-mini-summary {
        font-size: 0.85em;
        padding: 10px;
    }
    .schedule-shuffle-alert {
        padding: 10px 12px;
        font-size: 0.85em;
    }
}

/* NEW: Lineup Handedness Section */
.lineup-handedness-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.lineup-section-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
}

.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lineup-team-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.lineup-team-header {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.0em;
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.lineup-summary {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.matchup-analysis {
    font-weight: 600;
    color: #2196f3;
    margin-top: 5px;
}

.lineup-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lineup-status.confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lineup-status.proposed {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lineup-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.lineup-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lineup-player {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.85em;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
}

.lineup-player.favorable-matchup {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #0f5132 !important;
}

.lineup-player.unfavorable-matchup {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #58151c !important;
}

.batting-order {
    font-weight: bold;
    color: #007bff;
    margin-right: 8px;
    min-width: 25px;
    font-size: 0.9em;
}

.player-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.handedness-badge {
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    background: #e9ecef;
    color: #495057;
    margin-left: 4px;
}

/* NEW: Pitcher Info Section */
.pitcher-info-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9800;
}

.pitcher-section-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ff9800;
}

.pitcher-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pitcher-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.pitcher-info-header {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.0em;
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pitcher-info-details {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: center;
}

.pitcher-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.0em;
}

.pitcher-details {
    font-size: 0.9em;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.handedness-info {
    color: #2196f3;
    font-weight: 600;
}

.pitcher-stats {
    color: #666;
}

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
    .lineup-grid,
    .pitcher-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lineup-players {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .lineup-player {
        font-size: 0.8em;
        padding: 6px 8px;
    }
    
    .batting-order {
        min-width: 20px;
        margin-right: 6px;
        font-size: 0.8em;
    }
    
    .player-name {
        font-size: 0.9em;
    }
    
    .handedness-badge {
        font-size: 0.7em;
        padding: 1px 3px;
    }
    
    .lineup-section-title,
    .pitcher-section-title {
        font-size: 1.0em;
        padding: 8px;
    }
    
    .lineup-team-section,
    .pitcher-info-section {
        padding: 12px;
    }
    
    .pitcher-details {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .lineup-handedness-container,
    .pitcher-info-container {
        padding: 15px;
    }
    
    .lineup-summary,
    .pitcher-info-details {
        padding: 8px;
        font-size: 0.85em;
    }
    
    .lineup-players {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .lineup-player {
        padding: 8px;
        font-size: 0.8em;
    }
    
    .batting-order {
        margin-right: 8px;
        font-size: 0.85em;
    }
    
    .player-name {
        font-size: 0.9em;
    }
    
    .handedness-badge {
        margin-left: auto;
    }
}

/* Historical Matchups Styles */
.historical-matchups-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

.historical-section-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
}

.historical-matchups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.historical-team-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.historical-team-header {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.0em;
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.historical-table-container {
    overflow-x: auto;
}

.historical-matchups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.historical-matchups-table th {
    background: #4caf50;
    color: #fff;
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #45a049;
    font-size: 0.9em;
}

.historical-matchups-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9em;
}

.historical-matchups-table .win {
    color: #28a745;
    font-weight: bold;
}

.historical-matchups-table .loss {
    color: #dc3545;
    font-weight: bold;
}

.historical-matchups-table .no-decision {
    color: #6c757d;
    font-weight: bold;
}

/* Away game highlighting */
.historical-matchups-table tbody tr.away-game {
    background-color: #f8f9ff !important;
    border-left: 3px solid #007acc;
}

.historical-matchups-table tbody tr.away-game:hover {
    background-color: #f0f4ff !important;
}

.historical-matchups-table tbody tr.away-game td {
    background-color: inherit !important;
}


/* Section Subtitles */
.section-subtitle {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9em;
    padding: 6px 10px;
    background: #e9ecef;
    border-radius: 4px;
    border-left: 3px solid #4caf50;
}

/* Recent Games and Head-to-Head Sections */
.recent-games-section {
    margin-bottom: 15px;
}

.head-to-head-section {
    margin-top: 15px;
}

.h2h-summary {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #856404;
    text-align: center;
}

.h2h-table {
    margin-top: 8px;
}

.h2h-table th {
    background: #ffc107;
    color: #212529;
    border-color: #e0a800;
}

/* Mobile responsiveness for historical matchups */
@media (max-width: 768px) {
    .historical-matchups-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .historical-matchups-container {
        padding: 15px;
    }
    
    .historical-section-title {
        font-size: 1.0em;
        padding: 8px;
    }
    
    .historical-team-section {
        padding: 12px;
    }
    
    .historical-matchups-table {
        font-size: 0.8em;
    }
    
    .historical-matchups-table th,
    .historical-matchups-table td {
        padding: 4px 2px;
        font-size: 0.8em;
    }
    
    .section-subtitle {
        font-size: 0.85em;
        padding: 5px 8px;
    }
    
    .h2h-summary {
        font-size: 0.8em;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .historical-matchups-container {
        padding: 12px;
    }
    
    .historical-matchups-table {
        font-size: 0.75em;
    }
    
    .historical-matchups-table th,
    .historical-matchups-table td {
        padding: 3px 1px;
        font-size: 0.75em;
    }
    
    .section-subtitle {
        font-size: 0.8em;
        padding: 4px 6px;
    }
    
    .h2h-summary {
        font-size: 0.75em;
        padding: 5px 8px;
    }
}