@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #050505;
  --gold: #d4af6a;
  --gold-bright: #f0d38a;
  --gold-dim: #8a6f3f;
  --red: #7a1620;
  --text: #f2ece0;
  --text-dim: #b8b0a0;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

button{ font-family: var(--font-body); cursor: pointer; }

/* ---------- Language choice screen ---------- */
#scene-language{
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.language-inner{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.language-logo{
  width: min(180px, 45vw);
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(212,175,106,0.3));
}
.language-question{
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.language-choices{ display: flex; gap: 1rem; }
.lang-choice{ min-width: 140px; }

/* ---------- Scene management ---------- */
.scene{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  overflow-y: auto;
}
.scene.active{
  opacity: 1;
  visibility: visible;
}

.scene-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.scene-bg.dim{ filter: brightness(0.35) saturate(0.8); }

.scrim{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.92) 80%);
  z-index: 1;
}
.scrim.strong{
  background: linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.75) 40%, rgba(5,5,5,0.95) 100%);
}

/* ---------- Typography ---------- */
.title-xl{
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(212,175,106,0.35);
}
.title-lg{
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.subtitle{
  color: var(--text-dim);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 2rem;
}
.body-text{
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn-primary{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  color: #1a1305;
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(212,175,106,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover:not(:disabled){
  transform: translateY(-2px);
  box-shadow: 0 4px 35px rgba(212,175,106,0.45);
}
.btn-primary:disabled{
  background: #2a2620;
  color: #6b6455;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost{
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}
.btn-ghost:hover{
  background: rgba(212,175,106,0.1);
  border-color: var(--gold-bright);
}

/* ---------- INTRO ---------- */
#scene-intro{
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.intro-inner{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.intro-logo{
  width: min(260px, 60vw);
  opacity: 0;
  filter: drop-shadow(0 0 25px rgba(212,175,106,0.4));
  animation: logoReveal 2.2s ease forwards 0.3s;
}
.intro-line{
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0;
}
.line-1{
  font-size: 1.4rem;
  color: var(--gold-bright);
  animation: lineFade 1.5s ease forwards 2.4s;
}
.line-2{
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  animation: lineFade 1.5s ease forwards 3.6s;
}
.intro-start{
  margin-top: 1.5rem;
  opacity: 0;
  animation: lineFade 1.5s ease forwards 4.8s;
}

@keyframes logoReveal{
  0%{ opacity: 0; transform: scale(0.92); filter: drop-shadow(0 0 0 rgba(212,175,106,0)); }
  60%{ opacity: 1; }
  100%{ opacity: 1; transform: scale(1); filter: drop-shadow(0 0 25px rgba(212,175,106,0.4)); }
}
@keyframes lineFade{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- ENTRANCE TRANSITION ---------- */
#scene-transition{
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.entrance-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- LOBBY ---------- */
.lobby-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.lobby-logo{ width: 140px; margin-bottom: 1.5rem; opacity: 0.95; }

/* ---------- APP SHELL / NAV ---------- */
#scene-app{ overflow-y: auto; }
.topnav{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  background: rgba(5,5,5,0.55);
  border-bottom: 1px solid rgba(212,175,106,0.15);
}
.nav-logo{ height: 42px; }
.nav-links{ display: flex; gap: 2rem; }
.nav-signup{ padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.nav-link{
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}
.nav-link.active, .nav-link:hover{
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.page{
  position: relative;
  z-index: 2;
  display: none;
  min-height: calc(100vh - 76px);
  animation: pageFade 0.6s ease;
}
.page.active{ display: block; }
@keyframes pageFade{ from{ opacity: 0; } to{ opacity: 1; } }

/* HOME */
#page-home{
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
#page-home.active{ display: block; }
.hero-poster{
  width: 220px;
  float: right;
  margin: 0 0 1.5rem 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,106,0.25);
}
.hero-poster img{ width: 100%; display: block; }
.home-content{ padding-top: 1rem; }

/* Countdown */
.countdown-block{ margin: 2rem 0; }
.countdown-label{
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
.countdown{ display: flex; gap: 1rem; clear: both; }
.cd-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(212,175,106,0.06);
  border: 1px solid rgba(212,175,106,0.25);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  min-width: 64px;
}
.cd-num{
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--gold-bright);
  line-height: 1;
}
.cd-label{
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* PREMIERE */
#page-premiere{ position: relative; min-height: calc(100vh - 76px); padding: 3rem 2rem 5rem; }
.premiere-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) saturate(0.9);
}
.premiere-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0.55) 35%, rgba(5,5,5,0.92) 100%);
}
.premiere-layout{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.premiere-poster{
  width: 300px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,106,0.25);
}
.premiere-poster img{ width: 100%; display: block; }
.premiere-info{ padding-top: 0.5rem; }
.premiere-date{ color: var(--text-dim); line-height: 1.6; margin: 0.8rem 0 1.5rem; }
.premiere-date strong{ color: var(--gold-bright); font-size: 1.1rem; }

.lock-row{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.lock-icon{ font-size: 1rem; }

.btn-watch{ font-size: 1.1rem; padding: 1rem 2.6rem; }
.btn-watch.unlocked{
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%, 100%{ box-shadow: 0 0 25px rgba(212,175,106,0.35); }
  50%{ box-shadow: 0 0 45px rgba(212,175,106,0.7); }
}

/* ---------- CURTAIN ---------- */
.curtain{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  pointer-events: none;
}
.curtain.active{ display: block; }
.curtain-panel{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, #2a0a0e, var(--red) 40%, #3a0f14);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
}
.curtain-panel.left{ left: 0; transform: translateX(0); }
.curtain-panel.right{ right: 0; transform: translateX(0); }
.curtain.opening .curtain-panel.left{
  transform: translateX(-100%);
  transition: transform 1.4s cubic-bezier(0.7,0,0.3,1);
}
.curtain.opening .curtain-panel.right{
  transform: translateX(100%);
  transition: transform 1.4s cubic-bezier(0.7,0,0.3,1);
}

/* ---------- WATCH ---------- */
#scene-watch{
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.player-wrap{ width: 100%; height: 100%; }
#youtube-player{ width: 100%; height: 100%; background: #000; }
#youtube-player iframe{ width: 100%; height: 100%; }

/* ---------- RATE ---------- */
#scene-rate{
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rate-inner{ display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem; }
.stars{ font-size: 2.4rem; letter-spacing: 0.3rem; }
.stars span{
  color: #3a352a;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.stars span.filled, .stars span:hover{ color: var(--gold-bright); transform: scale(1.15); }
.rate-label{ color: var(--text-dim); margin-bottom: 1rem; }
.rate-actions{ display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }

/* ---------- FEEDBACK MODAL ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.modal-overlay.active{ display: flex; }
.modal-box{
  position: relative;
  width: min(420px, 90vw);
  background: #0c0c0c;
  border: 1px solid rgba(212,175,106,0.3);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,106,0.1);
  text-align: left;
}
.modal-close{
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
}
.modal-close:hover{ color: var(--gold-bright); }

.form-label{
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1rem 0 0.4rem;
}
.form-input{
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,106,0.25);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-input:focus{
  outline: none;
  border-color: var(--gold-bright);
}
.feedback-submit{ width: 100%; margin-top: 1.5rem; }
.signup-status{
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--gold-bright);
  text-align: center;
  min-height: 1.2em;
}
.signup-status.error{ color: #d97a7a; }

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .premiere-layout{ flex-direction: column; align-items: center; text-align: center; }
  .hero-poster{ float: none; margin: 0 auto 1.5rem; }
  .countdown{ justify-content: center; }
  .nav-links{ gap: 1rem; }
  .topnav{ padding: 1rem; }
}
