.rating-stars {
    --rating: 0;
    display: inline-block;
    position: relative;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2px;
    color: #ddd;
}

.rating-stars::before {
    content: "★★★★★";
}

.rating-stars::after {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    width: calc((var(--rating) / 5) * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: #ffc107;
}
.popular-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.popular-game-card {
    overflow: hidden;
    border-radius: 12px;
}

.popular-game-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
}

.popular-game-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.popular-game-card:hover img {
    transform: scale(1.05);
}

.popular-game-card h3 {
    margin: 8px 0 0;
    font-size: 14px;
    text-align: center;
}

/* Tablet */
@media (max-width: 991px) {
    .popular-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* HP */
@media (max-width: 575px) {
    .popular-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .popular-game-card h3 {
        font-size: 13px;
    }
}

/* provider */
.provider-games-grid-big {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.provider-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.provider-game-card {
    min-width: 0;
    text-align: center;
}
.provider-game-image img {
    width: 100%;
    height: 100%;
    background: #fff;
    aspect-ratio: 1 / 1;
    justify-content: center;
    object-fit: cover;
    border-radius: 14px;
    display: flex;
    padding: 18px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}


.provider-game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.provider-game-card:hover .provider-game-image {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

.provider-game-card h3 {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}
/* Tablet */
@media (max-width: 1199px) {
    .provider-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


/* Tablet kecil */
@media (max-width: 991px) {
    .provider-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Mobile */
@media (max-width: 575px) {
    .provider-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .provider-game-image {
        padding: 12px;
        border-radius: 10px;
    }

    .provider-game-card h3 {
        font-size: 11px;
    }
}

.provider-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
}

.provider-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}