/* NHL Comparison Tool Styles */

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f8fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 10px 0;
    color: #000;
    font-size: 2.5em;
}

.logo-small {
    max-width: 120px;
    margin: 15px auto;
    display: block;
}

.nhl-logo {
    max-width: 100px;
}

/* Selection Container */
.selection-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.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;
    font-size: 16px;
}

select, input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 480px;
    box-sizing: border-box;
}

select:focus, input[type="date"]:focus {
    outline: none;
    border-color: #111;
}

#game-select-container {
    min-height: 50px;
}

/* Division Indicator */
.division-indicator {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    font-weight: 600;
    border-radius: 5px;
    display: none;
}

.division-indicator.division-game {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.division-indicator.conference-game {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffb74d;
}

.division-indicator.inter-conference {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* Tab Container */
.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.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;
    min-width: 150px;
}

.tab-button.active {
    background: #fff;
    color: #111;
    border-bottom-color: #111;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Comparison Container */
.comparison-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

/* Teams Header */
.teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.team-info {
    flex: 1;
    text-align: center;
}

.team-logo-container {
    margin-bottom: 10px;
}

.team-logo {
    max-width: 80px;
    height: auto;
}

.team-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.team-record {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.vs-divider {
    font-size: 2em;
    font-weight: 900;
    color: #adb5bd;
    padding: 0 30px;
}

/* Coming Soon Placeholder */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.coming-soon-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.coming-soon h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #495057;
}

.coming-soon p {
    font-size: 1.1em;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Tables (for future use) */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.stats-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

/* Stat comparison row */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:hover {
    background: #f8f9fa;
}

.stat-label {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.stat-value {
    flex: 0 0 120px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}

.stat-value.better {
    color: #28a745;
}

.stat-value.worse {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .teams-header {
        flex-direction: column;
        gap: 20px;
    }

    .vs-divider {
        padding: 10px 0;
        font-size: 1.5em;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    select, input[type="date"] {
        width: 100%;
    }

    .selection-row {
        flex-direction: column;
        align-items: stretch;
    }

    label {
        text-align: left;
    }

    .stat-row {
        flex-direction: column;
        gap: 8px;
    }

    .stat-value {
        flex: 1;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Error State */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    text-align: center;
}

/* Playoff Indicators (for NHL playoff race) */
.playoff-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}

.playoff-indicator.division-leader {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    border: 1px solid #0d47a1;
}

.playoff-indicator.wild-card {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    color: #fff;
    border: 1px solid #1b5e20;
}

.playoff-indicator.in-hunt {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: 1px solid #ef6c00;
}

.playoff-indicator.eliminated {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: #fff;
    border: 1px solid #424242;
}

/* ===== NHL STANDINGS STYLES ===== */

/* Callout Sections */
.callout-section {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.callout-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.callout-section p {
    margin: 0;
    font-size: 1.05em;
}

.divisional-callout {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    color: #0d47a1;
}

.conference-callout {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #f57c00;
    color: #e65100;
}

.inter-conference-callout {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #7b1fa2;
    color: #4a148c;
}

/* Team Standings Row */
.team-standings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
    margin-top: 30px;
}

/* Team Card - Modern Design */
.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 3px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.team-card.away-card {
    border-top: 6px solid #2196f3;
}

.team-card.home-card {
    border-top: 6px solid #4caf50;
}

.team-card-header {
    padding: 18px 20px;
    border-bottom: 3px solid rgba(0,0,0,0.2);
    position: relative;
}

.team-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.team-card-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.team-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

/* Team Record Display */
.team-record-display {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 3px solid #e9ecef;
    text-align: center;
}

.main-record {
    font-size: 3.2em;
    font-weight: 900;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: -2px;
    line-height: 1;
}

.pts-display {
    font-size: 1.4em;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}

.win-pct {
    font-size: 1.1em;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.win-pct.stat-better {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: 2px solid #43a047;
}

.win-pct.stat-worse {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: #fff;
    border: 2px solid #d32f2f;
}

/* Rankings Section */
.rankings-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #eceff1 0%, #f5f5f5 100%);
    border-bottom: 2px solid #ddd;
}

.ranking-item {
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #fff;
}

.ranking-item.rank-elite {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.ranking-item.rank-elite .rank-value {
    color: #2e7d32;
}

.ranking-item.rank-good {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
}

.ranking-item.rank-good .rank-value {
    color: #e65100;
}

.ranking-item.rank-poor {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

.ranking-item.rank-poor .rank-value {
    color: #c62828;
}

.rank-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rank-value {
    display: block;
    font-size: 1.6em;
    font-weight: 900;
    line-height: 1;
}

/* Stats Grid - Side by Side Layout */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 2px solid #f0f0f0;
}

.stats-column {
    min-width: 0;
}

.stats-column h4 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
}

/* Stat Rows */
.stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0;
    margin-bottom: 6px;
    border-radius: 5px;
    border-left: 3px solid transparent;
    overflow: hidden;
    transition: all 0.2s ease;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row:hover {
    transform: translateX(2px);
}

.stat-row.stat-better {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.12) 0%, rgba(76, 175, 80, 0.03) 100%);
    border-left-color: #4caf50;
}

.stat-row.stat-worse {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.12) 0%, rgba(244, 67, 54, 0.03) 100%);
    border-left-color: #f44336;
}

.stat-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    padding: 10px 12px;
    background: rgba(0,0,0,0.02);
    border-right: 1px solid rgba(0,0,0,0.06);
}

.stat-value {
    font-weight: 700;
    color: #000;
    font-size: 1em;
    padding: 10px 12px;
    text-align: center;
    min-width: 100px;
}

.stat-row.stat-better .stat-value {
    color: #2e7d32;
    font-weight: 800;
}

.stat-row.stat-worse .stat-value {
    color: #c62828;
    font-weight: 800;
}

.stat-highlight {
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

.per-game {
    font-weight: 500;
    color: #888;
    font-size: 0.75em;
}

/* Current Streak Box - Extra Compact */
.current-streak-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffa726;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 12px 16px;
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.12);
}

.current-streak-box .streak-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.current-streak-box .streak-label {
    font-weight: 700;
    color: #e65100;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-streak-box .streak-value {
    font-size: 1.1em;
    font-weight: 900;
    line-height: 1;
}

.current-streak-box .streak-value.positive-streak {
    color: #2e7d32;
}

.current-streak-box .streak-value.negative-streak {
    color: #c62828;
}

.current-streak-box .streak-value.ot-streak {
    color: #f57c00;
}

.current-streak-box .last-five-games {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.current-streak-box .last-five-games span {
    flex: 1;
    text-align: center;
    padding: 4px 6px;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.75em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    max-width: 32px;
}

.current-streak-box .last-five-games .game-w {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
}

.current-streak-box .last-five-games .game-l {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: #fff;
}

.current-streak-box .last-five-games .game-ot {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #fff;
}

/* Division Standings Section */
.division-standings-section {
    margin-bottom: 30px;
}

.division-standings-section h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #000;
    border-bottom: 3px solid #111;
    padding-bottom: 10px;
}

.standings-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.standings-half h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    border-bottom: 2px solid #666;
}

/* Division Table */
.division-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.division-table thead {
    background: linear-gradient(135deg, #424242 0%, #212121 100%);
    color: #fff;
}

.division-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.division-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.division-table tbody tr:hover {
    background: #f5f5f5;
}

.division-table tbody tr.highlighted-team {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    font-weight: 700;
    border-left: 4px solid #ff9800;
}

.division-table tbody tr.highlighted-team:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}

.position-cell {
    font-weight: 700;
    color: #1976d2;
    font-size: 1.05em;
}

.team-name-cell {
    font-weight: 700;
    text-align: left !important;
    color: #000;
}

.bold-cell {
    font-weight: 900;
    color: #000;
}

.positive {
    color: #2e7d32;
    font-weight: 700;
}

.negative {
    color: #c62828;
    font-weight: 700;
}

.win-streak {
    color: #2e7d32;
    font-weight: 700;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 4px;
}

.loss-streak {
    color: #c62828;
    font-weight: 700;
    background: #ffebee;
    padding: 4px 8px;
    border-radius: 4px;
}

.ot-streak {
    color: #f57c00;
    font-weight: 700;
    background: #fff3e0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Betting Insights Section */
.betting-insights-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 3px solid #4caf50;
    border-radius: 12px;
    padding: 18px;
    margin-top: 0;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.betting-insights-section h3 {
    margin: 0 0 14px 0;
    font-size: 1.3em;
    font-weight: 800;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #66bb6a;
    padding-bottom: 8px;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-list li {
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border-left: 5px solid #4caf50;
    font-size: 0.95em;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insights-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.insights-list li:last-child {
    margin-bottom: 0;
}

/* Game Logs Tables Section */
.game-logs-tables-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.game-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.game-logs-table thead {
    background: linear-gradient(135deg, #37474f 0%, #455a64 100%);
    color: #fff;
}

.game-logs-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75em;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.game-logs-table th:last-child {
    border-right: none;
}

.game-logs-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.game-logs-table tr.win-result {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.08) 0%, rgba(255,255,255,1) 100%);
}

.game-logs-table tr.loss-result {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.08) 0%, rgba(255,255,255,1) 100%);
}

.game-logs-table tbody tr:hover {
    background: #f5f5f5;
}

.game-logs-table .team-abbrev-cell {
    font-weight: 700;
    color: #1976d2;
}

.game-logs-table .rank-cell {
    font-weight: 800;
    padding: 6px 8px;
}

.game-logs-table .rank-cell.rank-elite {
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.15);
}

.game-logs-table .rank-cell.rank-good {
    color: #e65100;
    background: rgba(255, 152, 0, 0.15);
}

.game-logs-table .rank-cell.rank-poor {
    color: #c62828;
    background: rgba(244, 67, 54, 0.15);
}

.game-logs-table .win-result .bold-cell {
    color: #2e7d32;
    font-weight: 900;
}

.game-logs-table .loss-result .bold-cell {
    color: #c62828;
    font-weight: 900;
}

/* Responsive Design for Standings */
@media (max-width: 1024px) {
    .team-standings-row {
        grid-template-columns: 1fr;
    }

    .standings-split {
        grid-template-columns: 1fr;
    }

    .division-table {
        font-size: 0.85em;
    }

    .division-table th,
    .division-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 768px) {
    .team-standings-row {
        grid-template-columns: 1fr;
    }

    .standings-split {
        grid-template-columns: 1fr;
    }

    .division-table {
        font-size: 0.75em;
    }

    .callout-section h3 {
        font-size: 1.1em;
    }

    .main-record {
        font-size: 2.2em;
    }

    .pts-display {
        font-size: 1.1em;
    }

    .rankings-section {
        padding: 15px;
        gap: 8px;
    }

    .ranking-item {
        padding: 8px 6px;
    }

    .rank-value {
        font-size: 1.3em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }

    .stats-column h4 {
        font-size: 0.9em;
    }

    .stat-row {
        padding: 8px 10px;
        margin-bottom: 5px;
    }

    .stat-label,
    .stat-value {
        font-size: 0.85em;
    }

    .current-streak-box {
        padding: 6px 10px;
        margin: 10px 12px;
    }

    .current-streak-box .streak-label {
        font-size: 0.7em;
    }

    .current-streak-box .streak-value {
        font-size: 1em;
    }

    .current-streak-box .last-five-games span {
        padding: 3px 4px;
        font-size: 0.7em;
        max-width: 28px;
    }

    .betting-insights-section {
        padding: 18px;
    }

    .betting-insights-section h3 {
        font-size: 1.3em;
    }
}

/* Game Logs Comparison Table Styles - Compact 5-Column Layout */
.game-logs-comparison-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 20px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.header-away,
.header-home {
    font-size: 0.95em;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-away {
    justify-content: flex-start;
}

.header-home {
    justify-content: flex-end;
}

.header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.header-stat {
    font-size: 0.75em;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 110px auto 110px 1fr;
    gap: 10px;
    padding: 6px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.15s ease;
}

.comparison-row:hover {
    background: #e9ecef;
}

.stat-name-left,
.stat-name-right {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.stat-name-left {
    text-align: right;
    padding-right: 8px;
    justify-self: end;
}

.stat-name-right {
    text-align: left;
    padding-left: 8px;
    justify-self: start;
}

.away-value,
.home-value {
    font-size: 1em;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
    width: 110px;
    justify-self: center;
    box-sizing: border-box;
}

.away-value.stat-better,
.home-value.stat-better {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #28a745;
}

.away-value.stat-worse,
.home-value.stat-worse {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #dc3545;
}

.advantage-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.advantage-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid;
    padding: 2px;
    background: white;
    object-fit: contain;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Current Form Section - Compact 2-Row Layout */
.current-form-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-top: 15px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.form-away,
.form-home {
    text-align: center;
    min-width: 0;
    overflow: visible;
}

.form-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streak-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.streak-value {
    font-size: 1.1em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.streak-value.positive-streak {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.streak-value.negative-streak {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.form-games {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
}

.form-games .game-w,
.form-games .game-l {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75em;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-games .game-w {
    background: #28a745;
    color: white;
}

.form-games .game-l {
    background: #dc3545;
    color: white;
}

.form-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #adb5bd 20%, #adb5bd 80%, transparent);
}

/* Responsive adjustments for comparison table */
@media (max-width: 768px) {
    .comparison-header {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
    }

    .header-away,
    .header-home {
        font-size: 0.8em;
        padding: 6px 8px;
    }

    .header-logo {
        width: 18px;
        height: 18px;
    }

    .header-stat {
        font-size: 0.65em;
    }

    .comparison-row {
        grid-template-columns: minmax(90px, auto) 80px auto 80px minmax(90px, auto);
        gap: 6px;
        padding: 5px 8px;
    }

    .stat-name-left,
    .stat-name-right {
        font-size: 0.7em;
        padding-right: 4px;
    }

    .stat-name-left {
        padding-right: 4px;
    }

    .stat-name-right {
        padding-left: 4px;
    }

    .away-value,
    .home-value {
        font-size: 0.9em;
        padding: 6px 8px;
    }

    .advantage-logo {
        width: 20px;
        height: 20px;
    }

    .current-form-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-divider {
        display: none;
    }

    .streak-value {
        font-size: 0.95em;
        padding: 3px 10px;
    }

    .form-games .game-w,
    .form-games .game-l {
        padding: 3px 6px;
        font-size: 0.7em;
        min-width: 24px;
    }
}

/* ===== GOALIE STATS STYLES ===== */

/* Goalie Comparison Container */
.goalies-comparison-container {
    margin-top: 20px;
}

/* Goalie Cards Row */
.goalies-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* Individual Goalie Card */
.goalie-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 3px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.goalie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.goalie-card.away-goalie {
    border-top: 6px solid #2196f3;
}

.goalie-card.home-goalie {
    border-top: 6px solid #4caf50;
}

/* Goalie Card Header */
.goalie-card-header {
    padding: 18px 20px;
    border-bottom: 3px solid rgba(0,0,0,0.2);
    position: relative;
}

.goalie-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.goalie-card-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.6em;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.goalie-team-name {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

/* Confirmation Status Badge */
.confirmation-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.confirmation-status.confirmed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #1e7e34;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.confirmation-status.unconfirmed {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    border: 2px solid #e0a800;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.confirmation-time {
    display: block;
    font-size: 0.75em;
    margin-top: 4px;
    font-weight: 500;
    opacity: 0.9;
}

/* GAA Display Section */
.gaa-display-section {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 3px solid #e9ecef;
    text-align: center;
}

.gaa-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gaa-value {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -2px;
    line-height: 1;
}

.gaa-rating {
    font-size: 1.2em;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* GAA Rating Colors - Based on Betting Context */
.gaa-rating.elite {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: 2px solid #bd2130;
}

.gaa-rating.good {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    border: 2px solid #e0a800;
}

.gaa-rating.average {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: 2px solid #1e7e34;
}

.gaa-rating.bad {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: 2px solid #43a047;
}

.gaa-betting-advice {
    display: block;
    font-size: 0.75em;
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.9;
}

/* Goalie Rank Display */
.goalie-rank-display {
    padding: 16px 20px;
    background: linear-gradient(135deg, #eceff1 0%, #f5f5f5 100%);
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.goalie-rank-display .rank-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.goalie-rank-display .rank-value {
    font-size: 2.2em;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.goalie-rank-display .rank-value.rank-elite {
    color: #2e7d32;
}

.goalie-rank-display .rank-value.rank-good {
    color: #1976d2;
}

.goalie-rank-display .rank-value.rank-average {
    color: #f57c00;
}

.goalie-rank-display .rank-value.rank-poor {
    color: #c62828;
}

.goalie-rank-display .rank-description {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
}

/* Goalie Stats Grid */
.goalie-stats-grid {
    padding: 20px;
    background: #f8f9fa;
}

.goalie-stats-grid .stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 3px solid transparent;
    overflow: hidden;
}

.goalie-stats-grid .stat-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    padding: 10px 12px;
    background: rgba(0,0,0,0.02);
    border-right: 1px solid rgba(0,0,0,0.06);
}

.goalie-stats-grid .stat-value {
    font-weight: 700;
    color: #000;
    font-size: 1.1em;
    padding: 10px 12px;
    text-align: center;
    min-width: 100px;
}

/* Goalie Record Display */
.goalie-record-display {
    padding: 16px 20px;
    background: linear-gradient(135deg, #eceff1 0%, #f5f5f5 100%);
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.goalie-record {
    font-size: 1.8em;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.goalie-shutouts {
    font-size: 0.95em;
    color: #666;
    font-weight: 600;
}

/* Goalie Matchup Insights */
.goalie-matchup-callout {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 3px solid #4caf50;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.goalie-matchup-callout.mismatch {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.goalie-matchup-callout.elite-matchup {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
}

.goalie-matchup-callout h3 {
    margin: 0 0 14px 0;
    font-size: 1.3em;
    font-weight: 800;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #66bb6a;
    padding-bottom: 8px;
}

.goalie-matchup-callout.mismatch h3 {
    color: #e65100;
    border-bottom-color: #ffb74d;
}

.goalie-matchup-callout.elite-matchup h3 {
    color: #c62828;
    border-bottom-color: #e57373;
}

/* Goalie Comparison Stats Table */
.goalie-comparison-stats {
    margin-top: 25px;
}

.goalie-stats-header {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.goalie-comparison-row {
    display: grid;
    grid-template-columns: 1fr 120px auto 120px 1fr;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.15s ease;
}

.goalie-comparison-row:hover {
    background: #e9ecef;
}

.goalie-stat-name-left,
.goalie-stat-name-right {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
}

.goalie-stat-name-left {
    text-align: right;
    padding-right: 8px;
}

.goalie-stat-name-right {
    text-align: left;
    padding-left: 8px;
}

.goalie-away-value,
.goalie-home-value {
    font-size: 1.05em;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 4px;
    text-align: center;
    width: 120px;
}

.goalie-away-value.stat-better,
.goalie-home-value.stat-better {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #28a745;
}

.goalie-away-value.stat-worse,
.goalie-home-value.stat-worse {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #dc3545;
}

/* No Data State */
.goalie-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.goalie-no-data-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.6;
}

.goalie-no-data h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #495057;
}

.goalie-no-data p {
    font-size: 1em;
    color: #6c757d;
}

/* Responsive Design for Goalies */
@media (max-width: 1024px) {
    .goalies-cards-row {
        grid-template-columns: 1fr;
    }

    .goalie-comparison-row {
        grid-template-columns: minmax(80px, auto) 100px auto 100px minmax(80px, auto);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .goalies-cards-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gaa-value {
        font-size: 2.8em;
    }

    .goalie-card-header h2 {
        font-size: 1.3em;
    }

    .goalie-comparison-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
    }

    .goalie-stat-name-left,
    .goalie-stat-name-right {
        text-align: center;
    }

    .goalie-away-value,
    .goalie-home-value {
        width: 100%;
    }

    .advantage-logo-cell {
        display: none;
    }
}

/* ============================================
   LINE COMBINATIONS TAB STYLES
   ============================================ */

/* Line Combos Insights Section */
.line-combos-insights-section {
    background: linear-gradient(135deg, #1a1f35 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.line-combos-insights-section h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Team Sections */
.team-lines-section {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.team-section-header {
    padding: 20px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-section-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-section-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.team-section-name {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-team-badge,
.away-team-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.home-team-badge {
    background: rgba(76, 175, 80, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.away-team-badge {
    background: rgba(255, 152, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Position Group Header (Forward Lines / Defense Pairs) */
.position-group-header {
    padding: 15px 30px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

/* Team Lines Grid */
.team-lines-grid {
    padding: 20px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Individual Line Card */
.line-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.line-card.no-stat-match {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

/* Line Card Header */
.line-card-header-with-badge {
    padding: 12px 20px;
    background: #fff;
    border-bottom: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.line-card-header-simple {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.line-number-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.bet-signal-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.line-score-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8em;
    white-space: nowrap;
    /* Background and color set dynamically via inline styles */
}

/* Line Players */
.line-players {
    padding: 15px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    display: block;
    text-align: center;
}

.pp1-badge {
    background: linear-gradient(135deg, #FFB81C 0%, #FF9800 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
    border: 2px solid #FF9800;
}

.pp2-badge {
    background: linear-gradient(135deg, #A0C4FF 0%, #6495ED 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
    border: 2px solid #6495ED;
}

/* Line Metrics */
.line-metrics {
    padding: 15px 20px;
    background: #fff;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
}

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

.metric-row.small {
    font-size: 0.9em;
    padding: 8px 20px;
}

.metric-label {
    font-weight: 600;
    color: #495057;
    cursor: help;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.metric-icon {
    font-size: 1.1em;
    display: inline-block;
    cursor: help;
}

.metric-value {
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
    min-width: 140px;
    white-space: nowrap;
}

/* Goalie Section */
.line-goalie-section {
    border-top: 2px solid #e9ecef;
}

.goalie-section-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Goalie Info */
.line-goalie-info {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
}

.goalie-name {
    font-weight: 700;
    font-size: 1.05em;
    color: #2c3e50;
    margin-bottom: 6px;
}

.goalie-stats {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 8px;
}

.goalie-confirmed {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.goalie-confirmed.confirmed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.goalie-confirmed.unconfirmed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Line Notes */
.line-notes {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
}

.note-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Parlay Viability Tag */
.line-parlay-tag {
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95em;
    border-top: 2px solid #e9ecef;
}

.parlay-high {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
}

.parlay-medium {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000;
}

.parlay-low {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}

/* Line Actions */
.line-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.bet-button {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Line Scoring Breakdown */
.line-scoring-breakdown {
    padding: 10px 20px;
    background: #e9ecef;
    border-top: 2px solid #dee2e6;
    text-align: center;
}

.breakdown-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
}

/* No Data Card */
.line-no-data {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.no-data-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.line-no-data p {
    margin: 8px 0;
}

.no-data-note {
    font-size: 0.9em;
    color: #adb5bd;
}

/* Tier-specific card borders */
.line-card.tier-smash {
    border-left: 5px solid #10B981;
}

.line-card.tier-good {
    border-left: 5px solid #F59E0B;
}

.line-card.tier-caution {
    border-left: 5px solid #F97316;
}

.line-card.tier-fade {
    border-left: 5px solid #EF4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-lines-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .team-section-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .team-section-logo {
        width: 50px;
        height: 50px;
    }

    .team-section-name {
        font-size: 1.4em;
    }

    .team-section-info {
        width: 100%;
    }

    .line-card-header-with-badge {
        flex-direction: column;
        align-items: flex-start;
    }

    .line-actions {
        flex-direction: column;
    }

    .bet-button {
        width: 100%;
    }
}

/* ============================================================================
   v1.4 NEW ROW-BASED LAYOUT - Modern, Scannable Design
   ============================================================================ */

/* Replace grid with vertical list */
.team-lines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Line Row - Main Container */
.line-row {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border-left: 5px solid transparent;
}

.line-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateX(2px);
}

/* Tier colors */
.line-row.tier-smash { border-left-color: #10B981; }
.line-row.tier-good { border-left-color: #F59E0B; }
.line-row.tier-caution { border-left-color: #F97316; }
.line-row.tier-fade { border-left-color: #EF4444; }

/* No stat row */
.line-row.no-stat {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Main Row (Always Visible) */
.line-row-main {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Left Side: Labels and Badges */
.line-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 300px;
}

.line-label {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.signal-badge {
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.conf-badge {
    font-weight: 600;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
}

.pp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
}

.warning-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}

/* Players */
.line-row-players {
    flex: 1;
    min-width: 250px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Stats Pills */
.line-row-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 90px;
    border: 2px solid;
}

.stat-pill.pass {
    background: #f0fdf4;
    border-color: #10B981;
}

.stat-pill.fail {
    background: #fef2f2;
    border-color: #EF4444;
}

.stat-icon {
    font-size: 16px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.backstop-tag {
    font-size: 9px;
    font-weight: 700;
    background: #F59E0B;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    margin-top: 2px;
}

/* Toggle Button */
.line-row-toggle {
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: auto;
}

.line-row-toggle:hover {
    background: #e5e7eb;
}

/* Details Section (Collapsed by Default) */
.line-row-details {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-header {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.detail-row span {
    color: #6b7280;
}

.detail-row strong {
    color: #1f2937;
    font-weight: 700;
}

.backstop-note {
    margin-top: 12px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
}

.details-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.note-pill {
    font-size: 12px;
    padding: 6px 12px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 6px;
    font-weight: 600;
}

.details-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.parlay-tag {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}

.parlay-tag.parlay-high {
    background: #d1fae5;
    color: #065f46;
}

.parlay-tag.parlay-medium-high {
    background: #fef3c7;
    color: #92400e;
}

.parlay-tag.parlay-medium {
    background: #fed7aa;
    color: #7c2d12;
}

.parlay-tag.parlay-low {
    background: #fee2e2;
    color: #991b1b;
}

.parlay-tag.parlay-very {
    background: #fecaca;
    color: #7f1d1d;
}

.score-tag {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.confirmed {
    color: #10B981;
}

.unconfirmed {
    color: #F59E0B;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .line-row-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .line-row-left {
        min-width: 100%;
    }

    .line-row-players {
        min-width: 100%;
    }

    .line-row-stats {
        width: 100%;
    }

    .stat-pill {
        flex: 1;
        min-width: 70px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Hide old grid-based styles */
.team-lines-grid {
    display: none !important;
}

.line-card {
    display: none !important;
}

/* ============================================================================
   v1.4.1 STAT CARDS - Replace pills with information-dense cards
   ============================================================================ */

/* Stat Cards Grid */
.line-row-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px 16px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Individual Stat Card */
.stat-card {
    background: #fff;
    border-radius: 8px;
    border: 2px solid;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
}

.stat-card.pass {
    border-color: #10B981;
    background: linear-gradient(to bottom, #f0fdf4 0%, #fff 100%);
}

.stat-card.fail {
    border-color: #EF4444;
    background: linear-gradient(to bottom, #fef2f2 0%, #fff 100%);
}

/* Card Header */
.stat-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.stat-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Main Content */
.stat-card-main {
    flex: 1;
}

.stat-primary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-metric {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

.stat-value-large {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-need {
    font-size: 10px;
    color: #ef4444;
    font-weight: 600;
    margin-top: 4px;
}

.stat-sub {
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}

.stat-warning {
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 4px;
}

/* Backstop Section */
.stat-card-backstop {
    padding-top: 8px;
    border-top: 1px dashed #d1d5db;
    margin-top: 4px;
}

.backstop-title {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.backstop-checks {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.backstop-checks span {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.backstop-checks span.pass {
    color: #059669;
    background: #d1fae5;
}

.backstop-checks span.fail {
    color: #dc2626;
    background: #fee2e2;
}

/* Mobile: Stack cards */
@media (max-width: 968px) {
    .line-row-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .line-row-stats {
        grid-template-columns: 1fr;
    }
}

/* Hide old pill styles */
.stat-pill {
    display: none !important;
}

/* ============================================================================
   v1.4.1 SIMPLIFIED DETAILS - No redundancy
   ============================================================================ */

.details-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-section {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.detail-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 13px;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-grid-simple strong {
    color: #1f2937;
    font-weight: 700;
}

/* Hide old detail-card and detail-grid styles */
.details-grid,
.detail-card {
    display: none !important;
}

/* ============================================================================
   v1.4.2 FINAL UX POLISH - Bigger cards, centered content, compact left
   ============================================================================ */

/* Compact left side - square it up */
.line-row-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: auto;
    max-width: fit-content;
}

.line-label {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

.signal-badge {
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.conf-badge {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.pp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
}

/* NEW: Parlay badge at top */
.parlay-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.parlay-badge.parlayhigh {
    background: #d1fae5;
    color: #065f46;
}

.parlay-badge.parlaymediumhigh {
    background: #fef3c7;
    color: #92400e;
}

.parlay-badge.parlaymedium {
    background: #fed7aa;
    color: #7c2d12;
}

.parlay-badge.parlaylow {
    background: #fee2e2;
    color: #991b1b;
}

.parlay-badge.parlayverylow {
    background: #fecaca;
    color: #7f1d1d;
}

/* BIGGER stat cards with LARGER fonts */
.line-row-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px 16px 20px;
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    border: 3px solid;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Center header */
.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.stat-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center main content */
.stat-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stat-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-metric {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}

.stat-value-large {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    text-align: center;
}

.stat-need {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.stat-comparison {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.stat-comparison.pass {
    color: #059669;
}

.stat-comparison.fail {
    color: #ef4444;
}

.stat-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}

.stat-warning {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 6px;
    text-align: center;
}

.stat-warning-large {
    font-size: 15px;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 8px;
    text-align: center;
}

.goalie-gaa-badge {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.goalie-gaa-badge.pass {
    background: #d1fae5;
    color: #065f46;
}

.goalie-gaa-badge.fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Center backstop section */
.stat-card-backstop {
    padding-top: 10px;
    border-top: 1px dashed #d1d5db;
    margin-top: 6px;
    width: 100%;
}

.backstop-title {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    text-align: center;
}

.backstop-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.backstop-checks span {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Empty details message */
.details-empty {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-style: italic;
}

/* Hide old parlay footer */
.details-footer {
    display: none !important;
}

/* v1.4.3 Updated layout with larger fonts */
.line-row-left-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 80px;
}

.line-label-large {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.line-row-toggle {
    background: none;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.line-row-toggle:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.line-separator {
    width: 2px;
    background-color: #1f2937;
    margin: 0 20px;
    align-self: stretch;
}

.line-row-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.signal-badge-large {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.conf-badge-large {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.parlay-badge-large {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

/* Parlay: High */
.parlay-badge-large.parlayhigh {
    background: #d1fae5;
    color: #065f46;
}

/* Parlay: Medium-High */
.parlay-badge-large.parlaymediumhigh {
    background: #bfdbfe;
    color: #1e40af;
}

/* Parlay: Medium */
.parlay-badge-large.parlaymedium {
    background: #fef3c7;
    color: #92400e;
}

/* Parlay: Low */
.parlay-badge-large.parlaylow {
    background: #fee2e2;
    color: #991b1b;
}

/* Parlay: Very Low */
.parlay-badge-large.parlayverylow {
    background: #fecaca;
    color: #7f1d1d;
}

.players-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.player-names {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.pp-badges-inline {
    display: flex;
    gap: 6px;
}

.pp-badges-inline .pp-badge {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #dbeafe;
    color: #1e40af;
}
