:root {
    --bg-dark: #05070a;
    --neon-cyan: #00f3ff;
    --neon-gold: #ffc107;
    --neon-magenta: #ff00ff;
    --neon-red: #ff4757;
    --font-display: 'Inter', sans-serif;
    --font-code: 'Roboto Mono', monospace;
    --font-tech: 'Orbitron', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.showcase-body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-display);
    overflow-x: hidden;
}

/* --- HEADER --- */
.showcase-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 90px;
    padding: 0 50px;
    display: flex; justify-content: space-between; align-items: center;
    /* CHIRURGIE : Bouclier de Scroll plus sombre et profond */
    background: linear-gradient(180deg, rgba(2,4,6,1) 0%, rgba(2,4,6,0.95) 50%, rgba(2,4,6,0.8) 75%, transparent 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 50px; height: 50px; filter: drop-shadow(0 0 15px rgba(255,255,255,0.6)); }
.logo-text-group { display: flex; align-items: flex-start; gap: 8px; }
.logo-view { font-family: var(--font-tech); font-weight: 900; font-size: 36px; letter-spacing: 6px; text-shadow: 0 0 20px rgba(255,255,255,0.3); line-height: 1; color: #fff; }
.neon-badge { font-family: var(--font-code); font-size: 9px; font-weight: bold; background: rgba(0,243,255,0.1); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 3px 6px; border-radius: 2px; letter-spacing: 2px; margin-top: 2px; box-shadow: 0 0 10px rgba(0, 243, 255, 0.1); }

.btn-outline {
    background: rgba(255,215,0,0.05); border: 1px solid var(--neon-gold); color: var(--neon-gold);
    padding: 6px 14px; text-decoration: none; font-family: var(--font-code); font-size: 10px; font-weight: bold; letter-spacing: 1px;
    transition: all 0.3s; border-radius: 2px;
}
.btn-outline:hover { background: var(--neon-gold); color: #000; box-shadow: 0 0 20px rgba(255,215,0,0.4); }

.btn-support-header {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.8);
    padding: 6px 14px; text-decoration: none; font-family: var(--font-code); font-size: 10px; font-weight: bold; letter-spacing: 1px;
    transition: all 0.3s; border-radius: 2px;
}
.btn-support-header:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,243,255,0.2); }

/* BOUTON CYBER-PULSE PREMIUM (HEADER) */
.btn-pulse-premium {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 243, 255, 0.1) 100%);
    border: 1px solid var(--neon-magenta);
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.btn-pulse-premium::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    animation: shine-sweep 4s infinite;
    z-index: -1;
}

.btn-pulse-premium:hover {
    border-color: var(--neon-cyan);
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- HERO --- */
.showcase-hero {
    min-height: 70vh;
    height: auto;
    padding: 120px 50px 60px 50px; /* Padding haut pour compenser le header fixe */
    position: relative;
    display: flex; align-items: center;
    background: radial-gradient(circle at top right, #0a101a 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid rgba(0,243,255,0.2);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(5,7,10,0.4) 0%, var(--bg-dark) 100%);
}

/* Variables CSS pour suivre la position de la lampe torche (souris) */
.showcase-hero {
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

/* Mini Whitelist (Hero Integration) */
.hero-whitelist-box {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.whitelist-form.mini {
    width: 100%;
    gap: 0; /* Soudure des éléments */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ghost-input.mini {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    font-size: 11px;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
}

.cyber-btn-ghost.mini {
    padding: 12px 20px;
    font-size: 10px;
    border-radius: 0 4px 4px 0;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    white-space: nowrap;
}
.cyber-btn-ghost.mini:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

@media (max-width: 600px) {
    .whitelist-form.mini { flex-direction: column; gap: 10px; box-shadow: none; } 
    .ghost-input.mini { width: 100%; border-right: 1px solid rgba(255, 255, 255, 0.15); border-radius: 4px; }
    .cyber-btn-ghost.mini { width: 100%; border-radius: 4px; }
}

/* Z-1 : Le Réseau de vérité */
#hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #020305; /* Fond ultra sombre sous la 3D */
}

/* Z-2 : Le Brouillard des mensonges (Bruit + Obscurité) */
.hero-fog-layer {
    position: absolute; 
    inset: 0; 
    z-index: 2;
    background: #05070a; /* Opaque par défaut */
    /* Injection d'un bruit statique crasseux */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    
    /* LE MASQUE RADIOGRAPHIQUE : Trou transparent autour de la souris */
    mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0,0,0,0.8) 60%, black 100%);
    -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0,0,0,0.8) 60%, black 100%);
    transition: mask-image 0.1s ease-out, -webkit-mask-image 0.1s ease-out;
}

/* Grille holographique (Suture) */
.showcase-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 3;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: drift 40s linear infinite;
    pointer-events: none;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: -40px 40px; } }

.hero-overlay { 
    z-index: 4; 
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(5,7,10,0.8) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative; z-index: 10; width: 100%;
}
@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; gap: 40px !important; }
    .hero-left-pane { max-width: 100% !important; }
    .hero-right-pane { width: 100%; max-width: 500px; flex: none !important; }
    .hero-actions-box { justify-content: center; }
}
.hero-content h1 {
    font-family: var(--font-display); font-size: 56px; font-weight: 900; letter-spacing: -2px;
    text-transform: uppercase; margin-bottom: 20px; line-height: 1.1;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.hero-content p {
    font-family: var(--font-code); font-size: 14px; color: #aaa; line-height: 1.6;
}

/* --- TM ALPHA MENTION --- */
.alpha-tm {
    font-size: 0.4em; vertical-align: super; color: var(--neon-cyan); opacity: 0.8;
    font-weight: normal; letter-spacing: 1px; margin-left: 4px; font-family: var(--font-code);
}
.alpha-tm-hero {
    font-size: 0.3em; vertical-align: super; color: var(--neon-cyan); opacity: 0.8;
    font-weight: normal; letter-spacing: 2px; text-shadow: 0 0 10px var(--neon-cyan); margin-left: 5px; font-family: var(--font-code);
}

/* --- CATALOGUE (TERMINAL D'INVESTIGATION UNIFIÉ) --- */
.showcase-catalog {
    padding: 60px 50px;
    background: var(--bg-dark);
}

.unified-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-flow: dense;
    gap: 30px;
    justify-content: center;
}

/* --- SPLIT-DATA CARDS (TACTICAL HIVE) --- */
.movie-card {
    display: flex;
    flex-direction: column;
    background: #05070a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    position: relative; 
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    grid-column: span 1;
}

.movie-card.gravity-high { grid-column: span 2; }

/* --- HERO BENTO (DOSSIER MAÎTRE) --- */
.movie-card.hero-bento {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    order: -1; /* Verrouillé obligatoirement en tête de liste */
    min-height: 350px;
    background: linear-gradient(135deg, #0a101a 0%, #05070a 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.movie-card.hero-bento .card-media {
    width: 60%;
    aspect-ratio: auto;
    border-right: 1px solid rgba(0,243,255,0.2);
    border-bottom: none;
}

/* Retire l'effet sombre pour que le HERO soit net sans le survoler */
.movie-card.hero-bento .th-card-bg {
    opacity: 1;
    filter: grayscale(0%) contrast(1.1);
}

/* Préserve juste l'effet de zoom cinématique au survol */
.movie-card.hero-bento:hover .th-card-bg {
    opacity: 1;
    filter: grayscale(0%) contrast(1.15);
    transform: scale(1.05);
}

.movie-card.hero-bento .card-data {
    width: 40%;
    padding: 40px;
    justify-content: center;
    border-top: none;
}

.movie-card.hero-bento .th-title-solid {
    font-size: 28px;
    line-height: 1.2;
    -webkit-line-clamp: 4;
    margin-bottom: 20px;
}

.movie-card.hero-bento .micro-forensic-overlay {
    background: linear-gradient(to right, transparent 0%, rgba(5,7,10,0.9) 100%);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0,243,255,0.15);
    border-color: rgba(0,243,255,0.3);
}

/* Top Media Area */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,243,255,0.1);
}

/* Suppression de la déformation 21/9, maintien du 16/9 majestueux */
.movie-card.gravity-high .card-media { aspect-ratio: 16/9; }

.th-card-bg {
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.6; filter: grayscale(70%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease, opacity 0.5s ease;
}

.movie-card:hover .th-card-bg { opacity: 0.8; filter: grayscale(20%) contrast(1.1); transform: scale(1.05); }

/* Top Badges */
.th-card-badges-top {
    position: absolute; top: 15px; left: 15px; right: 15px;
    display: flex; justify-content: space-between; align-items: flex-start;
    z-index: 20; pointer-events: none;
}

.th-prism-badge {
    background: rgba(0, 243, 255, 0.1); border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan); font-family: var(--font-tech); font-size: 9px;
    padding: 4px 10px; font-weight: bold; border-radius: 4px 0 4px 0;
    backdrop-filter: blur(4px); letter-spacing: 2px; text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%;
}

.m-score { 
    background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.15); 
    color: #fff; font-family: var(--font-tech); font-size: 10px; padding: 4px 10px; 
    font-weight: bold; border-radius: 0 4px 0 4px;
    backdrop-filter: blur(4px); letter-spacing: 1px; flex-shrink: 0;
}
.m-score.gold { border-color: var(--neon-gold); color: var(--neon-gold); box-shadow: 0 0 10px rgba(255, 193, 7, 0.2); }
.m-score.alert { border-color: var(--neon-red); color: var(--neon-red); box-shadow: 0 0 10px rgba(255, 42, 42, 0.2); }

/* Bottom Data Area */
.card-data {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(180deg, #0a0d12 0%, #05070a 100%);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.th-meta-top {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-code); font-size: 10px; font-weight: bold;
    margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase;
}
.th-author { color: var(--neon-cyan); }
.th-channel-dot { color: rgba(255,255,255,0.3); }
.th-channel { color: rgba(255,255,255,0.5); }

.th-title-solid {
    font-family: var(--font-display); font-weight: 700; font-size: 15px; 
    line-height: 1.4; color: #f1f5f9;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.3s ease;
}

.movie-card.gravity-high .th-title-solid {
    font-size: 18px;
    -webkit-line-clamp: 3;
}

.movie-card:hover .th-title-solid { color: var(--neon-cyan); }

/* --- DEEP LINKING TARGET OVERRIDE --- */
.movie-card.target-locked {
    animation: target-glow-pulse 2.5s infinite alternate;
    border-color: #fff !important;
    z-index: 10;
    margin-top: 30px; /* Espace pour le label injecté via ::before */
}

@keyframes target-glow-pulse {
    0% { 
        box-shadow: 0 0 15px rgba(255,255,255,0.2), 0 10px 30px rgba(0,0,0,0.5); 
        transform: translateY(-4px); 
    }
    100% { 
        box-shadow: 0 0 40px rgba(255,255,255,0.6), 0 15px 40px rgba(0,0,0,0.6); 
        transform: translateY(-8px); 
    }
}

.movie-card.target-locked::before {
    content: attr(data-target-label);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    z-index: 20;
    white-space: nowrap;
}

/* Hover Micro-Forensic Overlay (Cinematic Bottom-Up) */
.micro-forensic-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,7,10,0.1) 0%, rgba(5,7,10,0.95) 90%); 
    backdrop-filter: blur(6px);
    padding: 20px; 
    display: flex; flex-direction: column; justify-content: flex-end; /* Aligne en bas */
    opacity: 0; transition: opacity 0.4s ease; z-index: 15;
}
.movie-card:hover .micro-forensic-overlay { opacity: 1; }

.mfo-title { 
    font-family: var(--font-code); font-size: 10px; color: var(--neon-gold); 
    border-bottom: 1px dashed var(--neon-gold); padding-bottom: 5px; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.mfo-signal { 
    font-family: var(--font-display); font-size: 11px; color: #fff; margin-bottom: 8px; 
    display: flex; align-items: flex-start; gap: 8px; font-weight: 600;
}
.mfo-time { color: var(--neon-cyan); font-family: var(--font-code); font-size: 10px; flex-shrink: 0; font-weight: bold; }
.mfo-desc { line-height: 1.3; }

/* Empty State Scanner */
@keyframes radar-spin { 100% { transform: rotate(360deg); } }
.mfo-empty-state {
    display: flex; align-items: center; gap: 10px; color: var(--neon-cyan);
    font-family: var(--font-code); font-size: 10px; opacity: 0.8; margin-bottom: 5px;
}
.mfo-empty-state svg { width: 14px; height: 14px; animation: radar-spin 2s linear infinite; }

.th-play-matrix {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(0, 243, 255, 0.05);
    opacity: 0; transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.movie-card:hover .th-play-matrix { opacity: 1; transform: scale(1); }

/* --- SHOP INFILTRATOR CARD (LIFESTYLE PREMIUM) --- */
.shop-native-card:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(255,255,255,0.05);
}
.shop-native-card .card-media {
    aspect-ratio: 16/9; /* VERROUILLAGE 16:9 : Préserve l'intégrité de la grille unifiée */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #05070a;
}
.shop-native-card .th-card-bg {
    object-fit: cover;
    object-position: center 25%; /* Cadrage optimisé vers le buste/col si l'image fallback est en 4:5 */
    filter: grayscale(20%) contrast(1.1); 
    opacity: 0.9;
}
.shop-native-card:hover .th-card-bg {
    filter: grayscale(0%) contrast(1.0) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}
.shop-native-card:hover .th-title-solid {
    color: #fff;
}
.shop-native-card .card-data {
    border-top: none;
    background: #05070a;
}

/* Bouton CTA Shop Premium */
.shop-cta-btn {
    background: #05070a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 15px;
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.shop-cta-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Animation Breathing via Inactivité Souris (JS State) */
@keyframes shop-cta-breathe {
    0% { box-shadow: 0 0 0 rgba(255,255,255,0); border-color: rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 15px rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 0 rgba(255,255,255,0); border-color: rgba(255,255,255,0.2); }
}
.shop-cta-btn.is-breathing {
    animation: shop-cta-breathe 3s ease-in-out infinite;
}

.th-play-text {
    font-family: var(--font-tech); font-size: 11px; letter-spacing: 4px;
    color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan);
    font-weight: bold;
}

@media (max-width: 900px) {
    .movie-card.gravity-high { grid-column: span 1; }
    .movie-card.gravity-high .card-media { aspect-ratio: 16/9; }
    .movie-card.gravity-high .th-title-solid { font-size: 16px; -webkit-line-clamp: 2; }

    .movie-card.hero-bento { flex-direction: column; }
    .movie-card.hero-bento .card-media { width: 100%; aspect-ratio: 16/9; border-right: none; border-bottom: 1px solid rgba(0,243,255,0.2); }
    .movie-card.hero-bento .card-data { width: 100%; padding: 20px; }
    .movie-card.hero-bento .th-title-solid { font-size: 20px; }
    .movie-card.hero-bento .micro-forensic-overlay { background: linear-gradient(to bottom, transparent 0%, rgba(5,7,10,0.95) 90%); }
}

/* --- LECTEUR EMBARQUÉ (SMOOTH REVEAL) --- */
#player-reveal-section {
    transition: max-height 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, padding 0.8s ease, border-bottom-color 0.8s ease;
    background: radial-gradient(circle at top center, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.player-section-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 50px !important;
    border-bottom: 1px solid transparent !important;
}

.player-section-expanded {
    max-height: 1200px !important; /* Valeur suffisamment grande pour un lecteur 16:9 */
    opacity: 1 !important;
    padding: 80px 50px !important; /* Beaucoup d'air en haut et en bas */
    border-bottom: 1px solid rgba(0, 243, 255, 0.2) !important;
}

.hero-player-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(0, 243, 255, 0.2);
    z-index: 20;
    overflow: hidden;
}

.player-stage {
    width: 100%;
    height: 100%;
    position: relative;
}
.player-stage iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- THEATER OVERRIDE POUR CETTE PAGE --- */
body.theater-active { overflow: hidden; }

/* MODE TUTORIEL (Centrage Vidéo, Masquage HUD) */
body.theater-tutorial-mode #theater-super-overlay .th-left-panel,
body.theater-tutorial-mode #theater-super-overlay .th-intel-panel,
body.theater-tutorial-mode #theater-super-overlay #live-cockpit-radar,
body.theater-tutorial-mode #theater-super-overlay .th-progress-container,
body.theater-tutorial-mode #theater-super-overlay #th-btn-forensic,
body.theater-tutorial-mode #theater-super-overlay .th-forensic-hud {
    display: none !important;
}
body.theater-tutorial-mode #theater-super-overlay .th-center-stage {
    max-width: 1200px !important;
    margin: 0 auto;
}

/* Masquage des boutons inutiles sur la page Showcase */
body.showcase-body #th-btn-prev,
body.showcase-body #th-btn-next {
    display: none !important;
}

/* Styles originaux des contrôleurs copiés depuis desktop.css */
.speed-control-group {
    display: flex; align-items: center; gap: 8px; margin-left: 15px; padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; height: 30px; font-family: var(--font-code); color: #fff; font-size: 11px;
}
.cyber-range-speed {
    -webkit-appearance: none; width: 100px; height: 6px; background: #000;
    border: 1px solid #333; border-radius: 3px; outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.15); cursor: pointer;
}
.cyber-range-speed::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: #050505; border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan), inset 0 0 4px var(--neon-cyan); cursor: grab;
}

#arming-player-stage:fullscreen,
#arming-player-stage:-webkit-full-screen {
    z-index: 9999999 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* --- OVERRIDES DU THEATER MODE POUR LE LECTEUR EMBARQUÉ --- */
/* On restaure une taille optimale pour la lisibilité de la donnée */
#theater-super-overlay {
    overflow: hidden;
}

#theater-super-overlay .th-controls-dock {
    width: 90% !important;
    max-width: 850px !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
    transform: scale(0.95);
    transform-origin: bottom center;
}

#theater-super-overlay .th-left-panel {
    padding: 40px 30px !important;
    transform: scale(0.95);
    transform-origin: top left;
}

#theater-super-overlay .th-intel-panel {
    padding: 40px 30px 0 30px !important;
    transform: scale(0.95);
    transform-origin: top right;
}

#theater-super-overlay .th-signal-text {
    font-size: 16px !important;
}

#theater-super-overlay .th-typewriter {
    font-size: 14px !important;
}

/* Animation chargement */
.loading-pulse { animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Whitelist Section (Portage Index) */
.whitelist-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #080a0e 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.whitelist-container {
    max-width: 600px; margin: 0 auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.whitelist-form { display: flex; gap: 10px; }
.ghost-input {
    flex: 1; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-family: var(--font-code); font-size: 12px;
    padding: 15px; outline: none; transition: border-color 0.3s;
}
.ghost-input:focus { border-color: var(--neon-cyan); }
.cyber-btn-ghost {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-cyan);
    font-family: var(--font-code); font-weight: bold;
    font-size: 12px; letter-spacing: 2px;
    padding: 15px 20px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-btn-ghost.solid { background: rgba(0,243,255,0.1); }
.cyber-btn-ghost.solid:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 20px rgba(0,243,255,0.4); }

@media (max-width: 600px) {
    .whitelist-form { flex-direction: column; }
    .whitelist-container { padding: 30px 20px; }
}

/* --- tech INVESTIGATION HUD --- */
.tech-discovery-overlay {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(2, 4, 6, 0.98);
    display: none; flex-direction: column;
    padding: 60px; pointer-events: auto;
}
.tech-discovery-overlay.active { display: flex; animation: fadeIn 0.5s ease; }

.discovery-grid {
    display: grid; grid-template-columns: 350px 1fr 300px; gap: 30px; height: 100%;
}

.intel-node {
    background: rgba(0, 243, 255, 0.03);
    border-left: 3px solid var(--neon-cyan);
    padding: 20px; margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 14px; line-height: 1.6;
    color: #e0e0e0;
    transform: translateX(-50px); opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}
.intel-node.visible { transform: translateX(0); opacity: 1; }

.tech-connection-line {
    position: absolute; height: 1px; background: linear-gradient(90deg, var(--neon-cyan), transparent);
    opacity: 0.2; transform-origin: left center; pointer-events: none;
}

.scanning-laser {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan);
    animation: scanVertical 4s linear infinite; opacity: 0.3;
}

@keyframes scanVertical { 0% { top: 0; } 100% { top: 100%; } }

.discovery-title-bar {
    font-family: var(--font-tech); font-size: 10px; color: var(--neon-gold);
    letter-spacing: 4px; border-bottom: 1px solid #222; padding-bottom: 10px; margin-bottom: 30px;
}

/* Footer */
.showcase-footer { text-align: center; padding: 40px; font-family: var(--font-code); font-size: 10px; color: #555; }

/* ========================================================
   RESPONSIVENESS - (MOBILE & TABLET)
   ======================================================== */

@media screen and (max-width: 1200px) {
    .showcase-header { padding: 0 30px; }
    .showcase-hero { padding: 0 30px; }
    .showcase-catalog { padding: 40px 30px; }
}

@media screen and (max-width: 900px) {
    .hero-content h1 { font-size: 42px; letter-spacing: -1px; }
    .hero-content p { font-size: 13px; }
    
    /* La grille s'adapte, on ajuste juste la colonne min */
    .unified-catalog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    
    .player-section-expanded { padding: 40px 20px; }
    
    /* Adaptation de l'overlay HUD pour tablettes */
    #theater-super-overlay .th-intel-panel { 
        width: 50vw; 
        padding: 30px 20px 0 20px !important;
    }
    #theater-super-overlay .th-left-panel { 
        width: 40vw; 
        padding: 30px 20px !important;
    }
    #theater-super-overlay .th-controls-dock {
        width: 95% !important;
        transform: scale(0.85);
        bottom: 10px;
    }
}

@media screen and (max-width: 600px) {
    .showcase-header { padding: 0 15px; height: 60px; }
    .logo-img { width: 30px; height: 30px; }
    .logo-text-group { gap: 6px; align-items: center; }
    .logo-view { font-size: 22px; letter-spacing: 3px; }
    .neon-badge { font-size: 7px; padding: 2px 4px; margin-top: 0; letter-spacing: 1px; }
    .btn-support-header span { display: none; }
    .btn-support-header { padding: 6px 10px; }
    .btn-outline { padding: 6px 12px; font-size: 10px; }
    .btn-pulse-premium { padding: 6px 10px; font-size: 9px; letter-spacing: 1px; } /* Ajustement pour éviter l'overflow horizontal */
    
    .showcase-hero { height: auto; min-height: 50vh; padding: 90px 15px 40px 15px; }
    .hero-content h1 { font-size: 32px; letter-spacing: 0; }
    .hero-content p { font-size: 12px; line-height: 1.4; }
    
    /* CHIRURGIE : Grille 100% Responsive Mobile pour les vignettes */
    .showcase-catalog { padding: 30px 15px; }
    .unified-catalog-grid { grid-template-columns: 1fr; gap: 20px; }
    .movie-card { height: auto; flex: none; }
    .card-data { padding: 15px; }
    .th-title-solid { font-size: 14px; }
    
    .th-prism-badge { font-size: 7px; letter-spacing: 1px; padding: 3px 6px; max-width: 60%; }
    .m-score { font-size: 8px; padding: 3px 6px; }
    
    .player-section-expanded { padding: 20px 10px; }
    
    /* RESTRUCTURATION EXTRÊME DU HUD POUR MOBILE (PORTRAIT & PAYSAGE) */
    #theater-super-overlay .th-forensic-hud {
        flex-direction: column;
    }
    #theater-super-overlay .th-left-panel {
        display: none !important; /* Masquer le radar sur mobile pour garder la vidéo visible */
    }
    #theater-super-overlay .th-intel-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        bottom: 80px !important; /* Laisser la place au dock */
        padding: 15px !important;
        transform: scale(1) !important;
        justify-content: flex-start !important; /* Cartes en haut sur mobile pour ne pas cacher les visages */
    }
    #theater-super-overlay .th-typewriter {
        font-size: 13px !important;
        padding: 10px 15px !important;
        background: rgba(0, 5, 10, 0.9) !important;
        border-radius: 4px !important;
    }
    #theater-super-overlay .th-signal-card {
        padding: 12px !important;
        margin-bottom: 8px !important;
        background: rgba(0, 5, 10, 0.95) !important;
        border-radius: 4px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.8) !important;
    }
    #theater-super-overlay .th-signal-text {
        font-size: 14px !important;
    }
    
    /* DOCK MOBILE */
    #theater-super-overlay .th-controls-dock {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 10px !important; 
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        transform: scale(1) !important;
        margin-bottom: 0 !important;
        gap: 10px !important;
        background: rgba(2, 4, 6, 0.95) !important;
    }
    
    /* Simplification des contrôles sur mobile */
    .th-timeline-wrapper { gap: 6px; width: 100%; padding: 0 5px; margin-bottom: 0 !important; }
    .th-time { font-size: 10px; }
    
    /* Boutons alignés sur une seule ligne (Pas de débordement) */
    .th-controls-row {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 5px !important;
        width: 100%;
        padding: 0;
        margin-top: 0 !important;
    }
    
    /* Comportement Flex des groupes */
    .th-controls-row > div {
        flex: 1 1 auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px !important;
    }

    /* Réduction globale pour rentrer dans 375px de large */
    .th-btn { width: 34px !important; height: 34px !important; }
    .th-btn svg { width: 18px !important; height: 18px !important; }
    
    /* Conservation du volume 3D avec Scale CSS ! */
    #sonic-reactor-container { 
        display: block !important; 
        transform: scale(0.65); 
        transform-origin: left center;
        margin-right: -10px !important; /* Compense la réduction d'échelle pour ne pas créer de vide */
    }
    
    /* Réduction du slider de vitesse */
    .speed-control-group { margin-left: 0 !important; padding: 2px 8px !important; height: 26px !important; }
    .cyber-range-speed { width: 50px !important; }
    #speed-display { font-size: 10px !important; }
    
    /* Ajustement bouton Forensic et séparateur */
    .th-badge-forensic { padding: 5px 8px !important; font-size: 9px !important; letter-spacing: 1px !important; margin: 0 !important;}
    .th-controls-row > div > div[style*="width:1px"] { margin: 0 4px !important; } /* Le séparateur vertical */
    
    /* Masquer les éléments non vitaux */
    #th-marker-display { display: none !important; }
}

/* ========================================================
   LANDSCAPE MOBILE (HORIZONTAL) - MODE IMMERSION MAXIMALE
   ======================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #theater-super-overlay .th-intel-panel {
        bottom: auto !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        width: 320px !important;
        padding: 0 !important;
    }
    #theater-super-overlay .th-signal-card {
        padding: 8px 12px !important;
        font-size: 11px !important;
        background: rgba(0, 5, 10, 0.8) !important;
        border-width: 1px !important;
        border-left-width: 2px !important;
    }
    #theater-super-overlay .th-signal-text {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    #theater-super-overlay .th-controls-dock {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.85) !important;
        width: 100vw !important;
        max-width: 600px !important;
        padding: 8px 15px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: none !important;
        border-radius: 8px 8px 0 0 !important;
    }
}

/* ========================================================
   DROPS SYSTEM (EPHEMERAL SOCIAL)
   ======================================================== */
#drops-airspace {
    position: fixed;
    inset: 0;
    z-index: 8000;
    pointer-events: none;
    overflow: hidden;
}

.drop-bubble {
    position: absolute;
    bottom: -150px;
    width: 320px;
    background: rgba(5, 7, 10, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    padding: 18px;
    color: #fff;
    font-family: var(--font-display);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 243, 255, 0.1);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: dropFloatUp 60s linear forwards;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-bubble.popped {
    opacity: 0;
    transform: scale(1.15);
}

@keyframes dropFloatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    2% { opacity: 1; transform: translateY(-30px) rotate(1deg); }
    98% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(-1deg); opacity: 0; }
}

.drop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.drop-author { font-weight: 800; }
.drop-tier { color: #888; font-size: 8px; letter-spacing: 2px; }

.drop-text {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 300;
    color: #e2e8f0;
}

.drop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

.drop-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    font-family: var(--font-code);
    font-size: 9px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.drop-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.drop-btn.ack:hover, .drop-btn.ack.acked {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0,243,255,0.2);
}

.drop-btn.pop:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255,42,42,0.2);
}

/* Modal Drops */
#drops-composer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s;
}

#drops-composer-modal.drops-modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.drops-modal-content {
    background: #05070a;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 243, 255, 0.1);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#drops-composer-modal.drops-modal-hidden .drops-modal-content {
    transform: translateY(30px);
}

.drops-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 243, 255, 0.05);
}

.drops-modal-title {
    font-family: var(--font-tech);
    color: var(--neon-cyan);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
}

.drops-modal-close {
    background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; transition: color 0.3s;
}
.drops-modal-close:hover { color: #fff; }

.drops-modal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#drops-composer-input {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.5;
    padding: 15px;
    resize: none;
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#drops-composer-input:focus { 
    border-color: rgba(0, 243, 255, 0.5); 
    box-shadow: inset 0 0 10px rgba(0,243,255,0.1);
}

.drops-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#drops-composer-count {
    font-family: var(--font-code);
    font-size: 11px;
    color: #64748b;
    font-weight: bold;
}

.drops-modal-actions {
    display: flex;
    gap: 12px;
}

.drops-modal-actions button {
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 1px;
}

