:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --amber: #ffb649;
  --ice: #72d9f5;
  --red: #ed1c24;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #080b14; }

.cinema-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(114, 217, 245, .2), transparent 28%),
    radial-gradient(circle at 18% 100%, rgba(237, 28, 36, .2), transparent 34%),
    linear-gradient(112deg, #080b14 0%, #131a28 55%, #090c14 100%);
}

.backdrops, .backdrop, .atmosphere { position: absolute; inset: 0; }

.backdrops { z-index: -4; overflow: hidden; }

.backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: .68;
  filter: saturate(.82) contrast(1.08);
  transform: scale(1.035);
  animation: backdrop-enter 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.backdrop:nth-child(2) {
  left: 45%;
  width: 55%;
  opacity: .34;
  object-position: 70% center;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
  mask-image: linear-gradient(90deg, transparent, #000 42%);
}

.backdrop:nth-child(3) {
  top: 55%;
  left: 28%;
  width: 55%;
  height: 45%;
  opacity: .28;
  object-position: center 62%;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 92%);
  mask-image: linear-gradient(0deg, #000, transparent 92%);
}

.atmosphere {
  z-index: -2;
  background:
    radial-gradient(ellipse at 70% 120%, rgba(231, 238, 245, .22), transparent 43%),
    radial-gradient(ellipse at 36% -10%, rgba(114, 217, 245, .12), transparent 40%),
    linear-gradient(90deg, rgba(6, 8, 14, .98) 0%, rgba(7, 10, 17, .85) 29%, rgba(8, 11, 20, .35) 64%, rgba(8, 11, 20, .68) 100%),
    linear-gradient(0deg, rgba(4, 6, 11, .82), transparent 47%);
}

.atmosphere::before, .atmosphere::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
}

.atmosphere::before {
  right: 16%;
  bottom: -28%;
  width: 55%;
  height: 58%;
  background: rgba(220, 230, 238, .18);
  transform: rotate(-8deg);
}

.atmosphere::after {
  right: -8%;
  bottom: 5%;
  width: 34%;
  height: 35%;
  background: rgba(237, 28, 36, .16);
}

.banner-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(34px, 6.7vw, 128px);
  width: min(59%, 1100px);
  transform: translateY(-50%);
  animation: content-enter .8s .12s cubic-bezier(.16, 1, .3, 1) both;
}

.banner-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 2vw, 28px);
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.7rem, .78vw, .94rem);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.banner-kicker span { width: 30px; height: 3px; border-radius: 99px; background: var(--red); box-shadow: 0 0 22px rgba(237, 28, 36, .6); }

h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 7.25rem);
  font-weight: 880;
  letter-spacing: -.055em;
  line-height: .88;
  text-wrap: balance;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .52);
}

.banner-meta { display: flex; min-height: 38px; align-items: center; gap: 14px; margin-top: clamp(20px, 2.5vw, 34px); }

.banner-meta strong {
  display: grid;
  min-width: 48px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 9px;
  padding: 0 9px;
  color: #fff;
  background: rgba(8, 11, 20, .52);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.banner-meta span { overflow: hidden; color: rgba(238, 242, 248, .72); font-size: clamp(.8rem, 1vw, 1.05rem); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.banner-cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 40px);
  border-radius: 15px;
  padding: 0 21px 0 24px;
  color: #261500;
  background: linear-gradient(135deg, #ffd16b, var(--amber));
  box-shadow: 0 15px 42px rgba(0, 0, 0, .3), 0 5px 24px rgba(255, 182, 73, .14);
  font-size: clamp(.85rem, 1vw, 1.05rem);
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.banner-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.banner-cta:focus-visible { outline: 3px solid var(--ice); outline-offset: 4px; }
.banner-cta svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }

.banner-poster {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(38px, 7vw, 134px);
  width: min(23vw, 56vh, 400px);
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: clamp(14px, 1.4vw, 25px);
  background: #141a25;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .6), 0 0 0 9px rgba(255, 255, 255, .025);
  transform: translateY(-50%) rotate(1.15deg);
  animation: poster-enter .95s .08s cubic-bezier(.16, 1, .3, 1) both;
}

.banner-poster::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 0 44px rgba(0, 0, 0, .18); pointer-events: none; }
.banner-poster img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-poster[hidden] { display: none; }

.banner-error { position: absolute; right: 24px; bottom: 18px; margin: 0; color: rgba(255, 255, 255, .55); font-size: .8rem; }
.cinema-banner.is-loading .banner-content { opacity: .55; }

@keyframes content-enter { from { opacity: 0; transform: translate(-28px, -50%); } }
@keyframes poster-enter { from { opacity: 0; transform: translate(45px, -50%) rotate(3deg) scale(.96); } }
@keyframes backdrop-enter { from { opacity: 0; transform: scale(1.08); } }

@media (max-width: 900px) {
  .banner-content { width: 63%; }
  .banner-poster { top: 50%; right: 5%; width: min(27vw, 52vh, 310px); height: auto; opacity: .9; }
  h1 { font-size: clamp(2.7rem, 7.3vw, 5.4rem); }
}

@media (max-width: 640px) {
  .atmosphere { background: linear-gradient(90deg, rgba(6, 8, 14, .97), rgba(8, 11, 20, .6) 68%, rgba(8, 11, 20, .76)), linear-gradient(0deg, rgba(4, 6, 11, .85), transparent 65%); }
  .banner-content { left: 22px; width: 64%; }
  .banner-kicker { margin-bottom: 13px; font-size: .62rem; }
  .banner-kicker span { width: 20px; }
  h1 { font-size: clamp(2.25rem, 11vw, 4rem); line-height: .92; }
  .banner-meta { min-height: 30px; gap: 9px; margin-top: 14px; }
  .banner-meta strong { min-width: 40px; height: 30px; border-radius: 7px; padding: 0 7px; font-size: .78rem; }
  .banner-meta span { font-size: .7rem; }
  .banner-cta { min-height: 44px; gap: 8px; margin-top: 17px; border-radius: 12px; padding: 0 14px 0 16px; font-size: .75rem; }
  .banner-cta svg { width: 17px; }
  .banner-poster { top: 50%; right: 4%; width: min(29vw, 53.333vh); height: auto; border-radius: 12px; opacity: .86; transform: translateY(-50%) rotate(1deg); }
  .backdrop:nth-child(n+2) { display: none; }
}

@media (max-height: 390px) and (min-width: 641px) {
  .banner-content { width: 60%; }
  .banner-kicker { margin-bottom: 10px; }
  h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); }
  .banner-meta { margin-top: 13px; }
  .banner-cta { min-height: 44px; margin-top: 14px; }
  .banner-poster { top: 50%; }
}

@media (max-height: 260px) {
  .banner-content { top: 46%; left: 4.5%; width: 64%; }
  .banner-kicker { display: none; }
  h1 { font-size: clamp(1.05rem, 5.8vw, 2.45rem); line-height: .9; }
  .banner-meta { min-height: 22px; gap: 7px; margin-top: 7px; }
  .banner-meta strong { min-width: 32px; height: 22px; border-radius: 5px; padding: 0 5px; font-size: .58rem; }
  .banner-meta span { font-size: .52rem; }
  .banner-cta { display: none; }
  .banner-poster { top: 50%; right: 4%; width: min(25vw, 57.333vh); height: auto; border-radius: 8px; opacity: .88; transform: translateY(-50%); }
  .atmosphere::before, .atmosphere::after { filter: blur(18px); }
}

/* Премьера: афиша слева, типографика справа. */
.cinema-banner[data-style="premiere"] .atmosphere {
  background:
    radial-gradient(circle at 13% 50%, rgba(237, 28, 36, .24), transparent 31%),
    linear-gradient(270deg, rgba(6, 8, 14, .98) 0%, rgba(7, 10, 17, .84) 34%, rgba(8, 11, 20, .3) 68%, rgba(8, 11, 20, .76) 100%),
    linear-gradient(0deg, rgba(4, 6, 11, .82), transparent 50%);
}

.cinema-banner[data-style="premiere"] .banner-content {
  right: clamp(34px, 6.7vw, 128px);
  left: auto;
  display: flex;
  width: min(53%, 960px);
  align-items: flex-end;
  flex-direction: column;
  text-align: right;
  animation-name: content-enter-right;
}

.cinema-banner[data-style="premiere"] .banner-kicker { flex-direction: row-reverse; }
.cinema-banner[data-style="premiere"] .banner-meta { justify-content: flex-end; }
.cinema-banner[data-style="premiere"] h1 { max-width: 950px; font-size: clamp(2.8rem, 5.5vw, 6.7rem); }
.cinema-banner[data-style="premiere"] .banner-cta { color: #fff; background: linear-gradient(135deg, #ff5a51, var(--red)); box-shadow: 0 16px 44px rgba(0, 0, 0, .35), 0 7px 28px rgba(237, 28, 36, .22); }

.cinema-banner[data-style="premiere"] .banner-poster {
  right: auto;
  left: clamp(38px, 7vw, 134px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .64), 0 0 0 9px rgba(237, 28, 36, .035);
  transform: translateY(-50%) rotate(-1.15deg);
  animation-name: poster-enter-left;
}

/* Кинокадр: фон становится главным, информация собрана в нижний титр. */
.cinema-banner[data-style="cinema"] .backdrop:first-child { opacity: .82; filter: saturate(.92) contrast(1.08); }
.cinema-banner[data-style="cinema"] .atmosphere {
  background:
    radial-gradient(ellipse at 70% 10%, rgba(114, 217, 245, .13), transparent 38%),
    linear-gradient(90deg, rgba(5, 7, 12, .48), rgba(5, 7, 12, .12) 60%, rgba(5, 7, 12, .42)),
    linear-gradient(0deg, rgba(4, 6, 11, .98) 0%, rgba(4, 6, 11, .74) 30%, transparent 72%);
}

.cinema-banner[data-style="cinema"] .banner-content {
  top: auto;
  right: 5.5%;
  bottom: 7%;
  left: 5.5%;
  display: grid;
  width: auto;
  align-items: end;
  column-gap: clamp(24px, 4vw, 74px);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker cta"
    "title cta"
    "meta cta";
  transform: none;
  animation-name: content-rise;
}

.cinema-banner[data-style="cinema"] .banner-kicker { grid-area: kicker; margin-bottom: 10px; }
.cinema-banner[data-style="cinema"] h1 { grid-area: title; max-width: 78%; font-size: clamp(2.7rem, 5.25vw, 6.5rem); }
.cinema-banner[data-style="cinema"] .banner-meta { grid-area: meta; margin-top: 14px; }
.cinema-banner[data-style="cinema"] .banner-cta { grid-area: cta; align-self: end; margin: 0 0 3px; }
.cinema-banner[data-style="cinema"] .banner-poster { top: 40%; right: 7%; width: min(16vw, 42vh, 270px); opacity: .62; filter: saturate(.72); }

/* Афиша: крупный постер и отдельная информационная карточка. */
.cinema-banner[data-style="poster"] .atmosphere {
  background:
    radial-gradient(circle at 22% 48%, rgba(255, 182, 73, .16), transparent 32%),
    linear-gradient(90deg, rgba(5, 7, 12, .58), rgba(5, 7, 12, .22) 42%, rgba(5, 7, 12, .82) 68%, rgba(5, 7, 12, .97) 100%),
    linear-gradient(0deg, rgba(4, 6, 11, .72), transparent 54%);
}

.cinema-banner[data-style="poster"] .banner-poster {
  right: auto;
  left: clamp(42px, 10vw, 190px);
  width: min(26vw, 60vh, 440px);
  border-color: rgba(255, 182, 73, .34);
  box-shadow: 0 38px 100px rgba(0, 0, 0, .68), 0 0 0 10px rgba(255, 182, 73, .035);
  transform: translateY(-50%) rotate(-.7deg);
  animation-name: poster-enter-left;
}

.cinema-banner[data-style="poster"] .banner-content {
  right: clamp(30px, 5.5vw, 104px);
  left: auto;
  width: min(45%, 780px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: clamp(18px, 2vw, 34px);
  padding: clamp(24px, 3.2vw, 58px);
  background: linear-gradient(145deg, rgba(12, 16, 27, .82), rgba(8, 11, 20, .56));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  animation-name: content-enter-right;
}

.cinema-banner[data-style="poster"] .banner-kicker { margin-bottom: clamp(10px, 1.35vw, 20px); }
.cinema-banner[data-style="poster"] h1 { font-size: clamp(2.4rem, 4.3vw, 5.4rem); }
.cinema-banner[data-style="poster"] .banner-meta { margin-top: clamp(15px, 1.8vw, 25px); }
.cinema-banner[data-style="poster"] .banner-cta { margin-top: clamp(18px, 2.2vw, 30px); }

@keyframes content-enter-right { from { opacity: 0; transform: translate(28px, -50%); } }
@keyframes content-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes poster-enter-left { from { opacity: 0; transform: translate(-45px, -50%) rotate(-3deg) scale(.96); } }

@media (max-width: 640px) {
  .cinema-banner[data-style="premiere"] .banner-content {
    right: 4%;
    left: auto;
    width: 61%;
  }
  .cinema-banner[data-style="premiere"] h1 { font-size: clamp(1.8rem, 9vw, 3.35rem); }
  .cinema-banner[data-style="premiere"] .banner-poster { right: auto; left: 4%; width: min(27vw, 50vh); }

  .cinema-banner[data-style="cinema"] .banner-content {
    top: auto;
    right: 5%;
    bottom: 7%;
    left: 5%;
    width: auto;
    column-gap: 14px;
    transform: none;
  }
  .cinema-banner[data-style="cinema"] h1 { max-width: 100%; font-size: clamp(1.75rem, 8.5vw, 3.2rem); }
  .cinema-banner[data-style="cinema"] .banner-poster { top: 35%; right: 4%; width: min(23vw, 43vh); opacity: .48; }
  .cinema-banner[data-style="cinema"] .banner-cta { min-height: 40px; padding-right: 12px; padding-left: 14px; }

  .cinema-banner[data-style="poster"] .banner-poster { right: auto; left: 3.5%; width: min(31vw, 54vh); }
  .cinema-banner[data-style="poster"] .banner-content {
    right: 3.5%;
    left: auto;
    width: 58%;
    border-radius: 16px;
    padding: 15px;
  }
  .cinema-banner[data-style="poster"] .banner-kicker { margin-bottom: 8px; }
  .cinema-banner[data-style="poster"] h1 { font-size: clamp(1.65rem, 7.6vw, 2.8rem); }
  .cinema-banner[data-style="poster"] .banner-meta { margin-top: 10px; }
  .cinema-banner[data-style="poster"] .banner-cta { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
