/**
 * MNG Studio Byse Fluid Player — Hornysimp Dark Luxury Tube Skin (v2.8.0)
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body.mng-fp-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #07070b !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: #f9fafb;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.mng-fp-stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
}

.mng-fp-video-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Force Fluid Player wrapper & <video> to fill 16:9 container 100% */
.mng-fp-video-mount .fluid_video_wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mng-fp-video-mount video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* Fluid Player Control Bar Luxury Overrides */
.mng-fp-video-mount .fluid_controls_container {
    background: linear-gradient(to top, rgba(7, 7, 12, 0.92) 0%, rgba(7, 7, 12, 0.45) 65%, rgba(7, 7, 12, 0) 100%) !important;
    z-index: 15 !important;
}

.mng-fp-video-mount .skip_button {
    background: rgba(116, 20, 59, 0.92) !important;
    border: 1px solid rgba(236, 72, 153, 0.7) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55) !important;
}

.mng-fp-video-mount .skip_button:hover {
    background: #ec4899 !important;
}

/* Zero-Downtime Embed Fallback Mount */
.mng-fp-embed-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 18;
    background: #000000;
}

.mng-fp-embed-fallback iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Branded Poster & Big Play Gate */
.mng-fp-poster-gate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background-color: #0b0b12;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mng-fp-poster-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mng-fp-poster-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 16, 0.18) 0%, rgba(7, 7, 12, 0.62) 100%);
    pointer-events: none;
}

.mng-fp-big-play {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(116, 20, 59, 0.95));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(236, 72, 153, 0.45), 0 0 0 8px rgba(236, 72, 153, 0.14);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
    padding: 0;
}

.mng-fp-poster-gate:hover .mng-fp-big-play,
.mng-fp-big-play:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 38px rgba(236, 72, 153, 0.65), 0 0 0 12px rgba(236, 72, 153, 0.22);
}

.mng-fp-play-svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

@media (max-width: 580px) {
    .mng-fp-big-play {
        width: 66px;
        height: 66px;
    }
    .mng-fp-play-svg {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Tap-To-Unmute Pill */
.mng-fp-unmute-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 24;
    background: rgba(15, 15, 23, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.6);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Responsive Pause Banner Overlay */
.mng-fp-pause-overlay {
    position: absolute;
    inset: 0;
    bottom: 48px; /* Keep Fluid Player bottom timeline/play controls clickable */
    z-index: 22;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 12, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 12px;
}

.mng-fp-pause-card {
    position: relative;
    background: rgba(17, 17, 26, 0.96);
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 10px;
    padding: 12px;
    max-width: 92%;
    max-height: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.mng-fp-pause-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
}

.mng-fp-pause-content {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
}

.mng-fp-pause-close {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #74143B;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mng-fp-pause-resume {
    background: linear-gradient(135deg, #ec4899, #74143B);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

/* Parallel Background Pre-Warm Ad Decks Layer
 * Full 100%x100% dimensions are maintained on ALL decks so anti-adblock WASM
 * innerWidth/innerHeight checks see real HD player geometry.
 * ONLY the single .is-armed deck has pointer-events: auto!
 */
.mng-fp-decks-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    background: transparent;
    pointer-events: none;
}

.mng-fp-decks-layer.has-armed-deck {
    pointer-events: auto;
}

.mng-pop-deck {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.mng-pop-deck.is-armed {
    opacity: 0.001; /* Keeps compositor active while visually 100% transparent */
    pointer-events: auto !important;
    z-index: 30 !important;
    cursor: pointer;
}

/* Live Debug HUD (?mng_pop_debug=1) */
.mng-fp-debug-hud {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 45;
    background: rgba(10, 12, 20, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.65);
    color: #f3f4f6;
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.45;
    padding: 7px 11px;
    border-radius: 6px;
    pointer-events: none;
    max-width: 92%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
