/* ==========================================================================
   ElitePOV: Contained, Centered & Fully Covered Single Scene Layout Styles
   ========================================================================== */

/**
 * 1. Main Structural Container
 * Sets up a clean black canvas. The 160px top padding provides an absolute
 * buffer to push your entire page content down past your fixed header menu.
 */

.scene-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
    margin-top: 100px;
}
.scene-top-bar .scene-title { margin: 0; font-size: 1.5rem; }
.scene-buy-now-button {
    background: #e50914;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.scene-runtime-container {
    box-sizing: border-box;
    background-color: #000000; 
    min-height: 100vh;
    width: 100%;
}

/**
 * 2. Main Page Layout Wrapper
 * Keeps all content—including the featured media box—safely locked inside 
 * a maximum layout grid width. Left and right auto margins handle horizontal centering,
 * while the 24px inline padding creates a consistent visual margin on smaller displays.
 */
.scene-wrapper {
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/**
 * 3. Contained Featured Media Box
 * This container naturally aligns with your text limits, centers itself via 
 * auto margins, and enforces strict viewport vertical ceiling thresholds.
 */
.scene-featured-media {
    box-sizing: border-box;
    margin: 0 auto 0 auto; /* Centers horizontally and pushes text downward */
    width: 100%;
    
    /* Strict Viewport Bounds Control: Computes window height minus header offset */
    height: 100vh;
    min-height: 350px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    background-color: var(--bg-color); /* Ensures the media box itself maintains the deep black canvas */
    border-radius: 8px; /* Optional subtle curve for contained elegance */
}

/**
 * 4. Full-Coverage Centered Image
 * Using object-fit: cover ensures the image completely fills the height and width
 * of the parent media box, creating a punchy, edge-to-edge frame look inside the container.
 */
.scene-cover-image {
    display: block;
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Changed from contain to completely fill the box dimensions */
    object-position: center center; /* Guarantees the absolute focus center is maintained */
}

/**
 * 5. Metadata Headers
 */
.scene-header {
    color: #ffffff;
    margin-bottom: 32px;
    text-align: left;
}

.scene-title {
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-text-color, #ffffff); 
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.scene-meta-performers {
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: 1.25rem; 
    color: var(--primary-text-color, #a0aec0); 
    margin: 0; 
}

.scene-meta-performers strong {
    color: var(--primary-text-color, #ffffff); 
    font-weight: 600;
}

/**
 * 6. Gutenberg Content Flow Stream
 */
.scene-content.entry-content {
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: var(--primary-text-color, #e2e8f0);
}

/* Fallback empty message layout */
.scene-no-content {
    text-align: center;
    padding: 80px 0;
    color: var(--primary-text-color, #ffffff);
}

/**
 * 7. Single Line Metadata Specs Bar Layout
 */
.scene-production-specs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: 1rem;
    color: #a0aec0;
}

.spec-meta-item strong {
    color: #ffffff;
    font-weight: 600;
}

.quality-badge {
    background-color: #ff3366; /* Vibrant production accent color choice */
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* ==========================================================================
   Single Scene Description Block Typography Layouts
   ========================================================================== */

.scene-custom-description-block {
    margin: 40px 0;
}

/* Updated Description Heading to H2 matching the Tags block */
.scene-custom-description-block .description-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0; /* Pure bottom spacing to drop the text right below */
    padding: 0;
    letter-spacing: -0.3px;
}

/* Simple, readable description text layout */
.scene-custom-description-block .description-body-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #b3b3b3;
    margin: 0;
    padding: 0;
}

/**
 * 9. Side-by-Side Small Box Gallery Layout Grid
 */
.scene-additional-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 Columns locked strictly side-by-side */
    gap: 12px;
    margin: 0 auto 48px auto;
    width: 100%;
}

.gallery-small-box {
    position: relative;
    aspect-ratio: 16 / 9; /* Sharp modern container bounds */
    background-color: #141414;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222222;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.gallery-small-box:hover {
    transform: scale(1.04);
    border-color: #ff3366;
    cursor: pointer;
}

.gallery-grid-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/**
 * 10. Interactive Video Hero Overlay Controls
 */
.scene-featured-media.dynamic-video-stage {
    position: relative;
    cursor: pointer;
}

.scene-video-play-trigger {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 51, 102, 0.85); /* Accent branding color matching your details block */
    border: none;
    outline: none;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.5), 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.3s ease;
}

.scene-video-play-trigger:hover {
    background: #ff3366;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 16px rgba(255, 51, 102, 0), 0 12px 30px rgba(0,0,0,0.5);
}

.play-icon-svg {
    width: 36px;
    height: 36px;
    margin-left: 4px; /* Optically adjusts the centering alignment balance of the triangle */
}

.scene-embedded-video-holder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: #000000;
}

.scene-embedded-video-holder iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/**
 * 11. Premium Conversion CTA Button Section
 */
.scene-purchase-action-container {
    margin: 28px 0 12px 0;
    width: 100%;
    display: block;
}

.scene-buy-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff1a53 0%, #cc0033 100%);
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    padding: 16px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(204, 0, 51, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.scene-buy-now-button:hover {
    background: linear-gradient(135deg, #ff3366 0%, #e6003c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 51, 102, 0.5);
}

.scene-buy-now-button:active {
    transform: translateY(0);
}

.cta-cart-icon {
    width: 22px;
    height: 22px;
}

/**
 * 12. Centered Gallery Splitter Divider
 */
.scene-gallery-divider-title {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    margin: 40px 0 24px 0;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--sans-serif, sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scene-gallery-divider-title::before,
.scene-gallery-divider-title::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #ffffff; 
    opacity: 0.8; 
}

.scene-gallery-divider-title span {
    padding: 0 20px;
    white-space: nowrap;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Moved to bottom to maintain cascading priority)
   ========================================================================== */

@media (max-width: 768px) {
    .scene-gallery-divider-title {
        font-size: 1.2rem;
        margin: 30px 0 20px 0;
    }
    .scene-gallery-divider-title span {
        padding: 0 12px;
    }

    .scene-featured-media {
        width: 100% !important;
        height: auto !important; 
        aspect-ratio: 16 / 9 !important; 
        min-height: 0 !important; 
        border-radius: 0;        
    }
    .scene-featured-media img,
    .scene-featured-media video,
    .scene-featured-media .scene-embedded-video-holder,
    .scene-featured-media iframe {
        width: 100% !important;
        height: 100% !important; 
        object-fit: cover; 
    }
    .scene-wrapper {
        padding: 0 16px; 
    }

    .scene-production-specs-bar {
        gap: 16px;
        font-size: 0.9rem;
    }

    /* Target wrapper + grid explicitly to override desktop rules */
    .scene-wrapper .scene-additional-gallery-grid {
        grid-template-columns: 1fr !important; 
        gap: 16px !important;
    }
    
    .gallery-small-box {
        border-radius: 6px; 
    }

    .scene-purchase-action-container {
        margin: 24px 0 4px 0;
    }
    .scene-buy-now-button {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 24px;
        font-size: 1.05rem;
    }
}

@media screen and (max-width: 600px) {
    .scene-purchase-action-container {
        margin: 24px 0 4px 0;
    }
    .scene-buy-now-button {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 24px;
        font-size: 1.05rem;
    }
}
/* ==========================================================================
   Single Scene Block Tag Pills Structure Layouts (Stacked)
   ========================================================================== */

.scene-inspector-tags-section {
    display: flex;
    flex-direction: column; /* Forces the pills row directly onto the next line */
    align-items: flex-start;
    gap: 14px;
    margin: 40px 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f1f1f; /* Clean break separator layout */
}

/* Updated Tag Label to H2 Typography Standards */
.scene-inspector-tags-section .tags-heading-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: -0.3px;
}

/* Next-line row wrapper handling individual string badges */
.scene-inspector-tags-section .tags-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* Visual Pill Node Badges Design Definition */
.scene-inspector-tags-section .tag-pill-node {
    display: inline-block;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #2e2e2e;
    transition: all 0.2s ease-in-out;
    cursor: default;
    user-select: none;
}

/* Hover highlights to make the interaction snappy */
.scene-inspector-tags-section .tag-pill-node:hover {
    background: #ff3366;
    color: #ffffff;
    border-color: #ff3366;
}

