/* ===== 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, #0b8048 0%, #08713f 100%);
    flex-shrink: 0;
}

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

.bb-games-icon--teal,
.bb-games-icon--cyan {
    background: #08713f;
    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: #08713f;
    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-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.bb-section-arrow {
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(37, 40, 54, 0.55);
    color: #c5cad3;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}
.bb-section-arrow:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(50, 54, 70, 0.75);
}

.bb-games-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0;
    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;
}

@media (min-width: 992px) {
    .bb-section-arrow {
        display: inline-flex;
    }
}

.bb-games-more span {
    color: #b7c6d6;
    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(8, 113, 63, 0.45);
}

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

.bb-games-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 -1rem;
    padding: 2px 0 10px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    scroll-padding-inline: 1rem;
    touch-action: pan-x pinch-zoom;
    cursor: grab;
}

.bb-games-grid.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none;
    user-select: none !important;
}

.bb-games-grid.is-dragging,
.bb-games-grid.is-dragging * {
    cursor: grabbing !important;
}

.bb-games-grid.is-dragging a,
.bb-games-grid.is-dragging img,
.bb-games-grid.is-dragging .game-card-link {
    pointer-events: none !important;
}

.bb-games-grid a,
.bb-games-grid img,
.bb-games-grid .game-card-link {
    -webkit-user-drag: none !important;
    user-select: none !important;
}

.bb-games-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 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;
}

/* Placeholder Tobetano enquanto a capa carrega */
.tb-cover-skeleton {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: #0d1d30;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tb-cover-skeleton-pulse {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    animation: tb-cover-pulse 1.6s ease-in-out infinite;
}

.tb-cover-skeleton-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 8px;
    text-align: center;
}

.tb-cover-skeleton-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
}

.tb-cover-skeleton-title {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-cover-skeleton-provider {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes tb-cover-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.bb-games-cell {
    flex: 0 0 86px;
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    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: 12px !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: #0d1d30 !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: 133.333% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0d1d30 !important;
}

.bb-games-grid .game-card-media,
.bb-games-grid .game-card-skeleton,
.bb-games-grid .game-card-dash {
    border-radius: 12px !important;
}

.bb-games-grid .game-card-skeleton-orb {
    width: 40px !important;
    height: 40px !important;
}

.bb-games-grid .game-card-skeleton-title {
    font-size: 11px !important;
}

.bb-games-grid .game-card-skeleton-provider {
    font-size: 9px !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: #08713f !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 #08713f !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: none;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .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;
    }
}
