/* Torneios - Layout principal (espaço para header fixo) */
.layout-content-holder-bc {
    max-width: 1200px;
    margin: 88px auto 0;
    padding: 16px 20px 40px;
    box-sizing: border-box;
}

/* Tabs: INÍCIO, CASSINO AO VIVO, TORNEIOS - espaço para header fixo */
.torneios-nav-tabs {
    display: flex;
    gap: 0;
    background: #0f2a1e;
    padding: 4px;
    margin: 88px 20px 16px 20px; /* 88px top = header + nav */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid rgba(153, 255, 0, 0.1);
}
.torneios-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s;
}
.torneios-tab:hover {
    color: #99ff00;
}
.torneios-tab.active {
    background: #99ff00;
    color: #000;
}

/* Filter - Collapsible */
.casino-game-tournament-filter {
    margin-bottom: 20px;
}
.componentFilterWrapper-bc {
    background: #0f2a1e;
    border-radius: 8px;
    border: 1px solid rgba(153, 255, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 100; /* Abaixo do header (z-index 2000), dropdown visível */
}
.componentFilterLabel-bc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.componentFilterLabel-bc:hover {
    background: rgba(153, 255, 0, 0.05);
}
.componentFilterLabel-filter-i-bc {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}
.componentFilterLabel-filter-bc {
    flex: 1;
}
.componentFilterLabel-filter-bc p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.componentFilterChevron-bc {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.componentFilterLabel-bc.open .componentFilterChevron-bc {
    transform: rotate(180deg);
}
.componentFilterBody-bc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.componentFilterBody-bc.open {
    max-height: 400px;
}
.componentFilterElsWrapper-bc {
    padding: 0 16px 16px;
}
.filter-form-w-bc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.u-i-p-control-item-holder-bc {
    width: 100%;
}
.form-control-bc {
    position: relative;
    background: #1a2e24;
    border: 1px solid rgba(153, 255, 0, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 48px;
    box-sizing: border-box;
}
.form-control-label-bc {
    display: block;
    cursor: pointer;
    position: relative;
}
.form-control-label-bc.inputs {
    padding-right: 0;
}
.form-control-select-bc {
    display: block;
    color: #fff;
    font-size: 14px;
    background: transparent;
    border: none;
    width: 100%;
    outline: none;
    appearance: none;
}
.form-control-label-bc select.form-control-select-bc {
    padding-right: 24px;
    cursor: pointer;
}
.form-control-icon-bc {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.7;
    pointer-events: none;
}
.form-control-title-bc {
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 10px;
    color: #99ff00;
    background: #0f2a1e;
    padding: 0 4px;
}
.u-i-p-c-footer-bc {
    margin-top: 8px;
}
.u-i-p-c-footer-bc .btn {
    width: 100%;
    padding: 12px 24px;
    background: #99ff00;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}
.u-i-p-c-footer-bc .btn:hover {
    background: #b8ff33;
}

/* Tournament List - Vertical cards */
.casino-game-tournament-list-bc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.casino-game-tournament-list-item {
    position: relative;
    background: #1a2e24;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(153, 255, 0, 0.15);
    min-height: 200px;
}
.tournament-section-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}
.casino-game-tournament-list-footer {
    position: relative;
    z-index: 1;
    padding: 16px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.casino-game-tournament-info-bc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.casino-game-tournament-title-container {
    margin-bottom: 8px;
}
.casino-game-tournament-title-bc {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.casino-game-tournament-price-bc {
    margin: 0 0 6px 0;
    color: #ffb347;
    font-size: 20px;
    font-weight: 700;
}
.casino-game-tornament-playercount-container {
    display: flex;
    align-items: center;
    gap: 6px;
}
.casino-game-tornament-playercount-container img {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}
.casino-game-tornament-playercount-container p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}
.casino-game-tournament-join-block-bc {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(153, 255, 0, 0.2);
}
.casino-game-tournament-ranking-container {
    margin-bottom: 8px;
}
.casino-game-tournament-ranking-title-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.casino-game-ranking-title {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.casino-game-player-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}
.casino-game-player-container:last-child {
    margin-bottom: 0;
}
.tournament-section-top-item-pos {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.tournament-section-top-item-pos-text {
    width: 20px;
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.casino-player-image-div {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.casino-player-image-roll {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: torneio-rodela-spin 3s linear infinite;
    z-index: 1;
}
@keyframes torneio-rodela-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.casinoTournamentLBTableElSp-bc-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.u-i-p-p-u-i-avatar-holder-bc {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #99ff00, #66cc00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #000;
}
.casino-player-image-div img.casinoPlayerImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}
.tournament-section-newNames {
    flex: 1;
    min-width: 0;
}
.tournament-section-newNames p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}
.tournament-section-newNames p:last-child {
    color: #99ff00;
    font-weight: 600;
    font-size: 11px;
}
.casino-game-tournament-line {
    height: 1px;
    background: rgba(153, 255, 0, 0.2);
    margin: 12px 0;
}
.casino-game-tournament-join-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.tournament-section-status-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #0f2a1e;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.tournament-section-status-container .tournament-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #99ff00;
    flex-shrink: 0;
}
.tournament-section-date {
    flex: 1;
    min-width: 0;
}
.countdown-banner-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    flex-wrap: nowrap;
}
.countdown-banner-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    min-width: 44px;
    background: #1a2e24;
    border-radius: 6px;
    border: 1px solid rgba(153, 255, 0, 0.15);
}
.countdown-banner-date {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.countdown-banner-names {
    color: rgba(255,255,255,0.8);
    font-size: 9px;
    text-transform: uppercase;
}
.casino-game-tournament-join-status-bc .btn,
.casino-game-tournament-join-status-bc a.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #99ff00;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.casino-game-tournament-join-status-bc .btn:hover,
.casino-game-tournament-join-status-bc a.btn:hover {
    background: #b8ff33;
}
.casino-game-tournament-join-status-bc .btn.joined,
.casino-game-tournament-join-status-bc a.btn.joined {
    background: #a0a0a0;
    color: #2d2d2d;
}

/* Mobile */
@media (max-width: 768px) {
    .layout-content-holder-bc {
        padding: 12px 16px 30px;
    }
    .casino-game-tournament-list-footer {
        padding: 12px;
        min-height: auto;
    }
    .casino-game-tournament-title-bc {
        font-size: 16px;
    }
    .casino-game-tournament-price-bc {
        font-size: 18px;
    }
    .casino-game-tournament-join-block-bc {
        margin-top: 10px;
        padding: 10px;
    }
    /* Ranking: manter avatares visíveis */
    .casino-game-player-container {
        padding: 6px 8px;
        gap: 8px;
    }
    .casino-player-image-div,
    .casino-player-image-roll {
        width: 28px;
        height: 28px;
    }
    .casino-player-image-div img.casinoPlayerImage {
        width: 18px;
        height: 18px;
    }
    .tournament-section-top-item-pos,
    .tournament-section-top-item-pos-text {
        width: 18px;
        font-size: 11px;
    }
    /* Join container: empilhar verticalmente (Termina em → countdown → botão) */
    .casino-game-tournament-join-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .tournament-section-date {
        width: 100%;
        flex: none;
    }
    .countdown-banner-content {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .countdown-banner-counter {
        min-width: 36px;
        padding: 6px 8px;
        flex-shrink: 0;
    }
    .countdown-banner-date {
        font-size: 14px;
    }
    .countdown-banner-names {
        font-size: 8px;
    }
    /* Botão PARTICIPAR/PARTICIPANDO em linha própria, sem sobreposição */
    .casino-game-tournament-join-status-bc {
        width: 100%;
    }
    .casino-game-tournament-join-status-bc .btn,
    .casino-game-tournament-join-status-bc a.btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* =====================================================
   TORNEIO DETALHE
   ===================================================== */
.layout-torneio-detalhe .back-nav-bc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 16px;
    margin-bottom: 12px;
}
.layout-torneio-detalhe .backButtonContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.layout-torneio-detalhe .backButtonContainer img {
    width: 24px;
    height: 24px;
}
.layout-torneio-detalhe .back-nav-title-bc {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.tournament-section-main-container {
    background: #1a2e24;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(153, 255, 0, 0.15);
    margin-bottom: 20px;
}
.tournament-section-header {
    position: relative;
    min-height: 180px;
    overflow: hidden;
}
.tournament-game-status.live {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 14px;
    background: #99ff00;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.tournament-section-img-detalhe {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}
.tournament-section-data-wrapper {
    padding: 16px;
}
.tournament-section-data-wrapper .tournament-section-title {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.tournament-section-line {
    border: none;
    height: 1px;
    background: rgba(153, 255, 0, 0.2);
    margin: 12px 0;
}
.tournament-section-data-wrapper .tournament-section-status-container {
    display: block;
    color: #99ff00;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.tournament-section-jb-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}
.tournament-section-money {
    color: #f5d000;
    font-size: 22px;
}
.tournament-join-button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.tournament-join-button .btn {
    padding: 10px 24px;
    background: #99ff00;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.tournament-join-button .btn.joined {
    background: rgba(153, 255, 0, 0.3);
    color: #99ff00;
}
.tournament-join-button time {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}
.casino-game-tabs {
    margin-bottom: 20px;
}
.horizontal-sl-tab-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.horizontal-sl-tab {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(153, 255, 0, 0.2);
}
.horizontal-sl-tab-bc {
    padding: 12px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -5px;
    transition: all 0.2s;
}
.horizontal-sl-tab-bc:hover {
    color: #fff;
}
.horizontal-sl-tab-bc.active {
    color: #fff;
    border-bottom-color: #99ff00;
}
.casino-game-tab-result {
    padding: 16px 0;
}
.tournament-details-info {
    background: #1a2e24;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(153, 255, 0, 0.1);
}
.casinoTournamentInfoSection-bc {
    margin-bottom: 20px;
}
.casinoTournamentInfoSection-bc:last-child {
    margin-bottom: 0;
}
.casinoTournamentInfoSectionTitle-bc {
    margin: 0 0 12px 0;
    color: #99ff00;
    font-size: 14px;
    font-weight: 600;
}
.casinoTournamentSectionContentBlock-bc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.casinoTournamentSectionContentEl-bc {
    background: #0f2a1e;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(153, 255, 0, 0.1);
}
.casinoTournamentSectionContentTitle-bc {
    margin: 0 0 6px 0;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 500;
}
.casinoTournamentSectionElStatus-bc {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.casinoTournamentSectionElStatus-bc.green {
    color: #99ff00;
}
.layout-torneio-detalhe .casino-game-tournament-ranking-container {
    margin-top: 12px;
}
.layout-torneio-detalhe .casino-game-tournament-ranking-title-container {
    margin-bottom: 12px;
}

/* Tabela de classificação - estilos específicos */
.tournament-leaderboard-container .tournament-leaderboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}
.tournament-leaderboard-container .tournament-leaderboard-header .casino-game-ranking-title {
    font-size: 11px;
}
.tournament-eu-row {
    background: rgba(153, 255, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 12px !important;
    border: 1px solid rgba(153, 255, 0, 0.2);
}
.tournament-rank-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(153, 255, 0, 0.2);
    border: 1px solid #99ff00;
    color: #99ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.tournament-rank-99 {
    background: rgba(150, 150, 150, 0.2);
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
}
.tournament-eu-avatar {
    background: rgba(150, 150, 150, 0.4) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.tournament-pontos {
    color: #99ff00 !important;
    font-weight: 700;
}

/* Regras do torneio */
.casinoTournamentRule-bc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}
.casinoTournamentRule-bc p {
    margin: 0 0 8px 0;
}

/* Prêmios - Distribuição */
.tournament-premios-title {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tournament-premios-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tournament-premios-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0f2a1e;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(153, 255, 0, 0.1);
}
.tournament-premios-item:last-child {
    margin-bottom: 0;
}
.tournament-premios-lugar {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}
.tournament-premios-valor {
    color: #99ff00;
    font-size: 15px;
    font-weight: 700;
}
