/* Header dropdowns */
.cinema-menu {
  position: relative;
}

.cinema-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  max-width: 270px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 23, 41, .72);
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.cinema-menu summary::-webkit-details-marker {
  display: none;
}

.cinema-menu summary:hover,
.cinema-menu summary:focus-visible,
.cinema-menu[open] summary {
  border-color: rgba(255,209,102,.52);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(255,209,102,.09);
  outline: none;
}

.cinema-menu__label {
  color: var(--accent-2);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cinema-menu summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: .76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-menu summary b {
  color: var(--muted);
  font-size: .8rem;
  transition: transform .2s ease;
}

.cinema-menu[open] summary b {
  transform: rotate(180deg);
}

.cinema-menu__popover {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 72;
  width: 240px;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

.cinema-menu__popover button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cinema-menu__popover button:hover,
.cinema-menu__popover button:focus-visible {
  background: var(--panel-2);
  outline: none;
}

.cinema-menu__popover button span {
  color: var(--accent-2);
  font-size: .7rem;
  font-weight: 900;
}

.cinema-menu__popover button em {
  overflow: hidden;
  color: var(--text);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-menu__popover button i {
  visibility: hidden;
  color: var(--accent);
  font-style: normal;
}

.cinema-menu__popover button[aria-checked="true"] i {
  visibility: visible;
}

/* Full-width featured film carousel */
.hero {
  min-height: min(850px, calc(100vh - 108px));
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(4,7,15,.48) 0%, rgba(4,7,15,.15) 40%, rgba(4,7,15,.9) 100%),
    linear-gradient(90deg, rgba(4,7,15,.42), transparent 38%, transparent 72%, rgba(4,7,15,.32));
}

.hero__content {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: none;
  padding: clamp(3rem, 5vw, 5.5rem) 0 clamp(2rem, 4vw, 4rem);
}

.hero__content > .eyebrow {
  width: min(1720px, calc(100vw - 3rem));
  margin: 0 auto 1rem;
  padding-inline: clamp(.25rem, 2vw, 2rem);
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: clamp(500px, 55vw, 680px);
  overflow: visible;
  isolation: isolate;
}

.hero-carousel__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.hero-carousel__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.hero-carousel__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  height: 100%;
  padding: 1rem 8vw 4.5rem;
  will-change: transform;
  transition: transform 1.35s cubic-bezier(.22,1,.36,1);
}

.hero-carousel__viewport.is-dragging .hero-carousel__track {
  transition: none;
}

.hero-preview-card {
  position: relative;
  flex: 0 0 min(82vw, 1480px);
  width: min(82vw, 1480px);
  height: min(48vw, 610px);
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 28px;
  background: #111827;
  cursor: pointer;
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  opacity: .48;
  transform: scale(.91);
  transition:
    transform 1.35s cubic-bezier(.22,1,.36,1),
    opacity 1.05s ease,
    border-color 1.05s ease,
    box-shadow 1.05s ease,
    filter 1.05s ease;
}

.hero-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.72);
  transform: scale(1.035);
  transition: transform 1.35s cubic-bezier(.22,1,.36,1), filter 1.05s ease;
}

.hero-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,7,15,.04) 24%, rgba(4,7,15,.28) 56%, rgba(4,7,15,.92) 100%),
    linear-gradient(110deg, rgba(255,255,255,.08), transparent 30%, transparent 72%, rgba(255,95,70,.18));
  pointer-events: none;
}

.hero-preview-card.is-active {
  z-index: 3;
  border-color: rgba(255,209,102,.58);
  box-shadow: 0 42px 120px rgba(0,0,0,.62), 0 0 0 7px rgba(255,209,102,.055);
  opacity: 1;
  transform: scale(1);
}

.hero-preview-card.is-active img {
  filter: saturate(1) brightness(.94);
  transform: scale(1);
}

.hero-preview-card:hover,
.hero-preview-card:focus-visible {
  border-color: rgba(255,209,102,.74);
  outline: none;
}

.hero-preview-card > span:not(.hero-preview-card__caption) {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(9,13,24,.68);
  backdrop-filter: blur(12px);
}

.hero-preview-card > span:not(.hero-preview-card__caption) b {
  font-size: .74rem;
  letter-spacing: .08em;
}

.hero-preview-card__caption {
  position: absolute;
  left: clamp(1.4rem, 3vw, 3rem);
  right: clamp(5rem, 8vw, 9rem);
  bottom: clamp(1.4rem, 3vw, 3rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: left;
  pointer-events: none;
}

.hero-preview-card__caption strong {
  overflow: hidden;
  color: #f7f5f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 5.4rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-preview-card__caption small {
  color: var(--accent-2);
  font-size: clamp(.72rem, 1vw, .95rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-carousel__control {
  position: absolute;
  top: 45%;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(9,13,24,.78);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 1.55rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hero-carousel__control:hover,
.hero-carousel__control:focus-visible {
  border-color: var(--accent-2);
  background: var(--panel-2);
  transform: scale(1.07);
  outline: none;
}

.hero-carousel__control--prev {
  left: clamp(.75rem, 2.2vw, 2.5rem);
}

.hero-carousel__control--next {
  right: clamp(.75rem, 2.2vw, 2.5rem);
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: .8rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: .6rem;
  transform: translateX(-50%);
}

.hero-carousel__dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: width .3s ease, background .3s ease, transform .2s ease;
}

.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: rgba(255,255,255,.55);
  transform: scaleY(1.35);
  outline: none;
}

.hero-carousel__dot.is-active {
  width: 70px;
  background: var(--accent);
}

.hero__copy {
  position: absolute;
  right: clamp(5vw, 9vw, 10rem);
  bottom: clamp(5rem, 8vw, 7.5rem);
  z-index: 8;
  width: min(430px, 31vw);
  max-width: 430px;
  padding: clamp(1.2rem, 2vw, 2rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16,23,41,.91), rgba(9,13,24,.72));
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
  transition: opacity .24s ease, transform .24s ease;
}

.hero__copy > p {
  margin: 0 0 1.25rem;
  color: #d3d8e3;
  font-size: clamp(.94rem, 1.1vw, 1.12rem);
  line-height: 1.65;
}

.hero__meta {
  flex-wrap: wrap;
}

.hero h1.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  background: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.hero h1.visually-hidden::after {
  display: none;
}

.hero__number {
  z-index: 1;
  opacity: .8;
}

.movie-card {
  transition: transform .28s ease, opacity .28s ease;
}

@media (max-width: 1250px) {
  .cinema-menu__label {
    display: none;
  }

  .hero-preview-card {
    flex-basis: 86vw;
    width: 86vw;
    height: min(52vw, 580px);
  }

  .hero__copy {
    right: 7vw;
    width: min(390px, 34vw);
  }
}

@media (max-width: 980px) {
  .cinema-menu {
    display: block;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    padding-bottom: 2.5rem;
  }

  .hero-card-stack {
    height: clamp(440px, 66vw, 610px);
  }

  .hero-carousel__track {
    padding-inline: 5vw;
  }

  .hero-preview-card {
    flex-basis: 88vw;
    width: 88vw;
    height: min(56vw, 540px);
    min-height: 390px;
  }

  .hero__copy {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(760px, calc(100vw - 2rem));
    max-width: none;
    margin: 1rem auto 0;
  }

  .hero__number {
    bottom: 18%;
  }
}

@media (max-width: 700px) {
  .cinema-menu summary {
    max-width: 158px;
  }

  .cinema-menu summary strong {
    max-width: 102px;
  }

  .cinema-menu__popover {
    right: -56px;
  }

  .hero__content {
    padding-top: 2.7rem;
  }

  .hero__content > .eyebrow {
    width: calc(100vw - 2rem);
    padding-inline: 0;
  }

  .hero-card-stack {
    height: 390px;
  }

  .hero-carousel__track {
    gap: .8rem;
    padding: .5rem 4vw 3.7rem;
  }

  .hero-preview-card {
    flex-basis: 91vw;
    width: 91vw;
    height: 330px;
    min-height: 330px;
    border-radius: 18px;
  }

  .hero-preview-card__caption {
    left: 1rem;
    right: 4rem;
    bottom: 1rem;
  }

  .hero-preview-card__caption strong {
    font-size: clamp(1.75rem, 9vw, 3.1rem);
  }

  .hero-preview-card__caption small {
    font-size: .65rem;
  }

  .hero-preview-card > span:not(.hero-preview-card__caption) {
    top: .8rem;
    right: .8rem;
    width: 38px;
    height: 38px;
  }

  .hero-carousel__control {
    top: 43%;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .hero-carousel__control--prev {
    left: .5rem;
  }

  .hero-carousel__control--next {
    right: .5rem;
  }

  .hero__copy {
    width: calc(100vw - 2rem);
    padding: 1.2rem;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .header-actions {
    gap: .4rem;
  }

  .cinema-menu summary {
    min-width: 48px;
    max-width: 48px;
    padding: 0 .6rem;
  }

  .cinema-menu summary strong {
    display: none;
  }

  .cinema-menu summary::before {
    content: attr(data-cinema-number);
    color: var(--accent-2);
    font-size: .7rem;
    font-weight: 900;
  }

  .cinema-menu__popover {
    right: -110px;
  }

  .hero-card-stack {
    height: 340px;
  }

  .hero-preview-card {
    flex-basis: 92vw;
    width: 92vw;
    height: 285px;
    min-height: 285px;
  }

  .hero-carousel__control {
    top: 41%;
  }

  .hero-carousel__dot {
    width: 24px;
  }

  .hero-carousel__dot.is-active {
    width: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track,
  .hero-preview-card,
  .hero-preview-card img,
  .hero-carousel__control,
  .hero-carousel__dot,
  .cinema-menu summary,
  .cinema-menu summary b,
  .movie-card,
  .hero__copy {
    transition: none !important;
  }
}
