body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Header Styles - Matching season.php design */
.page-logo {
    margin-bottom: 2rem;
}

.page-logo img {
    height: 150px;
    width: auto;
}

.page-logo a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.page-logo a:hover {
    transform: scale(1.05);
}



.team-info {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.team-info p {
    margin: 0;
    font-weight: 500;
}

/* Enhanced main header styling */
.main-header {
    background: #ffffff;
    color: #111111;
    padding: 2rem 0;
    margin-top: 5rem;
    text-align: center;

}

.main-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 auto;
    letter-spacing: -1.5px;
    text-align: center;
}

/* Large desktop h1 sizing */
@media (min-width: 1200px) {
    .main-header h1 {
        font-size: 3rem;
    }
}

/* Responsive h1 sizing */
@media (max-width: 1024px) {
    .main-header h1 {
        font-size: 2.2rem;

    }
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8rem;
        letter-spacing: -1.5px;
        max-width: 80%;
    }

    .page-logo img {
        height: 100px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.8rem;
        letter-spacing: -1.5px;
        max-width: 80%;
    }

}

@media (max-width: 360px) {
    .main-header h1 {
        font-size: 1rem;
        letter-spacing: -0.5px;
        max-width: 80%;
    }
}

.main-header .subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;

    margin-top: 10px;
}

.main-header .tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}




/* Latest Results and Join the Club Section Styles */
.latest-results-join-section {
    padding: 2rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1.75fr;
    gap: 2rem;
    align-items: start;
}


/* Tab Interface Styling */

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    list-style: none;
    padding: 0.8rem 0 1.5rem 0;
    align-items: center;
    background-color: transparent;
    max-width: none;
    margin: 0;

}

.tab-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.tab-button:hover {
    color: #666;
}

.tab-button.active {
    background-color: white;
    color: #111;
    border-radius: 25px;
    padding: 10px 35px;
}

.tab-content {
    display: none;
    padding: 0;
}

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

/* Responsive design for mobile */
@media (max-width: 900px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .two-column-grid {
        gap: 3rem;
    }

    .join-club-content {
        padding: 1.25rem;
    }

    .tab-button {
        font-size: 0.9rem;
    }

    .tab-button.active {
        padding: 10px 20px;
    }
}

.join-club-text {
    text-align: center;
}

.join-club-text p {
    font-size: 0.95rem;
    line-height: 1.6;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.5rem;
    }
}


.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;

    color: #111111;
    letter-spacing: -1.5px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 400;
    text-align: center;
    margin-top: -25px;
    color: #6c757d;
}

.table-container {

    overflow: hidden;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    position: relative;
    margin: auto;
}

/* Allow next-matches table to be wider to show all columns */
#next-matches .table-container {
    max-width: 900px;
    overflow-x: auto;
}

/* Fallback horizontal scroll for very small screens */
@media (max-width: 400px) {
    .table-container {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .results-table {
        min-width: 400px;
        width: 400px;
    }
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    table-layout: fixed;
    border: 1px solid gainsboro;
    overflow: hidden;
}

/* Remove border from latest results table */
#latest-results .results-table {
    border: none !important;
}

.results-table th {
    background: #111111;
    color: #ffffff;
    padding: 0.7rem 0.7rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;

    border-bottom: none;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.results-table th:first-child {
    border-top-left-radius: 4px;
}

.results-table th:last-child {
    border-top-right-radius: 4px;
}

/* Left align "Venue" column header */
#next-matches .results-table th:nth-child(3) {
    text-align: left;
}

@media (max-width: 600px) {
    .results-table th {

        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

}

.results-table td {
    padding: 0.8rem 0.3rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.results-table tbody tr:hover {
    background: transparent;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

olumn width definitions for better responsive behavior */ .results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 10%;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 35%;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    width: 20%;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 20%;
}





/* Next Matches Table Styling */
#next-matches .results-table {
    width: 100%;
    border: none !important;
}

/* Remove all borders from next matches table */


/* Next matches table column widths - new order: Team | Venue | Kick-off | Colours | Opposition | Form | Chevron */
#next-matches .results-table td:nth-child(1) {
    width: 8%;
    max-width: none;
    min-width: 50px;
}

#next-matches .results-table td:nth-child(2) {
    width: 8%;
    max-width: none;
    text-align: center;
}

#next-matches .results-table td:nth-child(3) {
    width: 10%;
    max-width: none;
    text-align: center;
}

#next-matches .results-table td:nth-child(4) {
    width: 15%;
    max-width: none;
    text-align: center;
}

#next-matches .results-table td:nth-child(5) {
    width: 32%;
    max-width: none;
}

#next-matches .results-table td:nth-child(6) {
    width: 15%;
    max-width: none;
    text-align: center;
}

#next-matches .results-table td:nth-child(7) {
    width: 7%;
    max-width: none;
    text-align: center;
}

.next-matches-column .results-table th:nth-child(1),
.next-matches-column .results-table td:nth-child(1) {
    width: 10%;
}

.next-matches-column .results-table th:nth-child(2),
.next-matches-column .results-table td:nth-child(2) {
    width: 30%;
}

.next-matches-column .results-table th:nth-child(3),
.next-matches-column .results-table td:nth-child(3) {
    width: 20%;
}

.next-matches-column .results-table th:nth-child(4),
.next-matches-column .results-table td:nth-child(4) {
    width: 20%;
}


.match-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.kickoff-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

/* Clickable row styling for next matches */
.next-matches-column .results-table tbody tr[onclick] {
    transition: background-color 0.2s ease;
}

.next-matches-column .results-table tbody tr[onclick]:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.venue {
    font-size: 0.9rem;
}




/* Join the Club Section Styles */
.join-club-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.join-club-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 1.5rem 0;
}

@media screen and (max-width: 600px) {
    .join-club-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .join-club-text p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .join-club-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 480px) {
    .join-club-content {
        padding: 1.25rem;
    }

    .join-club-text p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    .join-club-button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
    }
}


.join-club-cta {
    text-align: center;
}

.join-club-button {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #111111;
}

.join-club-button:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Q&A Accordion Section Styles */
.qa-accordion-section {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111111;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header[aria-expanded="true"] {
    background: #111111;
    color: #ffffff;
}

.accordion-title {
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.accordion-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin: 1.5rem 0 0.5rem 0;
}

.accordion-body h3:first-child {
    margin-top: 0;
}

.accordion-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 1rem 0;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: #111111;
    font-weight: 600;
}

/* Contact & Sign-up Section Styles */
.contact-signup-section {
    padding: 3rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.contact-signup-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-signup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.signup-button,
.email-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
    min-width: 160px;
    max-width: 100%;
    box-sizing: border-box;
}

.signup-button {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.signup-button:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.email-button {
    background: #ffffff;
    color: #111111;
    border-color: #111111;
}

.email-button:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.button-icon {
    font-size: 2rem;
    display: block;
}

.button-text {
    font-size: 0.9rem;
}

.contact-signup-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-signup-info p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 1.5rem 0;
}

.contact-signup-info ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.contact-signup-info li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.contact-signup-info li:last-child {
    margin-bottom: 0;
}

.contact-signup-info strong {
    color: #111111;
    font-weight: 600;
}

/* Responsive design for mobile */
@media (max-width: 900px) {
    .contact-signup-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 0 1rem;
    }

    .signup-button,
    .email-button {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .contact-signup-info {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 600px) {
    .contact-signup-buttons {
        padding: 0 0.5rem;
    }

    .signup-button,
    .email-button {
        padding: 1.25rem 1.5rem;
        font-size: 0.9rem;
    }

    .button-icon {
        font-size: 1.75rem;
    }

    .button-text {
        font-size: 0.8rem;
    }

    .contact-signup-info {
        padding: 1rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .contact-signup-buttons {
        padding: 0 0.25rem;
    }

    .signup-button,
    .email-button {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }

    .button-icon {
        font-size: 1.5rem;
    }

    .button-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .contact-signup-buttons {
        padding: 0;
    }

    .signup-button,
    .email-button {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }
}

/* Season Statistics Section Styles */
.season-stats-section {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

/* Combined Stats Grid - Mobile First */
.stats-combined-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-combined-column {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.combined-column-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    text-align: center;
    margin-bottom: 1.5rem;

    letter-spacing: -1.5px;
}

.stats-placeholder {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Desktop: Two columns side-by-side */
@media (min-width: 1024px) {
    .stats-combined-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-combined-column {
        width: 100%;
        padding: 1.5rem;
    }
}


/* Unified Stats Table Styles - Mobile First */
.stats-three-column-grid,
.team-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.stats-column,
.team-stats-table {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.team-stats-table.hidden {
    display: none;
}

.column-title,
.table-title {
    font-family: 'Inter';
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 1rem 0;
    padding: 0;
    text-align: center;

    line-height: 1.2;
    letter-spacing: -1px;
}

.stats-list,
.team-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.stat-item,
.team-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin: 0;
    min-height: 48px;
    height: 48px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    box-sizing: border-box;
}

.stat-item:first-child,
.team-stat-item:first-child {
    border-top: 1px solid #e9ecef;
}

.stat-item:last-child,
.team-stat-item:last-child {
    border-bottom: none;
}

.stat-item:hover,
.team-stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-rank,
.team-stat-rank {
    background: #111111;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin: 0;
}

.stat-player,
.team-stat-info {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.player-name,
.team-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #111111;
    margin: 0 0 0.2rem 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.player-team,
.team-division {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value,
.team-stat-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: #111111;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.stat-breakdown {
    font-weight: 500;
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 0.2em;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {

    .stats-toggle-buttons,
    .team-stats-buttons {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .stats-toggle-btn,
    .team-stats-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
    }
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {

    .stats-three-column-grid,
    .team-stats-grid {
        gap: 1.5rem;
    }

    .stats-column,
    .team-stats-table {
        min-width: 0;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {

    .stats-three-column-grid,
    .team-stats-grid {
        gap: 2rem;
    }

    .stats-column,
    .team-stats-table {
        min-width: 0;
        max-width: 100%;
    }

    .stat-item,
    .team-stat-item {
        padding: 0.75rem;
        gap: 1rem;
        min-height: 56px;
        height: 56px;
    }

    .stat-rank,
    .team-stat-rank {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .player-name,
    .team-name {
        font-size: 0.95rem;
    }

    .player-team,
    .team-division {
        font-size: 0.7rem;
    }

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

    .column-title,
    .table-title {
        font-size: 1.2rem;
    }
}

/* Team Stats Section Styles - Now part of combined section */
.team-stats-section {
    padding: 3rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* All Matches Section Styles */
.all-matches-section {
    max-width: 700px;
    margin: auto;
}

.all-matches-section table {
    border-radius: 8px;
    overflow: hidden;
}

.all-matches-section table th:first-child {
    border-top-left-radius: 8px;
}

.all-matches-section table th:last-child {
    border-top-right-radius: 8px;
}

/* Unified Button Styles */
.stats-toggle-buttons,
.team-stats-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 2rem 0;
    padding: 0;
    flex-wrap: wrap;
}

.stats-toggle-btn,
.team-stats-button {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
}

.stats-toggle-btn:hover,
.team-stats-button:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

.stats-toggle-btn.active,
.team-stats-button.active {
    background: #111111;
    color: #ffffff;
    border: none;
}

/* Score badge styling */
.score-badge {
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;

    width: 65px;
    box-sizing: border-box;
    border-radius: 4px;
    color: #ffffff;
}

.score-win {
    background-color: #5FBB97;
    border: 1px solid #5FBB97;
}

.score-loss {
    background-color: #D11149;
    border: 1px solid #D11149;
}

.score-draw {
    background-color: #FE9000;
    border: 1px solid #FE9000;
}

.score-tbd {
    background-color: #ffffff;
    color: #666666;
    border: 1px solid #666666;
}

/* Venue cell styling */
#next-matches .venue-cell {
    text-align: left;
}

.form-badges {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

/* Center form badges in next matches table */
#next-matches .form-badges {
    justify-content: center;
}

.form-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    color: #ffffff;
}

.form-badge.form-w {
    background-color: #5FBB97;
    border: 1px solid #5FBB97;
}

.form-badge.form-l {
    background-color: #D11149;
    border: 1px solid #D11149;
}

.form-badge.form-d {
    background-color: #FE9000;
    border: 1px solid #FE9000;
}

/* Hide 4th and 5th form badges on mobile */
@media (max-width: 600px) {

    .form-badge:nth-child(4),
    .form-badge:nth-child(5) {
        display: none;
    }

    /* Hide form column in next matches table on mobile */
    #next-matches .results-table td:nth-child(6) {
        display: none;
    }
}

/* Center align result column content */
.result-cell {
    text-align: center;
}

/* Ensure result badges are also center aligned within their cells */
.result-cell .result-badge {
    display: inline-block;
}

/* Center align score column content */
.score-cell {
    text-align: center;
}

/* Left align MOM column content */
.results-table .mom-cell {
    text-align: left !important;
}

/* Left align Opposition column content */
.results-table .opposition-cell {
    text-align: left !important;
}

/* Left align MOM column header (Latest Results only) */
#latest-results .results-table th:nth-child(3) {
    text-align: left !important;
}

/* Left align Opposition column header (Latest Results only) */
#latest-results .results-table th:nth-child(2) {
    text-align: left !important;
}



/* Keep Opposition column left-aligned in Next Matches tab */
#next-matches .results-table th:nth-child(2) {
    text-align: left !important;
}

/* Form cell styling */
.form-cell {
    text-align: center;
    vertical-align: middle;
}

/* Colours cell styling */
.colours-cell {
    text-align: center;
    vertical-align: middle;
}

/* Chevron cell styling */
.chevron-cell {
    text-align: center;
    vertical-align: middle;
}

.chevron-icon {
    font-size: 1.5rem;
    color: #999999;
    font-weight: 300;
    display: inline-block;
}

/* Cup Matches Header Styling */
.cup-matches-header {
    margin-bottom: 1.5rem;
    text-align: center;

}

.cup-matches-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Cup Matches Table Styling - Match Next Matches Table */
.cup-matches-header+.table-container .results-table {
    width: 100%;
    border: none !important;
}

/* Cup matches table column widths - Date | Venue | Round | Team | Kick-off | Opposition | Map */
.cup-matches-header+.table-container .results-table td:nth-child(1) {
    width: 10%;
    max-width: none;
    text-align: center;
}

.cup-matches-header+.table-container .results-table td:nth-child(2) {
    width: 8%;
    max-width: none;
    text-align: center;
}

.cup-matches-header+.table-container .results-table td:nth-child(3) {
    width: 15%;
    max-width: none;
    text-align: center;
}

.cup-matches-header+.table-container .results-table td:nth-child(4) {
    width: 15%;
    max-width: none;
    min-width: 50px;
}

.cup-matches-header+.table-container .results-table td:nth-child(5) {
    width: 10%;
    max-width: none;
    text-align: center;
}

.cup-matches-header+.table-container .results-table td:nth-child(6) {
    width: 27%;
    max-width: none;
}

.cup-matches-header+.table-container .results-table td:nth-child(7) {
    width: 12%;
    max-width: none;
    text-align: center;
}

.cup-matches-header+.table-container .results-table td:nth-child(8) {
    width: 5%;
    max-width: none;
    text-align: center;
}

/* Date cell styling */
.date-cell {
    text-align: center;
    font-size: 0.9rem;
}

/* Venue address link styling for cup matches */
.venue-address-link {
    color: #0000EE;
    text-decoration: none;
    font-size: inherit;
}

.venue-address-link:hover {
    color: #0000CC;
    text-decoration: none;
}

/* Round cell styling */
.round-cell {
    text-align: center;
    font-size: 0.85rem;
}

/* Map cell styling */
.map-cell {
    text-align: center;
}

/* Expandable row styling for mobile */
.cup-match-row {
    cursor: pointer;
}

.cup-match-expanded-row {
    background-color: #f8f9fa;
}

.cup-match-expanded-row td {
    padding: 0;
    border-top: none;
}

.expanded-content {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.expanded-details {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.expanded-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expanded-label {
    font-weight: 600;
    min-width: auto;
}

.expanded-value {
    flex: 0 1 auto;
}

/* Chevron for mobile expandable rows */
.chevron-cell-mobile {
    display: none;
    text-align: center;
    vertical-align: middle;
}

.chevron-icon-mobile {
    font-size: 1.5rem;
    color: #999999;
    font-weight: 300;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cup-match-row.expanded .chevron-icon-mobile {
    transform: rotate(90deg);
}

/* Hide venue, map, and round columns on mobile, show in expanded section */
@media (max-width: 600px) {
    .cup-matches-header+.table-container {
        overflow-x: visible;
    }

    .cup-matches-header+.table-container .results-table {
        table-layout: fixed;
        width: 100%;
    }

    .venue-cell-desktop,
    .round-cell {
        display: none;
    }

    .chevron-cell-mobile {
        display: table-cell;
    }

    .cup-match-row {
        cursor: pointer;
    }

    .cup-match-row.expanded {
        background-color: #f0f0f0;
    }

    /* Ensure expanded row maintains table width */
    .cup-match-expanded-row {
        width: 100%;
        table-layout: fixed;
    }

    .cup-match-expanded-row td {
        width: 100%;
        display: table-cell;
    }
}

/* Opposition colour badges styling */
.opposition-colours {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    vertical-align: middle;
}

.opposition-colour-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Ensure badges are visible on light backgrounds */
.opposition-colour-badge[style*="white"],
.opposition-colour-badge[style*="#FFFFFF"],
.opposition-colour-badge[style*="#ffffff"] {
    border: 1px solid #ccc !important;
}

.modal-result-badge {
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 2.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.result-win {
    background: #111111;
    color: #ffffff;
}

.result-loss {
    background: #ffffff;
    color: #111111;
}

.result-draw {
    background: #f0f0f0;
    color: #111111;
}

.result-tbd {
    background: #ffffff;
    color: #666666;
    border-color: #666666;
}

/* Score styling */
.score {
    font-size: 0.9rem;
    color: #111111;
}

/* MOM styling */
.mom-player {
    font-weight: 400;
    color: #111111;
    font-size: 0.9rem;
}

/* No data styling */
.no-data {
    color: #6c757d;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 900px) {
    .table-container {
        overflow-x: hidden;
        width: 100%;
    }

    .results-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .results-table th,
    .results-table td {
        /* padding: 0.75rem 0.5rem; */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: hidden;
        width: 100%;
    }

    .results-table {
        min-width: 0;
        width: 100%;
        font-size: 0.9rem;
        table-layout: fixed;
    }

    .results-table th,
    .results-table td {
        padding: 0.8rem 0.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Show all columns on medium screens and below */
    /* Redistribute column widths for mobile */
    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 8%;
    }

    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 30%;
    }

    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 18%;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        width: 22%;
        text-align: center;
    }


    /* Next matches table responsive */
    #next-matches .results-table td:nth-child(1) {
        width: 8%;
    }

    #next-matches .results-table td:nth-child(2) {
        width: 8%;
    }

    #next-matches .results-table td:nth-child(3) {
        width: 10%;
    }

    #next-matches .results-table td:nth-child(4) {
        width: 15%;
    }

    #next-matches .results-table td:nth-child(5) {
        width: 32%;
    }

    #next-matches .results-table td:nth-child(6) {
        width: 15%;
    }

    #next-matches .results-table td:nth-child(7) {
        width: 7%;
    }

    .next-matches-column .results-table th:nth-child(1),
    .next-matches-column .results-table td:nth-child(1) {
        width: 10%;
    }

    .next-matches-column .results-table th:nth-child(2),
    .next-matches-column .results-table td:nth-child(2) {
        width: 40%;
    }

    .next-matches-column .results-table th:nth-child(3),
    .next-matches-column .results-table td:nth-child(3) {
        width: 25%;
    }

    .next-matches-column .results-table th:nth-child(4),
    .next-matches-column .results-table td:nth-child(4) {
        width: 25%;
    }

    /* Hide trophy emoji on medium screens and below */
    .mom-player::before {
        content: "" !important;
    }

    /* Cup matches responsive styling */
    .cup-matches-header+.table-container .results-table td:nth-child(1) {
        width: 10%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(2) {
        width: 8%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(3) {
        width: 15%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(4) {
        width: 15%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(5) {
        width: 10%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(6) {
        width: 27%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(7) {
        width: 12%;
    }

    .cup-matches-header+.table-container .results-table td:nth-child(8) {
        width: 5%;
    }
}

@media (max-width: 600px) {
    .table-container {
        overflow-x: hidden;
        width: 100%;
    }

    .results-table {
        font-size: 0.8rem;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .results-table th,
    .results-table td {
        /* padding: 0.5rem 0.4rem; */
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.8rem;
    }

    .kickoff-time {
        font-size: 0.8rem;
    }

    .venue {
        font-size: 0.8rem;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .results-table th {
        white-space: normal;
        word-wrap: break-word;
        border-bottom: 2px solid #111111;
    }

    .result-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 25px;
    }

    .score {
        font-size: 0.8rem;
    }

    .mom-player {
        font-size: 0.8rem;
    }

    /* Show all columns on small screens */
    /* Redistribute column widths for small mobile */
    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 8%;
    }

    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 30%;
    }

    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 20%;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        width: 22%;
    }



    #next-matches .results-table td:nth-child(1) {
        width: 8%;
    }

    #next-matches .results-table td:nth-child(2) {
        width: 8%;
    }

    #next-matches .results-table td:nth-child(3) {
        width: 10%;
    }

    #next-matches .results-table td:nth-child(4) {
        width: 15%;
    }

    #next-matches .results-table td:nth-child(5) {
        width: 32%;
    }

    #next-matches .results-table td:nth-child(6) {
        width: 15%;
    }

    #next-matches .results-table td:nth-child(7) {
        width: 7%;
    }

    .next-matches-column .results-table th:nth-child(1),
    .next-matches-column .results-table td:nth-child(1) {
        width: 10%;
    }

    .next-matches-column .results-table th:nth-child(2),
    .next-matches-column .results-table td:nth-child(2) {
        width: 35%;
    }

    .next-matches-column .results-table th:nth-child(3),
    .next-matches-column .results-table td:nth-child(3) {
        width: 25%;
    }

    .next-matches-column .results-table th:nth-child(4),
    .next-matches-column .results-table td:nth-child(4) {
        width: 30%;
    }

    /* Hide trophy emoji on smaller screens */
    .mom-player::before {
        content: "" !important;
    }

    /* Cup matches responsive styling for smaller screens */
    .cup-matches-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .table-container {
        overflow-x: hidden;
        width: 100%;
    }

    .results-table {
        font-size: 0.75rem;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    /* .results-table th,
    .results-table td {
        padding: 0.4rem 0.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.75rem;
    } */

    .kickoff-time {
        font-size: 0.75rem;
    }

    .venue {
        font-size: 0.75rem;
    }

    .team-name {
        font-size: 0.75rem;
    }

    .results-table th {
        font-size: 0.75rem;

        border-bottom: 2px solid #111111;
    }

    .result-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        min-width: 20px;
    }

    .score {
        font-size: 0.75rem;
    }

    .mom-player {
        font-size: 0.75rem;
    }

    /* Show all columns on very small screens */
    /* Redistribute column widths for very small mobile */
    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 8%;
        font-size: 0.75rem;
    }

    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 30%;
    }

    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 30%;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        width: 12%;
    }

    .results-table th:nth-child(5),
    .results-table td:nth-child(5) {
        width: 7%;
    }



    /* Hide trophy emoji on very small screens */
    .mom-player::before {
        content: "" !important;
    }

    .player-name {
        font-size: 0.7rem !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    overflow: hidden;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid #111111;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Mobile-specific modal adjustments */
@media (max-width: 900px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 85vh;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1.5rem;
        max-height: 90vh;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 1.25rem;
        max-height: 92vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        padding: 1rem;
        max-height: 95vh;
        border-radius: 0;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    text-transform: uppercase;

}

.modal-header-small {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;

    margin-bottom: 0.5rem;
    text-align: left;
}



.modal-match-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 1.5rem;
}

@media (max-width: 600px) {
    .modal-match-info {
        font-size: 1.2rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-match-info {
        font-size: 1rem;
        gap: 0.5rem;
    }
}

.opposition-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #111111;
}

.match-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #111111;
}

.vs-text {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #666666;
}

.modal-result-badge {
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 2.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-item {
    padding: 1rem;
    background: #f8f8f8;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #111111;
    padding-bottom: 0.3rem;
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #111111;
    line-height: 1.5;
}

.opposition-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #111111;
}

.match-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #111111;
}

.vs-text {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #666666;
}

.close {
    color: #111111;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: var(--font-mono);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.close:hover {
    color: #666666;
}

/* Make table rows clickable */
.results-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

/* Match details styling - Single column layout */
.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}



.detail-item {
    padding: 1rem;
    background: #f8f8f8;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;

    padding-bottom: 0.3rem;
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #111111;
    font-weight: 600;
}

.match-squad-list {
    background: #f8f8f8;
}

.match-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    margin-bottom: 0.25rem;
    border-radius: 3px;
}

.match-player:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-name {
    font-weight: 600;
    color: #111111;
    font-size: 0.9rem;
}

.player-shirt {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.player-performance {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.goals,
.assists,
.mom-award,
.yellow-card,
.red-card,
.substitute {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

.goals {
    background: #e8f5e8;
    color: #2d5a2d;
}

.assists {
    background: #e8f0ff;
    color: #2d4a7a;
}

.mom-award {
    background: #fff3cd;
    color: #856404;
}

.yellow-card {
    background: #fff3cd;
    color: #856404;
}

.red-card {
    background: #f8d7da;
    color: #721c24;
}

.substitute {
    background: #d1ecf1;
    color: #0c5460;
}

.substitutes-divider {
    background: #f8f8f8;
    color: #666;
    text-align: center;
    padding: 0.5rem;
    margin: 1rem 0 0.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* .starter-player {
    border-left: 3px solid #28a745;
}

.substitute-player {
    border-left: 3px solid #17a2b8;
} */

.no-squad-data {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 1rem;


    .match-player {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: white;
        margin-bottom: 0.25rem;
        border-radius: 3px;
    }

    .match-player:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .starter-player {
        border-left: 3px solid #28a745;
    }

    .substitute-player {
        border-left: 3px solid #17a2b8;
    }

    .player-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .player-name {
        font-weight: 600;
        color: #111111;
        font-size: 0.9rem;
    }

    .player-shirt {
        font-size: 0.8rem;
        color: #666;
        font-weight: 500;
    }

    .player-performance {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .goals,
    .assists,
    .mom-award,
    .yellow-card,
    .red-card,
    .substitute {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        border-radius: 3px;
        font-weight: 500;
    }

    .goals {
        background: #e8f5e8;
        color: #2d5a2d;
    }

    .assists {
        background: #e8f0ff;
        color: #2d4a7a;
    }

    .mom-award {
        background: #fff3cd;
        color: #856404;
    }

    .yellow-card {
        background: #fff3cd;
        color: #856404;
    }

    .red-card {
        background: #f8d7da;
        color: #721c24;
    }

    .substitute {
        background: #d1ecf1;
        color: #0c5460;
    }

    .substitutes-divider {
        background: #f8f8f8;
        color: #666;
        text-align: center;
        padding: 0.5rem;
        margin: 1rem 0 0.5rem 0;

        font-family: var(--font-mono);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .no-squad-data {
        font-style: italic;
        color: #666;
        text-align: center;
        padding: 1rem;
    }

    /* Responsive design for modal */
    @media (max-width: 768px) {
        .modal-content {
            margin: 10% auto;
            padding: 1.5rem;
            width: 95%;
        }
    }

    /* Additional styles from external CSS - Mobile First Approach */
    .season-month {
        margin-bottom: 0;
    }

    /* Container styles - Mobile First */
    .container-small {
        max-width: 600px;
        margin: 1rem auto;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 1rem;
    }

    .container-stats {
        width: 100%;
        padding: 1rem 0;
    }

    /* Heading section styles */
    .heading-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: white;
        align-items: center;
        padding-top: 20px;
    }

    /* Page logo styles moved to mobile media query below */

    .page-logo a {
        text-decoration: none;
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .page-logo a:hover {
        transform: scale(1.05);
    }

    /* Flag and name styles */
    .flag-image {
        width: 25px;
        height: 25px;
        margin-right: 5px;
    }

    .first-name,
    .last-name {
        text-align: left;
    }

    .first-name {
        font-size: 14px;
    }

    .last-name {
        font-size: 11px;
        color: #747474;
    }

    /* Section styles */
    .new-section-two {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
        flex-wrap: wrap;
        margin-top: 50px;
    }

    /* Match container styles */
    .match-page-container {
        padding: 15px;
    }

    .match_container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background-color: white;
        padding: 10px 15px;
        flex: 1 1 0px;
        border-radius: 5px;
        border: 1px solid whitesmoke;
        transition: box-shadow 0.3s ease;
        margin-bottom: 10px;
    }

    .match_container-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: white;
        padding: 10px 15px;
        flex: 1 1 0px;
        transition: box-shadow 0.3s ease;
    }

    .match_container:hover {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
        border-radius: 5px;
    }

    .match_teams_container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .match_home_team {
        display: flex;
        flex-direction: row;
        gap: 10px;
        font-weight: bold;
    }

    .medium {
        width: 570px;
    }

    .match_home_team img {
        height: 30px;
    }

    .score_time_container {
        text-align: center;
        justify-content: center;
    }

    /* Table styles - Mobile First */
    table {
        border-collapse: collapse;
        text-align: center;
        width: 100%;
        border-radius: 5px;
        font-size: 0.875rem;
        /* 14px */
    }

    th {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        font-family: var(--font-mono);
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    tr {
        border-bottom: 1px solid #eee;
        background-color: white;
    }

    tr:hover {
        background-color: #f8f9fa;
    }

    td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Mobile table adjustments */
    @media (max-width: 768px) {
        table {
            font-size: 0.75rem;
            /* 12px */
        }

        th,
        td {
            padding: 0.375rem 0.25rem;
        }
    }

    .table-view {
        width: 50%;
        font-size: 12px;
    }

    .image-container img {
        width: 100%;
    }

    .squad_stats td {
        padding: 5px;
        line-height: 25px;
    }

    /* Link styles */
    a.match_link {
        text-decoration: none;
        color: inherit;
    }

    a.match_link:hover {
        text-decoration: none;
    }

    /* League table styles */
    .mobile-table {
        display: flex;
        max-width: 800px;
        justify-content: center;
        margin-top: 20px;
        background-color: white;
    }

    .league_table {
        margin: 0 7px;
        justify-content: center;
    }

    /* League table column styles */
    .league_table td:first-child {
        width: 10px;
        font-weight: bold;
        text-align: center;
    }

    .league_table td:nth-child(2),
    .league_table th:nth-child(2) {
        text-align: left;
        width: 250px;
    }

    .league_table td:nth-child(3),
    .league_table td:nth-child(4),
    .league_table td:nth-child(5),
    .league_table td:nth-child(6),
    .league_table td:nth-child(7),
    .league_table td:nth-child(8),
    .league_table td:nth-child(9) {
        color: #747474;
        width: 15px;
    }

    .league_table th:nth-child(3),
    .league_table th:nth-child(4),
    .league_table th:nth-child(5),
    .league_table th:nth-child(6),
    .league_table th:nth-child(7),
    .league_table th:nth-child(8) {
        color: #747474;
    }

    .league_table td:nth-child(9) {
        font-weight: bold;
    }

    .league_table th {
        font-weight: normal;
        font-family: var(--font-mono);
    }

    /* Page header styles */
    .page-header {
        margin-left: 15px;
        margin-top: 30px;
    }

    .stats-page-container {
        padding-top: 5px;
    }

    /* Navigation styles */
    .match_nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .navigation_form {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navigation_form .item {
        width: 30px;
        height: 40px;
    }

    .selected_date {
        flex-basis: 35%;
    }

    /* Animation styles */
    .animated-table {
        opacity: 1;
    }

    .animated-table tr {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.3s ease-in-out forwards;
        animation-delay: calc(var(--animation-order) * 0.03s);
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Squad stats table styles */
    .squad_stats {
        margin: 0 10px;
        margin-top: 20px;
    }

    .squad_stats th:nth-child(2),
    .squad_stats td:first-child {
        text-align: left;
    }

    .squad_stats td:nth-child(3),
    .squad_stats td:nth-child(4),
    .squad_stats td:nth-child(5),
    .squad_stats td:nth-child(6),
    .squad_stats td:nth-child(7),
    .squad_stats td:nth-child(8) {
        width: 8%;
    }

    .full-name {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .squad_stats td:first-child {
        width: 30px;
    }

    /* Button styles */
    .chevron-button {
        border: none;
        width: 40px;
        height: 40px;
    }

    /* Match details styles */
    .match_details {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 10px;
    }

    .detail-rows {
        gap: 8px;
        line-height: 1.4;
        text-align: left;
    }

    .home_score_time {
        min-width: 50px;
    }

    /* Score background styles */
    .for-higher-bg {
        background-color: #279AF1;
        color: white;
    }

    .against-higher-bg {
        background-color: #FF7477;
        color: white;
    }

    .equal-score-bg {
        background-color: #423E3B;
        color: white;
    }

    .equal-score,
    .against-higher,
    .for-higher {
        padding: 2px;
        width: 40px;
        height: 40px;
    }

    /* Match player stats styles */
    .match-player-stats {
        background-color: white;
        padding: 0 15px;
        border-radius: 2px;
    }

    .next-match {
        margin-bottom: 50px;
    }

    .score-style {
        border-radius: 5px;
        padding: 2px;
        width: 50px;
        text-align: center;
    }

    /* Individual stat styles */
    .individual-stat {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
        padding: 12px 0;
        align-items: center;
    }

    .player-stats {
        letter-spacing: 3px;
    }

    .match-detail-date {
        padding: 15px;
    }

    footer {
        height: 40px;
    }

    /* Simplified layout styles - Mobile First */
    .one-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .two-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .container-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Responsive adjustments */
    @media (min-width: 768px) {
        .two-column {
            flex-direction: row;
            gap: 2rem;
        }
    }

    /* All time player stats table styles */
    .all-time-player-stats th {
        padding-top: 20px;
        font-family: var(--font-mono);
    }

    .all-time-player-stats th:nth-child(2),
    .all-time-player-stats td:nth-child(2) {
        text-align: left;
    }

    .all-time-player-stats td {
        padding: 15px 5px;
        line-height: 20px;
    }

    .all-time-player-stats td:nth-child(3),
    .all-time-player-stats td:nth-child(4),
    .all-time-player-stats td:nth-child(5),
    .all-time-player-stats td:nth-child(6),
    .all-time-player-stats td:nth-child(7) {
        width: 10%;
    }

    /* Search input styles */
    #searchInput {
        width: 300px;
        font-size: 14px;
        padding: 12px 20px;
        margin: 0 15px 15px 15px;
        box-sizing: border-box;
        border: 1px solid #eee;
        border-radius: 4px;
    }

    /* All time team stats styles */
    .all-time-team-stats td:nth-child(2) {
        text-align: left;
    }

    .all-time-team-stats td:first-child,
    .all-time-team-stats td:nth-child(3),
    .all-time-team-stats td:nth-child(4),
    .all-time-team-stats td:nth-child(5),
    .all-time-team-stats td:nth-child(6),
    .all-time-team-stats td:nth-child(7) {
        width: 10%;
    }

    /* Button styles */
    .stats-toggle {
        margin-left: 15px;
    }

    .button-6 {
        align-items: center;
        background-color: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: .25rem;
        box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
        box-sizing: border-box;
        color: rgba(0, 0, 0, 0.85);
        cursor: pointer;
        display: inline-flex;
        font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 14px;
        font-weight: 600;
        justify-content: center;
        line-height: 1.25;
        margin: 0;
        min-height: 3rem;
        padding: calc(.875rem - 1px) calc(1.5rem - 1px);
        position: relative;
        text-decoration: none;
        transition: all 250ms;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: baseline;
        width: auto;
    }

    .button-6:hover,
    .button-6:focus {
        border-color: rgba(0, 0, 0, 0.15);
        box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
        color: rgba(0, 0, 0, 0.65);
    }

    .button-6:hover {
        transform: translateY(-1px);
    }

    .button-6:active {
        background-color: #F0F0F1;
        border-color: rgba(0, 0, 0, 0.15);
        box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
        color: rgba(0, 0, 0, 0.65);
        transform: translateY(0);
    }

    .active-button {
        background-color: #111111;
        color: white;
    }

    .active-button:hover {
        color: #fff;
        background-color: #111111;
    }

    /* Outer and inner container styles */
    .outer {
        overflow: hidden;
    }

    .inner {
        display: flex;
        overflow-x: auto;
        padding-bottom: 17px;
    }

    .button-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: hidden;
        gap: 5px;
        margin-bottom: 5px;
        margin-left: 15px;
    }

    #filterButtons {
        margin-top: 5px;
        margin-bottom: 20px;
    }

    /* Chart container styles */
    .chart-container {
        width: 90%;
        margin: auto;
    }

    /* Past encounters styles */
    .past-encounters-match-container {
        margin-bottom: 20px;
    }

    /* Container long styles */
    .container-long {
        max-width: 1200px;
        margin: auto;
    }

    /* Small match container styles */
    .match_container-small {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background-color: white;
        padding: 10px 15px;
        border-radius: 5px;
        border: 1px solid whitesmoke;
        transition: box-shadow 0.3s ease;
        width: 300px;
    }

    @media screen and (max-width: 768px) {
        .match_container-small {
            width: 100%;
        }
    }

    /* New section styles */
    .new-section-new {
        display: flex;
        flex-direction: row;
        gap: 50px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .month-section {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .matches-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .match_container-row,
    .match_container-row * {
        font-size: 1.2rem !important;
    }

    [title] {
        position: relative;
        cursor: help;
    }

    [title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        font-size: 14px;
        white-space: nowrap;
        z-index: 1;
    }

    .matches-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin-top: 20px;
        margin-bottom: 100px;
    }

    .matches-table th,
    .matches-table td {
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }

    /* Center align the date column */
    .matches-table {
        width: 8%;
    }

    .date-column {
        width: 4%;
    }

    /* Center align the venue column */
    .matches-table .venue-column {
        text-align: center;
    }

    /* Center align the score column */
    .matches-table .score-column {
        text-align: center;
    }

    /* Center align the MOM column */
    .matches-table .mom-column {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Specific styles for the scorers column */
    .matches-table .scorers-column {
        max-width: 200px;
    }

    .matches-table tr:hover {
        background-color: #f5f5f5;
    }

    /* Add this to ensure the sticky header works in Firefox */
    .matches-table {
        overflow: visible;
    }

    .clickable-row {
        cursor: pointer;
    }

    .clickable-row:hover {
        background-color: #f5f5f5;
    }

    .about-us {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }

    .about-us .flex-container {
        flex: 1 1 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .about-us .flex-item-heading {
        text-align: center;
        margin-bottom: 10px;
    }

    .about-us .flex-item-body {
        text-align: center;
    }

    /* Responsive design for smaller screens */
    @media (max-width: 768px) {
        .about-us {
            flex-direction: column;
        }

        .about-us .flex-container {
            width: 100%;
        }
    }

    .col-span-4 {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .col-span-4 .flex-container {
        flex: 1;
    }

    .mom-column svg {
        width: 20px;
        height: 20px;
    }

    /* Team Comparison Tables Styles */
    .comparison-section {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .section-title {
        text-align: center;
        color: #333;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 30px;
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
    }

    .comparison-table-container {
        margin-bottom: 40px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
    }

    .comparison-table th {
        background: #f8f9fa;
        color: #333;
        font-family: var(--font-mono);
        font-weight: bold;
        padding: 12px 8px;
        text-align: center;
        border-bottom: 2px solid #dee2e6;
        font-size: 14px;
    }

    .comparison-table td {
        padding: 12px 8px;
        text-align: center;
        border-bottom: 1px solid #dee2e6;
        font-size: 14px;
    }

    .comparison-table tr:hover {
        background-color: #f8f9fa;
        transition: background-color 0.2s ease;
    }

    .comparison-table tr:nth-child(even) {
        background-color: #fafbfc;
    }

    .comparison-table tr:nth-child(even):hover {
        background-color: #f0f1f2;
    }

    /* Position column styling */
    .comparison-table td:first-child {
        font-weight: bold;
        color: #1e3c72;
        width: 60px;
    }

    /* Team name column styling */
    .comparison-table td:nth-child(2) {
        text-align: left;
        font-weight: 500;
        color: #333;
    }

    /* Goals columns styling */
    .comparison-table td:nth-child(3),
    .comparison-table td:nth-child(4),
    .comparison-table td:nth-child(5) {
        font-weight: 500;
        color: #2a5298;
    }

    /* Cards columns styling */
    .comparison-table td:nth-child(3),
    .comparison-table td:nth-child(4),
    .comparison-table td:nth-child(5),
    .comparison-table td:nth-child(6) {
        font-weight: 500;
        color: #2a5298;
    }

    /* Responsive design for comparison tables */
    @media screen and (max-width: 768px) {
        .comparison-section {
            padding: 15px 10px;
        }

        .section-title {
            font-size: 20px;
            margin-bottom: 20px;
        }

        .table-title {
            font-size: 16px;
            padding: 12px 15px;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 8px 4px;
            font-size: 12px;
        }

        .comparison-table td:first-child {
            width: 40px;
        }

        .comparison-table td:nth-child(2) {
            text-align: center;
        }
    }
