/* Home page specific styles */

.hero-section {
    background: linear-gradient(135deg, #DC143C 0%, #003893 50%, #1a1a2e 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
    animation: slideDown 0.6s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Background animated elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 56, 147, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Flag icon enhancement */
.hero-section .flag-lg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== SEASON HIGHLIGHTS SECTION ===== */
.season-highlight {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 3rem;
    border: none;
}

.season-header {
    text-align: center;
    margin-bottom: 2rem;
}

.season-header h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.season-matches {
    display: inline-block;
    background: #eef0f3;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.season-stats-grid {
    display: grid;
    /* Changed from 350px to 300px to fit 3 columns on standard laptops (1024px+) */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.season-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem; /* Reduced padding */
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    border-top: 4px solid #DC143C; /* Top accent */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Varying accent colors for visual interest */
.season-card:nth-child(2) { border-top-color: #003893; }
.season-card:nth-child(3) { border-top-color: #FFD700; }
.season-card:nth-child(4) { border-top-color: #28a745; }
.season-card:nth-child(5) { border-top-color: #6f42c1; }
.season-card:nth-child(6) { border-top-color: #17a2b8; }

.season-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.season-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.season-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.2s ease;
}

.season-item:hover {
    background: #f8f9fa;
    border-color: #eee;
}

.rank-badge {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #777;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Highlight top 3 ranks */
.season-item:nth-child(1) .rank-badge { background: #FFD700; color: #fff; }
.season-item:nth-child(2) .rank-badge { background: #C0C0C0; color: #fff; }
.season-item:nth-child(3) .rank-badge { background: #CD7F32; color: #fff; }

.stats-card table tr:nth-child(1) .rank-badge { background: #FFD700; color: #fff; }
.stats-card table tr:nth-child(2) .rank-badge { background: #C0C0C0; color: #fff; }
.stats-card table tr:nth-child(3) .rank-badge { background: #CD7F32; color: #fff; }


.player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.player-info .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.player-name-season {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.player-stat {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.2;
}

.stat-highlight {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: auto;
    text-align: right;
}

/* Footer link area */
.card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f5f5f5;
    text-align: right;
}

.card-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #003893;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}
.card-footer a:hover {
    color: #DC143C;
}

/* Standings Table Compact */
.standings-table table {
    width: 100%;
    font-size: 0.85rem;
    margin-top: 0;
}

.standings-table th,.stats-card th {
    background: #f8f9fa;
    color: #444;
    font-weight: 600;
    padding: 0.5rem;
    border-bottom: 2px solid #eee;
}

.standings-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.team-points {
    color: #003893;
}

/* Upcoming Matches specific */
.upcoming-item {
    padding: 0.6rem;
    border-left: 3px solid #FFA500;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #FFA500;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== ALL-TIME SECTION ===== */
.all-time-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a2e;
    font-weight: 800;
    padding-bottom: 0;
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    border-top: 4px solid #DC143C;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.stats-card h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-card.accent-blue {
    border-top-color: #003893;
}

.stats-card.accent-gold {
    border-top-color: #FFD700;
}

.stats-card.accent-green {
    border-top-color: #28a745;
}

.stats-card.accent-purple {
    border-top-color: #6f42c1;
}

.stats-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    flex: 1;
    margin-top: 0 !important;
}

.stats-card th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
}

.stats-card tbody tr:last-child td {
    border-bottom: none;
}

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

.player-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.player-name .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.player-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
    vertical-align: middle;
}

.player-name a:hover {
    color: #DC143C;
}

.stats-value {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.secondary-stat {
    color: #888;
    font-size: 0.85rem;
}

.quick-links {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-links h2 {
    border-bottom: 2px solid #003893;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.quick-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-links li {
    background: linear-gradient(135deg, #DC143C 0%, #003893 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.quick-links li:hover {
    transform: scale(1.05);
}

.quick-links a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    text-decoration: none;
}

.quick-links a:hover {
    opacity: 0.9;
}

/* ===== UPCOMING MATCHES CARD ===== */
.upcoming-matches-card {
    grid-column: span 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #DC143C;
}

.card-header h3 {
    margin: 0;
    color: #003893;
    font-size: 1rem;
}

.view-all-link {
    color: #DC143C;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #003893;
    text-decoration: underline;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-height: 280px; /* Limit height */
    overflow-y: auto; /* Allow scroll if needed */
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #FFA500;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent squishing */
    min-height: 45px;
}

.match-date-badge {
    background: #DC143C;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.team-link {
    color: #003893;
    text-decoration: none;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

.vs-text {
    color: #999;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.live-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse 1.5s infinite;
    margin-left: 0.3rem;
    flex-shrink: 0;
}

/* ===== FIX HIGHEST INDIVIDUAL SCORE TABLE ===== */
/* Ensure the stats value stays on one line */
.stats-card td:last-child {
    text-align: right;
    padding-right: 0.75rem;
}

.stats-card .stats-value {
    display: inline-block;
    white-space: nowrap;
    min-width: auto;
    max-width: 100%;
}

/* Compress table padding for better fit */
.stats-card table {
    font-size: 0.88rem; /* Slightly smaller font */
}

.stats-card td {
    padding: 0.5rem 0.4rem; /* Reduced padding */
}

.stats-card th {
    padding: 0.4rem 0.4rem;
}

.player-name a {
    max-width: 120px; /* Slightly reduced max-width */
    font-size: 0.9rem;
}

/* Rank cell compact */
.rank-cell {
    width: 35px;
    padding: 0.5rem 0.25rem !important;
}

@media (max-width: 1400px) {
    /* Removed fixed grid-template-columns for stats-grid */
}

@media (max-width: 1200px) {
    .hero-section {
        padding: 3.5rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
    /* Removed fixed grid-template-columns for stats-grid */
}

@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section::before {
        width: 300px;
        height: 300px;
        top: -30%;
        right: -30%;
    }

    .hero-section::after {
        width: 250px;
        height: 250px;
        bottom: -30%;
        left: -30%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 1.5rem;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .season-highlight {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .season-header h2 {
        font-size: 1.8rem;
    }

    .season-card {
        padding: 1rem;
    }
    
    /* Ensure table scrolls if too wide */
    .standings-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .standings-table table {
        min-width: 100%;
    }

    .upcoming-matches-card {
        grid-column: span 1;
    }

    .match-teams {
        font-size: 0.8rem;
    }

    .team-link {
        padding: 0.2rem 0.3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .season-highlight {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .season-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .season-matches {
        font-size: 0.9rem;
    }

    .season-card {
        padding: 1rem 0.75rem;
        border-left: 3px solid #DC143C;
    }

    .season-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .season-list {
        gap: 0.5rem;
    }

    /* Fix: Keep list items in a row for cleaner look */
    .season-item {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rank-badge {
        min-width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin: 0;
        align-self: center;
    }

    .player-info {
        flex: 1;
        flex-direction: column;
        gap: 0.1rem;
        align-items: flex-start;
        min-width: 0; /* Allows text truncation */
    }

    .player-info .flag-icon {
        display: none; /* Hide flag on very small screens to save space */
    }

    .player-name-season {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .player-stat {
        font-size: 0.75rem;
        display: none; /* Hide extra text like "Runs: " */
    }

    .stat-highlight {
        font-size: 1rem;
        min-width: auto;
        text-align: right;
        margin-left: 0.5rem;
    }

    /* Compact table for mobile */
    .standings-table table {
        font-size: 0.8rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Hide less important columns on mobile if needed */
    .standings-table th:nth-child(5), /* NRR */
    .standings-table td:nth-child(5) {
        display: none;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }
}

/* ===== UPCOMING MATCHES OPTIMIZATION ===== */
.upcoming-matches-card {
    grid-column: span 1;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-height: 280px; /* Limit height */
    overflow-y: auto; /* Allow scroll if needed */
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #FFA500;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent squishing */
    min-height: 45px;
}

.match-date-badge {
    background: #DC143C;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.team-link {
    color: #003893;
    text-decoration: none;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

.vs-text {
    color: #999;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.live-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse 1.5s infinite;
    margin-left: 0.3rem;
    flex-shrink: 0;
}

/* ===== FIX HIGHEST INDIVIDUAL SCORE TABLE ===== */
/* Ensure the stats value stays on one line */
.stats-card td:last-child {
    text-align: right;
    padding-right: 0.75rem;
}

.stats-card .stats-value {
    display: inline-block;
    white-space: nowrap;
    min-width: auto;
    max-width: 100%;
}

/* Compress table padding for better fit */
.stats-card table {
    font-size: 0.88rem; /* Slightly smaller font */
}

.stats-card td {
    padding: 0.5rem 0.4rem; /* Reduced padding */
}

.stats-card th {
    padding: 0.4rem 0.4rem;
}

.player-name a {
    max-width: 120px; /* Slightly reduced max-width */
    font-size: 0.9rem;
}

/* Rank cell compact */
.rank-cell {
    width: 35px;
    padding: 0.5rem 0.25rem !important;
}

@media (max-width: 1400px) {
    /* Removed fixed grid-template-columns for stats-grid */
}

@media (max-width: 1200px) {
    .hero-section {
        padding: 3.5rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
    /* Removed fixed grid-template-columns for stats-grid */
}

@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section::before {
        width: 300px;
        height: 300px;
        top: -30%;
        right: -30%;
    }

    .hero-section::after {
        width: 250px;
        height: 250px;
        bottom: -30%;
        left: -30%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 1.5rem;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .season-highlight {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .season-header h2 {
        font-size: 1.8rem;
    }

    .season-card {
        padding: 1rem;
    }
    
    /* Ensure table scrolls if too wide */
    .standings-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .standings-table table {
        min-width: 100%;
    }

    .upcoming-matches-card {
        grid-column: span 1;
    }

    .match-teams {
        font-size: 0.8rem;
    }

    .team-link {
        padding: 0.2rem 0.3rem;
    }

    .upcoming-list {
        max-height: 250px;
    }

    .upcoming-item {
        min-height: 40px;
        padding: 0.4rem 0.5rem;
    }

    .match-date-badge {
        font-size: 0.65rem;
        min-width: 40px;
    }

    .match-teams {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .stats-card td {
        padding: 0.4rem 0.3rem;
        font-size: 0.85rem;
    }

    .stats-value {
        font-size: 0.85rem;
        padding: 0.15rem 0.35rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .season-highlight {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .season-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .season-matches {
        font-size: 0.9rem;
    }

    .season-card {
        padding: 1rem 0.75rem;
        border-left: 3px solid #DC143C;
    }

    .season-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .season-list {
        gap: 0.5rem;
    }

    /* Fix: Keep list items in a row for cleaner look */
    .season-item {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rank-badge {
        min-width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin: 0;
        align-self: center;
    }

    .player-info {
        flex: 1;
        flex-direction: column;
        gap: 0.1rem;
        align-items: flex-start;
        min-width: 0; /* Allows text truncation */
    }

    .player-info .flag-icon {
        display: none; /* Hide flag on very small screens to save space */
    }

    .player-name-season {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .player-stat {
        font-size: 0.75rem;
        display: none; /* Hide extra text like "Runs: " */
    }

    .stat-highlight {
        font-size: 1rem;
        min-width: auto;
        text-align: right;
        margin-left: 0.5rem;
    }

    .upcoming-list {
        max-height: 220px;
    }

    .upcoming-item {
        min-height: 38px;
        padding: 0.35rem 0.4rem;
        gap: 0.4rem;
    }

    .match-date-badge {
        font-size: 0.6rem;
        min-width: 38px;
        padding: 0.2rem 0.35rem;
    }

    .match-teams {
        font-size: 0.7rem;
        gap: 0.15rem;
    }

    .team-link {
        max-width: 70px;
    }

    .vs-text {
        font-size: 0.65rem;
        margin: 0 0.1rem;
    }

    .stats-card table {
        font-size: 0.8rem;
    }

    .stats-card td {
        padding: 0.35rem 0.25rem;
    }

    .player-name a {
        max-width: 100px;
        font-size: 0.85rem;
    }

    .stats-value {
        font-size: 0.8rem;
        padding: 0.1rem 0.25rem;
    }
}