/**
 * 🎨 CINEPULSE CORE 5 THEATRE THEME SYSTEM
 * 5 Bespoke Visual Themes Tailored for the Core 5 Cineplex Theatres:
 *
 * 1. Queensway VIP & IMAX (`queensway`) - Flagship Neon Cyan & Royal VIP Midnight
 * 2. Varsity and VIP (`varsity`) - Yorkville Heritage, A24 Indie Emerald & Champagne Gold
 * 3. Yonge-Dundas and VIP (`yonge-dundas`) - Cyberpunk Neon Magenta & Downtown Electric Violet
 * 4. Scotiabank Theatre Toronto (`scotiabank`) - Monumental 70mm Film Amber & Landmark Ruby Red
 * 5. Vaughan Colossus IMAX (`vaughan`) - The Flying Saucer Spaceship, Cosmic Indigo & Aurora Lime
 */

/* ========================================================
   1. QUEENSWAY VIP & IMAX (#1 Flagship Default)
   ======================================================== */
:root,
:root[data-theme="queensway"],
:root[data-theatre="7260"],
:root[data-theme="cinematic"] {
    --theme-id: "queensway";
    --theatre-id: 7260;
    --theatre-name: "Cineplex Queensway VIP & IMAX";
    --theatre-tag: "Flagship VIP & IMAX Laser";
    --theatre-icon: "👑";

    --theme-primary: #06b6d4;
    --theme-primary-light: #38bdf8;
    --theme-primary-dark: #0891b2;
    --theme-secondary: #0284c7;
    --theme-accent: #fbbf24;
    --theme-glow: rgba(6, 182, 212, 0.45);
    --theme-tint: rgba(6, 182, 212, 0.12);

    --bg-primary: #080d1a;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.88);
    --bg-elevated: #1e293b;
    --bg-overlay: rgba(8, 13, 26, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-inverse: #080d1a;
    --text-muted: #64748b;

    --border-light: rgba(6, 182, 212, 0.25);
    --border-medium: rgba(6, 182, 212, 0.45);
    --border-dark: #334155;

    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --gradient-hero: linear-gradient(135deg, #080d1a 0%, #0c4a6e 50%, #0369a1 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #fbbf24 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 13, 26, 0.85));

    --glass-bg: rgba(15, 23, 42, 0.82);
    --glass-border: rgba(6, 182, 212, 0.22);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   2. VARSITY AND VIP (55 Bloor St W - Yorkville Heritage)
   ======================================================== */
:root[data-theme="varsity"],
:root[data-theatre="7199"],
:root[data-theme="minimalist"] {
    --theme-id: "varsity";
    --theatre-id: 7199;
    --theatre-name: "Cineplex Cinemas Varsity and VIP";
    --theatre-tag: "Yorkville Prestige & TIFF Cinema";
    --theatre-icon: "🌿";

    --theme-primary: #10b981;
    --theme-primary-light: #34d399;
    --theme-primary-dark: #059669;
    --theme-secondary: #047857;
    --theme-accent: #f59e0b;
    --theme-glow: rgba(16, 185, 129, 0.45);
    --theme-tint: rgba(16, 185, 129, 0.12);

    --bg-primary: #061712;
    --bg-secondary: #0a251e;
    --bg-tertiary: #13392f;
    --bg-card: rgba(10, 37, 30, 0.9);
    --bg-elevated: #16473b;
    --bg-overlay: rgba(6, 23, 18, 0.88);

    --text-primary: #f0fdf4;
    --text-secondary: #d1fae5;
    --text-tertiary: #a7f3d0;
    --text-inverse: #061712;
    --text-muted: #6ee7b7;

    --border-light: rgba(16, 185, 129, 0.25);
    --border-medium: rgba(16, 185, 129, 0.5);
    --border-dark: #134e4a;

    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #061712 0%, #064e3b 50%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #f59e0b 100%);
    --gradient-card: linear-gradient(145deg, rgba(10, 37, 30, 0.95), rgba(6, 23, 18, 0.85));

    --glass-bg: rgba(10, 37, 30, 0.82);
    --glass-border: rgba(16, 185, 129, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   3. YONGE-DUNDAS AND VIP (10 Dundas E - Cyber Neon)
   ======================================================== */
:root[data-theme="yonge-dundas"],
:root[data-theatre="7130"],
:root[data-theme="portal"] {
    --theme-id: "yonge-dundas";
    --theatre-id: 7130;
    --theatre-name: "Cineplex Cinemas Yonge-Dundas and VIP";
    --theatre-tag: "Dundas Square Cyber Neon & HFR";
    --theatre-icon: "⚡";

    --theme-primary: #ec4899;
    --theme-primary-light: #f472b6;
    --theme-primary-dark: #db2777;
    --theme-secondary: #a855f7;
    --theme-accent: #38bdf8;
    --theme-glow: rgba(236, 72, 153, 0.45);
    --theme-tint: rgba(236, 72, 153, 0.12);

    --bg-primary: #15091d;
    --bg-secondary: #220f30;
    --bg-tertiary: #341849;
    --bg-card: rgba(34, 15, 48, 0.9);
    --bg-elevated: #441f5e;
    --bg-overlay: rgba(21, 9, 29, 0.88);

    --text-primary: #fdf2f8;
    --text-secondary: #fce7f3;
    --text-tertiary: #f472b6;
    --text-inverse: #15091d;
    --text-muted: #c084fc;

    --border-light: rgba(236, 72, 153, 0.28);
    --border-medium: rgba(236, 72, 153, 0.55);
    --border-dark: #581c87;

    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #15091d 0%, #701a75 50%, #86198f 100%);
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #38bdf8 100%);
    --gradient-card: linear-gradient(145deg, rgba(34, 15, 48, 0.95), rgba(21, 9, 29, 0.85));

    --glass-bg: rgba(34, 15, 48, 0.82);
    --glass-border: rgba(236, 72, 153, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   4. SCOTIABANK THEATRE TORONTO (259 Richmond W - 70mm Celluloid)
   ======================================================== */
:root[data-theme="scotiabank"],
:root[data-theatre="7402"],
:root[data-theme="executive"] {
    --theme-id: "scotiabank";
    --theatre-id: 7402;
    --theatre-name: "Scotiabank Theatre Toronto";
    --theatre-tag: "Monumental 1.43:1 GT Laser & 70mm";
    --theatre-icon: "🏛️";

    --theme-primary: #f59e0b;
    --theme-primary-light: #fbbf24;
    --theme-primary-dark: #d97706;
    --theme-secondary: #ef4444;
    --theme-accent: #f97316;
    --theme-glow: rgba(245, 158, 11, 0.45);
    --theme-tint: rgba(245, 158, 11, 0.12);

    --bg-primary: #150c08;
    --bg-secondary: #22140c;
    --bg-tertiary: #351f14;
    --bg-card: rgba(34, 20, 12, 0.9);
    --bg-elevated: #45281a;
    --bg-overlay: rgba(21, 12, 8, 0.88);

    --text-primary: #fffbeb;
    --text-secondary: #fef3c7;
    --text-tertiary: #fde68a;
    --text-inverse: #150c08;
    --text-muted: #d97706;

    --border-light: rgba(245, 158, 11, 0.28);
    --border-medium: rgba(245, 158, 11, 0.55);
    --border-dark: #78350f;

    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #150c08 0%, #7c2d12 50%, #991b1b 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --gradient-card: linear-gradient(145deg, rgba(34, 20, 12, 0.95), rgba(21, 12, 8, 0.85));

    --glass-bg: rgba(34, 20, 12, 0.82);
    --glass-border: rgba(245, 158, 11, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   5. VAUGHAN COLOSSUS IMAX (3555 Hwy 7 W - Cosmic Spaceship)
   ======================================================== */
:root[data-theme="vaughan"],
:root[data-theatre="7408"],
:root[data-theme="command-center"] {
    --theme-id: "vaughan";
    --theatre-id: 7408;
    --theatre-name: "Cineplex Cinemas Vaughan (Colossus)";
    --theatre-tag: "The Flying Saucer & 15/70mm Film Booth";
    --theatre-icon: "🛸";

    --theme-primary: #6366f1;
    --theme-primary-light: #818cf8;
    --theme-primary-dark: #4f46e5;
    --theme-secondary: #8b5cf6;
    --theme-accent: #84cc16;
    --theme-glow: rgba(99, 102, 241, 0.45);
    --theme-tint: rgba(99, 102, 241, 0.12);

    --bg-primary: #0c0b1f;
    --bg-secondary: #141233;
    --bg-tertiary: #1f1b4d;
    --bg-card: rgba(20, 18, 51, 0.9);
    --bg-elevated: #2b2568;
    --bg-overlay: rgba(12, 11, 31, 0.88);

    --text-primary: #eef2ff;
    --text-secondary: #e0e7ff;
    --text-tertiary: #c7d2fe;
    --text-inverse: #0c0b1f;
    --text-muted: #818cf8;

    --border-light: rgba(99, 102, 241, 0.28);
    --border-medium: rgba(99, 102, 241, 0.55);
    --border-dark: #3730a3;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #0c0b1f 0%, #312e81 50%, #4338ca 100%);
    --gradient-accent: linear-gradient(135deg, #818cf8 0%, #84cc16 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 18, 51, 0.95), rgba(12, 11, 31, 0.85));

    --glass-bg: rgba(20, 18, 51, 0.82);
    --glass-border: rgba(99, 102, 241, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   6. ERIN MILLS JUNXION (5100 Erin Mills Pkwy - Social Hub)
   ======================================================== */
:root[data-theme="erin-mills"],
:root[data-theatre="7313"] {
    --theme-id: "erin-mills";
    --theatre-id: 7313;
    --theatre-name: "Cineplex Junxion Erin Mills";
    --theatre-tag: "Mississauga Social Hub • UltraAVX & D-BOX";
    --theatre-icon: "🎮";

    --theme-primary: #0d9488;
    --theme-primary-light: #2dd4bf;
    --theme-primary-dark: #0f766e;
    --theme-secondary: #f59e0b;
    --theme-accent: #fb7185;
    --theme-glow: rgba(13, 148, 136, 0.45);
    --theme-tint: rgba(13, 148, 136, 0.12);

    --bg-primary: #071412;
    --bg-secondary: #0d1f1c;
    --bg-tertiary: #14302b;
    --bg-card: rgba(13, 31, 28, 0.92);
    --bg-elevated: #1a3d36;
    --bg-overlay: rgba(7, 20, 18, 0.88);

    --text-primary: #ecfdf5;
    --text-secondary: #ccfbf1;
    --text-tertiary: #99f6e4;
    --text-inverse: #071412;
    --text-muted: #5eead4;

    --border-light: rgba(45, 212, 191, 0.28);
    --border-medium: rgba(13, 148, 136, 0.55);
    --border-dark: #115e59;

    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #f59e0b 100%);
    --gradient-hero: linear-gradient(135deg, #071412 0%, #0f766e 50%, #b45309 100%);
    --gradient-accent: linear-gradient(135deg, #2dd4bf 0%, #fb7185 100%);
    --gradient-card: linear-gradient(145deg, rgba(13, 31, 28, 0.95), rgba(7, 20, 18, 0.85));

    --glass-bg: rgba(13, 31, 28, 0.82);
    --glass-border: rgba(45, 212, 191, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   7. SQUARE ONE (100 City Centre Dr - Mississauga Hub)
   ======================================================== */
:root[data-theme="square-one"],
:root[data-theatre="7420"] {
    --theme-id: "square-one";
    --theatre-id: 7420;
    --theatre-name: "Cineplex Cinemas Mississauga Square One";
    --theatre-tag: "City Centre • IMAX & VIP";
    --theatre-icon: "🏬";

    --theme-primary: #2563eb;
    --theme-primary-light: #60a5fa;
    --theme-primary-dark: #1d4ed8;
    --theme-secondary: #38bdf8;
    --theme-accent: #fbbf24;
    --theme-glow: rgba(37, 99, 235, 0.45);
    --theme-tint: rgba(37, 99, 235, 0.12);

    --bg-primary: #07111f;
    --bg-secondary: #0c1a2e;
    --bg-tertiary: #132c3f;
    --bg-card: rgba(12, 26, 46, 0.92);
    --bg-elevated: #1a2f4d;
    --bg-overlay: rgba(7, 17, 31, 0.88);

    --text-primary: #eff6ff;
    --text-secondary: #dbeafe;
    --text-tertiary: #bfdbfe;
    --text-inverse: #07111f;
    --text-muted: #93c5fd;

    --border-light: rgba(96, 165, 250, 0.28);
    --border-medium: rgba(37, 99, 235, 0.55);
    --border-dark: #1e3a8a;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --gradient-hero: linear-gradient(135deg, #07111f 0%, #1d4ed8 55%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #fbbf24 100%);
    --gradient-card: linear-gradient(145deg, rgba(12, 26, 46, 0.95), rgba(7, 17, 31, 0.85));

    --glass-bg: rgba(12, 26, 46, 0.82);
    --glass-border: rgba(96, 165, 250, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   8. WINSTON CHURCHILL (Oakville 4DX & VIP)
   ======================================================== */
:root[data-theme="winston-churchill"],
:root[data-theatre="7123"] {
    --theme-id: "winston-churchill";
    --theatre-id: 7123;
    --theatre-name: "Cineplex Cinemas Winston Churchill & VIP";
    --theatre-tag: "Oakville • 4DX & VIP";
    --theatre-icon: "🎬";

    --theme-primary: #d97706;
    --theme-primary-light: #fbbf24;
    --theme-primary-dark: #b45309;
    --theme-secondary: #f59e0b;
    --theme-accent: #ef4444;
    --theme-glow: rgba(217, 119, 6, 0.45);
    --theme-tint: rgba(217, 119, 6, 0.12);

    --bg-primary: #1a1005;
    --bg-secondary: #24180a;
    --bg-tertiary: #33210e;
    --bg-card: rgba(36, 24, 10, 0.92);
    --bg-elevated: #3f2912;
    --bg-overlay: rgba(26, 16, 5, 0.88);

    --text-primary: #fffbeb;
    --text-secondary: #fef3c7;
    --text-tertiary: #fde68a;
    --text-inverse: #1a1005;
    --text-muted: #fcd34d;

    --border-light: rgba(251, 191, 36, 0.28);
    --border-medium: rgba(217, 119, 6, 0.55);
    --border-dark: #92400e;

    --gradient-primary: linear-gradient(135deg, #d97706 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #1a1005 0%, #b45309 50%, #7f1d1d 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f43f5e 100%);
    --gradient-card: linear-gradient(145deg, rgba(36, 24, 10, 0.95), rgba(26, 16, 5, 0.85));

    --glass-bg: rgba(36, 24, 10, 0.82);
    --glass-border: rgba(251, 191, 36, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   9. YONGE-EGLINTON VIP (Midtown Toronto)
   ======================================================== */
:root[data-theme="yonge-eglinton"],
:root[data-theatre="7400"] {
    --theme-id: "yonge-eglinton";
    --theatre-id: 7400;
    --theatre-name: "Cineplex Cinemas Yonge-Eglinton and VIP";
    --theatre-tag: "Midtown VIP • Yonge Line";
    --theatre-icon: "🏙️";

    --theme-primary: #e11d48;
    --theme-primary-light: #fb7185;
    --theme-primary-dark: #be123c;
    --theme-secondary: #f43f5e;
    --theme-accent: #a855f7;
    --theme-glow: rgba(225, 29, 72, 0.45);
    --theme-tint: rgba(225, 29, 72, 0.12);

    --bg-primary: #16060c;
    --bg-secondary: #220a14;
    --bg-tertiary: #33101e;
    --bg-card: rgba(34, 10, 20, 0.92);
    --bg-elevated: #3f1426;
    --bg-overlay: rgba(22, 6, 12, 0.88);

    --text-primary: #fff1f2;
    --text-secondary: #ffe4e6;
    --text-tertiary: #fecdd3;
    --text-inverse: #16060c;
    --text-muted: #fda4af;

    --border-light: rgba(251, 113, 133, 0.28);
    --border-medium: rgba(225, 29, 72, 0.55);
    --border-dark: #9f1239;

    --gradient-primary: linear-gradient(135deg, #e11d48 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #16060c 0%, #be123c 55%, #7e22ce 100%);
    --gradient-accent: linear-gradient(135deg, #fb7185 0%, #c084fc 100%);
    --gradient-card: linear-gradient(145deg, rgba(34, 10, 20, 0.95), rgba(22, 6, 12, 0.85));

    --glass-bg: rgba(34, 10, 20, 0.82);
    --glass-border: rgba(251, 113, 133, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ========================================================
   THEME SELECTOR & MOBILE DOCK COMPONENT STYLES
   ======================================================== */
.core5-theme-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.45rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.core5-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.core5-chip:hover {
    background: var(--theme-tint);
    border-color: var(--theme-primary);
    color: #FFF;
    transform: translateY(-1px);
}

.core5-chip.active {
    background: var(--theme-primary);
    color: var(--text-inverse);
    border-color: var(--theme-primary-light);
    box-shadow: 0 0 16px var(--theme-glow);
}

/* Floating Offline Status Banner */
#cinepulse-offline-banner {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    display: none;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

/* Phone night board is the schedule on a narrow screen. Desktop keeps the stream. */
.phone-night-board {
    display: none;
}

/* Mobile-only Board / Stream / Rooms switcher — hidden on desktop */
.mobile-view-switcher {
    display: none;
}

.timeline-view-hint-mobile {
    display: none;
}

#viewDoubleFeature {
    display: none;
}

/* Mobile double-feature builder + screenshot card */
.df-mobile-lead {
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.35;
}

.df-pick-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.df-pick-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: rgba(17, 24, 39, 0.72);
}

.df-pick-block > span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.df-select {
    width: 100%;
    appearance: none;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.df-status {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.df-status.is-good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.df-status.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.df-status.is-bad {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.df-shot-card {
    margin: 0 0 0.75rem;
    padding: 1.15rem 1rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(120% 80% at 10% 0%, rgba(229, 9, 20, 0.18), transparent 55%),
        linear-gradient(165deg, #121826 0%, #0b1220 55%, #090d16 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.df-shot-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.35rem;
}

.df-shot-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.df-shot-leg {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.df-shot-poster {
    width: 64px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    background: #1e293b;
}

.df-shot-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.df-shot-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.df-shot-copy strong {
    color: #fff;
    font-size: 0.98rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.df-shot-copy span {
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
}

.df-shot-copy em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.df-shot-gap {
    margin: 0.7rem 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--theme-primary-light, #f87171);
}

.df-shot-foot {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.df-save-btn {
    width: 100%;
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: var(--theme-primary, #e50914);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.df-save-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Mobile Bottom Navigation Dock (Pixel 8a & Mobile) */
.mobile-bottom-dock {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-dock {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        background: var(--bg-card);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-light);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        flex: 1;
        height: 100%;
        color: var(--text-tertiary);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 700;
        font-family: inherit;
        transition: color 0.15s;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .mobile-dock-item .dock-icon {
        font-size: 1.25rem;
    }

    .mobile-dock-item.active,
    .mobile-dock-item:hover {
        color: var(--theme-primary-light);
    }

    /* Padding offset so content doesn't get covered by bottom dock */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ========================================================
   ANTIGRAVITY SPATIAL UI & TIME-LIVE FLOW ENGINE
   ======================================================== */
.theatre-hero-banner {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-medium);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px var(--theme-glow);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.theatre-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.theatre-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Spatial Movie Cards Grid (Mode 1) */
.spatial-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.antigravity-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.antigravity-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-primary);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 24px var(--theme-glow);
}

.session-badge-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
    font-family: inherit;
    color: #FFF;
}

.session-badge-pill:hover {
    background: var(--theme-tint);
    border-color: var(--theme-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.velocity-mini-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.velocity-mini-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Mode 2: Time-Live Flow Stream */
.timeline-stream-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.timeline-stream-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 180px 1fr 200px auto;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.timeline-stream-card:hover {
    border-color: var(--theme-primary);
    transform: translateX(4px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7), 0 0 16px var(--theme-glow);
}

.time-slot-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.time-start-large {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Space Grotesk', monospace;
    letter-spacing: -0.02em;
}

.time-range-sub {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.velocity-gauge-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.velocity-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    width: fit-content;
}

@media (max-width: 900px) {
    .timeline-stream-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* ========================================================
   CORE 5 THEATRES SPLASH MODAL & MOBILE STREAMLINING
   ======================================================== */

/* Mobile Top App Bar */
.mobile-top-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-top-bar {
        display: flex;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
        z-index: 999;
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 800;
        font-size: 1.15rem;
        color: #ffffff;
        text-decoration: none;
    }

    .mobile-theatre-switcher-capsule {
        background: var(--theme-tint);
        border: 1.5px solid var(--theme-primary);
        color: #ffffff;
        padding: 0.4rem 0.85rem;
        border-radius: 9999px;
        font-size: 0.8rem;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.45rem;
        box-shadow: 0 0 14px var(--theme-glow);
        transition: all 0.2s;
    }
    .mobile-theatre-switcher-capsule:active {
        transform: scale(0.96);
    }

    .mobile-theatre-switcher-capsule .capsule-name {
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-header-passport {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border-light);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 1.1rem;
    }

    /* Declutter and hide heavy desktop sections on mobile */
    .theatre-hero-banner,
    .kpi-strip,
    .desktop-only-control,
    .desktop-only-heading,
    #viewTable {
        display: none !important;
    }

    /* Slim horizontal toggle for all schedule views */
    .mobile-view-switcher {
        display: flex;
        gap: 0.3rem;
        margin: 0.15rem 0 0.85rem;
        padding: 0.3rem;
        border-radius: 12px;
        border: 1px solid var(--border-light);
        background: rgba(0, 0, 0, 0.35);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-view-switcher::-webkit-scrollbar {
        display: none;
    }

    .mobile-view-btn {
        appearance: none;
        border: 0;
        border-radius: 9px;
        padding: 0.55rem 0.7rem;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: var(--text-secondary);
        background: transparent;
        cursor: pointer;
        white-space: nowrap;
        flex: 0 0 auto;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .mobile-view-btn.active {
        color: #fff;
        background: var(--theme-primary, #e50914);
        box-shadow: 0 4px 14px var(--theme-glow, rgba(229, 9, 20, 0.35));
    }

    /* Mobile panels: only the active schedule view shows */
    .mobile-schedule-panel {
        display: none !important;
    }

    .mobile-schedule-panel.is-active-view {
        display: block !important;
    }

    #viewTimeline.is-active-view {
        padding: 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 14px !important;
        -webkit-overflow-scrolling: touch;
    }

    #viewTimeline.is-active-view .timeline-view-hint {
        display: none;
    }

    #viewTimeline.is-active-view .timeline-view-hint-mobile {
        display: block;
        color: var(--text-muted);
        margin: 0 0 0.85rem;
        font-size: 0.78rem;
    }

    #viewTimeline.is-active-view .timeline-row-label {
        width: 88px !important;
        padding-right: 8px !important;
        font-size: 0.75rem !important;
    }

    #viewTimeline.is-active-view .consolidated-timeline {
        min-width: 720px;
    }

    #viewMovieCards.is-active-view .spatial-movie-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

    #viewMovieCards.is-active-view .antigravity-card {
        padding: 0.95rem;
        border-radius: 14px;
    }

    .phone-now-strip h2,
    .phone-movie-card h3 {
        margin: 0;
        color: #fff;
        font-family: 'Space Grotesk', sans-serif;
    }

    .phone-now-strip h2 {
        font-size: 0.95rem;
        margin-bottom: 0.55rem;
    }

    .phone-now-btn,
    .phone-time-btn {
        font-family: inherit;
        text-align: left;
        cursor: pointer;
        color: #fff;
    }

    .phone-now-btn,
    .phone-now-btn.view-seats-btn {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        width: 100%;
        margin-bottom: 0.45rem;
        padding: 0.7rem 0.8rem;
        border-radius: 12px;
        border: 1px solid var(--theme-primary);
        background: var(--theme-tint, rgba(255,255,255,0.04));
        box-shadow: none;
    }

    .phone-now-title {
        font-weight: 800;
        font-size: 0.98rem;
    }

    .phone-now-meta,
    .phone-now-when {
        font-size: 0.75rem;
        color: var(--text-secondary);
    }

    .phone-movie-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .phone-movie-card {
        padding: 0.8rem;
        border-radius: 16px;
        border: 1px solid var(--border-light);
        background: rgba(17, 24, 39, 0.72);
    }

    .phone-movie-head {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        margin-bottom: 0.7rem;
    }

    .phone-movie-head img,
    .phone-poster-fallback {
        width: 64px;
        height: 96px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .phone-poster-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--theme-tint);
        font-size: 1.4rem;
    }

    .phone-movie-card h3 {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .phone-movie-card p {
        margin: 0.25rem 0 0;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

    .phone-time-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .phone-time-btn,
    .phone-time-btn.view-seats-btn {
        display: flex;
        flex-direction: column;
        width: auto;
        flex: 1 1 calc(33.333% - 0.4rem);
        min-width: 96px;
        max-width: calc(50% - 0.2rem);
        padding: 0.45rem 0.55rem;
        border-radius: 10px;
        border: 1px solid var(--border-light);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }
    .phone-time-btn.view-seats-btn:hover,
    .phone-time-btn.view-seats-btn:active {
        background: var(--theme-tint);
        border-color: var(--theme-primary);
    }

    .phone-time-btn strong {
        font-size: 0.86rem;
    }

    .phone-time-btn span,
    .phone-time-btn em {
        font-size: 0.68rem;
        font-style: normal;
        color: var(--text-secondary);
    }

    /* Tighten main content padding on mobile */
    .main-content {
        padding: 8px 12px 85px 12px !important;
    }

    /* Compact 7-day strip */
    .theatrical-date-strip {
        gap: 0.35rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Compact Timeline Stream Card on Mobile */
    .timeline-stream-card {
        padding: 0.85rem 1rem !important;
        border-radius: 12px !important;
        gap: 0.65rem !important;
    }

    .timeline-stream-container {
        gap: 0.65rem !important;
    }
}

/* Core 5 Splash Modal Overlay */
.core5-splash-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.core5-splash-modal-overlay.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.core5-splash-modal-content {
    background: #090e1d;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.2);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.core5-splash-modal-overlay.open .core5-splash-modal-content {
    transform: scale(1);
}

.splash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.splash-modal-cards-list {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.splash-modal-theatre-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.splash-modal-theatre-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--card-color, #06b6d4);
}

.splash-modal-theatre-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--card-color, #06b6d4);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.splash-modal-theatre-card.active-theatre {
    border-color: var(--card-color, #06b6d4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--card-glow, rgba(6, 182, 212, 0.3));
}

.close-splash-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.close-splash-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}


