/* ===== Grid de jogos estilo Bullsbet (4 por fileira) ===== */
.bb-games-section {
    width: 100%;
    margin: 14px 0 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    user-select: none;
}

.bb-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.bb-games-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 0%;
}

.bb-games-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #ff7a1a 0%, #ff6600 100%);
    flex-shrink: 0;
}

.bb-games-icon--fire {
    background: transparent;
    color: #ff6600;
    font-size: 18px;
}

.bb-games-icon--teal,
.bb-games-icon--cyan {
    background: #ff6600;
    color: #ffffff;
}

.bb-games-icon--purple,
.bb-games-icon--orange,
.bb-games-icon--gold,
.bb-games-icon--live,
.bb-games-icon--teal,
.bb-games-icon--cyan {
    background: #ff6600;
    color: #fff;
}

.bb-games-title {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3em;
    min-width: 0;
    font-size: 16px;
    line-height: 1.2;
    font-family: Montserrat, system-ui, sans-serif;
}

.bb-games-title-accent {
    color: #fff;
    font-weight: 800;
}

.bb-games-title-rest {
    color: #fff;
    font-weight: 500;
}

.bb-games-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(37, 40, 54, 0.30);
    text-decoration: none;
    white-space: nowrap;
}

.bb-games-more span {
    color: #b8bbc7;
    font-family: Montserrat, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.bb-games-more:hover {
    border-color: rgba(255, 102, 0, 0.45);
}

.bb-games-more:hover span {
    color: #ff6600;
}

.bb-games-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: auto;
    margin: 0 -1rem;
    padding: 2px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    touch-action: pan-x;
}

.bb-games-grid::-webkit-scrollbar {
    display: none;
}

/* Espaçadores: padding em overflow-x some no mobile; ::before/::after não. */
.bb-games-grid::before,
.bb-games-grid::after {
    content: '';
    flex: 0 0 1rem;
    width: 1rem;
    min-width: 1rem;
    pointer-events: none;
}

.bb-games-grid::before {
    margin-inline-end: -10px;
}

.bb-games-grid::after {
    margin-inline-start: -10px;
}

.bb-games-cell {
    flex: 0 0 calc((100% - 30px) / 4);
    width: calc((100% - 30px) / 4);
    min-width: 78px;
    max-width: 120px;
    scroll-snap-align: start;
}

/* Cards no grid — proporção Bullsbet (padding-top 120%) */
.bb-games-grid .game-card-link {
    display: block;
    width: 100%;
}

.bb-games-grid .game-card-inner {
    aspect-ratio: auto !important;
    width: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    background: rgba(253, 255, 255, 0.05) !important;
    overflow: hidden !important;
}

.bb-games-grid .game-card-inner:hover {
    transform: none !important;
}

.bb-games-grid .game-card-body {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 120% !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: rgba(253, 255, 255, 0.05) !important;
}

.bb-games-grid .game-card-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.bb-games-grid .game-card-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.bb-games-grid .game-card-glow,
.bb-games-grid .game-card-neon-ring,
.bb-games-grid .game-card-top-badge {
    display: none !important;
}

.bb-games-grid .game-card-overlay {
    border-radius: 6px !important;
}

.bb-games-grid .game-card-play {
    background: #ff6600 !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    padding: 0.375rem 0.625rem !important;
    border-radius: 0.375rem !important;
}

/* Providers stack spacing */
.providers-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.providers-stack .bb-games-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Legacy carousel chrome — esconder se ainda existir */
.most-played-section.recommended-section,
.mj-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mj-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
}

.mj-card {
    flex: 0 0 31% !important;
    max-width: 148px !important;
    width: 31% !important;
    min-width: 108px !important;
    border-radius: 10px !important;
}

.mj-card img {
    aspect-ratio: auto !important;
    padding-top: 0 !important;
    width: 100%;
    height: auto;
    display: block;
}

.mj-seeall {
    display: inline-flex !important;
    align-items: center;
    padding: 4px 16px !important;
    border-radius: 16px !important;
    border: 1px solid #ff6600 !important;
    background: rgba(224, 224, 224, 0.1) !important;
    color: #f4f4f4 !important;
    font-size: 10px !important;
}

.mj-arrow {
    display: none !important;
}

.bottom-nav-root .back-to-top {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 60 !important;
}

@media (min-width: 700px) {
    .bb-games-cell {
        flex-basis: 140px;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}

@media (min-width: 1024px) {
    .bb-games-section {
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;
    }

    .bb-games-cell {
        flex-basis: 148px;
        width: 148px;
        min-width: 148px;
        max-width: 148px;
    }

    .mj-card {
        flex: 0 0 148px !important;
        width: 148px !important;
        min-width: 148px !important;
        max-width: 148px !important;
    }
}
