/* «Ваяна» (Moana) premiere promo — cinematic bottom strip built around the real
   film poster. Deep-ocean gradient that fades in from transparent, a thin animated
   foam line, faint drifting sea-sparkle, a slow koru/Te-Fiti spiral watermark, and a
   poster + CTA card. Pure CSS (no emoji); only the CTA + close are clickable. */

.moana-promo {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 188px;
  z-index: 1150;                 /* below the .call-fab (z-index:1200) so «Подзвонити» stays on top */
  pointer-events: none;
  overflow: hidden;
  font-family: inherit;
  --mo-navy: #06202e;
  --mo-ocean: #0a3a4d;
  --mo-teal: #0e7c86;
  --mo-foam: #dff6f4;
  --mo-gold: #f4c65b;
  --mo-gold2: #e6a63c;
  /* fade-in ocean: transparent at the top → solid deep sea at the bottom */
  background:
    radial-gradient(120% 120% at 85% 120%, rgba(20,170,180,.28), transparent 55%),
    linear-gradient(180deg, rgba(6,32,46,0) 0%, rgba(6,32,46,0) 12%, rgba(6,32,46,.72) 42%, var(--mo-ocean) 74%, #0b5560 100%);
}
.moana-promo.is-hidden { display: none; }

/* faint koru / Te Fiti spiral watermark, slowly turning */
.moana-promo__spiral {
  position: absolute; right: 4%; bottom: -30px; width: 190px; height: 190px;
  opacity: .14; color: #7fe9de;
  animation: mo-spin 40s linear infinite;
}
.moana-promo__spiral svg { width: 100%; height: 100%; display: block; }
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* thin animated foam line near the top of the strip */
.moana-promo__foam { position: absolute; left: 0; bottom: 128px; width: 200%; height: 26px; display: block; opacity: .9; }
.moana-promo__foam path { animation: mo-foam 9s linear infinite; }
.moana-promo__foam .f-b { fill: rgba(126,233,222,.35); animation-duration: 13s; }
.moana-promo__foam .f-f { fill: var(--mo-foam); opacity: .55; }
@keyframes mo-foam { 0%{ transform: translateX(0);} 100%{ transform: translateX(-50%);} }

/* drifting sea-sparkle (moonlight glimmer) */
.moana-promo__sparkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #eafcff; opacity: 0; box-shadow: 0 0 6px #cdeffb; animation: mo-glimmer 6s ease-in-out infinite; }
.moana-promo__sparkle.s1 { left: 30%; bottom: 60px; animation-delay: .3s; }
.moana-promo__sparkle.s2 { left: 46%; bottom: 90px; animation-delay: 1.6s; }
.moana-promo__sparkle.s3 { left: 62%; bottom: 52px; animation-delay: 2.7s; }
.moana-promo__sparkle.s4 { left: 20%; bottom: 82px; animation-delay: 3.5s; width: 2px; height: 2px; }
.moana-promo__sparkle.s5 { left: 72%; bottom: 96px; animation-delay: 4.4s; }
@keyframes mo-glimmer { 0%,100%{ opacity:0; transform: translateY(6px);} 45%,55%{ opacity:.9; transform: translateY(-4px);} }

/* CTA card (poster + text + button) */
.moana-promo__cta {
  pointer-events: auto;
  position: absolute; left: 26px; bottom: 22px;   /* left side — keep clear of the bottom-right call button */
  display: flex; align-items: stretch; gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #eaf6f8;
  background: linear-gradient(180deg, rgba(9,44,58,.92), rgba(4,26,36,.94));
  border: 1px solid rgba(126,233,222,.28);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(3px);
  animation: mo-cta-in .55s cubic-bezier(.2,.9,.3,1.25) both;
  max-width: min(560px, calc(100vw - 44px));
}
@keyframes mo-cta-in { from{ opacity:0; transform: translateY(26px);} to{ opacity:1; transform: translateY(0);} }

/* the real film poster with a slow shine sweep */
.moana-promo__poster {
  position: relative; flex: 0 0 auto;
  width: 96px; height: 144px; border-radius: 10px; overflow: hidden;
  background: #08303f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'><rect width='4' height='4' fill='%230c3a4b'/></svg>");
  box-shadow: 0 10px 22px rgba(0,0,0,.5);
}
.moana-promo__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moana-promo__poster::after {
  content: ""; position: absolute; top: -60%; left: -120%; width: 60%; height: 220%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.38), transparent);
  transform: rotate(8deg); animation: mo-shine 5.5s ease-in-out 1.5s infinite;
}
@keyframes mo-shine { 0%,72%{ left:-120%; } 88%,100%{ left:150%; } }

.moana-promo__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.moana-promo__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #06202e; background: linear-gradient(180deg, var(--mo-gold), var(--mo-gold2));
  padding: .16rem .5rem; border-radius: 999px;
}
.moana-promo__title { font-size: 1.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.moana-promo__meta { font-size: .82rem; color: #a9dfe4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.moana-promo__age { font-size: .7rem; font-weight: 700; color: #eaf6f8; border: 1px solid rgba(169,223,228,.5); border-radius: 6px; padding: 0 .35rem; }
.moana-promo__btn {
  align-self: flex-start; margin-top: 4px; white-space: nowrap;
  font-weight: 800; font-size: .9rem; color: #06202e;
  background: linear-gradient(180deg, var(--mo-gold), var(--mo-gold2));
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(230,166,60,.4);
  animation: mo-btn-pulse 2.4s ease-in-out infinite;
}
@keyframes mo-btn-pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.05);} }

.moana-promo__close {
  pointer-events: auto;
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(6,32,46,.6); color: #dff6f4; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.moana-promo__close:hover { background: rgba(6,32,46,.9); transform: scale(1.08); }

@media (max-width: 640px) {
  .moana-promo { height: 158px; }
  /* leave the bottom-right free for the round call button (~54px) */
  .moana-promo__cta { left: 10px; right: auto; bottom: 14px; gap: 12px; padding: 10px 12px 10px 10px; max-width: calc(100vw - 84px); }
  .moana-promo__poster { width: 78px; height: 116px; }
  .moana-promo__title { font-size: 1.2rem; }
  .moana-promo__meta { font-size: .76rem; }
  .moana-promo__btn { font-size: .82rem; padding: .42rem .8rem; }
  .moana-promo__foam { bottom: 108px; }
  .moana-promo__spiral { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .moana-promo *, .moana-promo__foam path { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .moana-promo__cta { animation: mo-cta-in .35s ease both; }
}
