/* =========================================================
   NEDERLANDSE TOP 25
   Zelfstandige stylesheet voor alle Top 25-weekpagina's
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

/* =========================================================
   HOOFDCONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 15px;
}

/* =========================================================
   TITEL EN INLEIDING
   ========================================================= */

.top25-title {
    color: #003300;
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.top25-intro {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* =========================================================
   BANNER / AFBEELDING
   ========================================================= */

.top25-banner {
    display: block;
    width: 100%;
    max-width: 1120px;
    height: auto;
    margin: 0 auto 10px;
}

/* =========================================================
   TABEL CONTAINER
   Alleen de tabel mag op zeer smalle schermen horizontaal
   scrollen; de rest van de pagina blijft schaalbaar.
   ========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   TOP 25 TABEL
   ========================================================= */

.main-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.main-table th {
    background-color: #010A63;
    color: #fff;
    padding: 15px 10px;
    text-align: left;
    font-size: 16px;
    border: none;
    white-space: nowrap;
}

.main-table td {
    padding: 12px 10px;
    border-top: 1px solid #dee2e6;
    font-size: 16px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.col-dw,
.col-vw,
.col-aw {
    width: 60px;
    text-align: center;
}

.col-artiest {
    width: 34%;
}

.col-titel {
    width: auto;
}

.col-hit {
    width: 120px;
    text-align: center;
}

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

.main-table tr:nth-child(odd) {
    background-color: #fff;
}

/* =========================================================
   POSITIE BALLEN
   ========================================================= */

.ball {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.ball-gold {
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
}

.ball-black {
    background-color: #333;
}

.ball-green {
    background-color: #28a745;
}

.ball-red {
    background-color: #dc3545;
}

.ball-orange {
    background-color: orange;
}

/* =========================================================
   PAGINERING
   ========================================================= */

.pagination {
    margin: 25px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination a {
    background: #010A63;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    display: inline-block;
}

.pagination a:hover {
    background: #0056c7;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width: 100%;
        padding: 12px;
    }

    .top25-title {
        font-size: 22px;
    }

    .top25-intro {
        font-size: 15px;
    }

    .main-table th {
        padding: 10px 8px;
        font-size: 14px;
    }

    .main-table td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .ball {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 15px;
    }

    .pagination {
        gap: 10px;
    }

    .pagination a {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* =========================================================
   MOBIEL
   ========================================================= */

/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 500px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        margin: 0;
    }

    .top25-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .top25-intro {
        font-size: 14px;
        line-height: 1.5;
    }

    .top25-banner {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    /* =====================================================
       TOP 25 TABEL
       Alles binnen de schermbreedte
       ===================================================== */

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .main-table {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        table-layout: fixed;
        border-collapse: collapse;
    }


    /* =====================================================
       KOLOMMEN
       ===================================================== */

    .main-table th:nth-child(1),
    .main-table td:nth-child(1) {
        width: 11%;
    }

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

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

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

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

    .main-table th:nth-child(6),
    .main-table td:nth-child(6) {
        width: 17%;
    }


    /* =====================================================
       TABELTEKST
       ===================================================== */

    .main-table th {
        padding: 7px 3px;
        font-size: 10px;
        line-height: 1.1;
        text-align: center;
        white-space: normal;
    }

    .main-table td {
        padding: 7px 3px;
        font-size: 10px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       POSITIEBALLEN
       ===================================================== */

    .ball {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 11px;
    }


    /* =====================================================
       PAGINERING
       ===================================================== */

    .pagination {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 25px;
    }

    .pagination li {
        width: 100%;
    }

    .pagination a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 11px 10px;
        font-size: 14px;
    }
}