.playhq-fixture-wrapper {
    overflow-x: auto;
    width: 100%;
    max-width: 100vw;
    display: block;
    position: relative;
    text-align: center; /* Center child elements horizontally */
}

/* Ensure the team selector is left-aligned and above the table */
.playhq-team-selector {
    width: auto;
    max-width: none;
    margin-bottom: 20px;
    margin-left: 0;
    display: inline-block; /* Center the selector above the table */
    text-align: left;
}

.playhq-fixture-table {
    border-collapse: collapse;
    width: auto;
    min-width: 0;
    max-width: 100%;
    table-layout: auto;
    margin-left: auto;
    margin-right: auto;
}

.playhq-fixture-table th,
.playhq-fixture-table td {
    white-space: nowrap;
    padding: 12px 28px; /* Greater vertical and horizontal spacing */
    text-align: left;
}

/* Center the round column */
.playhq-fixture-table th.phq-col-round,
.playhq-fixture-table td.phq-col-round {
    text-align: center;
}

@media (max-width: 700px) {
    /* Hide all except Date/Time, Opponent, Venue */
    .playhq-fixture-table thead th,
    .playhq-fixture-table tbody td {
        display: none !important;
    }
    .playhq-fixture-table thead .phq-col-datetime,
    .playhq-fixture-table thead .phq-col-opponent,
    .playhq-fixture-table thead .phq-col-venue,
    .playhq-fixture-table tbody .phq-col-datetime,
    .playhq-fixture-table tbody .phq-col-opponent,
    .playhq-fixture-table tbody .phq-col-venue {
        display: table-cell !important;
    }
    .playhq-fixture-table th,
    .playhq-fixture-table td {
        font-size: 15px !important; /* Force mobile font size */
        padding: 10px 10px;
        white-space: normal;
    }
    .playhq-fixture-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
}
@media (min-width: 701px) {
    .playhq-fixture-table thead .phq-col-datetime,
    .playhq-fixture-table thead .phq-col-opponent,
    .playhq-fixture-table tbody .phq-col-datetime,
    .playhq-fixture-table tbody .phq-col-opponent {
        display: none !important;
    }
    .playhq-fixture-table thead .phq-col-date,
    .playhq-fixture-table thead .phq-col-time,
    .playhq-fixture-table thead .phq-col-round,
    .playhq-fixture-table thead .phq-col-home,
    .playhq-fixture-table thead .phq-col-away,
    .playhq-fixture-table thead .phq-col-venue,
    .playhq-fixture-table tbody .phq-col-date,
    .playhq-fixture-table tbody .phq-col-time,
    .playhq-fixture-table tbody .phq-col-round,
    .playhq-fixture-table tbody .phq-col-home,
    .playhq-fixture-table tbody .phq-col-away,
    .playhq-fixture-table tbody .phq-col-venue {
        display: table-cell !important;
    }
    .playhq-fixture-table th,
    .playhq-fixture-table td {
        font-size: 15px;
        padding: 8px 6px;
        white-space: nowrap;
    }
}

.playhq-fixture-table .playhq-selected-team {
    color: #005baa !important;
    font-weight: bold;
}