/* ===== TRANSPARENT CONTAINERS — let site background image show through ===== */
body:has(.bbr-draw-wrap) #page,
body:has(.bbr-draw-wrap) .site-content,
body:has(.bbr-draw-wrap) #content,
body:has(.bbr-draw-wrap) .ast-container,
body:has(.bbr-draw-wrap) #primary,
body:has(.bbr-draw-wrap) article,
body:has(.bbr-draw-wrap) main {
    background: transparent !important;
}

/* ===== DRAW NIGHT PAGE ===== */

.bbr-draw-wrap {
    min-height: 100vh;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.bbr-draw-status-area {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px;
}

.bbr-draw-status-banner {
    text-align: center;
}

.bbr-draw-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== CARD ===== */

.bbr-draw-card {
    background: #111111;
    border: 1px solid #2A2A2A;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
}

.bbr-draw-card--hero {
    border-color: #3A2A00;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.06);
}

/* ===== HEADING ===== */

.bbr-draw-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    letter-spacing: 3px;
    color: #D4AF37;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.bbr-draw-raffle-name {
    font-size: 18px;
    color: #AAAAAA;
    margin-bottom: 6px;
}

/* ===== USER TICKET ===== */

.bbr-draw-user-ticket {
    font-size: 16px;
    color: #AAAAAA;
    margin-bottom: 32px;
}

.bbr-draw-user-ticket--none {
    font-style: italic;
    color: #666;
}

.bbr-draw-ticket-num {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37, #9A7D0A);
    color: #0A0A0A;
    font-weight: 900;
    font-size: 22px;
    padding: 4px 16px;
    border-radius: 8px;
    margin-left: 6px;
    min-width: 40px;
    text-align: center;
}

/* ===== COUNTDOWN TIMER ===== */

.bbr-draw-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.bbr-draw-countdown-unit {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 20px 16px;
    min-width: 90px;
    text-align: center;
}

.bbr-draw-cd-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: #D4AF37;
    line-height: 1;
}

.bbr-draw-cd-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-top: 6px;
}

.bbr-draw-countdown-msg {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== LIVE BANNER ===== */

.bbr-draw-live-banner {
    background: linear-gradient(90deg, #1a0000, #0A0A0A 50%, #1a0000);
    border: 1px solid #440000;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.bbr-draw-live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #FF0000;
    border-radius: 50%;
    margin-right: 6px;
    animation: bbr-pulse-dot 1.4s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes bbr-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

.bbr-draw-live-banner strong {
    color: #D4AF37;
}

/* ===== VIDEO ===== */

.bbr-draw-video-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.bbr-draw-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2A2A2A;
}

.bbr-draw-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== UNMUTE BUTTON ===== */

.bbr-draw-unmute {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 175, 55, 0.95);
    color: #0A0A0A;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.bbr-draw-unmute:hover {
    transform: translateX(-50%) scale(1.05);
}

.bbr-draw-unmute.hidden {
    display: none;
}

/* ===== POST-DRAW / RESULTS ===== */

.bbr-draw-checking {
    font-size: 18px;
    color: #AAAAAA;
    padding: 20px 0;
}

.bbr-draw-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #2A2A2A;
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: bbr-spin 0.8s linear infinite;
    margin-top: 16px;
}

@keyframes bbr-spin {
    to { transform: rotate(360deg); }
}

.bbr-draw-result {
    text-align: center;
    padding: 20px 0;
}

.bbr-draw-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #9A7D0A);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    color: #0A0A0A;
    margin: 20px auto;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.bbr-draw-result-label {
    font-size: 20px;
    color: #AAAAAA;
    margin-bottom: 8px;
}

.bbr-draw-result-win {
    font-size: 28px;
    font-weight: 900;
    color: #D4AF37;
    margin-top: 16px;
    animation: bbr-glow 1.5s ease-in-out infinite alternate;
}

@keyframes bbr-glow {
    from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
    to   { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.3); }
}

.bbr-draw-result-lose {
    font-size: 18px;
    color: #888;
    margin-top: 16px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
    .bbr-draw-wrap {
        padding: 20px 12px;
    }
    .bbr-draw-card {
        padding: 32px 16px;
    }
    .bbr-draw-heading {
        font-size: 36px;
    }
    .bbr-draw-countdown-unit {
        min-width: 70px;
        padding: 14px 10px;
    }
    .bbr-draw-cd-num {
        font-size: 36px;
    }
    .bbr-draw-ball {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    .bbr-draw-live-banner {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ===== VIDEO PLACEHOLDER (countdown / post-draw) ===== */

.bbr-draw-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.bbr-draw-placeholder-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbr-draw-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.bbr-draw-placeholder-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.bbr-draw-placeholder-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 300px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
