/* ==========================================================================
   1. GLOBAL SYSTEM ARCHITECTURE RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #06080b;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   2. HERO POSTER CANVAS & ENHANCED VISUAL OVERLAYS
   ========================================================================== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/bg/bg_8.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Darkened overlay structure (0.85 opacity base) to ensure perfect accessibility ratings */
    background: linear-gradient(to top, rgba(6, 8, 11, 1) 0%, rgba(6, 8, 11, 0.75) 45%, rgba(0, 0, 0, 0.35) 100%),
                linear-gradient(to right, rgba(6, 8, 11, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%);
    z-index: -1;
}

/* ==========================================================================
   3. CORPORATE HEADER DESIGN & CONTENT NAVIGATION
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    background: transparent;
    position: relative;
    z-index: 100; /* Increased to remain over sliding layouts safely */
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo Sizing Metrics */
.logo {
    display: flex;
    align-items: center;
    height: 25px; 
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Navigation Links Container spacing */
.nav-links {
    display: flex;
    gap: 40px; 
}

.nav-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
}

/* Hidden Control Pins for Mobile Responsive System */
.menu-toggle-checkbox,
.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: #ffffff;
}

/* ==========================================================================
   MANUAL DESKTOP SPACING ARCHITECTURE
   ========================================================================== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 100px; /* Space between logo and links grid */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px; 
}

/* ==========================================================================
   4. UTILITY INPUT SEARCH & DISCOVERY
   ========================================================================== */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    gap: 8px;
}

.search-box i {
    color: #b3b3b3;
    font-size: 13px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    width: 80px;
    transition: width 0.3s ease;
}

.search-box input:focus {
    width: 130px;
}

/* ==========================================================================
   5. REGIONAL LOCALIZATION & AUTH CONTROLS
   ========================================================================== */
.lang-dropdown-wrapper {
    position: relative;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.15);
}

.arrow-icon {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

/* Dropdown Menu Positions */
.lang-dropdown-menu,
.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0d111d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 120px;
    display: none; /* Controlled via active class in JS */
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 150;
}

.lang-dropdown-menu.show,
.account-dropdown-menu.show {
    display: flex;
}

.lang-dropdown-menu a,
.account-dropdown-menu a {
    color: #b3b3b3;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-menu a:hover,
.account-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.lang-dropdown-menu a.active {
    color: #e50914;
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-signin {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-signup {
    background: #e50914;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-signup:hover {
    background: #b80710;
}

/* Mobile Account Button Core Defaults (Hidden on Desktop) */
.account-dropdown-wrapper {
    position: relative;
    display: none;
}

.btn-account {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-option i {
    margin-right: 6px;
    font-size: 12px;
}

/* ==========================================================================
   TABLET & LAPTOP RESPONSIVE MEDIA BREAKPOINT (769px to 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }
    .nav-left {
        gap: 40px;
    }
}

/* ==========================================================================
   MOBILE & TABLET INTERFACES BREAKPOINT RULES (Below 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    /* 1. Toggle Hamburger Layout Activations */
    .hamburger-icon {
        display: flex;
        align-items: center;
        order: -1; /* Shifts hamburger button before the Logo element positioning */
    }

    /* Track hamburger checkbox states visually */
    .menu-toggle-checkbox:checked ~ .hamburger-icon .icon-open {
        display: none;
    }
    .menu-toggle-checkbox:checked ~ .hamburger-icon .icon-close {
        display: block;
    }
    .hamburger-icon .icon-close {
        display: none;
    }

    /* 2. Slide Drawer Menu Interface */
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 260px;
        height: calc(100vh - 100%);
        background: #090c14;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        gap: 0;
        padding-top: 10px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links a {
        width: 100%;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 15px;
    }

    /* Trigger slide-out event configuration hook */
    .menu-toggle-checkbox:checked ~ .nav-links {
        left: 0;
    }

    /* 3. Re-route Spacing and Swap Desktop Button Arrays for the Account Dropdown */
    .auth-buttons {
        display: none; /* Completely hides separate login options */
    }

    .account-dropdown-wrapper {
        display: block; /* Reveals unified "Account" component button */
    }

    /* 4. Strict Ordering Architecture: [Hamburger] -> [Logo] -> [Language] -> [Search] -> [Account] */
    .nav-left {
        gap: 16px;
    }

    .nav-right {
        gap: 10px; /* Compact mobile control spacing limits */
        flex: 1;
        justify-content: flex-end;
    }

    /* Order Adjustments for exact matching layout structures */
    .lang-dropdown-wrapper {
        order: 1;
    }
    .search-box {
        order: 2;
    }
    .account-dropdown-wrapper {
        order: 3;
    }

    /* Compact search scaling architecture defaults for mobile viewing */
    .search-box input {
        width: 0px;
        padding: 0;
    }
    .search-box input:focus {
        width: 75px;
    }
    .search-box {
        padding: 6px 10px;
    }
}

/* Micro Mobile Screen Tweaks */
@media (max-width: 480px) {
    .btn-account span,
    .btn-lang span {
        display: none; /* Drop internal typography strings to fit safely on tiny views */
    }
    .btn-account, .btn-lang {
        padding: 8px;
        border-radius: 50%; /* Uniform round icons look perfect */
    }
    .arrow-icon {
        display: none;
    }
    .account-dropdown-menu,
    .lang-dropdown-menu {
        right: -10px;
    }
}

/* ==========================================================================
   6. HERO BILLBOARD METADATA ELEMENT LAYOUT
   ========================================================================== */
.hero-container {
    padding: 0 60px;
    height: calc(100vh - 85px);
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.content-wrapper {
    max-width: 800px;
}

.movie-title {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #cccccc;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.badge-age {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-imdb {
    background: #f5c518;
    color: #000000;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.meta-item i {
    margin-right: 4px;
    color: #aaaaaa;
}

/* ==========================================================================
   7. CHRONOLOGY TAGS & CLASSIFICATIONS
   ========================================================================== */
.tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #dddddd;
    cursor: pointer;
    transition: background 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.12);
}

.info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.info-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #bbbbbb;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   8. ENGAGEMENT RUNTIME TRIGGERS & ACTIONS
   ========================================================================== */
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-details {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-details:hover {
    background: #b80710;
}

.btn-watchlist {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border 0.2s;
}

.btn-watchlist:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-icon {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.btn-icon.active-like {
    background: #2ecc71;
    border-color: #2ecc71;
}

.btn-icon.active-dislike {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* ==========================================================================
   9. VIEWPORT MEDIA ADAPTATION LAYER (RESPONSIVE RESPONSIVENESS)
   ========================================================================== */

/* --- TABLET ADAPTABILITY SYSTEM (Max-width: 1024px) --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .logo {
        height: 25px;
    }
    
    .hero-container {
        padding: 0 30px 60px 30px;
    }

    .movie-title {
        font-size: 56px;
    }

    .nav-left, .nav-right {
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

/* --- SMARTPHONE RENDERING SYSTEM (Max-width: 768px) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .logo {
        height: 18px; 
    }

    .hamburger-icon {
        display: block;
        order: 2;
    }
    
    .hamburger-icon .icon-close {
        display: none;
    }

    /* Mobile Overlay Menu View */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 8, 11, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        z-index: 99;
    }

    /* Checkbox Trigger Conditions */
    .menu-toggle-checkbox:checked ~ .nav-links {
        display: flex;
    }
    
    .menu-toggle-checkbox:checked ~ .hamburger-icon .icon-open {
        display: none;
    }
    
    .menu-toggle-checkbox:checked ~ .hamburger-icon .icon-close {
        display: block;
    }

    .search-box {
        padding: 6px 10px;
    }
    
    .search-box input {
        width: 50px;
    }
    
    .search-box input:focus {
        width: 80px;
    }

    .btn-lang {
        padding: 6px 10px;
    }

    /* Text Block Restructuring */
    .hero-container {
        padding: 0 20px 40px 20px;
        height: calc(100vh - 70px);
    }

    .movie-title {
        font-size: 42px;
        margin-bottom: 16px;
    }

    .meta-row, .tags-row, .info-row, .action-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .meta-row {
        font-size: 13px;
    }

    /* Action triggers optimization for mobile hitboxes */
    .btn-details, .btn-watchlist {
        padding: 12px 18px;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }
}

/* --- NARROW CONSTRAINED DISPLAYS (Max-width: 480px) --- */
@media (max-width: 480px) {
    .nav-right .btn-lang, 
    .nav-right .btn-signin {
        display: none; 
    }
    
    .movie-title {
        font-size: 36px;
    }
}



/* ==========================================================================
   10. MAIN MOVIE WRAPPER & SECTIONS LAYOUT
   ========================================================================== */
.main-content-display {
    padding: 40px 60px 80px 60px;
    background-color: #06080b;
    position: relative;
    z-index: 5;
}

.movie-section {
    margin-bottom: 60px;
}

/* ==========================================================================
   11. CAROUSEL SECTION HEADERS & RED INDICATORS
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.section-title:hover {
    color: #e50914;
}

.section-title i {
    font-size: 16px;
    color: #ffffff;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.control-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.control-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.slider-indicator-track {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.slider-indicator-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #e50914;
    border-radius: 2px;
    width: 0%; /* Managed dynamically via JavaScript engine */
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   MOVIE CARD POSTER HOVER SYSTEM
   ========================================================================== */

/* 1. Establish absolute positioning context wrapper limits */
.poster-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Keeps edges clean matching your design */
}

/* 2. Hidden Overlay state masking default values */
.poster-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;                 /* Hidden by default */
    transition: opacity 0.35s ease; /* Smooth fade presentation transition */
    z-index: 5;
}

/* 3. Reveal overlay layout elements cleanly upon user mouse trigger interaction */
.poster-wrapper:hover .poster-hover-overlay {
    opacity: 1;
}

/* 4. Top Right Wishlist Heart Alignment Configuration Details */
.wishlist-heart-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 4px;
}

.wishlist-heart-btn:hover {
    transform: scale(1.15);
    color: #e50914; /* Swaps tone profile to highlight active selections */
}

/* 5. Content Block Sizing Elements Alignment Specs */
.hover-details-metadata {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hover-meta-item {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.hover-meta-item i {
    color: #ffffff;
    width: 16px; /* Prevents differing typography sizes breaking structure */
    text-align: center;
}

/* Bottom Metric Distribution Row Alignments Grid */
.hover-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    width: 100%;
}

/* IMDb Gold Accent Metric presentation blocks */
.hover-imdb-rating {
    background: #f5c518;
    color: #000000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hover-imdb-rating i {
    font-size: 0.75rem;
}
/* ==========================================================================
   12. POSTER MOVIE CARDS MATRIX (RIGID TRANSLATION SLIDER)
   ========================================================================== */
.carousel-window {
    width: 100%;
    overflow: hidden; /* Hard cut to disable any accidental touch/mouse scrolling */
}

.movie-cards-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.movie-card {
    flex: 0 0 calc((100% - (20px * 5)) / 6); /* Default 6 columns on desktop */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poster-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #111419;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.poster-wrapper:hover {
    transform: scale(1.03);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 2px;
}

/* ==========================================================================
   13. RESPONSIBLENESS AND SCREEN ADAPTATION SYSTEM
   ========================================================================== */

@media (max-width: 1024px) {
    .main-content-display {
        padding: 30px;
    }
    .movie-cards-grid {
        gap: 16px; /* Reduced layout spaces for tablets */
    }
    .movie-card {
        flex: 0 0 calc((100% - (16px * 3)) / 4); /* Displays exactly 4 items per frame */
    }
}

@media (max-width: 768px) {
    .main-content-display {
        padding: 20px;
    }
    .section-title {
        font-size: 20px;
    }
    .movie-card {
        flex: 0 0 calc((100% - (16px * 2)) / 3); /* Displays exactly 3 items per frame */
    }
}

@media (max-width: 480px) {
    .movie-card {
        flex: 0 0 calc((100% - (16px * 1)) / 2); /* Displays exactly 2 items per frame */
    }
}

/* Container framework to isolate the absolute dropdown layout positioning context */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Updated button rule incorporating a tiny transition arrow tweak */
.btn-lang {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-lang:hover, .btn-lang.active-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lang .arrow-icon {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Rotates the small dropdown indicator chevron when active */
.btn-lang.active-btn .arrow-icon {
    transform: rotate(180deg);
}

/* Hidden container overlay layer holding languages menu */
.lang-dropdown-menu {
    display: none; /* Controlled dynamically via JavaScript classes */
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0e1218; /* Slightly lighter tone than system canvas base (#06080b) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 100;
}

/* Triggers visible render layer state via script injection */
.lang-dropdown-menu.show-menu {
    display: flex;
    flex-direction: column;
}

/* Individual selector anchor element style states */
.lang-option {
    color: #b3b3b3;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Red active state marker styling matching Filimoon accents */
.lang-option.active {
    color: #ffffff;
    background: rgba(229, 9, 20, 0.15); /* Soft Filimoon red highlight */
    border-left: 2px solid #e50914;
}

/* ==========================================================================
   14. PERSISTENT FIXED FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Dark background bar matching screenshot layout tones with frosted glass effect */
    background-color: rgba(6, 8, 11, 0.92); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 60px;
    z-index: 9999; /* Higher layer factor ensures it floats cleanly above movie cards */
}

.footer-inner-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Left Column: Navigation Paths --- */
.footer-links {
    display: flex;
    align-items: center;
    gap: 32px; /* Generous spacing matching screenshot margins */
}

.footer-link {
    color: #a3a7ac; /* Muted gray text tone */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff; /* Clean transition highlight on focus pointer placement */
}

/* --- Right Column: Social Profiles Matrix --- */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.socials-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.08); /* Dark pill circular backdrop frames */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* ==========================================================================
   15. FOOTER RESPONSIVE ADJUSTMENT SPECIFICATIONS
   ========================================================================== */

/* Layout correction for layouts with page structure adjustments or narrow views */
@media (max-width: 1024px) {
    .site-footer {
        padding: 16px 30px;
    }
    .footer-links {
        gap: 20px;
    }
}

/* Medium viewport wrapping configurations for compact devices */
@media (max-width: 768px) {
    .footer-inner-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 20px; /* Wraps cleanly into two rows on tablets if space pinches */
    }
}

/* Maximum micro-compaction settings for phones */
@media (max-width: 480px) {
    .site-footer {
        padding: 14px 16px;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 10px 14px;
    }
    
    .footer-socials {
        flex-direction: column;
        gap: 8px;
    }
}

/* Master viewport layout constraints */
.hero-slider-window {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Linear container strip carrying our slides side-by-side */
.hero-slider-track {
    display: flex;
    width: 300%; /* Space allocation accommodating exactly 3 items */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Individual slider system layout frame defaults */
.hero-slide {
    width: 33.3333%; /* Each slide occupies exactly 1 full viewport width frame */
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Ensure the absolute graphic overlays attach safely inside each parent slide instance */
.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Bring typography contents safely forward over slide background images */
.hero-slide .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Compatibility support layer matching your Dari RTL directions layout adjustments */
[dir="rtl"] .hero-slider-track {
    flex-direction: row !important;
}

/* ==========================================================================
   HERO VIEWPORT CAROUSEL SLIDER FIXES
   ========================================================================== */
.hero-slider-window {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin-top: -85px; /* Pulls slider under transparent navbar context if needed */
}

.hero-slider-track {
    display: flex;
    width: 300%; /* Adapts width layout to contain exactly 3 full slides */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide {
    width: 33.3333%; /* Confines each slide item frame to exactly 1 viewport width width */
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Ensure background image positioning context fits behind metadata components */
.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* RTL Global Directives Overwrite Consistency */
[dir="rtl"] .hero-slider-track {
    flex-direction: row !important;
}

/* ==========================================================================
   FILTER BAR LAYOUT & COMPONENT SYSTEMS
   ========================================================================== */

/* Outer Section Setup Container */
.filter-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
}

/* Main Background Panel Container */
.filter-container {
    width: 100%;
    max-width: 1200px;
    background-color: #0d111d; /* Deep dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Flex-Grid Form Alignment System */
.filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

/* Reusable Dropdown Wrapper Grouping */
.filter-group {
    position: relative;
    flex: 1; /* Distributes select fields equally across horizontal row */
    min-width: 110px;
}

/* Styled Select Controls Custom System */
.filter-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff; /* Default button text state is white */
    font-size: 0.95rem;
    font-weight: 400;
    padding: 12px 36px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    appearance: none; /* Strips browser-default native arrow elements */
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* CRITICAL FIX: Explicit dark text color inside option dropdown menu paths */
.filter-select option {
    background-color: #ffffff; /* Clear crisp light background block */
    color: #111111 !important;  /* High visibility dark text for standard engines */
    font-weight: 500;
}

/* Dropdown State Modifications */
.filter-select:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select:focus {
    border-color: #e50914; /* Streaming red brand indicator focus rule */
}

/* Custom Vector Dropdown Caret Icon Positioner */
.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 0.8rem;
    pointer-events: none; /* Allows click events to hit the parent selection field element directly */
    opacity: 0.8;
}

/* Crimson Action Submission Button */
.filter-submit-btn {
    background-color: #ff0515; /* Saturated red button accent */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.filter-submit-btn:hover {
    background-color: #e50914;
}

.filter-submit-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   RESPONSIVE DESIGN VIEWPORT LAYOUTS (MEDIA QUERIES)
   ========================================================================== */

/* Intermediate Tablet Display Optimization Layer */
@media (max-width: 1024px) {
    .filter-form {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Collapses wide setup cleanly to 3 columns */
        gap: 14px;
    }
    
    .filter-submit-btn {
        grid-column: span 3;
        width: 100%;
    }
}

/* Mobile Devices Optimization Layer (STRICT VERTICAL STACKING) */
@media (max-width: 680px) {
    .filter-container {
        padding: 20px 16px;
    }

    .filter-form {
        display: flex;
        flex-direction: column; /* Force each block wrapper directly underneath one another */
        gap: 12px;
        width: 100%;
    }

    .filter-group {
        width: 100%; /* Expands dropdown selections full-width edge-to-edge */
    }

    .filter-submit-btn {
        width: 100%; /* Button fills bottom block completely */
        padding: 14px 0; /* Slightly larger padding touch-target zone on touch displays */
    }
}

/* ==========================================================================
   1. MAIN WRAPPER CONTAINER CONFIGURATIONS
   ========================================================================== */
.auth-wrapper-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   2. TYPOGRAPHY AND HEADER LAYOUT ELEMENTS
   ========================================================================== */
.auth-header {
    text-align: center;
    margin-bottom: 45px;
}

.brand-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.auth-main-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 14px;
}

.auth-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #7b8191;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   3. RESPONSIVE GRID CONFIGURATIONS (MOBILE & TABLET VIEWPORTS FIRST)
   ========================================================================== */
.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr; /* Stacks column boxes processing vertically */
    gap: 24px;
    width: 100%;
}

/* Visual ordering layout inversion rules for smaller handheld devices */
.form-panel-column {
    order: 1; /* Form displays directly beneath header metadata */
}

.tiers-panel-column {
    order: 2; /* Tier lists slide gracefully under the main layout card module */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   4. INTERACTIVE COMPONENT STRUCTURE: ACCOUNT REGISTRATION FORM
   ========================================================================== */
.auth-form-card {
    background-color: #10121d;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
}

/* System Informative Alert Banner Box */
.notification-alert-box {
    background-color: rgba(229, 9, 20, 0.04);
    border: 1px solid rgba(229, 9, 20, 0.12);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.alert-status-icon {
    color: #e50914;
    font-size: 16px;
    margin-top: 2px;
}

.alert-heading {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.alert-desc {
    font-size: 12px;
    color: #7b8191;
    line-height: 1.5;
    margin: 0;
}

/* Form Structural Inputs Array Block */
.auth-input-group {
    margin-bottom: 18px;
}

.auth-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #9299a9;
    margin-bottom: 8px;
}

.auth-input-field {
    width: 100%;
    background-color: #090a11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-input-field:focus {
    border-color: rgba(229, 9, 20, 0.4);
}

.auth-input-field::placeholder {
    color: #343944;
}

/* Form Action Element Controls */
.auth-btn-submit {
    width: 100%;
    background-color: #e50914;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s;
}

.auth-btn-submit:hover {
    background-color: #c40812;
}

/* Anchor Link Redirection Navigation Styles */
.auth-footer-redirect {
    text-align: center;
    margin-top: 20px;
}

.redirect-prompt-text {
    font-size: 13px;
    color: #585e6a;
}

.redirect-action-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.redirect-action-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. INTERACTIVE COMPONENT STRUCTURE: PRODUCT PRICING TIERS
   ========================================================================== */
.tier-item-card {
    background-color: #10121d;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
}

.tier-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.tier-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.tier-pricing-wrap {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.tier-amt {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.tier-cycle {
    font-size: 12px;
    color: #585e6a;
    margin-left: 3px;
}

.tier-info-summary {
    font-size: 13px;
    color: #7b8191;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   6. LARGE DISPLAY LAPTOP & WIDESCREEN ENVIRONMENT OVERRIDES (Above 768px Viewport)
   ========================================================================== */
@media (min-width: 768px) {
    .auth-main-title {
        font-size: 32px;
    }

    /* Shift layout configuration back to the premium 2-column landscape alignment mapping */
    .auth-split-layout {
        grid-template-columns: 1fr 1fr; /* Two perfect matching vertical grid boxes */
        gap: 36px;
    }

    /* Flip spatial positioning tracks */
    .form-panel-column {
        order: 2; /* Moves form block components over onto the right segment grid track */
    }

    .tiers-panel-column {
        order: 1; /* Moves product package cards across onto the left segment grid track */
        gap: 20px;
    }

    .auth-form-card {
        padding: 36px;
    }
}

/* ==========================================================================
   1. SCREEN BACKGROUND & LAYOUT ENGINE (Matches Screenshot 2026-06-02 234127.png)
   ========================================================================== */
.minimal-auth-screen {
    min-height: calc(100vh - 160px); /* Accounts dynamically for standard layout header/footers */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    /* Replicates the distinct top-centered dark red vignette glow */
    background: radial-gradient(circle at 50% 25%, #2a080c 0%, #07080d 65%);
}

/* ==========================================================================
   2. CENTAL SIGN IN CARD MODULE
   ========================================================================== */
.signin-card-container {
    width: 100%;
    max-width: 440px;
    background-color: rgba(14, 16, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 36px 44px 36px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.signin-auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signin-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: -0.3px;
}

/* ==========================================================================
   3. INPUT CONTROLS & INTERACTIVE COMPONENT STATES
   ========================================================================== */
.signin-input-group {
    width: 100%;
    margin-bottom: 20px;
}

.signin-input-field {
    width: 100%;
    height: 52px;
    background-color: rgba(9, 10, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 18px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.signin-input-field:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(9, 10, 17, 0.8);
}

.signin-input-field::placeholder {
    color: #4a4f5d;
}

/* Primary Form Submit Action */
.signin-btn-submit {
    width: 100%;
    height: 50px;
    background-color: #383d4c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 24px;
}

.signin-btn-submit:hover {
    background-color: #454b5c;
}

.signin-btn-submit:active {
    transform: scale(0.99);
}

/* ==========================================================================
   4. CUSTOM STYLIZED CHECKBOX TOGGLE
   ========================================================================== */
.signin-remember-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Native styling override */
.hidden-checkbox-control {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.visual-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Checked UI Interaction mapping */
.hidden-checkbox-control:checked ~ .visual-checkbox-box {
    background-color: #383d4c;
    border-color: rgba(255, 255, 255, 0.5);
}

.visual-checkbox-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hidden-checkbox-control:checked ~ .visual-checkbox-box:after {
    display: block;
}

.checkbox-display-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #9ea3b0;
    transition: color 0.2s ease;
}

.custom-checkbox-label:hover .checkbox-display-text {
    color: #ffffff;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINT SYSTEM OVERRIDES
   ========================================================================== */
@media (max-width: 480px) {
    .minimal-auth-screen {
        padding: 16px;
    }
    
    .signin-card-container {
        padding: 32px 24px;
        border-radius: 18px;
        background-color: rgba(14, 16, 26, 0.9); /* More solid backdrop for readability on small displays */
    }

    .signin-title {
        font-size: 22px;
        margin-bottom: 26px;
    }
}