.su-poster-reels {
  --su-red: #ec2a35;
  --su-black: #010101;
  --su-green: #169040;
  --su-white: #ffffff;
  --su-reel-safe-bottom: max(18px, env(safe-area-inset-bottom));
  position: relative;
  width: 100%;
  max-width: 520px;
  height: min(860px, calc(100svh - 72px));
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  background: var(--su-black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.su-poster-reels::-webkit-scrollbar {
  display: none;
}

.su-poster-reels--fullscreen {
  max-width: none;
  height: calc(100svh - var(--su-header-height, 72px));
  min-height: 560px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.su-poster-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--su-black);
}

.su-poster-backdrop {
  position: absolute;
  inset: -28px;
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.34;
}

.su-poster-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 8%, rgba(236, 42, 53, 0.28), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(22, 144, 64, 0.24), transparent 30%);
  pointer-events: none;
}

.su-poster-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 1, 1, 0.12), transparent 34%, rgba(1, 1, 1, 0.82));
  pointer-events: none;
}

.su-poster-figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(10px, 2.2vw, 22px);
}

.su-poster-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: clamp(14px, 3vw, 24px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  background: #fff;
}

.su-poster-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 28px) calc(var(--su-reel-safe-bottom) + 8px);
  color: var(--su-white);
  pointer-events: none;
}

.su-poster-info,
.su-poster-button {
  pointer-events: auto;
}

.su-poster-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--su-white);
  background: var(--su-green);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.su-poster-info p {
  max-width: 82%;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.su-poster-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  color: var(--su-white);
  background: var(--su-red);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(236, 42, 53, 0.28), 0 8px 26px rgba(0, 0, 0, 0.28);
}

.su-poster-button:focus-visible {
  outline: 3px solid var(--su-green);
  outline-offset: 3px;
}

.su-reels-empty {
  max-width: 760px;
  margin: 32px auto;
  padding: 24px;
  border-radius: 22px;
  color: #010101;
  background: #fff;
}

@media (max-width: 820px) {
  .su-poster-reels,
  .su-poster-reels--fullscreen {
    width: 100%;
    max-width: none;
    height: calc(100svh - var(--su-header-height, 64px));
    min-height: calc(100svh - var(--su-header-height, 64px));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .su-poster-figure {
    padding: 8px;
  }

  .su-poster-figure img {
    border-radius: 18px;
  }

  .su-poster-overlay {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .su-poster-reels {
    scroll-behavior: auto;
  }
}
