/* ===== TEAM HEADER ===== */
.team-header {
    background: linear-gradient(135deg, #1e40af 0%, #0c2340 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-info h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.team-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #DC143C;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.meta-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===== SECTIONS ===== */
.season-section,
.performers-section,
.squad-section {
    margin-bottom: 3rem;
}

.season-section h2,
.performers-section h2,
.squad-section h2 {
    font-size: 1.8rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #DC143C;
}

/* ===== STATS CARD ===== */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.stats-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #DC143C;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.6rem;
    color: #1e40af;
    font-weight: 700;
}

.stat-value.highlight {
    color: #DC143C;
    font-size: 1.8rem;
}

/* ===== PERFORMERS GRID ===== */
.performers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.performers-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.performers-card h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* ===== TABLES ===== */
.table-wrapper {
    overflow-x: auto;
}

.performers-table,
.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.performers-table thead,
.squad-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #DC143C;
}

.performers-table th,
.squad-table th {
    padding: 0.9rem;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
    font-size: 0.85rem;
}

.performers-table td,
.squad-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
}

.performers-table tbody tr:hover,
.squad-table tbody tr:hover {
    background: #fafafa;
}

.performers-table tbody tr:nth-child(even),
.squad-table tbody tr:nth-child(even) {
    background: white;
}

.player-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.player-link:hover {
    color: #DC143C;
    text-decoration: underline;
}

.role-badge {
    background: #e0e7ff;
    color: #1e40af;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.winner-text {
    color: #16a34a;
    /* green-600 */
    font-weight: 600;
}

.loser-text {
    color: #dc2626;
    /* red-600 */
    font-weight: 600;
}

/* ===== SEASON SQUAD CARD ===== */
.season-squad-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.season-squad-card h3 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* ===== STATS WIDGETS ===== */
.stats-grid-wide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-top: 4px solid #DC143C;
    transition: all 0.3s ease;
}

.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.widget-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    background: #fafafa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.widget-item:hover {
    background: #f0f0f0;
}

.widget-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #DC143C;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.widget-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.widget-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-label a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-label a:hover {
    color: #DC143C;
    text-decoration: underline;
}

.widget-detail {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-value {
    font-weight: 700;
    color: #DC143C;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: linear-gradient(135deg, #1e40af 0%, #0c2340 100%);
    color: white;
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.standings-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.standings-table tbody tr:hover {
    background: #fafafa;
}

.sort-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
    font-weight: 600;
}

.sort-link:hover {
    opacity: 0.8;
}

.sort-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.standings-table thead th a {
    color: white;
    text-decoration: none;
}

.recent-matches-section {
    margin: 3rem 0;
}

.recent-matches-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #DC143C;
}

.recent-matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.match-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.match-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 85px;
    text-align: center;
}

.match-scores {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 120px;
}

.team-link {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.team-link:hover {
    color: #DC143C;
    text-decoration: underline;
}

.team-link.winner {
    color: #DC143C;
    font-weight: 700;
}

.runs {
    font-weight: 700;
    color: #1e40af;
    font-size: 1rem;
}

.vs {
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-result {
    background: linear-gradient(135deg, #DC143C 0%, #b01030 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.match-result.no-result {
    background: #f0f0f0;
    color: #999;
}

.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.fav-icon {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.fav-icon.favorited {
    color: #ff4444;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.6));
}

.fav-count {
    font-size: 1.0rem;
    opacity: 0.9;
}

/* ===== MATCHES GRID (New Layout) ===== */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Card Styles */
.match-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Reset any previous styles */
    border-left: 1px solid #e0e0e0;
    box-shadow: none;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #DC143C;
}

/* Match Content */
.match-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.match-teams-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Renamed classes to avoid conflict with header .team-info */
.match-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.match-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #003893;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.match-team-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
}

.vs-badge {
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    margin: 0 0.5rem;
}

/* Override previous match-result styles */
.match-result {
    text-align: center;
    font-size: 0.85rem;
    color: #DC143C;
    font-weight: 600;
    background: #fff0f2;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: auto;
    width: auto;
    min-width: auto;
}

.stat-secondary {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem !important;
    background-color: #f0f0f0 !important;
    color: #666 !important;
    font-weight: 500 !important;
}

@media (max-width: 1024px) {
    .stat-secondary {
        display: none;
    }
}

@media (max-width: 768px) {
    .fav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }

    .fav-icon {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    10%, 20% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .match-row {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .match-scores {
        min-width: 100px;
    }

    .match-result {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .recent-matches-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .match-row {
        gap: 0.75rem;
        padding: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        border-left: 3px solid #DC143C;
    }

    .match-date {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
    }

    .match-scores {
        width: 100%;
        gap: 0.2rem;
    }

    .team-link {
        font-size: 0.9rem;
    }

    .runs {
        font-size: 0.95rem;
    }

    .vs {
        display: none;
    }

    .match-result {
        width: 100%;
        min-width: auto;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .match-row {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .match-date {
        font-size: 0.75rem;
    }

    .match-scores {
        gap: 0.15rem;
    }

    .team-link {
        font-size: 0.85rem;
    }

    .runs {
        font-size: 0.9rem;
    }

    .match-result {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Recent Matches Section */
.recent-matches-section {
    margin: 3rem 0;
}

.recent-matches-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #DC143C;
}

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

.match-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-left: 4px solid #DC143C;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.match-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.match-teams {
    margin-bottom: 1rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.team-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
}

.team-name.winner {
    color: #DC143C;
    font-weight: 700;
}

.runs {
    font-weight: 700;
    color: #1e40af;
    font-size: 1rem;
    min-width: 50px;
    text-align: right;
}

.vs {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0;
}

.match-result {
    background: #fafafa;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #DC143C;
    font-size: 0.9rem;
}

/* Squad Grid - Side by Side */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.season-squad-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.season-squad-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #DC143C;
}

.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.squad-table thead {
    background: #f5f5f5;
}

/* .squad-table th {
        padding: 0.75rem;
        text-align: left;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #e0e0e0;
    } */

.squad-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.squad-table tbody tr:hover {
    background: #fafafa;
}

.player-link {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.player-link:hover {
    color: #DC143C;
    text-decoration: underline;
}

/* Other Seasons Section */
.other-seasons {
    margin-top: 3rem;
}

.other-seasons h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.other-seasons .season-squad-card {
    margin-bottom: 1.5rem;
}

/* ===== TABS STYLING ===== */
.tabs-container {
    margin-top: 2rem;
}

.tabs-navigation {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.tab-btn.active {
    color: #1e40af;
    border-bottom-color: #DC143C;
    background: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    padding: 2rem 0;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-data-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #fafafa;
    border-radius: 8px;
    color: #999;
    font-size: 1.1rem;
}

/* Adjust squad-grid to show all seasons when in tab */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Override other-seasons styling */
.other-seasons {
    margin-top: 0;
}

.other-seasons h3 {
    display: none;
}

@media (max-width: 1024px) {
    .tabs-navigation {
        padding: 0.25rem;
    }

    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

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

@media (max-width: 768px) {
    .tabs-navigation {
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 1rem 0;
    }

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

@media (max-width: 480px) {
    .tabs-navigation {
        padding: 0.2rem;
        gap: 0.1rem;
    }

    .tab-btn {
        padding: 0.6rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .performers-grid {
        grid-template-columns: 1fr;
    }

    .team-info h1 {
        font-size: 2rem;
    }

    .team-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-container {
        padding: 1.5rem 0.5rem;
    }

    .team-header {
        padding: 1.5rem;
    }

    .team-info h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .team-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .meta-item {
        padding: 0.8rem;
    }

    .meta-label {
        font-size: 0.75rem;
    }

    .meta-value {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .performers-table th,
    .squad-table th {
        padding: 0.6rem;
        font-size: 0.75rem;
    }

    .performers-table td,
    .squad-table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

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

    .stat-widget {
        padding: 1rem;
        border-top: 3px solid #DC143C;
    }

    .widget-header {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .widget-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .widget-label {
        font-size: 0.85rem;
    }

    .widget-value {
        font-size: 0.85rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .sort-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-header {
        padding: 1rem;
    }

    .team-info h1 {
        font-size: 1.3rem;
    }

    .team-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .performers-table,
    .squad-table {
        font-size: 0.75rem;
    }

    .performers-table th,
    .squad-table th {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }

    .performers-table td,
    .squad-table td {
        padding: 0.4rem 0.3rem;
    }
}

/* ===== COMPACT PERFORMERS LAYOUT (Matching Homepage Design) ===== */
.current-season-performers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.performer-card-compact {
    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%;
}

/* Varying accent colors */
.current-season-performers-grid .performer-card-compact:nth-child(2) {
    border-top-color: #003893;
}

.current-season-performers-grid .performer-card-compact:nth-child(3) {
    border-top-color: #FFD700;
}

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

.performer-card-compact h3 {
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    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: flex-start; /* Align badge to top */
    gap: 0.75rem;
    padding: 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;
    margin-top: 0.15rem;
}

.squad-number {
    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;
    margin-top: 0.15rem;
}

/* 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; }

/* New Layout Classes */
.season-player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0; /* Prevent overflow */
}

.season-player-row-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.player-info-with-flag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.player-info-with-flag .flag-icon {
    font-size: 0.9rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.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-name-season a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.player-name-season a:hover {
    color: #DC143C;
    text-decoration: underline;
}

.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;
    white-space: nowrap;
}

.season-player-row-secondary {
    display: flex;
    justify-content: flex-end; /* Align secondary stats to the right */
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #666;
    padding-top: 0.1rem;
}

.secondary-stat-item {
    background: #f8f9fa;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .current-season-performers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .current-season-performers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .performer-card-compact {
        padding: 1rem;
    }

    .performer-card-compact h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .season-item {
        padding: 0.5rem 0.6rem;
    }

    .player-name-season {
        font-size: 0.85rem;
    }

    .stat-highlight {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .season-player-row-secondary {
        justify-content: flex-start; /* Align left on very small screens */
    }
}