.production-page-nav {
  position: fixed;
  top: 50%;
  z-index: 1300;
  width: clamp(48px, 4.7vw, 82px);
  height: clamp(84px, 10vw, 132px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.9;
  transform: translateY(-50%);
  transition: opacity 180ms ease, filter 180ms ease;
}

.production-page-nav--previous {
  left: max(4px, env(safe-area-inset-left));
}

.production-page-nav--next {
  right: max(4px, env(safe-area-inset-right));
}

.production-page-nav img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.66));
  transition: transform 180ms ease, filter 180ms ease;
}

.production-page-nav--previous img {
  transform: scaleX(-1);
}

.production-page-nav:hover,
.production-page-nav:focus-visible {
  opacity: 1;
  filter: brightness(1.14);
}

.production-page-nav--previous:hover img,
.production-page-nav--previous:focus-visible img {
  transform: translateX(-5px) scaleX(-1);
}

.production-page-nav--next:hover img,
.production-page-nav--next:focus-visible img {
  transform: translateX(5px);
}

.production-page-nav:focus-visible {
  outline: 2px solid var(--project-accent, #ec2d8f);
  outline-offset: 3px;
  border-radius: 12px;
}

.production-carousel-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.production-carousel-slide.is-active {
  opacity: 1;
}

.project-reference-hero .production-carousel-slide {
  pointer-events: none;
}

.production-slide-controls {
  position: absolute;
  right: 2rem;
  bottom: 1.15rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(239, 244, 249, 0.7);
  font-family: "Rajdhani", sans-serif;
}

.production-slide-controls::before {
  content: "";
  width: 72px;
  height: 1px;
  margin-right: 0.42rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.52), var(--project-accent, #ec2d8f));
}

.production-slide-control {
  min-width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(2, 8, 14, 0.38);
  color: rgba(239, 244, 249, 0.62);
  font: 600 0.74rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.production-slide-control:hover,
.production-slide-control:focus-visible,
.production-slide-control.is-active {
  border-color: var(--project-accent, #ec2d8f);
  background: rgba(2, 8, 14, 0.78);
  color: #fff;
}

.production-slide-control:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.production-legacy-carousel-host {
  isolation: isolate;
}

.production-legacy-carousel-host > video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.production-legacy-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.production-legacy-carousel .production-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.production-legacy-carousel-host > .ezx-bg-overlay,
.production-legacy-carousel-host > .hib-bg-overlay {
  z-index: 2;
}

.production-legacy-controls {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 1290;
}

.ezx-body .production-slide-controls {
  --project-accent: #66d6dc;
}

.hib-comic-body .production-slide-controls {
  --project-accent: #ffd84e;
}

@media (max-width: 980px) {
  .production-page-nav {
    width: 48px;
    height: 86px;
    opacity: 0.82;
  }

  .production-slide-controls {
    right: 1rem;
  }
}

@media (max-width: 700px) {
  .production-page-nav {
    top: 48%;
    width: 38px;
    height: 68px;
    opacity: 0.76;
  }

  .production-page-nav--previous {
    left: max(1px, env(safe-area-inset-left));
  }

  .production-page-nav--next {
    right: max(1px, env(safe-area-inset-right));
  }

  .production-slide-controls,
  .project-reference-index.production-slide-controls {
    right: 0.8rem;
    bottom: 0.8rem;
    display: flex;
  }

  .production-slide-controls::before {
    width: 34px;
  }

  .production-slide-control {
    min-width: 29px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-page-nav,
  .production-page-nav img,
  .production-carousel-slide,
  .production-slide-control {
    transition: none;
  }
}
