/**
 * SECTIONS:
 * 1. Design Tokens - Line 10
 * 2. Utilities - Line 50
 * 3. Layout - Line 100
 * 4. Typography - Line 220
 * 5. Components - Line 320
 * 6. Hero Styles - Line 345
 * 7. Movie & Cast Cards - Line 410
 * 8. Animations & Responsive - Line 450
 */

/**
 * STYLESHEET: Main Styles (styles.css)
 * PURPOSE: Global design system and layout rules for CinéScale.
 * BREAKPOINTS: 
 *   - Mobile: Default (<768px)
 *   - Tablet: 768px - 1024px
 *   - Desktop: >1024px
 */

/* DESIGN TOKENS — Cinematic Dark */
:root {
    /* Colors — Cinematic palette */
    --primary: #06B6D4;
    --primary-hover: #0891B2;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --glow: #7C3AED;

    --bg-main: #050505;
    --bg-surface: #111111;
    --bg-surface-alt: #1A1A1A;
    --bg-dark: #000000;

    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --text-subtle: #777777;
    --text-light: #FFFFFF;

    --border: rgba(255, 255, 255, 0.1);

    /* Glass / Overlays */
    --glass-light: rgba(255, 255, 255, 0.06);
    --glass-dark: rgba(17, 17, 17, 0.95);
    --blur-sm: 8px;
    --blur-lg: 12px;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #06B6D4, #EC4899);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.1));

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-24: 96px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;

    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.6);

    /* Overlays */
    --overlay-light: rgba(5, 5, 5, 0.3);
    --overlay-medium: rgba(5, 5, 5, 0.6);
    --overlay-heavy: rgba(5, 5, 5, 0.8);
    --overlay-dark: rgba(5, 5, 5, 0.85);
    --overlay-dark-soft: rgba(5, 5, 5, 0.5);

    color-scheme: dark;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: var(--bg-main); color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: color 0.2s, background 0.2s; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; border: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
button { cursor: pointer; }
input, select, textarea { background: var(--bg-surface-alt); color: var(--text-main); border: 1px solid var(--border); }
input::placeholder { color: var(--text-muted); }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Selection */
::selection { background: rgba(6, 182, 212, 0.3); color: var(--text-light); }

/* UTILITY CLASSES */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-cols-sidebar { grid-template-columns: 280px 1fr; }

/* Responsive Grid Classes used in markup */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-5xl { font-size: 3rem; }
    .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:text-left { text-align: left; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:items-start { align-items: flex-start; }
}

/* Spacing */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: 40px; }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }

.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.ml-2 { margin-left: var(--space-2); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: 12px; }

.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.px-12 { padding-left: var(--space-12); padding-right: var(--space-12); }
.pr-32 { padding-right: 8rem; }
.pl-6 { padding-left: 1.5rem; }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

.pb-2 { padding-bottom: var(--space-2); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-24 { padding-bottom: var(--space-24); }
.pt-6 { padding-top: var(--space-6); }
.pt-12 { padding-top: var(--space-12); }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-light { color: var(--text-light); }
.text-dark { color: var(--text-main); }
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-200 { color: #e5e7eb; }

.hover-primary:hover { color: var(--primary); }
.hover\:text-secondary:hover { color: var(--secondary); }
.hover\:bg-surface-alt:hover { background-color: var(--bg-surface-alt); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }

/* Glass surfaces */
.glass-light { background: var(--glass-light); backdrop-filter: blur(var(--blur-lg)); }
.glass-dark { background: var(--glass-dark); backdrop-filter: blur(var(--blur-lg)); border: 1px solid var(--border); }
.glass-header { background: var(--glass-light); backdrop-filter: blur(var(--blur-sm)); }

/* VPN Top Bar */
.vpn-bar {
    display: block;
    background: linear-gradient(90deg, #0a0a0a 0%, #111 100%);
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.vpn-bar:hover { background: linear-gradient(90deg, #111 0%, #1a1a1a 100%); }
.vpn-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}
.vpn-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vpn-bar-left strong { color: var(--text-main); font-weight: 700; }
.vpn-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
    animation: vpn-pulse 2s infinite;
}
@keyframes vpn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.vpn-bar-sep { color: var(--text-subtle); }
.vpn-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}
.vpn-bar-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.vpn-bar-alert { color: var(--secondary); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; animation: vpn-pulse 2s infinite; }
@media (max-width: 639px) {
    .vpn-bar { padding: 6px 12px; font-size: 11px; }
    .vpn-bar .hide-mobile { display: none; }
    .vpn-bar-btn { padding: 5px 12px; font-size: 10px; }
}

/* Backgrounds & Borders */
.bg-surface { background-color: var(--bg-surface); }
.bg-surface-alt { background-color: var(--bg-surface-alt); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background: rgba(6, 182, 212, 0.1); }
.bg-primary\/20 { background: rgba(6, 182, 212, 0.2); }
.bg-secondary\/10 { background: rgba(236, 72, 153, 0.1); }
.bg-muted { background-color: var(--text-muted); }
.bg-dark { background-color: var(--bg-dark); }
.bg-transparent { background-color: transparent; }
.bg-light { background-color: rgba(255, 255, 255, 1); }
.bg-opacity-5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-opacity-10 { background-color: rgba(255, 255, 255, 0.1); }
.btn-gradient { background: var(--gradient-primary); border: none; }

.scroll-mt-24 { scroll-margin-top: 96px; }
.overlay-gradient-up { background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-opacity-20 { border-color: rgba(255, 255, 255, 0.08); }
.last\:border-0:last-child { border-bottom-width: 0; }

.border-2 { border-width: 2px; }
.border-transparent { border-color: transparent; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* Sizes & Aspect Ratios */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; } .h-11 { height: 2.75rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.w-24 { width: 6rem; } .h-24 { height: 6rem; }
.w-64 { width: 16rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.object-cover { object-fit: cover; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Positioning & Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-2 { top: 0.5rem; }
.bottom-2 { bottom: 0.5rem; }
.right-2 { right: 0.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.hidden { display: none; }

.transition-all { transition: all 0.2s ease-in-out; }
.transition-opacity { transition: opacity 0.3s ease; }
.transition-colors { transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.animate-spin { animation: spin 1s linear infinite; }
.duration-200 { transition-duration: 200ms; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Outline & Focus */
.focus-within\:border-primary:focus-within { border-color: var(--primary); }

/* COMPONENTS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-2); padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full); font-weight: 700; transition: all 0.25s ease;
    font-size: 0.95rem; text-align: center; border: 1px solid var(--border);
}
.btn-primary { background: var(--gradient-primary); color: var(--text-light); border: none; }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(236, 72, 153, 0.15); }
.btn-secondary { background: var(--secondary); color: var(--text-light); border: none; }
.btn-secondary:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }
.btn-outline { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text-main); backdrop-filter: blur(8px); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(6, 182, 212, 0.05); }
.btn-dark { background: var(--text-main); color: var(--bg-main); border: none; }
.btn-dark:hover { opacity: 0.9; transform: scale(1.03); }

.badge {
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}
.badge-primary { background: var(--gradient-primary); color: var(--text-light); }
.badge-secondary { background: rgba(236, 72, 153, 0.15); color: var(--secondary); border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-accent { background: rgba(245, 158, 11, 0.15); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-dark { background: rgba(255, 255, 255, 0.05); color: var(--text-light); backdrop-filter: blur(8px); border: 1px solid var(--border); }

/* HERO SECTIONS */
.hero-global {
    position: relative;
    z-index: 20;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    overflow: visible;
}
.hero-global::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.9) 100%);
    z-index: 1;
}
.hero-global-content {
    position: relative; z-index: 2;
}

.hero-item {
    position: relative;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    overflow: hidden;
}
.hero-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.92) 30%, rgba(5, 5, 5, 0.4) 100%);
    z-index: 1;
}
.hero-item-content {
    position: relative; z-index: 2;
}

/* Header — Glassmorphism */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

/* Movie Cards — Glassmorphism */
.movie-card {
    display: flex; flex-direction: column;
    background: var(--bg-surface);
    border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.movie-card:hover { transform: scale(1.02); border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 0 20px rgba(6, 182, 212, 0.1); }
.movie-poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg-surface-alt); }
.movie-poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.movie-card:hover .movie-poster-wrap img { transform: scale(1.06); }
.movie-rating-badge { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 10; }

/* Cast Cards */
.cast-card {
    background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border); text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.cast-card:hover { transform: scale(1.02); border-color: rgba(236, 72, 153, 0.4); }
.cast-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--bg-surface-alt); }

/* Saga Cards */
.saga-card { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.saga-card:hover { transform: scale(1.02); border-color: rgba(124, 58, 237, 0.4); box-shadow: 0 0 24px rgba(124, 58, 237, 0.1); }
.saga-card .saga-poster-wrap { aspect-ratio: 16 / 9; }
.saga-card img { transition: transform 0.5s ease; }
.saga-card:hover img { transform: scale(1.05); opacity: 1; }
.saga-gradient { background-image: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent); }
.saga-card:hover h2 { color: var(--primary); }
.saga-poster--placeholder { background: linear-gradient(135deg, #0a0a1a, #111122); }
.saga-poster--placeholder img { opacity: 0.55; }

/* Collection Order Badge */
.collection-order-badge {
    position: absolute; top: -12px; left: -12px; z-index: 10;
    width: 40px; height: 40px;
    background: var(--primary); color: var(--text-light);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.125rem;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-lg);
}

/* Overlays */
.bg-overlay-light { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); }
.bg-overlay-dark { background: var(--overlay-dark); }

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Glow effects */
.glow-primary { box-shadow: 0 0 30px rgba(6, 182, 212, 0.15); }
.glow-secondary { box-shadow: 0 0 30px rgba(236, 72, 153, 0.15); }
.glow-purple { box-shadow: 0 0 60px rgba(124, 58, 237, 0.2); }

/* Utilities - extra */
.max-w-xs { max-width: 320px; }
.max-w-none { max-width: none; }
.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }
.border-border { border-color: var(--border); }
.border-dark { border-color: rgba(255, 255, 255, 0.2); }
.border-dashed { border-style: dashed; }
.mt-0 { margin-top: 0; }
.fade-in { animation: fade-in 0.5s ease-out forwards; }
.bg-opacity-50 { --bg-opacity: 0.5; }
.border-opacity-20 { border-color: rgba(255, 255, 255, 0.08); }

/* Prose (text blocks in cinema pages) */
.prose { color: var(--text-muted); }
.prose strong { color: var(--text-main); }
.prose a { color: var(--primary); font-weight: 700; }
.prose a:hover { text-decoration: underline; }

/* Cinema list items */
.cinema-list-item { border-left: 3px solid transparent; background: var(--bg-surface); border: 1px solid var(--border); }
.cinema-list-item:hover { background: var(--bg-surface-alt); border-left-color: var(--primary); }

/* Custom scrollbar for sidebar panels */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

/* Hover scale for interactive cards */
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:scale-110:hover { transform: scale(1.1); }
.translate-x-0 { transform: translateX(0); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(4px); }
.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-primary\/10 { background: rgba(6, 182, 212, 0.1); }

/* Skeleton loading */
.skeleton-card {
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}
.skeleton-line {
    background: linear-gradient(90deg, var(--bg-surface-alt) 25%, rgba(255, 255, 255, 0.06) 50%, var(--bg-surface-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-title { height: 20px; width: 70%; margin-bottom: var(--space-3); }
.skeleton-text { height: 14px; width: 100%; margin-bottom: var(--space-2); }
.skeleton-text-short { height: 14px; width: 45%; }
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Search */
.hero-search-input { padding-left: var(--space-8); padding-right: 180px; }
@media (max-width: 768px) { .hero-search-input { padding-right: 60px; } }

.search-autocomplete-box li a { gap: var(--space-4); }
.search-autocomplete-box li a img { width: 48px; height: 68px; border-radius: var(--radius-sm); }

/* Sticky Sidebar */
.sticky-sidebar { position: sticky; top: 100px; }

/* Animations */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-spin { animation: spin 1s linear infinite; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll { opacity: 1; transform: none; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .grid-cols-sidebar { grid-template-columns: 1fr; }
    .sticky-sidebar { position: static; }
    
    .hero-item-layout { flex-direction: column; text-align: center; align-items: center; gap: var(--space-8); }
    .hero-item::before { background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 40%, rgba(5, 5, 5, 0.5) 100%); }
}

.mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; color: var(--text-main); }
.mobile-menu { display: none; width: 100%; flex-basis: 100%; border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-2); background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(16px); }
.mobile-menu.is-open { display: flex; flex-direction: column; }

@media (max-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-cols-4, .grid-cols-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; order: 2; margin-left: auto; }
    .search-desktop-wrapper { flex-basis: 100%; max-width: 100% !important; order: 3; margin-top: var(--space-2); }
    .mobile-menu { order: 4; }
    .site-header > .container > a:first-child { order: 1; }
}

/* VPN Banner (CTA sponsorisé) */
.vpn-banner {
    display: block; text-decoration: none; color: inherit; cursor: pointer;
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid rgba(236, 72, 153, 0.2);
    position: relative; overflow: hidden;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.vpn-banner:hover { border-color: rgba(236, 72, 153, 0.4); box-shadow: 0 0 40px rgba(236, 72, 153, 0.12); }
.vpn-banner:hover .vpn-banner-cta {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(236, 72, 153, 0.12);
}
.vpn-banner-alert-bar {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-2); flex-wrap: wrap;
    padding: var(--space-2) var(--space-4);
    background: rgba(236, 72, 153, 0.08);
    border-bottom: 1px solid rgba(236, 72, 153, 0.15);
    font-size: 0.75rem; font-weight: 600; color: var(--secondary);
}
.vpn-banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
    animation: vpn-pulse 2s infinite;
}
.vpn-banner-sep { opacity: 0.4; color: var(--text-subtle); }
.vpn-banner-status {
    display: inline-flex; align-items: center; gap: 4px;
    animation: vpn-pulse 2s infinite;
}
.vpn-banner-content {
    display: flex; align-items: center; gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
}
.vpn-banner-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    animation: exit-modal-pulse 2s ease-in-out infinite;
}
.vpn-banner-text { flex: 1; min-width: 0; }
.vpn-banner-title {
    font-size: 1.1rem; font-weight: 800; color: var(--text-main);
    line-height: 1.3; margin-bottom: var(--space-1);
}
.vpn-banner-subtitle {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
}
.vpn-banner-cta {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-primary);
    color: #fff; font-weight: 700; font-size: 0.875rem;
    border-radius: var(--radius-full);
    text-decoration: none; white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vpn-banner-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(236, 72, 153, 0.12);
}
.vpn-banner-trust {
    font-size: 0.7rem; color: var(--text-subtle);
    text-align: center; padding: var(--space-2) 0 var(--space-3);
}
@media (max-width: 768px) {
    .vpn-banner-content { flex-direction: column; text-align: center; gap: var(--space-4); padding: var(--space-4); }
    .vpn-banner-icon { margin: 0 auto; }
    .vpn-banner-title { font-size: 1rem; }
    .vpn-banner-subtitle { font-size: 0.8rem; }
    .vpn-banner-alert-bar { font-size: 0.65rem; }
}

/* Exit Intent Modal */
.exit-modal-overlay {
    position: fixed; inset: 0; z-index: 99990;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-4);
}
.exit-modal-overlay.is-visible { opacity: 1; visibility: visible; }
.exit-modal-overlay.is-visible .exit-modal { transform: translateY(0) scale(1); opacity: 1; }

.exit-modal {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 480px; width: 100%;
    text-align: center;
    transform: translateY(-20px) scale(0.96); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(236, 72, 153, 0.08);
}

.exit-modal-link {
    display: block; text-decoration: none; color: inherit; cursor: pointer;
}
.exit-modal-link:hover .exit-modal-cta {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.3), 0 0 48px rgba(236, 72, 153, 0.15);
}
.exit-modal-header {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.exit-modal-icon-wrap {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    animation: exit-modal-pulse 2s ease-in-out infinite;
}
@keyframes exit-modal-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); }
}

.exit-modal-alert {
    display: inline-flex; align-items: center; gap: var(--space-2);
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem; font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-6);
}
.exit-modal-sep { opacity: 0.4; }

.exit-modal-title {
    font-size: 1.5rem; font-weight: 900; color: var(--text-main);
    line-height: 1.2; margin-bottom: var(--space-3);
}
.exit-modal-subtitle {
    font-size: 0.9rem; color: var(--text-muted);
    line-height: 1.5; margin-bottom: var(--space-6);
}

.exit-modal-features {
    list-style: none; padding: 0; margin: 0 0 var(--space-6);
    display: flex; flex-direction: column; gap: var(--space-3);
    text-align: left;
}
.exit-modal-features li {
    display: flex; align-items: center; gap: var(--space-3);
    font-size: 0.875rem; font-weight: 500; color: var(--text-main);
}
.exit-modal-features li i { color: var(--primary); flex-shrink: 0; }

.exit-modal-cta {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    width: 100%; padding: var(--space-4);
    background: var(--gradient-primary);
    color: #fff; font-weight: 800; font-size: 1rem;
    border: none; border-radius: var(--radius-full);
    cursor: pointer; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.exit-modal-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.3), 0 0 48px rgba(236, 72, 153, 0.15);
}

.exit-modal-trust {
    font-size: 0.7rem; color: var(--text-subtle);
    margin-top: var(--space-3); margin-bottom: var(--space-2);
}

.exit-modal-dismiss {
    background: transparent; border: none;
    color: var(--text-subtle); font-size: 0.6rem; font-weight: 400;
    cursor: pointer; padding: 2px 4px;
    transition: color 0.2s; text-decoration: none;
    opacity: 0.4; margin-top: var(--space-1);
}
.exit-modal-dismiss:hover { color: var(--text-muted); opacity: 0.7; text-decoration: underline; }

@media (max-width: 480px) {
    .exit-modal { padding: var(--space-6); }
    .exit-modal-title { font-size: 1.25rem; }
    .exit-modal-alert { font-size: 0.65rem; flex-wrap: wrap; justify-content: center; }
}