.movies-page {
  background: #fff;
}

.movies-hero,
.movies-band {
  position: relative;
}

.movies-band {
  overflow: hidden;
}

.movies-hero .container,
.movies-band .container {
  position: relative;
  z-index: 2;
}

.movies-hero {
  padding: 36px 0 42px;
  overflow: hidden;
}

.movies-hero-stage {
  position: relative;
  margin: 0 auto;
}

.movies-hero-stage .hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  backdrop-filter: none;
}

.movies-hero-stage .hero-arrow:hover {
  background: #fdce16;
  color: #111;
}

.movies-hero-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 18px;
  align-items: center;
}

.movies-hero-wrap .movies-hero-arrow {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  justify-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #111;
}

.movies-hero-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border: 8px solid #fdce16;
  background: #000;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.movies-hero-link {
  display: block;
  min-height: 540px;
}

.movies-hero-image {
  display: block;
  width: 100%;
  min-height: 540px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.movies-hero-actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.movies-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.movies-pill-play,
.movies-pill-info {
  background: #fdce16;
  color: #111;
}

.movies-pill-like {
  margin-left: auto;
  background: #000;
  color: #fff;
  padding-left: 18px;
  padding-right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movies-band {
  padding: 42px 0 52px;
}

.movies-band-dark {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.94)),
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(140deg, #111 0%, #050505 100%);
  color: #fff;
}

.movies-band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(255, 255, 255, 0.05) 24% 32%, transparent 32% 100%),
    radial-gradient(circle at 22% -10%, rgba(255, 255, 255, 0.22), transparent 34%);
  opacity: 0.18;
}

.movies-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 34px;
  text-align: center;
}

.movies-title h2 {
  margin: 0;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  color: #fdce16;
  text-transform: uppercase;
}

.movies-title span {
  display: block;
  width: min(100%, 220px);
  min-width: 140px;
  height: 2px;
  margin: 10px auto 0;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255, 255, 255, 0.98) 6% 43%, #fdce16 43% 57%, rgba(255, 255, 255, 0.98) 57% 94%, transparent 94% 100%);
  position: relative;
}

.movies-title span::after {
  display: none;
}

.movies-title-dark h2 {
  color: #111;
}

.movies-title-dark span {
  background:
    linear-gradient(90deg, transparent 0 6%, #111 6% 43%, #fdce16 43% 57%, #111 57% 94%, transparent 94% 100%);
}

.movies-band-yellow .movies-title span {
  background:
    linear-gradient(90deg, transparent 0 6%, #111 6% 43%, rgba(255, 255, 255, 0.98) 43% 57%, #111 57% 94%, transparent 94% 100%);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: center;
  gap: 34px;
  align-items: start;
}

.movies-item {
  --item-tail-color: #fdce16;
  --item-tail-right: 35%;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.movies-item > a:first-child {
  display: block;
  position: relative;
  z-index: 1;
}

.movies-item > a:first-child::after {
  content: "";
  position: absolute;
  right: var(--item-tail-right, 35%);
  bottom: -15px;
  width: 34px;
  height: 18px;
  background: var(--item-tail-color, #fff);
  clip-path: polygon(0 0, 100% 0, 72% 100%);
}

.movies-item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 5px solid #fdce16;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.movies-band-dark .movies-item {
  --item-tail-color: rgba(255, 255, 255, 0.96);
}

.movies-band-dark .movies-item img {
  border-color: rgba(255, 255, 255, 0.96);
}

.movies-band-yellow .movies-item {
  --item-tail-color: #111;
}

.movies-band-yellow .movies-item img {
  border-color: #111;
}

.movies-band-light .movies-item img {
  border-color: #fdce16;
}

.movies-item-btn {
  --bubble-bg: #fff;
  --bubble-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 28px);
  min-height: 42px;
  max-width: 304px;
  margin: 20px auto 0;
  text-align: center;
  border-radius: 999px;
  background: var(--bubble-bg);
  color: var(--bubble-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 18px 8px;
  line-height: 1.08;
  text-transform: uppercase;
  box-shadow: none;
}

.movies-band-dark .movies-item-btn {
  --bubble-bg: #f7f7f7;
  --bubble-color: #111;
}

.movies-band-yellow .movies-item-btn {
  --bubble-bg: #000;
  --bubble-color: #fff;
}

.movies-band-light .movies-item-btn {
  --bubble-bg: #fdce16;
  --bubble-color: #111;
}

@media (max-width: 1220px) {
  .movies-title h2 {
    font-size: 42px;
  }

  .movies-grid {
    grid-template-columns: repeat(2, 320px);
  }
}

@media (max-width: 1100px) {
  .movies-hero {
    padding: 24px 0 28px;
  }

  .movies-hero-wrap {
    display: block;
    position: relative;
    container-type: inline-size;
  }

  .movies-hero-wrap .movies-hero-arrow {
    position: absolute;
    top: 28.125cqw;
    transform: translateY(-50%);
    display: grid !important;
    width: 40px;
    height: 40px;
    font-size: 22px;
    z-index: 6;
  }

  .movies-hero-wrap .movies-hero-arrow.prev {
    left: 10px;
  }

  .movies-hero-wrap .movies-hero-arrow.next {
    right: 10px;
  }

  .movies-hero-link,
  .movies-hero-image {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .movies-pill-like {
    display: none !important;
  }

  .movies-hero-card {
    max-width: 100%;
    border-width: 6px;
  }

  .movies-hero-actions {
    position: static;
    padding: 12px 14px;
    background: #111;
  }

  .movies-pill {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .movies-grid {
    grid-template-columns: 1fr;
  }

  .movies-title h2 {
    font-size: 34px;
  }
}

.movies-hero-copy .section-title,
.movies-title .section-title {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: .10em;
  font-size: 32px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 1220px) {
  .movies-title .section-title {
    font-size: 32px;
  }
}

.movies-title .section-title {
  font-size: clamp(20px, 5.4vw, 32px);
}

@media (max-width: 480px) {
  .movies-pill {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 13px;
  }

  .movies-item-btn {
    font-size: 11px;
  }
}

@media (max-width: 1100px) {
  .movies-page .movies-hero-wrap .movies-hero-arrow {
    display: none !important;
  }
}
