/* Объёмная карусель; стили ограничены каталогом трейлеров. */
#content-movies { overflow: hidden; }
#content-movies #movieGrid.carousel-stage {
  --poster-width: clamp(210px, 21vw, 285px);
  position: relative; display: block; width: 100%;
  height: calc(var(--poster-width) * 1.5 + 100px);
  padding: 0; margin: 0 auto; border: 0;
  perspective: 1200px; isolation: isolate;
  touch-action: pan-y; user-select: none;
}
#content-movies .carousel-stage::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 5% 8% 0;
  background: radial-gradient(ellipse at center, #cbd8ee1a, #b4c2d90a 40%, transparent 70%);
}
#content-movies #movieGrid .movie-card {
  position: absolute; left: 50%; top: 8px;
  width: var(--poster-width); margin: 0;
  transform: translateX(calc(-50% + var(--slide-x, 0px))) translateY(var(--slide-y, 0px)) rotateY(var(--slide-rotate, 0deg)) scale(var(--slide-scale, 1));
  transform-origin: center center;
  transition: transform 650ms cubic-bezier(.22,.7,.18,1), opacity 600ms ease, filter 600ms ease, box-shadow 600ms ease;
  border: 1px solid #e0e7f326; border-radius: 16px;
  background: #0d1119; box-shadow: 0 18px 35px #0005;
  opacity: 1; filter: brightness(.62) saturate(.8);
  backface-visibility: hidden; overflow: hidden;
}
#content-movies #movieGrid .movie-card.is-current {
  filter: none; border-color: #e0e7f34d;
  box-shadow: 0 0 30px #d6e1f218, 0 20px 45px #0009;
}
#content-movies #movieGrid .movie-card.is-far { opacity: .6; filter: brightness(.45) saturate(.65); }
#content-movies #movieGrid .movie-card.is-outside { opacity: 0; pointer-events: none; }
#content-movies #movieGrid .movie-card:focus-visible { outline: 2px solid #dce5f1; outline-offset: 4px; }
#content-movies #movieGrid .movie-poster { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; transform: none; }
#content-movies #movieGrid .movie-info { min-height: 64px; padding: 12px 14px; }
#content-movies #movieGrid .movie-title { font-size: 15px; }
#content-movies #movieGrid .movie-meta { font-size: 11px; margin-top: 5px; }
#content-movies #movieGrid .fav-btn { width: 34px; height: 34px; top: 10px; right: 10px; }
#content-movies .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px auto 36px; }
#content-movies .carousel-controls[hidden] { display: none; }
.carousel-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dce5f12e; border-radius: 50%; color: #dce5f1; background: #ffffff05; font-size: 19px; }
.carousel-arrow:hover { background: #ffffff12; }
.carousel-controls button:focus-visible { outline: 2px solid #dce5f1; outline-offset: 3px; }
#content-movies #movieGrid.is-empty { height: auto; min-height: 180px; padding: 50px 20px; text-align: center; }
@media(max-width: 600px) {
  #content-movies #movieGrid.carousel-stage { --poster-width: clamp(190px, 55vw, 240px); }
  #content-movies .carousel-controls { gap: 12px; }
  #content-movies #movieGrid .movie-title { font-size: 14px; }
}
@media(prefers-reduced-motion: reduce) {
  #content-movies #movieGrid .movie-card { transition: none; }
}

/* Карусель без видимой панели управления. */
#content-movies .carousel-controls { display: none; }
