/* Shared by the four product pages: the action pills, screenshots, the film and the band of other products. Each
   product world dresses these through custom properties (--pa-*, --pf-*) rather than overriding selectors. */

/* Action pills */
.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: 999px;
  font-family: var(--pa-font, inherit);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.pa-btn:hover { transform: translateY(-1px); }
.pa-btn:focus-visible { outline: 2px solid var(--pa-focus, var(--accent-primary)); outline-offset: 3px; }
.pa-btn--primary { background: var(--pa-primary-bg, var(--accent-solid)); color: var(--pa-primary-fg, #FFFFFF); }
.pa-btn--primary:hover { color: var(--pa-primary-fg, #FFFFFF); }
.pa-btn--secondary { border: 1.5px solid var(--pa-secondary-border, var(--border-default)); background: var(--pa-secondary-bg, transparent); color: var(--pa-secondary-fg, var(--text-primary)); }
.pa-btn--secondary:hover { border-color: var(--pa-secondary-border-hover, var(--accent-primary)); color: var(--pa-secondary-fg, var(--text-primary)); }

/* Screenshots: the light capture, or the dark one when the site is dark */
.pshot, .pshot picture, .pshot img { display: block; width: 100%; height: auto; border-radius: inherit; }
.pshot .pshot-dark { display: none; }
[data-theme="dark"] .pshot .pshot-light { display: none; }
[data-theme="dark"] .pshot .pshot-dark { display: block; }

/* The film */
.pfilm { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.pfilm-stage {
  margin: 0;
  padding: var(--pf-frame-pad, 0);
  overflow: var(--pf-stage-overflow, hidden);
  border: var(--pf-border, 1px solid rgba(255, 255, 255, .12));
  border-radius: var(--pf-radius, 16px);
  background: var(--pf-frame, var(--pf-stage-bg, #000));
  box-shadow: var(--pf-shadow, 0 30px 60px -30px rgba(0, 0, 0, .6));
}
.pfilm-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--pf-screen-radius, 0); background: var(--pf-stage-bg, #000); container-type: inline-size; }
.pfilm-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--pf-stage-bg, #000); }
/* The whole poster starts the film; the pill in the corner says so. */
.pfilm-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: clamp(10px, 2.2vw, 22px); font-family: var(--pf-font, inherit); }
.pfilm-play[hidden] { display: none; }
.pfilm-play:hover .pfilm-pill { transform: translateY(-2px); }
.pfilm-play:focus-visible { outline: none; }
.pfilm-play:focus-visible .pfilm-pill { outline: 3px solid var(--pf-accent, #FFFFFF); outline-offset: 3px; }
.pfilm-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: var(--pf-pill-bg, rgba(12, 12, 14, .82));
  color: var(--pf-pill-ink, #FFFFFF);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
  transition: transform 200ms ease;
}
.pfilm-play-disc { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--pf-accent, #FFFFFF); color: var(--pf-accent-ink, #000000); }
.pfilm-play-disc svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.pfilm-play-text { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.pfilm-play-time { font-size: .9rem; font-variant-numeric: tabular-nums; opacity: .75; }
/* On a small film (phones), just the disc and the running time; the button's name still says what it does. */
@container (max-width: 560px) {
  .pfilm-play { padding: 8px; }
  .pfilm-pill { gap: 8px; padding: 4px 12px 4px 4px; }
  .pfilm-play-disc { width: 44px; height: 44px; }
  .pfilm-play-disc svg { width: 16px; height: 16px; margin-left: 2px; }
  .pfilm-play-text { display: none; }
  .pfilm-play-time { font-size: .8rem; opacity: .9; }
}
.pfilm-chapters { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
html:not(.js) .pfilm-chapters { display: none; }
.pfilm-chapter {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--pf-ink-2, inherit);
  font: inherit;
  font-size: .95rem;
  line-height: 1.35;
  text-align: left;
}
.pfilm-chapter:hover, .pfilm-chapter.is-on { background: var(--pf-chapter-bg, rgba(255, 255, 255, .06)); color: var(--pf-ink, inherit); }
.pfilm-chapter:focus-visible { outline: 2px solid var(--pf-accent, currentColor); outline-offset: 1px; }
.pfilm-chapter-time { color: var(--pf-accent-text, var(--pf-accent, inherit)); font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 900px) { .pfilm { grid-template-columns: 1fr; } }

/* The band of other products, in studio styling */
.others { padding: var(--space-20) var(--gutter); border-top: 1px solid var(--border-default); background: var(--bg-secondary); color: var(--text-primary); font-family: var(--font-sans); }
.others-inner { max-width: 1100px; margin: 0 auto; }
.others-title { margin-bottom: var(--space-8); font-size: var(--text-2xl); }
.others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-10); padding: 0; list-style: none; }
/* Icon top-left, name and tagline beside it, all from the top, so every name sits on the same line. */
.others-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: var(--space-1) var(--space-4);
  height: 100%;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  background: var(--bg-tertiary);
  transition: border-color 200ms ease;
}
.others-card:hover { border-color: var(--card-accent); }
.others-logo { grid-row: span 2; }
.others-name { color: var(--text-primary); font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.others-tagline { color: var(--text-secondary); font-size: var(--text-sm); }
.others-contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1.5px solid var(--border-active);
  border-radius: 999px;
  color: var(--text-primary);
  font-weight: 600;
}
.others-contact:hover { border-color: var(--accent-primary); color: var(--text-primary); }
@media (max-width: 900px) { .others-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .others { padding-block: var(--space-12); } }
@media (prefers-reduced-motion: reduce) {
  .pa-btn, .pa-btn:hover, .pfilm-pill { transition: none; transform: none; }
}
