/* -----------------------------------------------------------
   BASISLAYOUT
----------------------------------------------------------- */

.MatchesOverview,
.ResultsOverview {
    width: 100%;
    margin: 0 auto;
}

.sportlink-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sportlink-table th,
.sportlink-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-break: break-word;
}

.TeamRow {
    font-weight: bold;
}

/* -----------------------------------------------------------
   RONDE‑LAYOUT (PROGRAMMA & UITSLAGEN)
----------------------------------------------------------- */

/* Alleen de eerste ronde zichtbaar */
.FirstMatchRound,
.FirstResultRound {
    display: block;
}

/* Alle andere rondes verborgen */
.MatchRound,
.ResultRound {
    display: none;
}

/* -----------------------------------------------------------
   HEADER MET KNOPPEN + DATUM
----------------------------------------------------------- */

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    font-size: 15px;
    font-weight: bold;
}

.round-header .round-date {
    flex: 1;
    text-align: center;
}

.round-header button {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: #e51a23;
    border-radius: 4px;
    cursor: pointer;
}

.round-header button:hover {
    background: #e8e8e8;
}

/* -----------------------------------------------------------
   MOBIEL (PORTRAIT)
----------------------------------------------------------- */

@media (max-width: 600px) and (orientation: portrait) {

    /* Tabel mag kleiner worden */
    .sportlink-table {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Compactere cellen */
    .sportlink-table th,
    .sportlink-table td {
        padding: 6px 8px;
        font-size: 14px;
    }

    /* Header compact */
    .round-header {
        margin: 8px 0 10px 0;
        font-size: 14px;
    }

    .round-header button {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* -----------------------------------------------------------
   MOBIEL (ALGEMEEN)
----------------------------------------------------------- */

@media (max-width: 600px) {

    /* Voorkom horizontale scroll */
    body, html {
        overflow-x: hidden;
    }

    .MatchesOverview,
    .ResultsOverview {
        overflow-x: hidden;
    }
}
