.cat-product-film {
  --film-open: 1;
  --film-inset: 22%;
  margin-top: clamp(54px, 8vw, 124px);
  scroll-margin-top: 82px;
  overflow-anchor: none;
}

.cat-product-film-stage {
  position: relative;
  display: grid;
  height: clamp(500px, calc(100svh - 215px), 980px);
  isolation: isolate;
}

.cat-product-film-cover,
.cat-product-film-player {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.cat-product-film-cover {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
  clip-path: inset(0 calc(var(--film-inset) * (1 - var(--film-open))) round calc(28vw * (1 - var(--film-open))));
}

.cat-product-film-preview,
.cat-product-film-cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cat-product-film-preview {
  object-fit: cover;
  object-position: center 69%;
  pointer-events: none;
}

.cat-product-film-cover::after {
  background: linear-gradient(90deg, rgb(12 30 24 / 82%), rgb(12 30 24 / 57%) 34%, rgb(12 30 24 / 13%) 54%, transparent 67%);
  content: "";
  pointer-events: none;
}

.cat-product-film-message {
  position: absolute;
  z-index: 1;
  inset: auto 0 clamp(82px, 10svh, 126px);
  padding-inline: max(var(--gutter), calc((var(--film-inset) + 4%) * (1 - var(--film-open))));
}

.cat-product-film .cat-product-film-message h2 {
  margin: 0 0 28px;
  color: #fff;
  font: 400 clamp(40px, 5.15vw, 96px)/1.06 DINCondensed, sans-serif;
  letter-spacing: .016em;
  text-transform: uppercase;
}

.cat-product-film-message p {
  max-width: 43ch;
  margin: 0 0 23px;
  color: inherit;
  font-size: 18px;
  line-height: 1.5;
}

.cat-product-film-watch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid currentColor;
  color: inherit;
}

.cat-product-film-watch .home-arrow {
  transition: transform 320ms ease;
}

.cat-product-film-watch:is(:hover, :focus-visible) .home-arrow {
  transform: translate(3px, -3px);
}

.cat-product-film-watch:focus-visible,
.cat-product-film-motion:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.cat-product-film-cover .cat-product-film-motion {
  z-index: 1;
  right: max(var(--gutter), calc((var(--film-inset) + 4%) * (1 - var(--film-open))));
  min-height: 44px;
  background: rgb(12 30 24 / 32%);
  cursor: pointer;
}

.cat-product-film-cover .cat-product-film-motion:hover {
  background: rgb(12 30 24 / 62%);
}

.cat-product-film.is-playing .cat-product-film-stage {
  height: auto;
  justify-items: center;
}

.cat-product-film-player {
  display: block;
  width: min(100%, calc(max(96px, 100dvh - var(--film-player-top, 168px) - 16px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.cat-product-film [hidden] {
  display: none;
}

.cat-product-film.is-playing .cat-product-film-cover {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  pointer-events: none;
}

.cat-product-film.is-playing :is([data-film-play], [data-film-motion]) {
  display: none;
}

.cat-product-film-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 30px;
  max-width: 1720px;
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: 13px;
  color: var(--forest);
  font-size: .8125rem;
}

.cat-product-film-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
}

.cat-product-film-actions .cat-text-link {
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}

.cat-product-film-actions .cat-text-link:hover {
  border-color: var(--forest);
}

@media (max-width: 800px) {
  .cat-product-film { --film-inset: 10%; scroll-margin-top: 72px; }
  .cat-product-film-stage { height: clamp(500px, calc(100svh - 178px), 640px); }
  .cat-product-film-cover { clip-path: inset(0 calc(var(--film-inset) * (1 - var(--film-open))) round calc(50vw * (1 - var(--film-open)))); }
  .cat-product-film-preview { object-position: 61% 72%; }
  .cat-product-film-cover::after {
    background: linear-gradient(0deg, rgb(12 30 24 / 96%), rgb(12 30 24 / 74%) 30%, transparent 73%);
  }
  .cat-product-film-message { bottom: 86px; }
  .cat-product-film .cat-product-film-message h2 { font-size: clamp(34px, 9vw, 56px); margin-bottom: 14px; }
  .cat-product-film-message p { max-width: 33ch; margin-bottom: 12px; font-size: 15px; }
  .cat-product-film-cover .cat-product-film-motion { bottom: 20px; }
}

@media (max-width: 540px) {
  .cat-product-film-caption { flex-direction: column; align-items: start; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-product-film-watch .home-arrow { transition: none; }
}

@media print {
  .cat-product-film { display: none; }
}
