.pool-filters {
    position: sticky;
    top: 86px;
    z-index: 10;

    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    max-width: 1080px;
    margin: 0 auto;
    border-radius: 50px;
    padding: 22px;

    background: rgba(27, 27, 27, 0.96);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-bottom: 1px solid #555;
}

.pool-filters button {
    min-width: 72px;
    padding: 7px 14px;

    background: transparent;
    border: 1px solid #777;
    border-radius: 999px;

    color: #ddd;

    font: 18px 'Bebas Neue', Arial, sans-serif;

    cursor: pointer;

    transition: 0.2s ease;
}

.pool-filters button:hover,
.pool-filters button.is-active {
    background: #c41118;
    border-color: #c41118;

    color: #fff;
}


/* =========================================================
   GROUPES
========================================================= */

.groups-list {
    max-width: 1120px;
    margin: 55px auto;
    padding: 0 22px;
}

.group-block {
    margin-bottom: 70px;
}

.group-block[hidden] {
    display: none;
}

.group-block__header {
    margin-bottom: 16px;
}

.group-block__header span {
    color: #ccc;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.group-block__header h2 {
    margin: 2px 0;

    font: 46px 'Bebas Neue', Arial, sans-serif;
}

.group-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.group-block .panel h3 {
    margin: 0 0 15px;

    font: 28px 'Bebas Neue', Arial, sans-serif;
}


/* =========================================================
   LISTE DES MATCHS
========================================================= */

.pool-matches {
    display: grid;
}

.pool-match {
    padding: 16px 0;

    border-bottom: 1px solid #ddd;
}

.pool-match:last-child {
    border-bottom: 0;
}


/* =========================================================
   SEMAINE
========================================================= */

.pool-match__round {
    display: block;

    margin-bottom: 8px;

    color: #777;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   CONTENU DU MATCH
========================================================= */

.pool-match__content {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        55px
        minmax(0, 1fr);

    align-items: center;
    gap: 12px;
}


/* =========================================================
   JOUEURS
========================================================= */

.pool-match__player {
    min-width: 0;
}

.pool-match__player--right {
    text-align: right;
}

.pool-match__name {
    display: block;

    overflow: hidden;

    color: #171717;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.pool-match__name:hover {
    color: #c41118;

    text-decoration: underline;
}


/* =========================================================
   SCORE
========================================================= */

.pool-match__score {
    text-align: center;
}

.pool-match__score strong {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;

    white-space: nowrap;
}


/* =========================================================
   ROSTER
========================================================= */

.pool-match__heroes {
    display: flex;
    align-items: center;
    gap: 6px;

    min-height: 48px;
    margin-top: 8px;
}

.pool-match__player--right .pool-match__heroes {
    justify-content: flex-end;
}


/* =========================================================
   HÉROS
========================================================= */

.pool-match__hero {
    position: relative;

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    opacity: 0.4;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.pool-match__hero img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    background: #222;

    border: 1px solid #bbb;
    border-radius: 50%;
}


/* =========================================================
   HÉROS JOUÉ
========================================================= */

.pool-match__hero--played {
    z-index: 2;

    opacity: 1;

    transform: scale(1.1);
}

.pool-match__hero--played img {
    border: 2px solid #c41118;

    box-shadow:
        0 0 0 2px #fff,
        0 0 0 3px rgba(196, 17, 24, 0.25);
}


/* =========================================================
   BADGE JOUÉ
========================================================= */

.pool-match__played-label,
.pool-match__hero span {
    position: absolute;
    bottom: -7px;
    left: 50%;
    z-index: 3;

    padding: 1px 5px;

    background: #c41118;
    border-radius: 999px;

    color: #fff;

    font-size: 6px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;

    transform: translateX(-50%);
}


/* =========================================================
   PAS DE TIRAGE
========================================================= */

.pool-match__no-draw {
    display: block;

    margin-top: 6px;

    color: #999;

    font-size: 10px;
}


/* =========================================================
   DÉTAIL DES MANCHES
========================================================= */

.pool-match__games {
    display: grid;
    gap: 7px;

    margin-top: 16px;
    padding-top: 13px;

    border-top: 1px solid #ddd;
}

.pool-match__game {
    display: grid;
    grid-template-columns:
        65px
        minmax(0, 1fr)
        30px
        minmax(0, 1fr);

    align-items: center;
    gap: 8px;

    padding: 8px;

    background: #f3f3f3;

    border-radius: 4px;
}

.pool-match__game-number {
    color: #777;

    font-size: 9px;

    text-transform: uppercase;
}

.pool-match__game-player {
    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 0;
}

.pool-match__game-player--right {
    justify-content: flex-end;

    text-align: right;
}

.pool-match__game-player img {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    object-fit: cover;

    border: 1px solid #bbb;
    border-radius: 50%;
}

.pool-match__game-player span {
    display: grid;

    min-width: 0;

    color: #777;

    font-size: 9px;
}

.pool-match__game-player b {
    overflow: hidden;

    color: #171717;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.pool-match__game-player em {
    padding: 2px 5px;

    background: #c41118;
    border-radius: 999px;

    color: #fff;

    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.pool-match__game-vs {
    color: #999;

    font-size: 9px;
    font-weight: 700;

    text-align: center;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 800px) {
    .pool-filters {
        top: 0px;
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        background: transparent;
        position: relative;
        border: none !important;
    }

    .pool-filters button {
        flex: 0 0 auto;
    }

    .group-block__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .groups-list {
        margin: 35px auto;
        padding: 0 15px;
    }

    .group-block {
        margin-bottom: 50px;
    }

    .group-block__header h2 {
        font-size: 38px;
    }


    /* Match */

    .pool-match__content {
        grid-template-columns:
            minmax(0, 1fr)
            40px
            minmax(0, 1fr);

        gap: 7px;
    }

    .pool-match__name {
        font-size: 11px;
    }

    .pool-match__score strong {
        font-size: 19px;
    }


    /* Roster */

    .pool-match__heroes {
        gap: 4px;

        min-height: 42px;
    }

    .pool-match__hero {
        flex-basis: 31px;

        width: 31px;
        height: 31px;
    }

    .pool-match__hero--played {
        transform: scale(1.08);
    }

    .pool-match__played-label,
    .pool-match__hero span {
        bottom: -6px;

        padding: 1px 4px;

        font-size: 6px;
    }


    /* Manches */

    .pool-match__game {
        grid-template-columns:
            1fr
            24px
            1fr;
    }

    .pool-match__game-number {
        grid-column: 1 / -1;

        text-align: center;
    }

    .pool-match__game-player {
        align-items: flex-start;
        flex-direction: column;
    }

    .pool-match__game-player--right {
        align-items: flex-end;
    }

    .pool-match__game-player--right img {
        order: -1;
    }

    .pool-match__game-player em {
        order: 3;
    }
}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 420px) {

    .pool-match__content {
        grid-template-columns:
            minmax(0, 1fr)
            36px
            minmax(0, 1fr);

        gap: 5px;
    }

    .pool-match__heroes {
        gap: 3px;
    }

    .pool-match__hero {
        flex-basis: 28px;

        width: 28px;
        height: 28px;
    }

    .pool-match__score strong {
        font-size: 17px;
    }
}