/* StreamBox Movies - Cinema Store Dark Theme Stylesheet */

:root {
    --bg-dark: #07090e;
    --bg-card: #0f131f;
    --bg-surface: #161b2c;
    --bg-surface-elevated: #1e2439;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(229, 9, 20, 0.4);
    
    --cinema-red: #e50914;
    --cinema-red-hover: #f40612;
    --cinema-gold: #f5c518;
    --cinema-cyan: #00e5ff;
    --cinema-purple: #9d4edd;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-heading);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090c14;
}
::-webkit-scrollbar-thumb {
    background: #252e46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cinema-red);
}

/* Glassmorphism & Card Styles */
.bg-cinema-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bg-cinema-surface {
    background: var(--bg-surface);
}

.border-cinema {
    border-color: var(--border-color) !important;
}

/* Header Navbar (Compact Cinema Bar) */
.cinema-navbar {
    background: rgba(7, 9, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.45rem 0;
    transition: all 0.3s ease;
}

.cinema-navbar.scrolled {
    background: rgba(7, 9, 14, 0.98);
    padding: 0.35rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.4px;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--cinema-red), #ff4d6d);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.cinema-navbar .nav-link {
    font-size: 0.875rem;
    padding: 0.38rem 0.62rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cinema-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.cinema-navbar .nav-link.active {
    color: var(--cinema-red) !important;
    background: rgba(229, 9, 20, 0.08);
}

.cinema-navbar .dropdown-menu {
    border-radius: 12px;
    padding: 0.45rem;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(13, 17, 29, 0.98) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.cinema-navbar .dropdown-item {
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.cinema-navbar .dropdown-item:hover {
    background: rgba(229, 9, 20, 0.15) !important;
    color: #fff !important;
    padding-left: 0.95rem;
}

/* Compact Search Bar with Focus Expand */
.search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 200px;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrap:focus-within {
    max-width: 270px;
}

.search-input-wrap input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50px;
    padding-left: 2.15rem;
    padding-right: 0.85rem;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    font-size: 0.84rem;
    transition: all 0.25s ease;
}

.search-input-wrap input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.9;
    font-size: 0.82rem;
}

.search-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cinema-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
    color: #fff;
}

.search-input-wrap i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.navbar-cta-btn {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.85rem !important;
}

/* Hero Carousel */
.hero-cinema {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    transition: background-image 0.5s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #07090e 0%, rgba(7, 9, 14, 0.88) 45%, rgba(7, 9, 14, 0.35) 100%),
                linear-gradient(0deg, #07090e 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 0;
}

.hero-title {
    font-size: clamp(1.85rem, 4.8vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.7);
    word-break: break-word;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-synopsis {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 620px;
}

/* Hero Carousel Controls & Indicators */
.hero-cinema .carousel-indicators {
    bottom: 14px;
    margin-bottom: 0;
    z-index: 10;
}

.hero-cinema .carousel-indicators [data-bs-target] {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cinema .carousel-indicators .active {
    width: 48px;
    background-color: var(--cinema-red);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.8);
}

.hero-cinema .carousel-control-prev,
.hero-cinema .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.75;
    background: rgba(7, 9, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: 0 1.25rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-cinema .carousel-control-prev:hover,
.hero-cinema .carousel-control-next:hover {
    opacity: 1;
    background: var(--cinema-red);
    border-color: var(--cinema-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

/* Movie Card */
.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(229, 9, 20, 0.5);
}

.movie-poster-wrap {
    position: relative;
    width: 100%;
    padding-top: 148%; /* 2:3 ratio */
    overflow: hidden;
    background: #020205;
}

.movie-poster-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster-wrap img {
    transform: scale(1.05);
}

.movie-badge-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.movie-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.movie-wishlist-btn:hover {
    background: var(--cinema-red);
    color: #fff;
    border-color: var(--cinema-red);
    transform: scale(1.1);
}

.movie-wishlist-btn.active {
    background: var(--cinema-red);
    color: #fff;
}

.trailer-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.movie-card:hover .trailer-play-overlay {
    opacity: 1;
}

.play-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
    transition: transform 0.2s ease;
}

.play-circle-btn:hover {
    transform: scale(1.15);
}

.movie-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.movie-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-row {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.movie-pricing-row {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cinema Buttons */
.btn-cinema {
    background: var(--cinema-red);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.btn-cinema:hover, .btn-cinema:focus {
    background: var(--cinema-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-outline-cinema {
    background: transparent;
    border: 1px solid rgba(229, 9, 20, 0.7);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.25s ease;
}

.btn-outline-cinema:hover {
    background: var(--cinema-red);
    border-color: var(--cinema-red);
    color: #fff;
}

/* Format Selector Cards in Product View */
.format-option-card {
    position: relative;
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.format-option-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--bg-surface-elevated);
}

.format-option-card.selected {
    border-color: var(--cinema-red);
    background: rgba(229, 9, 20, 0.08);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
}

.format-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Spec Badges */
.spec-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Movie Detail Backdrop Banner */
.movie-detail-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.movie-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.7) 0%, rgba(7, 9, 14, 0.95) 75%, #07090e 100%),
                radial-gradient(circle at 75% 30%, transparent 20%, rgba(7, 9, 14, 0.9) 80%);
}

.movie-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* Cinema Trailer Video Player Simulator */
.trailer-theater {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
}

.trailer-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #1a1e2f 0%, #05060b 80%);
    position: relative;
    overflow: hidden;
}

.trailer-radar-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.trailer-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 10px #00e5ff;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0%; opacity: 0.8; }
    50% { top: 100%; opacity: 0.3; }
    100% { top: 0%; opacity: 0.8; }
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

.cinema-toast {
    background: #151a2a;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--cinema-red);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Genre Pills */
.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.genre-pill:hover, .genre-pill.active {
    background: var(--cinema-red);
    border-color: var(--cinema-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Stats counter card */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}
.stat-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Digital Key Box */
.license-key-box {
    background: #0d111c;
    border: 1px dashed var(--cinema-cyan);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--cinema-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Offcanvas Cart styling */
.offcanvas.cinema-offcanvas {
    background: #0d101a;
    border-left: 1px solid var(--border-color);
    color: #fff;
}

/* ==========================================================================
   Typography, Text Contrast & Accessibility Utilities for Dark Theme
   ========================================================================== */

.text-muted {
    color: var(--text-muted) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.text-secondary {
    color: #94a3b8 !important;
}

.text-white-50 {
    color: rgba(248, 250, 252, 0.75) !important;
}

.text-cyan {
    color: var(--cinema-cyan) !important;
}

.fw-black {
    font-weight: 900 !important;
}

.tracking-wide {
    letter-spacing: 0.5px;
}

.tracking-wider {
    letter-spacing: 1px;
}

/* Hover Utilities */
.hover-white {
    transition: color 0.2s ease, transform 0.2s ease;
}
.hover-white:hover {
    color: #ffffff !important;
    transform: translateX(3px);
    display: inline-block;
}

.hover-red {
    transition: color 0.2s ease;
}
.hover-red:hover {
    color: var(--cinema-red) !important;
}

.hover-scale {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hover-scale:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* General Links & Filter Links */
a {
    color: #f8fafc;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cinema-red);
}

a.text-white-50 {
    transition: color 0.2s ease;
}
a.text-white-50:hover {
    color: #ffffff !important;
}

a.text-muted {
    transition: color 0.2s ease;
}
a.text-muted:hover {
    color: #ffffff !important;
}

/* Breadcrumbs */
.breadcrumb-item {
    color: #94a3b8;
}

.breadcrumb-item a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff !important;
}

.breadcrumb-item.active {
    color: var(--cinema-red) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Form Controls and Selects */
.form-control {
    background-color: var(--bg-surface) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-control:focus {
    background-color: var(--bg-surface-elevated) !important;
    color: #ffffff !important;
    border-color: var(--cinema-red) !important;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.form-select, select.form-select {
    background-color: var(--bg-surface) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-select:focus {
    border-color: var(--cinema-red) !important;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35) !important;
}

.form-select option, select option {
    background-color: #0f131f !important;
    color: #f8fafc !important;
}

/* Dropdown Menus */
.dropdown-menu-dark {
    background-color: #0f131f !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #cbd5e1 !important;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: rgba(229, 9, 20, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
    background-color: var(--cinema-red) !important;
    color: #ffffff !important;
}

/* Badges */
.badge.bg-dark {
    background-color: #161b2c !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.table-dark td, .table-dark th {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Modal Content & Close Button */
.modal-content {
    background-color: #0f131f !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
}

.btn-close-white:hover {
    opacity: 1;
}

/* ==========================================================================
   Comprehensive Responsive Architecture (Margins, Paddings, Buttons, Texts, Hero)
   ========================================================================== */

/* Universal Fluid Container Spacing */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Responsive Section Spacing */
@media (max-width: 767.98px) {
    section.py-5,
    div.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    section.py-4,
    div.py-4 {
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }
}

/* Fluid Typography */
.display-4 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.15;
}
.display-5 {
    font-size: clamp(1.65rem, 4vw, 2.75rem) !important;
    line-height: 1.2;
}
.display-6 {
    font-size: clamp(1.35rem, 3vw, 2.25rem) !important;
    line-height: 1.25;
}

h1, .h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    line-height: 1.25;
}
h2, .h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    line-height: 1.3;
}
h3, .h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.35;
}
h4, .h4 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
h5, .h5 {
    font-size: clamp(0.98rem, 1.5vw, 1.2rem);
}

/* Interactive Buttons: Touch Targets, Tactile Feedback & Responsiveness */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    font-size: 0.84rem;
}

.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Navbar Brand & Mobile Menu */
.cinema-toggler {
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s ease;
}

.cinema-toggler:hover,
.cinema-toggler:focus {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--cinema-red) !important;
}

@media (max-width: 991.98px) {
    .cinema-navbar .navbar-collapse {
        background: #0d111d;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        padding: 1.15rem;
        margin-top: 0.85rem;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    }
    
    .cinema-navbar .nav-link {
        padding: 0.65rem 0.85rem !important;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .cinema-navbar .nav-link:hover,
    .cinema-navbar .nav-link.active {
        background: rgba(229, 9, 20, 0.15);
        color: #fff !important;
    }
    
    .cinema-navbar .dropdown-menu {
        background: #090c15 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px;
        margin-top: 0.25rem;
        padding: 0.5rem;
    }
    
    .cinema-navbar .search-input-wrap {
        max-width: 100% !important;
        margin: 0.85rem 0 !important;
    }
    
    .navbar-cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.65rem 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        font-size: 1.22rem;
    }
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    .brand-subtext {
        font-size: 0.72rem !important;
    }
}

/* ==========================================================================
   Hero Section Mobile & Tablet Optimization
   ========================================================================== */
.hero-mini-spec {
    background: rgba(15, 19, 31, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 520px;
        background-position: center 20%;
        align-items: flex-end;
    }

    .hero-overlay {
        background: 
            linear-gradient(180deg, rgba(7, 9, 14, 0.65) 0%, rgba(7, 9, 14, 0.15) 25%, rgba(7, 9, 14, 0.85) 60%, #07090e 100%),
            radial-gradient(circle at 50% 25%, transparent 35%, rgba(7, 9, 14, 0.5) 100%);
    }

    .hero-content {
        padding: 2rem 0 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 500px;
        height: 75vh;
        max-height: 600px;
        background-position: center 18%;
        align-items: flex-end;
    }

    .hero-content {
        padding: 1.5rem 0 3rem 0;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5.8vw, 2.3rem);
        line-height: 1.14;
        margin-bottom: 0.35rem !important;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.8);
    }

    .hero-tagline {
        font-size: 0.92rem;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    }

    .hero-badges .badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }

    .hero-specs-mobile {
        margin-bottom: 0.85rem !important;
    }

    .hero-main-cta-group {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .hero-btn-main {
        flex: 1 1 auto;
        min-height: 46px;
        font-size: 0.92rem;
        font-weight: 700;
        border-radius: 10px;
        box-shadow: 0 4px 18px rgba(229, 9, 20, 0.55);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-btn-secondary {
        flex: 0 0 auto;
        min-height: 46px;
        font-size: 0.88rem;
        font-weight: 600;
        padding: 0.55rem 1.15rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .hero-btn-link {
        font-size: 0.82rem;
        color: #94a3b8;
        opacity: 0.85;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .hero-btn-link:hover {
        opacity: 1;
        color: #fff !important;
    }

    /* Carousel Indicators on Mobile */
    .hero-cinema .carousel-indicators {
        bottom: 8px;
        margin-bottom: 0;
    }

    .hero-cinema .carousel-indicators [data-bs-target] {
        width: 18px;
        height: 3px;
        margin: 0 3px;
    }
    .hero-cinema .carousel-indicators .active {
        width: 34px;
        box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
    }

    /* Hide prev/next arrows on mobile to keep entire screen clear for touch gestures */
    .hero-cinema .carousel-control-prev,
    .hero-cinema .carousel-control-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 490px;
        height: 74vh;
        max-height: 570px;
        background-position: center 15%;
    }

    .hero-overlay {
        background: 
            linear-gradient(180deg, rgba(7, 9, 14, 0.6) 0%, rgba(7, 9, 14, 0.08) 22%, rgba(7, 9, 14, 0.88) 60%, #07090e 100%),
            radial-gradient(circle at 50% 25%, transparent 25%, rgba(7, 9, 14, 0.55) 100%) !important;
    }

    .hero-content {
        padding: 1.25rem 0 2.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6.8vw, 2.1rem);
        line-height: 1.12;
    }

    .hero-tagline {
        font-size: 0.86rem;
    }

    .hero-mini-spec {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-btn-main {
        font-size: 0.82rem;
        padding: 0.5rem 0.65rem;
    }
    .hero-btn-secondary {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ==========================================================================
   Movie Card Responsive Optimization (2-Column Mobile Layout)
   ========================================================================== */
.movie-ribbon-badge {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.movie-industry-badge {
    font-size: 0.64rem;
    font-weight: 800;
}

.movie-age-badge {
    font-size: 0.66rem;
}

.movie-rating-tag {
    font-size: 0.82rem;
}

.meta-dot {
    opacity: 0.6;
}

@media (max-width: 767.98px) {
    .movie-card-body {
        padding: 0.85rem;
    }

    .movie-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .movie-meta-row {
        font-size: 0.76rem;
        margin-bottom: 0.45rem;
    }

    .play-circle-btn {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .movie-card {
        border-radius: 10px;
    }

    .movie-card-body {
        padding: 0.65rem 0.75rem;
    }

    .movie-title {
        font-size: 0.88rem;
        line-height: 1.25;
        margin-bottom: 0.2rem;
        -webkit-line-clamp: 2;
    }

    .movie-meta-row {
        font-size: 0.72rem;
        gap: 0.3rem;
        margin-bottom: 0.4rem;
    }

    .movie-ribbon-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
    }

    .movie-badge-ribbon {
        top: 6px;
        left: 6px;
    }

    .movie-pricing-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0.5rem;
    }

    .movie-price-wrap {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
    }

    .movie-price-label {
        font-size: 0.68rem !important;
    }

    .movie-price-digital {
        font-size: 0.95rem !important;
    }

    .movie-price-bluray {
        font-size: 0.74rem !important;
    }

    .movie-card-actions {
        width: 100%;
    }

    .movie-btn-buy {
        width: 38px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex-shrink: 0;
    }

    .movie-btn-details {
        flex: 1;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* ==========================================================================
   Genre Pills & Quick Filter Bars Responsiveness
   ========================================================================== */
@media (max-width: 767.98px) {
    .genre-pill {
        padding: 0.38rem 0.85rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .stat-box {
        padding: 1.15rem 0.85rem;
    }
    
    .stat-box .fs-1 {
        font-size: 1.85rem !important;
    }

    .stat-box h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .genre-pill {
        padding: 0.32rem 0.72rem;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Movie Detail Page (movie.php) Responsiveness
   ========================================================================== */
.movie-detail-title {
    font-size: clamp(1.75rem, 4.2vw, 3rem);
    line-height: 1.15;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .movie-detail-hero {
        min-height: auto;
    }

    .movie-detail-hero-content {
        padding: 1.5rem 0 2.5rem 0;
    }

    .movie-detail-poster-wrap {
        max-width: 260px !important;
    }

    .movie-poster-trailer-btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.75rem !important;
    }

    .format-option-card {
        padding: 0.95rem;
    }

    .movie-detail-actions .btn {
        width: 100%;
        min-height: 48px;
    }
}

/* ==========================================================================
   Modals Responsive Improvements (Trailer & Purchase)
   ========================================================================== */
.trailer-teaser-title {
    font-size: clamp(1.2rem, 3.8vw, 2.5rem);
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .trailer-theater {
        aspect-ratio: auto;
        min-height: 320px;
    }

    .trailer-screen {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   Cinema Legal & Contact Page Styles (Terms, Privacy, Contact)
   ========================================================================== */
.legal-section {
    scroll-margin-top: 90px;
}

.legal-toc-list .nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-toc-list .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
}

.legal-toc-list .nav-link.active {
    color: var(--cinema-red);
    background: rgba(229, 9, 20, 0.1);
    font-weight: 600;
}

.cinema-accordion .accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.cinema-accordion .accordion-button {
    background-color: var(--bg-card);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    padding: 1.1rem 1.25rem;
}

.cinema-accordion .accordion-button:not(.collapsed) {
    background-color: var(--bg-surface);
    color: var(--cinema-gold);
    border-bottom: 1px solid var(--border-color);
}

.cinema-accordion .accordion-button::after {
    filter: invert(1) brightness(0.8);
    transition: transform 0.25s ease;
}

.cinema-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(73%) sepia(85%) saturate(732%) hue-rotate(359deg) brightness(101%) contrast(96%);
}

.cinema-accordion .accordion-body {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1.25rem;
}

.contact-channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.contact-channel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.15);
}

.contact-channel-card .channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    background-color: var(--bg-surface-elevated);
    border-color: var(--cinema-red);
    box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.2);
    color: #fff;
}

.contact-form-card .form-control::placeholder {
    color: var(--text-dim);
}

.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
}

.ticket-alert-box {
    border-left: 4px solid #198754;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
}


