.home-film-track {
  --film-peek: clamp(58px, 9vw, 106px);
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border-radius: 23px;
}

.home-film-track::-webkit-scrollbar {
  display: none;
}

.home-film-slide {
  flex: 0 0 calc(100% - var(--film-peek));
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-film-slide:last-child {
  scroll-snap-align: end;
}

.home-film-cover {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 475px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 23px;
  background: var(--dark);
  text-align: left;
  isolation: isolate;
}

.home-film-cover:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: -6px;
}

.home-film-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgb(0 0 0 / .72));
  pointer-events: none;
}

.home-film-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-films[data-film-ready] .home-film-slide:not([data-film-current]) :is(.home-film-caption, .home-film-play) {
  visibility: hidden;
}

.home-film-caption,
.home-film-play {
  position: absolute;
  bottom: 20px;
  z-index: 1;
}

.home-film-caption {
  left: 22px;
  right: 76px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: clamp(16px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 10px rgb(0 0 0 / .4);
}

.home-film-play {
  right: 20px;
  background: var(--pill-bg);
  color: var(--ink);
}

.home-film-play svg {
  width: 20px;
  height: 20px;
}

.home-films .film-dialog {
  width: min(calc(100% - 32px), 900px);
}

.home-films .kitchen-player {
  display: block;
  width: 100%;
  max-height: 65dvh;
  border-radius: 10px;
  background: var(--dark);
}

@media (max-width: 699px) {
  .home-film-track {
    --film-peek: 34px;
    gap: 8px;
    border-radius: 18px;
  }

  .home-film-cover {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  #home-film-prepare img {
    object-position: 38% center;
  }

  .home-film-caption,
  .home-film-play {
    bottom: 10px;
  }

  .home-film-caption {
    left: 13px;
    right: 60px;
  }

  .home-film-play {
    right: 10px;
  }

  .home-films .dialog-body {
    padding: 14px;
  }
}
