/* ═════════ FILMS — scroll-driven cinema player + stories ═════════ */
.films { position: relative; padding: clamp(90px, 11vw, 140px) 0 0; overflow: clip; background:
  radial-gradient(60% 40% at 80% 10%, rgba(31, 77, 255, .16), transparent 70%),
  radial-gradient(50% 35% at 10% 30%, rgba(244, 193, 74, .09), transparent 70%), #05070b; }
.fl-head { position: relative; z-index: 2; padding: 0 var(--pad); }
.fl-head .lead { max-width: 640px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.fl-head .graf { position: absolute; right: var(--pad); top: -20px; font-size: clamp(34px, 5vw, 74px); transform: rotate(-6deg); }

/* giant outline word drifting with scroll */
.fl-bgword { position: absolute; left: 0; top: 34vh; display: flex; gap: 6vw; white-space: nowrap; pointer-events: none; z-index: 0;
  font: 900 clamp(120px, 24vw, 380px)/.8 var(--fh); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .06); transform: translateX(calc(var(--flp, 0) * -40vw)); }

/* stories */
.fl-stories { display: flex; gap: 18px; margin-top: 34px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.fl-stories::-webkit-scrollbar { display: none; }
.st-b { flex: none; display: grid; justify-items: center; gap: 9px; background: none; border: 0; color: var(--ink); cursor: pointer; font: 600 12.5px/1 var(--fb); letter-spacing: .02em; }
.st-b .ring { position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #f4c14a, #ff5fae, #5b86ff, #4ff0d8, #f4c14a); transition: transform .4s var(--ease); }
.st-b .ring::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(244, 193, 74, .35); animation: stSpin 14s linear infinite; }
.st-b.seen .ring { background: rgba(255, 255, 255, .18); }
.st-b img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #05070b; display: block; }
.st-b:hover .ring { transform: scale(1.07) rotate(-4deg); }
.st-b .live { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; font: 800 9px/1 var(--fh); letter-spacing: .12em; color: #15120a; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
@keyframes stSpin { to { transform: rotate(360deg); } }

/* pinned player: the frame grows from a tilted card to full-bleed as you scroll */
.fl-pin { position: relative; height: 230vh; margin-top: 30px; }
.fl-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 1400px; z-index: 1; }
.fl-tabs { position: absolute; top: calc(80px + (1 - var(--flk, 0)) * 2vh); left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; padding: 6px; border-radius: 16px;
  background: rgba(8, 11, 18, .72); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fl-tab { display: grid; gap: 4px; text-align: left; padding: 10px 16px; border-radius: 11px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .3s, color .3s; }
.fl-tab b { font: 700 14px/1 var(--fh); letter-spacing: -.01em; } .fl-tab small { font: 600 10px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.fl-tab.on { background: linear-gradient(180deg, #ffdb85, #f4c14a); color: #15120a; box-shadow: 0 8px 26px -8px rgba(244, 193, 74, .6); }
.fl-frame { --r: calc(28px * (1 - var(--flk, 0))); position: relative; width: calc(64vw + 36vw * var(--flk, 0)); aspect-ratio: var(--ar, 16 / 9); max-height: calc(66vh + 34vh * var(--flk, 0));
  border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer;
  transform: rotateX(calc(16deg * (1 - var(--flk, 0)))) rotateY(calc(-10deg * (1 - var(--flk, 0)))) translateY(calc(4vh * (1 - var(--flk, 0))));
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 90px -20px rgba(31, 77, 255, calc(.55 * (1 - var(--flk, 0)))); }
.fl-frame.v { width: auto; height: calc(78vh + 22vh * var(--flk, 0)); max-height: none; }
.fl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%) no-repeat; background-size: 300% 100%; animation: flScan 6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes flScan { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.fl-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 2vw, 26px); pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 70%, rgba(0, 0, 0, .6)); }
.fl-ui > * { pointer-events: auto; }
.fl-top { display: flex; justify-content: space-between; align-items: center; }
.fl-rec { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 Orbitron, var(--fh); letter-spacing: .16em; color: #fff; }
.fl-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 12px #ff3b3b; animation: flBlink 1.2s steps(2) infinite; }
@keyframes flBlink { 50% { opacity: .2; } }
.fl-badge { padding: 6px 10px; border-radius: 8px; font: 800 10.5px/1 var(--fh); letter-spacing: .14em; color: #15120a; background: linear-gradient(180deg, #ffdb85, #f4c14a); }
.fl-big { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 0 60px -10px rgba(244, 193, 74, .6); transition: opacity .35s, transform .35s var(--ease); }
.fl-big i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -13px 0 0 -8px; border-left: 26px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.fl-frame.playing .fl-big { opacity: 0; transform: scale(.7); }
.fl-frame.playing:hover .fl-big { opacity: .85; transform: scale(.85); }
.fl-frame.playing .fl-big i { width: 8px; height: 28px; margin: -14px 0 0 -11px; border: 0; background: #fff; box-shadow: 14px 0 #fff; }
.fl-bot { display: flex; align-items: flex-end; gap: 14px; }
.fl-ch { flex: 1; display: flex; gap: 6px; min-width: 0; }
.fl-c { flex: var(--w, 1); min-width: 0; display: grid; gap: 7px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: rgba(255, 255, 255, .7); }
.fl-c span { font: 700 10.5px/1 var(--fh); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.fl-c i { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.fl-c i::before { content: ''; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #f4c14a, #ffdb85); box-shadow: 0 0 10px #f4c14a; }
.fl-c.on span { color: #fff; }
.fl-c:hover i { background: rgba(255, 255, 255, .4); }
.fl-ctrl { display: flex; gap: 8px; }
.fl-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 11, 18, .55); color: #fff; font: 700 12px/1 var(--fh); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fl-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.fl-btn[aria-pressed="true"] { background: linear-gradient(180deg, #ffdb85, #f4c14a); color: #15120a; border-color: transparent; }
.fl-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.fl-eq i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; }
[aria-pressed="true"] .fl-eq i { animation: flEq .9s ease-in-out infinite; } [aria-pressed="true"] .fl-eq i:nth-child(2) { animation-delay: -.3s; } [aria-pressed="true"] .fl-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes flEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* story viewer */
.stv { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(2, 3, 6, .92); }
.stv[hidden] { display: none !important; }
.stv-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4) brightness(.45); }
.stv-card { position: relative; height: min(92vh, 860px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); animation: stIn .5s var(--ease); }
@keyframes stIn { from { transform: scale(.9) translateY(30px); opacity: 0; } }
.stv-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stv-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; gap: 4px; }
.stv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.stv-bars i::before { content: ''; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.stv-head { position: absolute; left: 14px; right: 14px; top: 26px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; font: 700 14px/1 var(--fh); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.stv-head img { width: 34px; height: 34px; border-radius: 50%; }
.stv-head span { font: 600 12px/1 var(--fb); opacity: .75; }
.stv-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; cursor: pointer; }
.stv-cap { position: absolute; left: 18px; right: 18px; bottom: 28px; z-index: 3; font: 900 clamp(24px, 3.6vh, 36px)/1.02 var(--fh); letter-spacing: -.03em; text-transform: uppercase; color: #fff; transform: rotate(-3deg); transform-origin: 0 100%;
  text-shadow: 3px 3px 0 #1c3cb4, 0 8px 24px rgba(0, 0, 0, .75); animation: stCap .7s var(--ease) both; }
@keyframes stCap { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stv-nav { position: absolute; top: 80px; bottom: 90px; width: 40%; z-index: 2; border: 0; background: none; cursor: pointer; }
.stv-nav.prev { left: 0; } .stv-nav.next { right: 0; }
.stv-snd { position: absolute; right: 14px; bottom: 90px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.stv-snd[aria-pressed="true"] { background: #f4c14a; color: #15120a; }

@media (max-width: 760px) {
  .fl-pin { height: 190vh; }
  .fl-frame { width: calc(94vw + 6vw * var(--flk, 0)); max-height: none; }
  .fl-frame.v { width: calc(80vw + 20vw * var(--flk, 0)); height: auto; aspect-ratio: 9 / 16; max-height: 100vh; }
  .fl-tabs { top: 70px; } .fl-tab { padding: 8px 12px; } .fl-tab small { display: none; }
  .fl-c span { font-size: 9px; } .fl-btn span:not(.fl-eq) { display: none; }
  .fl-big { width: 70px; height: 70px; margin: -35px; }
  .st-b .ring { width: 70px; height: 70px; }
  .stv-card { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .fl-scan, .st-b .ring::after { animation: none; } }
