/** CATALYST - TopStreet demo: the narrated film player (re-skinned: dark green #17181a, mint #8e1f2f as the one accent, stone #c9c9c2). Behaviour is identical. */
.film { position: relative; container-type: inline-size; background: #121314; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; font-family: Montserrat, system-ui, sans-serif; user-select: none; }
.film:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #121314; }
.film:fullscreen video { object-fit: contain; }
.film__shade { position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(18, 19, 20, .66), rgba(18, 19, 20, 0)); pointer-events: none; }

/* callout: one at a time, lower left, over the picture */
.film__cues { position: absolute; left: 4cqw; bottom: 15cqw; right: 4cqw; pointer-events: none; }
.fc { position: absolute; left: 0; bottom: 0; max-width: min(46cqw, 560px); min-width: 22cqw; padding: 1.7cqw 2.4cqw 1.8cqw 2.4cqw; background: rgba(24, 25, 27, .64); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); border: 1px solid rgba(255, 255, 255, .13); border-radius: 3px; box-shadow: 0 18px 40px rgba(10, 10, 11, .32); animation: fcIn .7s cubic-bezier(.2, .75, .2, 1) both; }
.fc::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: #8e1f2f; transform-origin: top; animation: fcLine .8s cubic-bezier(.2, .75, .2, 1) .1s both; }
.fc.out { animation: fcOut .45s ease-in both; }
.fc__k { font-size: max(12px, 1.05cqw); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #c9c9c2; animation: fcUp .6s cubic-bezier(.2, .75, .2, 1) .18s both; }
.fc__i { opacity: 0; transform: translateY(.9cqw); transition: opacity .5s cubic-bezier(.2, .75, .2, 1), transform .5s cubic-bezier(.2, .75, .2, 1); }
.fc__i.on { opacity: 1; transform: none; }
.fc__b { margin-top: .7cqw; font-size: max(17px, 3.1cqw); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fc__b b { font-weight: 600; }
.fc__s { margin-top: .8cqw; font-size: max(11px, 1.35cqw); line-height: 1.45; color: rgba(255, 255, 255, .78); max-width: 34cqw; }
.fc__chips { display: flex; flex-wrap: wrap; gap: .7cqw; margin-top: 1cqw; max-width: 38cqw; }
.fc__chips span { font-size: max(10.5px, 1.3cqw); font-weight: 500; padding: .55cqw 1.3cqw; border: 1px solid rgba(201, 201, 194, .5); border-radius: 99px; background: rgba(201, 201, 194, .08); }
.fc__rows { margin-top: 1cqw; min-width: 24cqw; }
.fc__rows div { display: flex; justify-content: space-between; gap: 3cqw; padding: .65cqw 0; font-size: max(11px, 1.4cqw); border-top: 1px solid rgba(255, 255, 255, .16); }
.fc__rows div b { font-weight: 600; color: #e9b8bf; white-space: nowrap; }
.fc__b + .fc__rows { margin-top: 1.1cqw; }
@keyframes fcIn { from { opacity: 0; transform: translateY(1.6cqw); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes fcOut { to { opacity: 0; transform: translateY(-1cqw); } }
@keyframes fcLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fcUp { from { opacity: 0; transform: translateY(.9cqw); } to { opacity: 1; transform: none; } }

/* captions: off until asked for, so they never fight the callouts */
.film__cc { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6.5cqw; width: min(76cqw, 900px); text-align: center; font-size: max(12px, 1.7cqw); line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); pointer-events: none; }
.film__cc span { background: rgba(18, 19, 20, .66); padding: .15em .6em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.film__big { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.film__big i { width: 8cqw; min-width: 56px; max-width: 84px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(24, 25, 27, .55); border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .25s ease, background .25s ease; }
.film__big:hover i { transform: scale(1.06); background: rgba(23, 24, 26, .9); }
.film__big svg { width: 34%; margin-left: 6%; fill: #fff; }
.film.playing .film__big { display: none; }
.film__title { position: absolute; left: 4cqw; top: 3.6cqw; font-size: max(12px, 1.05cqw); letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); transition: opacity .4s; }
.film.playing .film__title { opacity: 0; }

.film__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 2.2cqw 1.5cqw; transition: opacity .35s; }
.film.playing.idle .film__bar { opacity: 0; }
.film.playing.idle { cursor: none; }
.film__bar button { flex: none; width: max(30px, 3.2cqw); height: max(30px, 3.2cqw); display: grid; place-items: center; background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: 50%; }
.film__bar button:hover { background: rgba(255, 255, 255, .16); }
.film__bar button:focus-visible { outline: 2px solid #8e1f2f; outline-offset: 1px; }
.film__bar svg { width: 55%; fill: currentColor; }
.film__bar .cc { font-size: max(10px, 1.1cqw); font-weight: 700; letter-spacing: .04em; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 3px; width: auto; height: auto; padding: .35cqw .8cqw; border-radius: 3px; }
.film__bar .cc[aria-pressed="true"] { background: #fff; color: #17181a; }
.film__time { flex: none; font-size: max(10.5px, 1.2cqw); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .88); min-width: 8.6ch; }
.film__scrub { flex: 1; position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; }
.film__scrub::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .28); border-radius: 2px; }
.film__fill { position: absolute; left: 0; height: 3px; background: #8e1f2f; border-radius: 2px; width: 0; }
.film__knob { position: absolute; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(142, 31, 47, .35); left: 0; }
.film__scrub input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; }
@media (max-width: 640px) {
  /* phone: the callout is a low strip (one headline, details as small chips) and captions sit at the top, so neither covers the picture or each other (19 Oct review, P1-2) */
  .film__cues { bottom: 15cqw; left: 8px; right: 8px; }
  .fc { max-width: none; right: 0; min-width: 0; padding: 8px 10px; border-radius: 3px; }
  .fc__k { font-size: 8.5px; letter-spacing: .16em; }
  .fc:has(.fc__b) .fc__k { display: none; }
  .fc__b { font-size: 15px; margin-top: 0; line-height: 1.15; }
  .fc__s { display: none; }
  .fc__chips { max-width: none; gap: 4px; margin-top: 5px; } .fc__chips span { font-size: 10px; padding: 2px 8px; }
  .fc__rows { min-width: 0; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
  .fc__rows div { font-size: 10px; padding: 2px 8px; gap: 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; }
  .fc__b + .fc__rows { margin-top: 5px; }
  /* captions sit under the picture, so they can never overlap the callout (full screen keeps the usual place) */
  .film { overflow: visible; }
  .film__cc { left: 0; right: 0; width: auto; transform: none; top: 100%; bottom: auto; margin-top: 8px; font-size: 13px; line-height: 1.45; text-align: left; text-shadow: none; color: #2e2f33; }
  .film__cc span { background: none; padding: 0; }
  .film:has(.cc[aria-pressed="true"]) { margin-bottom: 84px; }
  .film:fullscreen { overflow: hidden; margin-bottom: 0; }
  .film:fullscreen .film__cc { left: 50%; right: auto; transform: translateX(-50%); width: 92cqw; top: auto; bottom: 13cqw; margin: 0; text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
  .film:fullscreen .film__cc span { background: rgba(18, 19, 20, .66); padding: .15em .6em; }
  .film__title { top: 8px; }
  .film__time { display: none; }
  .film__bar { gap: 8px; padding: 6px 12px 8px; }
  .film__bar button { width: 30px; height: 30px; } .film__bar .cc { font-size: 10px; padding: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) { .fc, .fc *, .fc::before { animation-duration: .01s !important; animation-delay: 0s !important; } }
