/* =============================================================
   Watch Roulette — 3D Cinema landing stage
   ============================================================= */

.cinema-stage {
  position: relative;
  height: 2600vh;
  margin-top: -80px;
  background: #050505;
}

.cinema-stage.no-webgl {
  background:
    radial-gradient(ellipse 70% 45% at 50% 38%, #1a0e14 0%, #050505 60%),
    linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
}

.cinema-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

#cinema-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.cinema-grain {
  position: absolute;
  inset: -20px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  animation: cinema-grain 0.9s steps(8) infinite;
}

@keyframes cinema-grain {
  0%, 100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-6px, 4px);
  }
  40% {
    transform: translate(5px, -6px);
  }
  60% {
    transform: translate(-4px, -5px);
  }
  80% {
    transform: translate(6px, 3px);
  }
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 28%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 14%, transparent 82%, rgba(0, 0, 0, 0.82) 100%);
}

.movie-overlay {
  position: absolute;
  left: -100px;
  top: -100px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.movie-scratch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.cinema-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.cinema-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 60px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cinema-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.cinema-slide.slide--watchlist {
  align-items: flex-start;
  text-align: left;
  padding-left: 9vw;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 72%);
}

.cinema-slide.slide--group {
  align-items: flex-end;
  text-align: left;
  padding-right: 9vw;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 72%);
}

.cinema-slide.slide--watchlist .slide-inner,
.cinema-slide.slide--group .slide-inner {
  max-width: 460px;
}

.slide-letter {
  will-change: transform, opacity;
}

.cinema-slide.slide--reveal {
  justify-content: flex-end;
  padding-bottom: 14vh;
}

.cinema-slide.slide--reveal .slide-inner {
  max-width: 660px;
  background: rgba(6, 6, 8, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 32px;
}

.cinema-slide.slide--reveal .slide-title {
  font-size: clamp(20px, 3.5vw, 32px);
  margin-bottom: 0;
}

.slide-inner {
  max-width: 820px;
}

.slide-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.slide-title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.85);
}

.slide-title .grad {
  background: linear-gradient(120deg, var(--primary), #a855f7, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-sub {
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 34px;
  max-width: 620px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.slide--panel .slide-inner {
  background: rgba(6, 6, 8, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 46px 46px 40px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.slide-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Final CTA stage */

.cinema-final-dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(22, 14, 5, 0.4);
  backdrop-filter: blur(16px) sepia(0.8) brightness(0.85);
  -webkit-backdrop-filter: blur(16px) sepia(0.8) brightness(0.85);
  opacity: 0;
  visibility: hidden;
}

.cinema-slide.slide--cta .slide-title {
  font-size: clamp(30px, 5vw, 54px);
}

.cinema-slide.slide--cta .slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-strip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background-color: #111111;
  background-image:
    url("../../img/ScratchesAndPaper/Texturelabs_Paper_143S.jpg"),
    url("../../img/ScratchesAndPaper/Texturelabs_Paper_173S.jpg");
  background-blend-mode: multiply, multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2;
}

.film-strip--left {
  left: 0;
}

.film-strip--right {
  right: 0;
}

.film-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='80'%3E%3Crect x='15' y='14' width='30' height='52' rx='11' fill='%23CCCCCC'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 60px 80px;
  background-position-y: var(--film-scroll, 0);
}

.film-count-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 32vw, 320px);
  height: clamp(180px, 32vw, 320px);
}

.film-count-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255, 244, 214, 0.9) var(--sweep, 0deg), rgba(255, 244, 214, 0.06) 0deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
}

.film-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(90px, 16vw, 180px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums;
}

.cta-final {
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
}

/* Scroll hint */

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 640px) {
  .cinema-stage {
    height: 2600vh;
  }
  .cinema-slide {
    padding: 90px 20px 50px;
  }
  .slide--panel .slide-inner {
    padding: 30px 22px 28px;
  }
}
