/**
 * BhojpuriFilms OTT - Ultimate Immersive Cinema System
 * Unified Control Bar Layout featuring Safe Dynamic Image Banner Slots
 */

#bf-premium-pro-theater-blanket {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 9999999999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.bf-theater-content-container {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bf-theater-presentation-row {
    display: flex;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* 70% CINEMATIC VIEWPORT WINDOW */
.bf-video-screen-viewport {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    background: #000000;
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.bf-premium-squeezed-state {
    width: 70% !important;
}

.bf-video-screen-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.bf-pointer-security-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: auto !important;
}

.bf-premium-pre-roll-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.bf-loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 221, 0, 0.1);
    border-top: 3px solid #ffdd00;
    border-radius: 50%;
    animation: bf_spin_loop 0.8s linear infinite;
}
.bf-premium-pre-roll-loader p { margin: 0; font-size: 13px; font-weight: 800; color: #ffdd00; }

/* HOVER INTUITION CONTROLS AUTOMATION FADES (Wipes on idle automatically) */
.bf-theater-content-container .bf-premium-hover-shell {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}
.bf-theater-content-container:hover .bf-premium-hover-shell,
.bf-theater-content-container.bf-user-active-touch .bf-premium-hover-shell {
    opacity: 1;
    visibility: visible;
}

/* UNIFIED FLOATING CENTRAL PILL BAR CONTROL MATRIX */
.bf-custom-controls-rack {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(14, 14, 14, 0.65); /* Elegant transparent dark glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 221, 0, 0.3); /* Neon yellow theme outline */
    border-radius: 40px;
    padding: 10px 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.1);
    z-index: 5;
}
.bf-icon-ctrl-btn { background: transparent; border: none; color: #ffdd00; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; transition: transform 0.2s ease; }
.bf-icon-ctrl-btn:hover { transform: scale(1.2); }
.bf-close-btn-color:hover { color: #ff3333 !important; }

/* 30% SIDE AD PANEL DESIGN AREA */
.bf-premium-lateral-ad-panel {
    width: 30%; 
    height: 100%;
    background: #080808; /* Dark grid background */
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 3;
}
.bf-ad-panel-header { background: rgba(255,255,255,0.01); padding: 12px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bf-ad-panel-header span { font-size: 10px; font-weight: 900; color: #555; }

/* ISOLATED PURE SLOTS FOR FUTURE IMAGES OVERLAYS */
.bf-premium-dynamic-banner-slot {
    flex: 1;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 221, 0, 0.01); /* Smooth subtle placeholder tint */
}
.bf-festive-wishes-banner {
    background: rgba(255, 221, 0, 0.04);
    border: 1px solid rgba(255, 221, 0, 0.25);
    padding: 15px 12px;
    border-radius: 10px;
    text-align: center;
    color: #ffdd00;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}
.bf-ad-features-mini-log {
    margin-top: 25px;
    font-size: 13px;
    color: #cccccc;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}
.bf-pro-badge-placeholder {
    margin-top: auto;
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* HARDWARE FULLSCREEN AD LAYOUT OVERRIDES */
.bf-fullscreen-ad-override {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 30% !important;
    height: 100% !important;
    background: rgba(8, 8, 8, 0.96) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-left: 2px solid #ffdd00 !important;
    z-index: 8 !important;
    display: flex !important;
}

@keyframes bf_spin_loop { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ========================================================================
   ULTRA RESPONSIVE MOBILE HORIZONTAL OVERRIDES (LANDSCAPE ORIENTATION)
   ======================================================================== */
@media (max-width: 930px) and (orientation: landscape), (max-width: 768px) {
    
    /* 1. Force the presentation container row to grab 100% edge-to-edge space */
    .bf-theater-presentation-row { 
        flex-direction: row !important; /* Keep it side-by-side even on mobile landscape */
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 2. FIXED: Video Viewport now takes 100% full screen by default on mobile landscape */
    .bf-video-screen-viewport { 
        width: 100% !important; 
        height: 100% !important; 
        max-width: 100vw !important; 
        border-radius: 0 !important; 
        border: none !important; 
    }
    
    /* 3. Squeeze state during active countdown ticker logs */
    .bf-premium-squeezed-state { 
        width: 70% !important; /* Video gently shrinks to 70% width during active ads */
    }
    
    /* 4. FIXED: Ad Panel floats as a transparent absolute overlay on mobile landscape right edge */
    .bf-premium-lateral-ad-panel { 
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 30% !important; /* Takes exactly 30% width from the right side */
        height: 100% !important;
        border-left: 2px solid #ffdd00 !important; 
        border-top: none !important;
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important; /* Stack contents vertically */
    }
    
    /* Fullscreen override match logic alignment */
    .bf-fullscreen-ad-override { 
        position: absolute !important; 
        top: 0 !important; 
        right: 0 !important; 
        width: 30% !important; 
        height: 100% !important; 
        border-left: 2px solid #ffdd00 !important; 
        border-top: none !important;
        flex-direction: column !important;
    }
    
    /* Compact item adjustments to prevent overflowing small heights */
    .bf-premium-dynamic-banner-slot {
        flex-direction: column !important; 
        padding: 15px 10px !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    .bf-festive-wishes-banner { font-size: 11px !important; padding: 6px !important; width: 100% !important; }
    .bf-ad-features-mini-log { margin-top: 10px !important; font-size: 10px !important; text-align: center !important; line-height: 1.4 !important; }
    .bf-pro-badge-placeholder { font-size: 12px !important; margin-top: 10px !important; }
    
    /* 5. FIXED: Floating Controls bar floats perfectly over the lower center area */
    .bf-custom-controls-rack { 
        bottom: 25px !important; 
        padding: 6px 16px !important; 
        gap: 15px !important; 
        width: auto !important;
        min-width: 260px !important;
    }
}
