/* Product film hero preview loop and on-demand cinema lightbox (Orbital Field). */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 20px 32px;
}
.hero > .product-pair,
.hero > .partners {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.hero-actions .film-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--j-control-border);
  border-radius: 2px;
  background: rgb(24 35 45 / 85%);
  color: var(--j-text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.hero-actions .film-cta:hover {
  border-color: var(--j-cyan);
  background: var(--j-panel);
}
.hero-actions .film-cta:focus-visible {
  outline: 2px solid var(--j-cyan);
  outline-offset: 4px;
}
.hero-actions .film-cta .film-cta-time {
  color: var(--j-cyan);
  font-family: var(--j-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}
.hero-actions .film-cta .film-cta-icon {
  color: var(--j-amber);
  font-size: 11px;
  line-height: 1;
}

.hero-film {
  min-width: 0;
  background: var(--j-panel);
  border: 1px solid var(--j-border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.hero-film:hover {
  border-color: var(--j-cyan);
}
.hero-film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--j-bg);
  overflow: hidden;
}
.hero-film-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--j-bg);
  color: var(--j-text);
  text-align: left;
  cursor: pointer;
}
.hero-film-trigger:focus-visible {
  outline: 2px solid var(--j-cyan);
  outline-offset: -3px;
}
.hero-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--j-bg);
  transition: transform .35s ease;
}
.hero-film-trigger:hover .hero-film-video {
  transform: scale(1.015);
}
.hero-film-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(11 17 24 / 12%) 0%, rgb(11 17 24 / 0%) 45%, rgb(11 17 24 / 78%) 100%);
  box-shadow: inset 0 0 0 1px rgb(123 184 199 / 12%);
}
.hero-film-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  pointer-events: none;
}
.hero-film-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--j-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--j-text);
}
.hero-film-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--j-amber);
  flex: none;
}
.hero-film-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--j-amber);
  border-radius: 2px;
  background: rgb(11 17 24 / 86%);
  color: var(--j-text);
  font-family: var(--j-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.hero-film-trigger:hover .hero-film-play {
  background: var(--j-amber);
  color: var(--j-bg);
}
.hero-film-tri {
  font-size: 10px;
  line-height: 1;
}
.hero-film-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--j-border);
  background: var(--j-panel);
}
.hero-film-caption {
  margin: 0;
  font-size: 12px;
  color: var(--j-muted);
  line-height: 1.4;
}
.hero-film-pause {
  flex: none;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--j-border);
  border-radius: 2px;
  background: transparent;
  color: var(--j-cyan);
  font-family: var(--j-mono);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-film-pause:hover {
  border-color: var(--j-cyan);
  color: var(--j-text);
}
.hero-film-pause:focus-visible {
  outline: 2px solid var(--j-cyan);
  outline-offset: 2px;
}

/* On-demand cinema lightbox dialog */
.film-dialog {
  width: min(1160px, 94vw);
  max-width: 1160px;
  padding: 0;
  margin: auto;
  border: 1px solid var(--j-border);
  border-radius: 2px;
  background: var(--j-panel);
  color: var(--j-text);
  box-shadow: 0 24px 64px rgb(0 0 0 / 65%);
  overflow: hidden;
}
.film-dialog::backdrop {
  background: rgb(11 17 24 / 88%);
  backdrop-filter: blur(8px);
}
.film-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--j-border);
  background: var(--j-panel);
}
.film-dialog-title {
  margin: 0;
  font-family: var(--j-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--j-cyan);
}
.film-dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--j-control-border);
  border-radius: 2px;
  background: var(--j-bg);
  color: var(--j-text);
  font-family: var(--j-mono);
  font-size: 12px;
}
.film-dialog-close:hover {
  border-color: var(--j-amber);
  color: var(--j-amber);
}
.film-dialog-close:focus-visible {
  outline: 2px solid var(--j-cyan);
  outline-offset: 2px;
}
.film-dialog-stage {
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.film-dialog-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero > .product-pair {
    margin-top: 0;
  }
}
@media (max-width: 540px) {
  .hero-film-bar {
    padding: 10px 12px;
  }
  .hero-film-meta {
    font-size: 10px;
  }
  .hero-film-play {
    padding: 5px 9px;
    font-size: 10px;
  }
  .hero-film-footer {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .film-dialog {
    width: 96vw;
  }
  .film-dialog-bar {
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-film-video,
  .hero-film-trigger:hover .hero-film-video {
    transition: none;
    transform: none;
  }
}
