/* Three 21:9 windows and a five-across 16:9 preview rail. */
body.sidebar-layout .homepage-case-flow > .film-showcase {
  --film-content-width: 1853px;
  --film-main-width: calc(var(--film-content-width) * .73);
  --film-stage-height: calc(var(--film-main-width) * 9 / 21);
  --film-gap: 16px;
  --film-small-width: calc((var(--film-content-width) - 4 * var(--film-gap)) / 5);
  --film-preview-height: calc(var(--film-small-width) * 9 / 16);
  --film-preview-top: calc(var(--film-stage-height) + 28px);
  height: calc(var(--film-preview-top) + var(--film-preview-height));
}
.film-showcase .film-stage {
  position: absolute;
  top: 0;
  left: 32px;
  width: var(--film-content-width);
  height: var(--film-stage-height);
  isolation: isolate;
}
.film-showcase .film-player-shell {
  z-index: 2;
  top: 0;
  left: 50%;
  width: var(--film-main-width);
  height: 100%;
  aspect-ratio: 21 / 9;
  transform: translateX(-50%);
  background: #090b0e;
}
.film-showcase .film-player {
  -webkit-mask-image: none;
  mask-image: none;
}
.film-showcase .film-player-shell::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, #000d, #0005 24%, transparent 55%),
    linear-gradient(to bottom, #0006, transparent 32%);
  pointer-events: none;
}
.film-showcase .film-player-shell > .section-title {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 38px;
  font-weight: 600;
  filter: drop-shadow(0 2px 8px #0008);
}
.film-showcase .film-title-accent { color: #ffd400; }
.film-showcase .film-player-shell > .film-action {
  z-index: 2;
  top: auto;
  right: 38px;
  bottom: 38px;
}
.film-showcase .film-caption {
  right: 300px;
  bottom: 28px;
}
.film-showcase .film-caption.is-playing .film-caption-brand { opacity: 1; }
body.sidebar-layout .film-showcase .film-status {
  z-index: 3;
  top: 40px;
  right: 38px;
  left: auto;
  max-width: calc(100% - 340px);
}
.film-showcase .film-side {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: calc(var(--film-content-width) * .613);
  height: calc(var(--film-content-width) * .613 * 9 / 21);
  aspect-ratio: 21 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: #101114;
  transform: translateY(-50%);
  cursor: pointer;
}
.film-showcase .film-side[hidden] { display: none; }
.film-showcase .film-side-prev { left: 0; }
.film-showcase .film-side-next { right: 0; }
.film-showcase .film-side video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  pointer-events: none;
}
.film-showcase .film-side::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Fade across the exposed strip, not the portion behind the main player. */
  width: calc((var(--film-content-width) - var(--film-main-width)) / 2);
  pointer-events: none;
}
.film-showcase .film-side-prev::after {
  right: auto;
  background: linear-gradient(to right, #0001 0%, #0007 65%, #000d 100%);
}
.film-showcase .film-side-next::after {
  left: auto;
  background: linear-gradient(to left, #0001 0%, #0007 65%, #000d 100%);
}
.film-showcase .film-side:focus-visible {
  outline: 3px solid var(--accent-lime);
  outline-offset: 4px;
}
body.sidebar-layout .film-showcase .film-stills {
  top: var(--film-preview-top);
  left: 32px;
  width: var(--film-content-width);
  height: var(--film-preview-height);
  padding: 0;
}
body.sidebar-layout .film-showcase .film-stills > button {
  width: var(--film-small-width);
  height: 100%;
  aspect-ratio: 16 / 9;
}
.film-showcase .film-stills > button video {
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
}
.film-showcase .film-stills > button.has-poster video { opacity: 0; }
.film-showcase .film-stills > button.is-previewing video { opacity: 1; }
.film-showcase .film-preview-status {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #000b;
  color: #fff;
  font: 14px/1.4 var(--font-ui);
  text-align: left;
  pointer-events: none;
}
.film-showcase .film-preview-status[hidden] { display: none; }
body.sidebar-layout .film-showcase .film-carousel-controls {
  top: calc(var(--film-preview-top) - 12px);
  right: 44px;
}
