.films { position: relative; z-index: 4; overflow-x: clip; background: var(--bg); color: var(--white); padding: 5vh 0 3vh; }
.fm-pin { position: relative; }
.fm-title { margin: 0 18px 20px; font-weight: 800; font-size: clamp(44px, 12vw, 96px); line-height: .92; letter-spacing: -.035em; font-variation-settings: 'opsz' 96; font-kerning: none; }
.fm-title .fm-l { display: inline-block; transform-origin: 50% 100%; }
.fm-title .fm-w { display: inline-block; white-space: nowrap; }

.fm-track { display: flex; gap: 14px; padding: 0 18px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fm-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.fm-pinned) .fm-track { padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--white) 35%, transparent) transparent; }
  html:not(.fm-pinned) .fm-track::-webkit-scrollbar { display: block; height: 8px; }
  html:not(.fm-pinned) .fm-track::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--white) 35%, transparent); border-radius: 4px; }
}
.fm-card { flex: 0 0 auto; width: min(84vw, 720px); margin: 0; scroll-snap-align: center; transform-origin: 50% 50%; position: relative; }

.fm-fr { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--white) 7%, var(--bg)); -webkit-tap-highlight-color: transparent; }
.fm-fr video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fm-snd { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border: 0; border-radius: 12px;
  background: rgba(9, 11, 12, .58); color: #f4f1ea; font: 600 14px 'Gabarito', sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s; }
.fm-snd[aria-pressed="true"] { background: rgba(236, 11, 141, .82); }
.fm-snd:focus-visible { outline: 2px solid #f4f1ea; outline-offset: 3px; }
.fm-spk { width: 18px; height: 14px; display: inline-flex; align-items: flex-end; gap: 2px; }
.fm-spk i { display: block; width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
@media (hover: hover) { .fm-snd:hover { background: rgba(9, 11, 12, .78); } .fm-snd[aria-pressed="true"]:hover { background: rgba(236, 11, 141, .95); } }

.fm-cap { margin: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.fm-cn { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.fm-cn .fm-l { display: inline-block; transform-origin: 50% 100%; }
.fm-cm { font-family: 'Azeret Mono', monospace; font-size: 11.5px; opacity: .78; }

html.fm-pinned .films { padding: 0; }
html.fm-pinned .fm-pin { height: 100vh; overflow: hidden; display: flex; align-items: center; }
html.fm-pinned .fm-row { display: flex; align-items: center; gap: 7vw; width: max-content; padding: 4vh calc((100vw - min(56vh, 40vw) * 16 / 9) / 2) 0 32px; will-change: transform; }
html.fm-pinned .fm-title { flex: 0 0 auto; margin: 0; max-width: 4.6em; font-size: clamp(64px, 9vw, 168px); }
html.fm-pinned .fm-track { overflow: visible; padding: 0; gap: clamp(28px, 3.2vw, 56px); scroll-snap-type: none; }
html.fm-pinned .fm-card { width: calc(min(56vh, 40vw) * 16 / 9); }
html.fm-pinned .fm-fr { border-radius: 18px; }
html.fm-pinned .fm-snd { right: 16px; bottom: 16px; padding: 10px 14px 10px 12px; font-size: 16px; }
html.fm-pinned .fm-cap { margin-top: 16px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 20px; }
html.fm-pinned .fm-cn { font-size: 26px; }
html.fm-pinned .fm-cm { font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .fm-card { transform: none !important; opacity: 1 !important; } }
