/* /the-tomshaw-stack/: the film as a video (tools/make-video.mjs). Builds on site.css. */
.film-main {
  max-width: 1120px; margin: 0 auto;
  padding-block: 36px 72px;
  padding-left: max(24px, env(safe-area-inset-left,0px));
  padding-right: max(24px, env(safe-area-inset-right,0px));
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(79,19,152,0.45) 0%, rgba(0,0,0,0) 70%);
}
.film-title { font-size: clamp(28px, 4.5vw, 48px); font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 24px; }

.film-frame {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--ts-border); box-shadow: 0 0 60px rgba(145,55,255,0.25);
}
.film-frame video, .film-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }

.film-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.film-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 700 15px/1 var(--ts-font); letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: var(--ts-violet); padding: 18px 30px; border-radius: 100px;
  box-shadow: 0 0 50px rgba(145,55,255,0.55); transition: background 0.2s, box-shadow 0.2s;
}
.film-play-btn svg { width: 20px; height: 20px; fill: #fff; }
.film-len { font-weight: 500; opacity: 0.75; }
.film-play:hover .film-play-btn { background: #a35fff; box-shadow: 0 0 72px rgba(163,95,255,0.7); }
.film-play:focus-visible { outline: 2px solid var(--ts-accent); outline-offset: -4px; }
.film-link { font: inherit; color: var(--ts-accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .film-play-btn { padding: 14px 22px; font-size: 13px; } }
.film-frame video::cue { background: rgba(0,0,0,0.72); color: #fff; font-family: var(--ts-font); }

.film-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.film-chapter {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: 600 13px/1 var(--ts-font); color: rgba(255,255,255,0.78);
  background: var(--ts-card); border: 1px solid var(--ts-border); border-radius: 100px;
  padding: 9px 14px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.film-chapter:hover, .film-chapter[aria-current="true"] { border-color: var(--ts-accent); color: var(--ts-white); }
.film-chapter time { font-weight: 500; color: var(--ts-accent); font-variant-numeric: tabular-nums; }
.film-chapter:focus-visible { outline: 2px solid var(--ts-accent); outline-offset: 2px; }

.film-note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.6); }
.film-note a { color: var(--ts-accent); }
.film-cta { justify-content: flex-start; margin-top: 28px; }
