:root {
  --bg-black: #020202;
  --gold: #cfa144;
  --gold-dim: #8a6c2e;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: "Manrope", sans-serif;
  width: 100vw;
  height: 100vh;
  /* Dynamic Viewport for mobile browsers */
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.text-gold {
  color: var(--gold);
}

/* === GLOBAL MUTE BUTTON === */
.audio-toggle-global {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 20001;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  transition: 0.3s;
}
.audio-toggle-global:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* === WATERMARK (Responsive Fix) === */
.watermark-fixed {
  position: absolute;
  /* Use max() to ensure it clears notches (env safe area) but has min spacing */
  top: max(20px, env(safe-area-inset-top));
  left: 50px;
  z-index: 50;
  top: 50px;
}
.watermark-fixed img {
  height: 35px; /* Sized for mobile, still looks good on desktop */
  width: auto;
}

/* === START BUTTON === */
.click-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--gold);
  font-family: "Cinzel", serif;
  letter-spacing: 3px;
  position: relative;
}
.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  top: -20px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* === INTRO LAYER === */
.intro-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: none;
  justify-content: center;
  align-items: center;
}
.intro-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-text {
  position: absolute;
  font-family: "Cinzel", serif;
  letter-spacing: clamp(2px, 1vw, 6px);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--text-white);
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  width: 90%;
}

/* === PRO MENTOR REVEAL (Updated) === */
.pro-profile-container {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  width: 90%;
  max-width: 900px;
}
.pro-text-side {
  text-align: right;
  flex: 1;
}
.pro-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  padding: 5px 10px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid rgba(207, 161, 68, 0.3);
}
.pro-name {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: #fff;
  font-weight: 700;
}
.pro-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  margin-top: 15px;
}
.pro-image-side {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}
.pro-img-mask {
  width: 300px;
  height: 400px;
  background: #111;
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--gold);
}
/* REMOVED FILTER HERE - PURE IMAGE */
.pro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important; /* Forces original colors */
  transition: 0.5s;
}

/* === NEW MODERN PRELOADER LOGO === */
.modern-loader-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
}
.loader-circle-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start from top */
}
.loader-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}
.loader-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 283; /* 2 * PI * r(45) approx */
  stroke-dashoffset: 283; /* Start empty */
  stroke-linecap: round;
}
.loader-logo-inner img {
  width: 60px;
  opacity: 0.8;
}
.loader-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-gray);
}
.loader-count {
  color: var(--gold);
  font-weight: 700;
  margin-top: 5px;
}

/* === MAIN STAGE & SCENES === */
.cinema-stage {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.bg-container,
.bg-image,
.bg-overlay,
.film-grain {
  position: absolute;
  inset: 0;
}
.bg-image {
  background-size: cover;
  background-position: center;
}
.bg-overlay {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}
.film-grain {
  z-index: 2;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scene-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scene {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
}
.scene-inner {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scene-super {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.scene-super::before,
.scene-super::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.movie-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.gold-script {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-style: italic;
  text-transform: none;
}
.movie-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #ddd;
  max-width: 550px;
  line-height: 1.6;
  font-weight: 300;
}

/* === HOLO ENGINE === */
.holo-engine {
  width: 100%;
  max-width: 320px;
  height: 380px;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.9),
    rgba(5, 5, 5, 0.95)
  );
  border: 1px solid rgba(207, 161, 68, 0.4);
  display: flex;
  flex-direction: column;
}
.engine-top {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 1px;
}
.status-live {
  color: #0f0;
  animation: blink 1s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.5;
  }
}
.chart-area {
  flex: 1;
  position: relative;
  padding: 10px;
}
.chart-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(207, 161, 68, 0.3));
}
.data-tag {
  position: absolute;
  background: rgba(207, 161, 68, 0.1);
  border: 1px solid var(--gold);
  padding: 4px 8px;
  font-size: 0.6rem;
  top: 20%;
  left: 10%;
}
.data-tag .val {
  color: var(--gold);
  font-weight: bold;
  margin-left: 5px;
}
.engine-bot {
  padding: 10px;
  background: rgba(207, 161, 68, 0.1);
  color: var(--gold);
  font-size: 0.6rem;
  text-align: center;
  letter-spacing: 2px;
}

/* === FORM & FOOTER === */
.notify-form {
  margin-top: 30px;
  width: 100%;
  max-width: 400px;
}
.input-group {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 5px;
}
.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px;
  outline: none;
}
.input-group button {
  background: transparent;
  border: none;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}
.cinema-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #888;
  z-index: 20;
}
.footer-item {
  display: flex;
  align-items: center;
}
.footer-item i {
  color: var(--gold);
  margin-right: 8px;
}
.sep {
  width: 1px;
  height: 15px;
  background: #333;
}

/* === MOBILE QUERY === */
@media (max-width: 768px) {
  .pro-profile-container {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }
  .pro-text-side {
    text-align: center;
  }
  .pro-img-mask {
    width: 200px;
    height: 260px;
    margin: 0 auto;
    border-right: none;
    border-bottom: 2px solid var(--gold);
  }
  .pro-line {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .cinema-footer {
    height: auto;
    padding: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
  }
  .sep {
    display: none;
  }
  .footer-item {
    flex-basis: 100%;
    justify-content: center;
  }

  .watermark-fixed img {
    height: 40px;
  }
  .watermark-fixed {
    top: max(15px, env(safe-area-inset-top));
    left: 40px;
    top: 40px;
  }
}
