/* ============================================
   DIGITAL EXHIBITION CATALOGUE DESIGN SYSTEM
   Modern Cinematic & Architectural Aesthetic
   ============================================ */

/* CSS Variables - Slate & Mist Palette */
:root {
    --bg-color: #2F353B;
    --text-color: #E6E6E6;
    --accent-color: #E07A2F;
    --accent-orange: #E07A2F;
    --card-bg: #373E44;
    --text-secondary: rgba(230, 230, 230, 0.7);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --max-content-width: 1200px;
    --timeline-offset: 60px;
    --text-max-width: 65ch;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-xs);
    text-transform: none;
    letter-spacing: normal;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--accent-color);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    text-transform: none;
    letter-spacing: normal;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    max-width: var(--text-max-width);
}

/* Container */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}

/* Header */
.header {
    background-color: var(--bg-color);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(224, 122, 47, 0.2);
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.nas-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(1352%) hue-rotate(350deg) brightness(95%) contrast(89%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nas-logo:hover {
    opacity: 0.9;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

.header-nav-link:hover {
    color: #E07A2F;
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    background-color: var(--card-bg);
    margin-bottom: var(--spacing-xl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
    max-width: var(--text-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
}

.timeline-line {
    position: absolute;
    left: var(--timeline-offset);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
    opacity: 0.6;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: calc(var(--timeline-offset) + 40px);
}

.timeline-marker {
    position: absolute;
    left: calc(var(--timeline-offset) - 8px);
    top: 0;
    width: 18px;
    height: 18px;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid rgba(224, 122, 47, 0.1);
}

/* Film Header */
.film-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(224, 122, 47, 0.2);
}

.film-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: none;
    letter-spacing: normal;
}

.film-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* Film Body */
.film-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.film-image-wrapper {
    position: relative;
}

.film-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.film-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 100%;
}

.film-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
    max-width: var(--text-max-width);
}

.film-intro {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

/* Curriculum Section */
.curriculum-section {
    margin-top: auto;
    margin-bottom: 60px;
    padding: var(--spacing-md);
    background-color: rgba(224, 122, 47, 0.05);
    border: 1px solid rgba(224, 122, 47, 0.2);
    border-radius: 4px;
    order: 999;
}

.curriculum-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.curriculum-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    background-color: #252A2F;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    text-align: center;
    line-height: 1.4;
}

/* Film Details */
.film-details {
    margin: var(--spacing-md) 0;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(224, 122, 47, 0.1);
}

.credits {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.8;
}

.credits strong {
    font-weight: 500;
    opacity: 1;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 47, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 122, 47, 0.3);
    background-color: transparent;
}

.btn-secondary:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(224, 122, 47, 0.05);
}

/* Watch Trailer Button (matches btn-primary styling) */
.watch-trailer-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

.watch-trailer-btn:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 47, 0.3);
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid rgba(204, 119, 34, 0.2);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    color: #9CA3AF;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.footer-text .footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text .footer-link:hover {
    color: #E07A2F;
}

.footer-link {
    font-family: 'Montserrat', sans-serif;
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-link:hover {
    color: #E07A2F;
}

.footer-link:hover .footer-arrow {
    transform: translateX(4px);
}

.footer-brand,
.footer-action {
    display: inline-block;
}

.footer-separator {
    color: #9CA3AF;
    opacity: 0.5;
}

.footer-link:hover .footer-separator {
    color: #E07A2F;
    opacity: 0.5;
}

.footer-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ============================================
   INSTITUTIONAL PRICING COMPONENT
   Prestige License Card - Certificate Style
   ============================================ */

.pricing-section {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.enrollment-section {
    padding-top: 100px;
    margin-top: 100px;
    border-top: 1px solid rgba(224, 122, 47, 0.1);
}

.enrollment-card {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid #E07A2F;
    border-radius: 8px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    background: linear-gradient(to bottom, rgba(55, 62, 68, 0.95), rgba(47, 53, 59, 0.95));
}

.pricing-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #E07A2F;
}

.pricing-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pricing-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 48px;
    color: #E07A2F;
    line-height: 1;
    margin: 0;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: rgba(224, 122, 47, 0.15);
    border: 1px solid #E07A2F;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E07A2F;
    box-shadow: 0 2px 8px rgba(224, 122, 47, 0.2);
}

.pricing-badge-icon {
    width: 14px;
    height: 14px;
    fill: #E07A2F;
}

.pricing-subtext {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.enrollment-narrative {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    padding: 10px 0;
    padding-left: 36px;
    position: relative;
    text-align: left;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #E07A2F;
    font-size: 20px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(224, 122, 47, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(224, 122, 47, 0.3);
}

.pricing-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-pricing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #E07A2F;
    color: var(--bg-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #E07A2F;
    min-height: 48px;
}

.btn-pricing-primary:hover {
    background-color: var(--bg-color);
    color: #E07A2F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 47, 0.3);
}

.btn-pricing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 122, 47, 0.5);
    background-color: transparent;
    min-height: 48px;
}

.btn-pricing-secondary:hover {
    color: #E07A2F;
    border-color: #E07A2F;
    background-color: rgba(224, 122, 47, 0.05);
}

/* Responsive Pricing */
@media (max-width: 600px) {
    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-price {
        font-size: 40px;
    }

    .pricing-features li {
        font-size: 13px;
        padding-left: 32px;
    }

    .pricing-buttons {
        flex-direction: column;
    }

    .btn-pricing-primary,
    .btn-pricing-secondary {
        width: 100%;
    }

    .enrollment-section {
        padding-top: 60px;
        margin-top: 60px;
    }

    .enrollment-narrative {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .film-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .film-image-wrapper {
        order: -1;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: calc(30px + 40px);
    }
    
    .timeline-marker {
        left: calc(30px - 8px);
    }
    
    .film-text {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 600px) {
    :root {
        --timeline-offset: 20px;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .timeline-line {
        left: var(--timeline-offset);
    }
    
    .timeline-item {
        padding-left: calc(var(--timeline-offset) + 30px);
    }
    
    .timeline-marker {
        left: calc(var(--timeline-offset) - 6px);
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: var(--spacing-md);
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nas-logo {
        height: 60px;
    }
    
    .tag {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* ============================================
   BRANDED VIDEO PLAYER COMPONENT
   Museum-Style Gallery Installation
   ============================================ */

/* Video Player Container */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: var(--spacing-lg) auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Theater Mode Overlay */
.theater-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 41, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.theater-mode-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.theater-mode-container {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    background-color: #000;
    border: 1px solid #E07A2F;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(224, 122, 47, 0.3),
                0 0 40px rgba(224, 122, 47, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 50;
    pointer-events: auto;
    /* Aspect ratio using padding-bottom method for better browser support */
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    /* Modern browsers support aspect-ratio */
    aspect-ratio: 16 / 9;
}

/* Fallback for browsers that support aspect-ratio */
@supports (aspect-ratio: 16 / 9) {
    .theater-mode-container {
        height: auto;
        padding-bottom: 0;
    }
}

.theater-mode-overlay.active .theater-mode-container {
    transform: scale(1);
}

.theater-mode-container .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 51;
}

.theater-mode-container .video-container video,
.theater-mode-container .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    z-index: 51;
    opacity: 1;
    visibility: visible;
}

.theater-mode-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 52;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.theater-mode-close:hover {
    background-color: rgba(224, 122, 47, 0.9);
    border-color: #E07A2F;
    transform: rotate(90deg) scale(1.1);
}

.theater-mode-close::before,
.theater-mode-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #FFFFFF;
    transform: rotate(45deg);
}

.theater-mode-close::after {
    transform: rotate(-45deg);
}

.theater-mode-close:hover::before,
.theater-mode-close:hover::after {
    background-color: #FFFFFF;
}

/* Responsive Theater Mode */
@media (max-width: 968px) {
    .theater-mode-container {
        width: 90vw;
        max-width: none;
        padding-bottom: 50.625%; /* Maintain 16:9 aspect ratio */
    }
}

@media (max-width: 768px) {
    .theater-mode-container {
        width: 95vw;
        padding-bottom: 53.4375%; /* Slightly adjusted for mobile */
    }
}

@media (max-width: 600px) {
    .theater-mode-container {
        width: 100vw;
        height: auto;
        padding-bottom: 56.25%; /* Standard 16:9 */
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .theater-mode-overlay {
        padding: 0;
    }
    
    .theater-mode-close {
        width: 44px;
        height: 44px;
        top: 8px;
        right: 8px;
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .theater-mode-close::before,
    .theater-mode-close::after {
        width: 18px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .theater-mode-container {
        padding-bottom: 56.25%;
    }
    
    .theater-mode-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

.video-player-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.video-player-close:hover {
    background-color: rgba(224, 122, 47, 0.9);
    border-color: #E07A2F;
    transform: rotate(90deg);
}

.video-player-close::before,
.video-player-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #FFFFFF;
    transform: rotate(45deg);
}

.video-player-close::after {
    transform: rotate(-45deg);
}

.video-player-fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: rgba(224, 122, 47, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-container.active ~ .video-player-fullscreen-btn {
    display: flex;
}

.video-player-wrapper .video-container.active ~ .video-player-fullscreen-btn {
    display: flex;
}

/* Update fullscreen button tooltip */
.video-player-fullscreen-btn[title] {
    cursor: pointer;
}

.video-player-fullscreen-btn:hover {
    background-color: #E07A2F;
    border-color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(224, 122, 47, 0.6);
}

.video-player-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

.video-player-fullscreen-btn.hidden {
    display: none !important;
}

/* Poster Frame with Overlay */
.video-poster-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    transition: opacity 0.3s ease;
}

.video-poster-container:hover .video-poster-image {
    transform: scale(1.05);
}

.video-poster-container:hover .video-poster-overlay {
    opacity: 0.7;
}

/* Custom Play Button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #E07A2F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(224, 122, 47, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(224, 122, 47, 0.6);
    background-color: #F08A3F;
}

.video-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid #FFFFFF;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px; /* Slight offset for visual centering */
}

/* Video Container (Hidden until play) */
.video-container {
    display: none;
    width: 100%;
    position: relative;
}

.video-container.active {
    display: block;
}

.video-container video,
.video-container iframe {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Caption */
.video-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-xs);
    line-height: 1.6;
}

/* Theater Mode Overlay */
.theater-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

.theater-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Theater Mode Video Container */
.theater-video-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1400px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.theater-video-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.theater-video-container .video-container {
    display: block;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #000;
}

.theater-video-container .video-container video,
.theater-video-container .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Close Button for Theater Mode */
.theater-close-button {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.theater-close-button:hover {
    background-color: rgba(224, 122, 47, 0.8);
    border-color: #E07A2F;
    transform: rotate(90deg);
}

.theater-close-button::before,
.theater-close-button::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #FFFFFF;
    transform: rotate(45deg);
}

.theater-close-button::after {
    transform: rotate(-45deg);
}

/* Plyr Custom Branding */
.plyr {
    --plyr-color-main: #E07A2F;
    --plyr-video-background: #000;
    --plyr-control-icon-size: 18px;
    --plyr-control-spacing: 12px;
    --plyr-control-radius: 4px;
    --plyr-video-controls-background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
}

.plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
}

.plyr__control--overlaid {
    background-color: #E07A2F !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(224, 122, 47, 0.4) !important;
}

.plyr__control--overlaid:hover {
    background-color: #F08A3F !important;
    transform: scale(1.1) !important;
    box-shadow: 0 12px 32px rgba(224, 122, 47, 0.6) !important;
}

.plyr__progress__played,
.plyr__volume__progress {
    background-color: #E07A2F !important;
}

.plyr__control[aria-expanded="true"],
.plyr__control:hover {
    background-color: rgba(224, 122, 47, 0.2) !important;
}

/* Make Fullscreen Button More Prominent */
.plyr__control[data-plyr="fullscreen"] {
    background-color: rgba(224, 122, 47, 0.3) !important;
    border: 1px solid rgba(224, 122, 47, 0.5) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    margin-left: 8px !important;
    transition: all 0.2s ease !important;
}

.plyr__control[data-plyr="fullscreen"]:hover {
    background-color: rgba(224, 122, 47, 0.6) !important;
    border-color: #E07A2F !important;
    transform: scale(1.1) !important;
}

.plyr__control[data-plyr="fullscreen"] svg {
    width: 20px !important;
    height: 20px !important;
    fill: #E07A2F !important;
}

.plyr__control[data-plyr="fullscreen"]:hover svg {
    fill: #FFFFFF !important;
}

/* Ensure controls are always visible when video is playing */
.plyr--playing .plyr__controls {
    opacity: 1 !important;
}

/* Hide YouTube/Vimeo Branding */
.plyr__video-wrapper iframe {
    pointer-events: auto;
}

/* Responsive Video Player */
@media (max-width: 968px) {
    .video-player-wrapper {
        margin: var(--spacing-md) auto;
        border-radius: 6px;
    }
    
    .video-play-button {
        width: 70px;
        height: 70px;
    }
    
    .video-play-button::before {
        border-left-width: 20px;
        border-top-width: 12px;
        border-bottom-width: 12px;
    }
    
    .theater-video-container {
        width: 95%;
    }
}

@media (max-width: 600px) {
    .video-player-wrapper {
        margin: var(--spacing-sm) 0;
        border-radius: 4px;
        max-width: 100%;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button::before {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
    
    .video-caption {
        font-size: 11px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .video-player-close {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    
    .video-player-fullscreen-btn {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        margin: var(--spacing-xs) 0;
    }
    
    .video-play-button {
        width: 56px;
        height: 56px;
    }
    
    .video-play-button::before {
        border-left-width: 14px;
        border-top-width: 9px;
        border-bottom-width: 9px;
    }
}
