/* Studio Stour: a film with sound in a frame (includes/film.php). The silent loop runs behind a play button that
   names the film and says it has sound; pressing it plays the whole film with the browser's controls. */
.film { margin: 0; }
.film__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: var(--media-cap); background: var(--deep); }
.film__loop, .film__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__full { z-index: 4; object-fit: contain; background: #0C1714; }
.film__full[hidden] { display: none; }
.film__frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(18deg, rgba(19, 36, 31, .82) 0%, rgba(19, 36, 31, .45) 34%, rgba(19, 36, 31, 0) 62%); }
.film__play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 22px); padding: clamp(18px, 2.4vw, 34px);
  background: none; border: 0; color: #EEF1EA; cursor: pointer; text-align: left; }
.film__icon { position: relative; flex: none; width: clamp(60px, 5.2vw, 82px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--ochre); color: var(--deep); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), background-color .3s; }
.film__icon::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(231, 210, 166, .8); animation: film-ring 2.6s ease-out infinite; }
.film__icon svg { width: 32%; margin-left: 9%; }
.film__play:hover .film__icon, .film__play:focus-visible .film__icon { transform: scale(1.08); background: #EEF1EA; }
.film__play:focus-visible { outline: 2px solid var(--ochre); outline-offset: -6px; }
.film__txt { display: grid; gap: 2px; padding-bottom: 4px; }
.film__k { font-weight: 650; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre-soft); }
.film__title { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.05; color: #FFFFFF; }
.film__len { display: flex; align-items: center; gap: 9px; margin-top: 4px; font-size: .92rem; font-weight: 600; color: #EEF1EA; }
.film__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
/* a silent film (no play button): its kicker and title sit on the frame's foot */
.film__label { position: absolute; left: 0; bottom: 0; z-index: 2; display: grid; gap: 2px; margin: 0; padding: clamp(18px, 2.4vw, 34px); pointer-events: none; }
.film__bars i { width: 2px; height: 100%; background: var(--ochre); transform-origin: bottom; animation: film-bar .9s ease-in-out infinite alternate; }
.film__bars i:nth-child(2) { animation-delay: -.3s; } .film__bars i:nth-child(3) { animation-delay: -.6s; } .film__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes film-bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes film-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.film.is-playing .film__play, .film.is-playing .film__frame::after, .film.is-playing .corner-marks { display: none; }
.film figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.on-dark .film figcaption { color: var(--on-dark-2); }
.reduced .film__icon::before, .reduced .film__bars i { animation: none; }
@media (prefers-reduced-motion: reduce) { .film__icon::before, .film__bars i { animation: none; } }
@media (max-width: 560px) {
  .film__k { font-size: .72rem; }
  .film__len { font-size: .9rem; }
}
