/* Cinema Reel hero — Baltia port */

.cinema-reel {
  --cinema-pad-x: 0px;
  --cinema-bg: #293649;
  --cinema-ivory: #1792a2;
  --cinema-text: #f2f2f2;
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--cinema-bg);
  color: var(--cinema-text);
  cursor: auto;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .cinema-reel {
    --cinema-pad-x: 0px;
  }

  .cinema-reel__track {
    padding-inline: 0;
  }

  .cinema-reel__backdrop {
    left: 0;
    right: 0;
  }

  .cinema-reel__panel {
    right: 0;
    width: 100vw;
  }

  .cinema-reel__indicator {
    right: 6px;
    gap: 0.8dvh;
    font-size: 0.85rem;
  }

  .cinema-slide__inner {
    border-radius: 0;
  }

  .cinema-slide__content {
    padding: max(104px, 13dvh) 52px 3.5dvh 16px;
  }

  .cinema-slide__explore {
    left: 1.6dvh;
    bottom: 3.2dvh;
  }

  .cinema-slide__title {
    max-width: 100%;
    font-size: clamp(1.72rem, 8.3vw, 2.2rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .cinema-slide__center {
    max-width: calc(100% - 44px);
  }
}

.cinema-reel__svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cinema-reel__track {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  padding-left: var(--cinema-pad-x);
  padding-right: var(--cinema-pad-x);
  will-change: transform;
  touch-action: none;
}

.cinema-slide {
  position: relative;
  perspective: 2000px;
}

.cinema-slide__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 700ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.cinema-slide__inner.is-open {
  transform: rotateY(15deg);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 8px 30px -10px rgba(0, 0, 0, 0.35);
}

.cinema-slide__image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: calc(100dvh * 1.2);
  margin-top: calc(-100dvh * 0.6);
  margin-left: -50vw;
  will-change: transform;
}

.cinema-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cinema-slide__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-slide__vignette--vertical {
  background: linear-gradient(180deg, rgba(7, 25, 39, 0.78) 0%, rgba(7, 25, 39, 0.26) 32%, rgba(7, 25, 39, 0.2) 55%, rgba(7, 25, 39, 0.82) 100%);
}

.cinema-slide__vignette--radial {
  background: radial-gradient(75% 65% at 50% 45%, rgba(7, 25, 39, 0.12) 0%, rgba(7, 25, 39, 0.58) 100%);
}

.cinema-slide__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 3.5dvh 3.5dvh 4dvh;
  will-change: opacity, filter, transform;
  opacity: 0;
  filter: blur(16px);
}

@media (min-width: 901px) {
  .cinema-slide__content {
    padding-top: max(112px, 8dvh);
    padding-bottom: 3.2dvh;
  }
}

.cinema-slide__top {
  display: grid;
  gap: 0.6dvh;
  align-content: start;
}

.cinema-slide__year {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2dvh, 1.35rem);
  color: rgba(241, 231, 210, 0.82);
}

.cinema-slide__eyebrow {
  font-size: clamp(0.62rem, 1.35dvh, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.cinema-slide__badge {
  display: inline-flex;
  align-self: start;
  width: max-content;
  margin-top: 0.8dvh;
  padding: 0.55dvh 1.2dvh;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: clamp(0.58rem, 1.2dvh, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.cinema-slide__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2dvh;
  max-width: min(52vw, 720px);
}

.cinema-slide__category {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-left: -0.8dvh;
  padding: 0.55dvh 0.8dvh;
  border-left: 2px solid var(--cinema-ivory);
  border-radius: 0 3px 3px 0;
  background: rgba(7, 25, 39, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: clamp(0.68rem, 1.45dvh, 0.84rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(7, 25, 39, 0.9);
}

.cinema-slide__title {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 7.2dvh, 5.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cinema-text);
}

.cinema-slide__title span {
  display: block;
}

.cinema-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8dvh 1.4dvh;
  font-size: clamp(0.68rem, 1.45dvh, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.cinema-slide__meta-label {
  color: rgba(241, 231, 210, 0.55);
}

.cinema-slide__awards-wrap {
  position: absolute;
  right: 3.5dvh;
  bottom: 4dvh;
  width: min(34vw, 360px);
}

.cinema-slide__awards {
  display: grid;
  gap: 1.4dvh;
}

.cinema-slide__award {
  text-align: right;
}

.cinema-slide__stars {
  font-size: clamp(0.72rem, 1.5dvh, 0.88rem);
  letter-spacing: 0.12em;
  color: var(--cinema-ivory);
}

.cinema-slide__star--inactive {
  color: rgba(255, 255, 255, 0.18);
}

.cinema-slide__award-label {
  margin-top: 0.3dvh;
  font-size: clamp(0.64rem, 1.3dvh, 0.78rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(7, 25, 39, 0.95);
}

.cinema-slide__award-quote {
  margin-top: 0.2dvh;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.82rem, 1.7dvh, 1rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 10px rgba(7, 25, 39, 0.95);
}

.cinema-slide__explore {
  position: absolute;
  left: 3.5dvh;
  bottom: 4dvh;
  display: inline-flex;
  align-items: center;
  gap: 0.8dvh;
  min-height: 44px;
  padding: 0 1.6dvh;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 25, 39, 0.48);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: clamp(0.68rem, 1.4dvh, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.cinema-slide__explore:hover {
  border-color: rgba(241, 231, 210, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.cinema-slide__explore:focus-visible,
.cinema-reel__pip:focus-visible,
.cinema-slide__panel-close:focus-visible,
.cinema-slide__panel-cta:focus-visible {
  outline: 2px solid var(--cinema-ivory);
  outline-offset: 4px;
}

.cinema-slide__explore-sweep {
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  animation: cinema-sweep 4.5s ease-in-out infinite;
}

@keyframes cinema-sweep {
  0%,
  70% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

.cinema-reel__mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 8dvh;
  pointer-events: none;
  z-index: 30;
}

.cinema-reel__mask--top {
  top: 0;
  background: linear-gradient(180deg, var(--cinema-bg) 0%, rgba(11, 34, 51, 0) 100%);
}

.cinema-reel__mask--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--cinema-bg) 0%, rgba(11, 34, 51, 0) 100%);
}

.cinema-reel__scanlines {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 3px
  );
}

.cinema-reel__indicator {
  position: absolute;
  top: 50%;
  right: 3.5dvh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2dvh;
  transform: translateY(-50%);
  transition: opacity 0.35s ease;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2dvh, 1.1rem);
  color: rgba(241, 231, 210, 0.82);
}

.cinema-reel__pips {
  display: flex;
  flex-direction: column;
  gap: 0.9dvh;
}

.cinema-reel__pip {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cinema-reel__pip span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.25s, background 0.25s;
}

.cinema-reel__pip.is-active span {
  width: 6px;
  height: 6px;
  background: rgba(23, 146, 162, 0.98);
}

@media (prefers-reduced-motion: reduce) {
  .cinema-slide__explore-sweep {
    animation: none;
  }

  .cinema-slide__inner,
  .cinema-reel__panel,
  .cinema-reel__backdrop,
  .cinema-reel__pip span {
    transition-duration: 0.01ms;
  }
}

/* Keep mobile editorial copy clear of the unified header and slide indicator. */
@media (max-width: 640px) {
  .cinema-slide__content {
    padding: max(104px, 13dvh) 52px 3.5dvh 16px;
  }

  .cinema-slide__center {
    max-width: calc(100% - 44px);
  }

  .cinema-slide__title {
    max-width: 100%;
    font-size: clamp(1.72rem, 8.3vw, 2.2rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

.cinema-reel__backdrop {
  position: absolute;
  top: 0;
  left: var(--cinema-pad-x);
  right: var(--cinema-pad-x);
  z-index: 40;
  height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  background: rgba(11, 34, 51, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
  transition:
    background-color 600ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 600ms cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-reel__backdrop.is-open {
  background: rgba(11, 34, 51, 0.38);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  pointer-events: auto;
}

.cinema-reel__panel {
  position: absolute;
  top: 0;
  right: var(--cinema-pad-x);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(640px, 52%);
  height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(41, 54, 73, 0.88) 0%, rgba(7, 25, 39, 0.96) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: translateX(calc(100% + var(--cinema-pad-x) + 2dvh));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}

.cinema-reel__panel.is-open {
  transform: translateX(0);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.cinema-slide__panel-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.cinema-slide__panel-hero {
  position: relative;
  height: 35dvh;
  flex-shrink: 0;
}

.cinema-slide__panel-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-slide__panel-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(7, 25, 39, 0) 0%, rgba(7, 25, 39, 0.88) 80%, rgba(7, 25, 39, 1) 100%);
}

.cinema-slide__panel-body {
  padding: 1dvh 3.5dvh 4dvh;
}

.cinema-slide__panel-close {
  position: absolute;
  top: 3dvh;
  right: 3dvh;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cinema-slide__panel-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.cinema-slide__panel-eyebrow {
  margin: 0 0 1dvh;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cinema-slide__panel-title {
  margin: 0.8dvh 0 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4.6dvh, 4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cinema-text);
}

.cinema-slide__panel-title span {
  display: block;
}

.cinema-slide__panel-meta {
  margin: 1.4dvh 0 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.cinema-slide__panel-divider {
  margin: 2.2dvh 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cinema-slide__panel-text {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.cinema-slide__panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8dvh 1.6dvh;
}

.cinema-slide__panel-stats div {
  display: grid;
  gap: 0.5dvh;
}

.cinema-slide__panel-stats span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cinema-slide__panel-stats strong {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
}

.cinema-slide__panel-awards {
  display: flex;
  flex-direction: column;
  gap: 1.2dvh;
}

.cinema-slide__panel-awards .cinema-slide__award {
  display: flex;
  align-items: baseline;
  gap: 1dvh;
  text-align: left;
}

.cinema-slide__panel-awards .cinema-slide__stars {
  flex-shrink: 0;
  font-size: 11px;
}

.cinema-slide__panel-awards .cinema-slide__award-label {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 10px;
  letter-spacing: 0.32em;
}

.cinema-slide__panel-awards .cinema-slide__award-quote {
  flex: 1;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.2;
}

.cinema-slide__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.4dvh;
}

.cinema-reel__hint {
  position: absolute;
  left: 50%;
  bottom: 0.9dvh;
  z-index: 38;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  color: rgba(242, 242, 242, 0.7);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.cinema-reel.is-detail-open .cinema-reel__hint {
  opacity: 0;
}

.cinema-slide__panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(242, 242, 242, 0.34);
  border-radius: 999px;
  color: var(--cinema-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cinema-slide__panel-cta:hover {
  border-color: var(--cinema-ivory);
  background: rgba(242, 242, 242, 0.08);
}

.cinema-slide__panel-cta--primary {
  border-color: var(--cinema-ivory);
  background: #0e5573;
  color: #ffffff;
}

.cinema-slide__panel-cta--primary:hover {
  background: #145c52;
}

.site-header--cinema {
  background: linear-gradient(180deg, rgba(7, 25, 39, 0.72) 0%, rgba(7, 25, 39, 0) 100%);
}

.site-header--cinema.is-scrolled {
  background: rgba(41, 54, 73, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .cinema-slide__inner,
  .cinema-reel__panel,
  .cinema-reel__backdrop,
  .cinema-slide__explore-sweep {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .cinema-slide__awards-wrap {
    display: none;
  }

  .cinema-slide__center {
    max-width: 100%;
  }

  .cinema-reel__panel {
    width: calc(100vw - 2 * var(--cinema-pad-x));
  }

  .cinema-reel__indicator {
    right: 1.5dvh;
  }

  .cinema-reel__hint {
    bottom: 1.3dvh;
    gap: 0;
    font-size: 8px;
  }

  .cinema-reel__hint span:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .cinema-slide__center {
    max-width: calc(100% - 44px);
  }
}

