@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@600&family=Montserrat:wght@400;700&display=swap');

.toplist-videogamer__wrapper {
    margin: 32px 0;
}

.toplist-videogamer__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-videogamer-counter;
    gap: 8px;
}

.toplist-videogamer__filter-tags-json {
    box-sizing: border-box;
}

.toplist-videogamer__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    border-bottom: 1px solid #c3c9bb;
}

.toplist-videogamer__filter-tag {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 21px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 48px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    text-transform: uppercase;
    color: #8198a7;
    border-bottom: 6px solid transparent;
}

.toplist-videogamer__filter-tag.filter-tag-active {
    color: #000;
    border-bottom: 6px solid #f8d468;
}

.toplist-videogamer__offer {
    position: relative;
    display: grid;
    align-items: center;
    padding: 8px 8px 8px 16px;
    counter-increment: bm-toplist-videogamer-counter 1;
    border-radius: 4px;
    background-color: #282828;
    background-image: url('../images/videogamer/background.png');
    background-size: 667px;
    box-shadow:
        0 1px 2px 0 #0000003d,
        0 4px 16px 0 #0000005b;
    grid-template-areas: 'logo rating main';
    grid-template-columns: 167px 122px auto;
    grid-template-rows: 1fr;
}

.toplist-videogamer__offer:before {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    position: absolute;
    top: 9px;
    left: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    content: counter(bm-toplist-videogamer-counter);
    color: #fff;
    border-radius: 2px 0 0 2px;
    background: #4a4a4a;
}

.toplist-videogamer__offer.hidden {
    display: none;
}

.toplist-videogamer__offer-label {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    position: absolute;
    top: 9px;
    left: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 8px;
    color: #000;
    border-radius: 0 2px 2px 0;
    background: #f5c228;
}

.toplist-videogamer__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 167px;
    height: 80px;
    grid-area: logo;
}

.toplist-videogamer__offer-logo img {
    width: 167px;
    height: 80px;
    object-fit: contain;
}

.toplist-videogamer__offer-rating {
    display: grid;
    text-align: center;
    gap: 4px;
    grid-area: rating;
    grid-template-areas:
        'value'
        'image'
        'brand';
}

.toplist-videogamer__offer-rating-value {
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    border: 2px solid #464646;
    border-radius: 100px;
    background: #323232;
    grid-area: value;
}

.toplist-videogamer__offer-rating-img {
    margin-top: 4px;
    grid-area: image;
}

.toplist-videogamer__offer-rating-img img {
    height: 16px;
}

.toplist-videogamer__offer-brand {
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 16px;
    color: #fff;
    grid-area: brand;
}

.toplist-videogamer__offer-main {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-left: 8px;
    padding: 16px 24px;
    background: #323232;
    gap: 16px;
    grid-area: main;
}

.toplist-videogamer__offer-title {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    gap: 4px;
}

.toplist-videogamer__offer-title span {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.toplist-videogamer__offer-cta-btn {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 21.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 48px;
    text-align: center;
    color: #000;
    border-radius: 48px;
    background:
        radial-gradient(107.08% 85.59% at 86.3% 87.5%, #0000003a 0%, #0000 86.18%), radial-gradient(83.94% 83.94% at 26.39% 20.83%, #ffffff68 0%, #fff0 69.79%, #fff0 100%), #f5c228;
    gap: 8px;
}

.toplist-videogamer__offer-cta-btn:before {
    position: relative;
    bottom: 1px;
    width: 17px;
    height: 16px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='17' viewBox='0 0 18 17' fill='none'%3E%3Cpath d='M8.40937 7.17513H1.4468V14.0109C1.43923 14.7104 1.71939 15.3833 2.22294 15.8774C2.72649 16.3715 3.41271 16.6469 4.12544 16.6403H8.41032L8.40937 7.17513ZM8.57028 3.59825H9.31992C10.062 2.32045 10.7416 1.45155 11.3805 0.982076C12.168 0.401862 12.9744 0.397129 13.6067 1.01804C14.1973 1.59731 14.3081 2.32424 13.919 3.02466C13.8092 3.21964 13.6635 3.41084 13.4808 3.59825H16.2333C16.876 3.59825 17.5186 4.1264 17.5186 4.85995C17.5186 5.49128 16.9801 6.12261 16.2333 6.12261H9.48083V4.4397H8.40937V6.12261H1.76672C1.12498 6.12261 0.48135 5.59445 0.48135 4.85995C0.48135 4.22957 1.01992 3.59825 1.76672 3.59825H4.54948C4.37535 3.436 4.22038 3.25435 4.08758 3.05684C3.62662 2.35263 3.68247 1.60867 4.28351 1.01804C4.91578 0.397129 5.72221 0.402808 6.51066 0.982076C7.14861 1.45155 7.82821 2.3214 8.57123 3.59825H8.57028ZM7.32561 3.59825C6.77663 2.72461 6.28634 2.13115 5.86798 1.82353C5.48085 1.53957 5.26883 1.53768 5.04072 1.76106C4.80693 1.99106 4.79273 2.18794 4.98866 2.48704C5.21204 2.82873 5.68246 3.21396 6.36016 3.59825H7.32561ZM10.5646 3.59825H11.7193C12.3658 3.22721 12.7927 2.85239 12.9782 2.51922C13.1391 2.23148 13.105 2.01283 12.8495 1.76201C12.6214 1.53768 12.4094 1.53863 12.0232 1.82353C11.6039 2.13115 11.1126 2.72461 10.5655 3.59825H10.5646ZM9.48083 7.17419H16.4444V14.0109C16.4473 14.3582 16.3801 14.7026 16.2468 15.0233C16.1134 15.3441 15.9166 15.6346 15.6682 15.8774C15.1603 16.3739 14.4759 16.6483 13.7657 16.6403H9.48083V7.17419Z' fill='black'/%3E%3C/svg%3E");
}

.toplist-videogamer__offer-cta-btn:hover {
    text-decoration: unset;
    color: #000;
    background: #edb100;
}

.toplist-videogamer__show-more-btn {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 27.506px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 48px;
    margin: 16px auto 0;
    padding: 16px;
    text-align: center;
    color: #00001c;
    border: 2px solid #000;
    border-radius: 100px;
    background: #fff;
}

.toplist-videogamer__show-more-btn:hover {
    cursor: pointer;
    color: #c3c9bb;
    background: #000;
}

@media screen and (width <= 991px) {
    .toplist-videogamer__wrapper {
        margin: 18px 0;
    }

    .toplist-videogamer__offers {
        gap: 16px;
    }

    .toplist-videogamer__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100vw;
        margin: 0 0 16px;
        padding: 0 16px 0 0;
    }

    .toplist-videogamer__filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .toplist-videogamer__filter-tag {
        font-size: 14px;
    }

    .toplist-videogamer__offer {
        padding: 0;
        background-image: url('../images/videogamer/background-mobile.png');
        background-size: 338px;
        grid-template-areas:
            'logo'
            'rating'
            'main';
        grid-template-columns: auto;
    }

    .toplist-videogamer__offer-logo {
        margin: 0 auto;
    }

    .toplist-videogamer__offer-rating {
        width: max-content;
        margin: 0 auto;
        text-align: unset;
        gap: 4px 10px;
        grid-template-areas:
            'value image'
            'value brand';
    }

    .toplist-videogamer__offer-rating-value {
        font-size: 16px;
        line-height: 22px;
        width: 36px;
        height: 36px;
    }

    .toplist-videogamer__offer-rating-img {
        margin-top: 0;
    }

    .toplist-videogamer__offer-brand {
        line-height: 10px;
    }

    .toplist-videogamer__offer-main {
        margin: 16px 8px 8px;
        padding: 16px;
    }

    .toplist-videogamer__offer-cta-btn {
        width: 225px;
    }

    .toplist-videogamer__show-more-btn {
        width: 100%;
    }
}
