/* --- 1. FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #000;
  color: #e0e0e0;
  overflow-x: hidden;
}

h1, h2, h3, button, .studio-header { 
  font-family: 'Cinzel', serif; text-transform: uppercase; 
}

/* --- 2. HERO SECTION (Banner Fix) --- */
.hero {
  position: relative;
  height: 90vh; /* Takes up 90% of screen height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  /* Fallback color (Dark Blue) in case image fails */
  background-color: #050b14;
  
  /* The Banner Image */
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), #000), 
                    url('banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-content { z-index: 2; padding: 20px; max-width: 900px; animation: fadeIn 1.5s ease; }

.studio-header { color: #00d2ff; letter-spacing: 5px; font-size: 0.9rem; margin-bottom: 10px; }
.movie-title { font-size: 5rem; margin: 0; line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(0, 210, 255, 0.5); }
.subtitle { 
  font-size: 3rem; margin: 5px 0 20px; 
  background: -webkit-linear-gradient(#ff8c00, #ff2a00); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.8));
}
.tagline { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; }

/* Pulse Button */
.pulse-button {
  background: transparent; color: #fff; border: 2px solid #ff4500;
  padding: 15px 40px; font-size: 1.1rem; cursor: pointer; letter-spacing: 2px;
  transition: 0.3s; box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}
.pulse-button:hover { background: #ff4500; box-shadow: 0 0 50px rgba(255, 69, 0, 0.6); }

/* --- 3. DETAILS SECTION (The Grid Fix) --- */
.details {
  background: #0b0f14;
  padding: 60px 20px;
  border-top: 1px solid #333;
}

/* This Container centers everything and limits width */
.container {
  max-width: 1200px;
  margin: 0 auto; /* Centers the block */
  display: flex;  /* Creates the Two-Column Layout */
  gap: 50px;
  align-items: flex-start;
}

/* Left Column: Poster */
.poster-container {
  flex: 0 0 300px; /* Fixed width for poster */
  width: 300px;
}
.poster-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border: 1px solid #333;
}

/* Movie Meta Data (Under Poster) */
.movie-meta-grid {
  display: flex; justify-content: space-between; margin-top: 15px;
  background: #161b22; padding: 15px; border-radius: 4px;
}
.meta-item { text-align: center; }
.meta-item .label { display: block; font-size: 0.7rem; color: #888; margin-bottom: 5px; }
.meta-item .val { font-size: 0.9rem; color: #00d2ff; font-weight: bold; }

/* Right Column: Info */
.info-container {
  flex: 1; /* Takes remaining space */
}

.info-container h2 {
  color: #fff; border-bottom: 1px solid #333; padding-bottom: 15px; margin-top: 0; font-size: 2rem;
}

.synopsis { line-height: 1.8; color: #ccc; margin-bottom: 20px; font-size: 1.05rem; }
.synopsis strong { color: #ff4500; }

/* Cast Section */
.section-header { font-size: 1.3rem; color: #00d2ff; margin: 40px 0 20px 0; }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
}

.cast-member { text-align: center; }
.cast-member img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid #333; margin-bottom: 10px; transition: 0.3s;
}
.cast-member:hover img { border-color: #00d2ff; transform: scale(1.1); }
.cast-member span { display: block; font-size: 0.9rem; color: #fff; font-weight: bold; }
.cast-member small { display: block; font-size: 0.75rem; color: #888; margin-top: 2px; }

/* Scarcity & Promo */
.scarcity-timer {
  background: rgba(255, 69, 0, 0.1); border: 1px solid #ff4500; color: #ffcccb;
  padding: 15px; margin: 30px 0; border-radius: 4px; display: flex; align-items: center; gap: 15px;
}

.promo-box {
  background: linear-gradient(45deg, #161b22, #0d1117);
  border: 1px dashed #444; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s;
}
.promo-box:hover { border-color: #00d2ff; box-shadow: 0 0 20px rgba(0, 210, 255, 0.1); }
.promo-code { color: #00ff00; letter-spacing: 1px; background: rgba(0,255,0,0.1); padding: 5px 10px; }

/* --- 4. FORM OVERLAY (Hidden by default) --- */
.form-section {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 9999;
  display: none; /* JS toggles this to 'flex' */
  justify-content: center; align-items: center;
}

.form-card {
  background: #0f131a; padding: 40px; width: 100%; max-width: 400px;
  border: 1px solid #333; text-align: center; position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
/* Fire/Water Borders */
.form-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #ff8c00, #ff2a00); }
.form-card::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #00d2ff, #0055ff); }

.input-group { margin-bottom: 20px; }
input { width: 100%; padding: 12px; background: #05080d; border: 1px solid #333; color: white; }
.submit-btn { width: 100%; padding: 15px; background: #00d2ff; border: none; font-weight: bold; cursor: pointer; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .movie-title { font-size: 3.5rem; }
  .subtitle { font-size: 2rem; }
  .container { flex-direction: column; align-items: center; }
  .poster-container { width: 100%; max-width: 300px; }
}