/* Grund-Reset */
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #000; overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Video Styling --- */
#bg-video {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh; object-fit: cover; z-index: 1; transition: all 0.5s ease;
}
body.hide-ui-mode #bg-video { object-fit: contain; background-color: #000; }

#dark-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 2; transition: background 0.8s ease, opacity 0.8s ease;
}
#dark-overlay.darker { background: rgba(0, 0, 0, 0.85); }
body.hide-ui-mode #dark-overlay { opacity: 0; pointer-events: none; }

/* --- Globale Steuerungs-Buttons --- */
.control-btn {
    position: fixed; top: 20px; z-index: 9999;
    background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px; border-radius: 4px; cursor: pointer; font-size: 16px; font-family: inherit;
    transition: background 0.3s, border-color 0.3s, opacity 0.5s ease, visibility 0.5s ease;
}
.control-btn:hover { background: rgba(0, 0, 0, 0.9); border-color: #a80000; }
.control-btn.left { left: 20px; }
.control-btn.right { right: 20px; }

/* Blendet Buttons weich aus, wenn man ins Menü wechselt */
.control-btn.hidden-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Buffering Screen --- */
#buffering-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; color: #fff; z-index: 100;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease; pointer-events: none; 
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid #a80000;
    border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ======================================= */
/* LAYERS (Intro vs. Main)                 */
/* ======================================= */
.ui-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 20; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.ui-layer.active-layer {
    opacity: 1; visibility: visible; pointer-events: auto;
}
body.hide-ui-mode .ui-layer { opacity: 0 !important; pointer-events: none !important; }

/* --- INTRO STYLING (pages/intro.php) --- */
.intro-container {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.intro-logo { max-width: 600px; width: 80%; margin-bottom: 60px; filter: drop-shadow(0 0 10px #000); }
.intro-button {
    background-color: #0a0000; color: #a80000; padding: 15px 40px;
    font-size: 26px; font-weight: bold; text-transform: uppercase; text-decoration: none;
    border: 2px solid #660000; border-radius: 2px; box-shadow: 0 0 15px rgba(0,0,0,0.8); cursor: pointer;
    font-family: inherit; transition: all 0.3s ease; letter-spacing: 2px;
}
.intro-button:hover { 
    background-color: #1a0000; color: #ff1a1a; border-color: #ff0000; 
    box-shadow: inset 0 0 15px rgba(255,0,0,0.2), 0 0 20px rgba(255,0,0,0.4);
}

/* --- MAIN STYLING --- */
#section-main { overflow-y: auto; padding-top: 100px; }
.top-logo-container { position: fixed; top: 10px; left: 80px; z-index: 50; }
.top-logo { max-width: 150px; filter: drop-shadow(0 0 5px #000); transition: transform 0.3s; }
.top-logo:hover { transform: scale(1.05); }

/* Hamburger & Menu */
.hamburger-menu { position: fixed; top: 25px; right: 80px; z-index: 51; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.hamburger-menu span { width: 35px; height: 4px; background-color: #a80000; border-radius: 2px; box-shadow: 0 0 5px #000; }
#side-menu {
    position: fixed; top: 0; right: -300px; width: 250px; height: 100vh;
    background: rgba(10, 0, 0, 0.95); border-left: 2px solid #660000; z-index: 100;
    transition: right 0.4s ease; padding: 60px 20px;
}
#side-menu.open { right: 0; }
#side-menu .close-btn { position: absolute; top: 10px; right: 20px; font-size: 40px; color: #a80000; cursor: pointer; }
#side-menu ul { list-style: none; padding: 0; }
#side-menu ul li { margin-bottom: 20px; }
#side-menu ul li a { color: #fff; text-decoration: none; font-size: 22px; text-transform: uppercase; transition: color 0.3s; }
#side-menu ul li a:hover, #side-menu ul li a.active { color: #ff0000; }
.menu-footer { position: absolute; bottom: 20px; left: 20px; font-size: 14px; }
.menu-footer a { color: #888 !important; text-decoration: none; }
.menu-footer a:hover { color: #fff !important; }

/* Sektionen & Grid */
.content-section { display: none; animation: fadeIn 0.6s ease; }
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.main-content { padding: 0 5%; max-width: 1400px; margin: 0 auto; }

/* Der unsichtbare Puffer zwingt den Browser, den Abstand unten freizuhalten */
.main-content::after {
    content: "";
    display: block;
    height: 120px;
}

/* --- Filter Bar --- */
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; border: 1px solid #660000; color: #fff; padding: 8px 20px;
    border-radius: 20px; cursor: pointer; transition: all 0.3s; font-family: inherit; font-size: 16px; text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active { background: #a80000; border-color: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.5); }

/* --- Movie Grid Update (Nur Poster, voll klickbar) --- */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.movie-poster {
    cursor: pointer; background: #000; border: 2px solid #330000; position: relative; overflow: hidden; border-radius: 5px;
    transition: transform 0.4s ease, border-color 0.3s, box-shadow 0.3s;
}
.movie-poster img { width: 100%; height: auto; display: block; }
.movie-poster:hover { transform: scale(1.05); border-color: #ff0000; box-shadow: 0 0 20px rgba(255,0,0,0.5); }
.open-lightbox-btn { display: none !important; }

/* Text Pages */
.text-page { background: rgba(10, 10, 10, 0.9); border: 1px solid #330000; padding: 40px; max-width: 900px; margin: 0 auto; color: #fff; border-radius: 5px; }
.text-page h2 { color: #ff1a1a; border-bottom: 2px solid #660000; margin-top: 0; padding-bottom: 10px; text-transform: uppercase; }

/* --- Contact Form Styling (Movieverse Theme) --- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; width: 100%; }
.contact-form textarea, .contact-form .submit-btn, .contact-form input[name="captcha"] { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
    background-color: #050000; border: 1px solid #660000; padding: 15px 20px; color: #fff;
    font-family: inherit; font-size: 16px; border-radius: 2px; box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: border-color 0.3s, box-shadow 0.3s; box-sizing: border-box; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: #ff1a1a; box-shadow: inset 0 0 10px rgba(255,0,0,0.1), 0 0 10px rgba(255,0,0,0.3);
}
.contact-form .submit-btn {
    background-color: #0a0000; color: #a80000; padding: 15px 40px; font-size: 22px; font-weight: bold;
    text-transform: uppercase; border: 2px solid #660000; border-radius: 2px; box-shadow: 0 0 15px rgba(0,0,0,0.8);
    cursor: pointer; transition: all 0.3s ease; font-family: inherit; letter-spacing: 2px;
}
.contact-form .submit-btn:hover {
    background-color: #1a0000; color: #ff1a1a; border-color: #ff0000;
    box-shadow: inset 0 0 15px rgba(255,0,0,0.2), 0 0 20px rgba(255,0,0,0.4);
}
.contact-form .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Honeypot */
.visually-hidden { position: absolute; left: -9999px; }

/* --- Neues Lightbox Layout (Desktop Sidebar) --- */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 2000; align-items: center; justify-content: center; }
.lightbox-content { background: #0a0a0a; width: 95%; max-width: 1200px; height: 85vh; border: 2px solid #660000; position: relative; color: #fff; box-shadow: 0 0 30px rgba(255,0,0,0.2); border-radius: 5px; display: flex; flex-direction: column; }
.close-lightbox { position: absolute; top: 10px; right: 20px; font-size: 40px; color: #fff; cursor: pointer; z-index: 2100; transition: color 0.3s; }
.close-lightbox:hover { color: #ff0000; }

.lb-layout { display: flex; flex-direction: row; height: 100%; overflow: hidden; }
.lb-sidebar { width: 350px; background: #050000; border-right: 1px solid #330000; display: flex; flex-direction: column; overflow-y: auto; }
.lb-sidebar img { width: 100%; height: auto; border-bottom: 2px solid #660000; }
.lb-nav { display: flex; flex-direction: column; padding: 20px; gap: 10px; }
.lb-nav a { color: #fff; text-decoration: none; padding: 12px; border: 1px solid #330000; text-align: center; font-weight: bold; text-transform: uppercase; transition: all 0.3s; background: #111; }
.lb-nav a:hover { background: #a80000; border-color: #ff0000; }
.lb-nav a.imdb-btn { background: #f5c518; color: #000; border-color: #000; }
.lb-nav a.imdb-btn:hover { background: #e2b616; box-shadow: 0 0 15px rgba(245, 197, 24, 0.5); }

.lb-main { flex: 1; padding: 40px; overflow-y: auto; scroll-behavior: smooth; }
.lb-main h1 { color: #ff1a1a; text-transform: uppercase; font-size: 40px; margin-top: 0; border-bottom: 2px solid #660000; padding-bottom: 10px; }
.lb-section { margin-bottom: 50px; padding-top: 20px; }
.lb-section h2 { color: #a80000; border-left: 5px solid #ff1a1a; padding-left: 15px; text-transform: uppercase; }
.lb-text { font-size: 16px; line-height: 1.6; }

.lb-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.lb-gallery img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #330000; border-radius: 3px; }

/* --- Watch Now Buttons (Lightbox) --- */
.watch-links-container { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; }
.watch-link-item { 
    display: flex; align-items: center; gap: 12px; 
    background: #111; border: 1px solid #330000; padding: 10px 20px; 
    color: #fff; text-decoration: none; border-radius: 4px; font-weight: bold; 
    transition: all 0.3s ease; text-transform: uppercase; font-size: 14px;
}
.watch-link-item:hover { background: #330000; border-color: #ff1a1a; box-shadow: 0 0 15px rgba(255,0,0,0.4); }
.watch-link-item img { border-radius: 3px; width: 24px; height: 24px; background: #fff; padding: 2px; }

.coming-soon-text { font-size: 30px; font-weight: bold; color: #666; text-transform: uppercase; margin-top: 50px; }

/* --- Global Footer --- */
.global-footer {
    position: fixed; bottom: 15px; left: 0; width: 100%;
    text-align: center; z-index: 9999; transition: opacity 0.5s ease;
}
.global-footer a {
    color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 14px;
    margin: 0 10px; transition: color 0.3s; font-family: inherit;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.global-footer a:hover { color: #ff1a1a; }
body.hide-ui-mode .global-footer { opacity: 0; pointer-events: none; }

/* --- Press Kits & PR Categories Styling --- */
.kit-form { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.kit-dropdown { 
    flex: 1; min-width: 250px; padding: 15px; background-color: #050000; border: 1px solid #660000; 
    color: #fff; font-size: 16px; border-radius: 2px; font-family: inherit; box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.kit-dropdown:focus { outline: none; border-color: #ff1a1a; }
.kit-btn { padding: 15px 30px; font-size: 18px; margin-top: 0; }
.pr-divider { border: 0; height: 1px; background: #330000; margin: 30px 0; }

.pr-category { margin-bottom: 40px; }
.pr-category h3 { color: #a80000; border-bottom: 1px solid #330000; padding-bottom: 5px; margin-bottom: 15px; text-transform: uppercase; font-size: 22px; }
.pr-links-container { margin-top: 0; }

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .control-btn { bottom: 20px; top: auto; }
    .top-logo-container { left: 20px; }
    .hamburger-menu { right: 20px; }
    
    /* Erweitert den Puffer auf Handys enorm, um Adressleisten/Footer auszugleichen */
    .main-content::after { height: 180px; }
    
    .text-page { padding: 25px; }
    .contact-form { grid-template-columns: 1fr; }

    /* Lightbox Anpassungen für kleine Bildschirme */
    .lb-layout { flex-direction: column; overflow-y: auto; }
    .lb-sidebar { width: 100%; border-right: none; border-bottom: 2px solid #330000; overflow: visible; }
    .lb-main { overflow-y: visible; padding: 20px; }
    .lb-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .lb-nav a { flex: 1 1 120px; font-size: 14px; padding: 10px 5px; }
    .lightbox-content { height: 95vh; }
}