/* Phim "Một ngày ở Nobu" (bản chốt 19/11/2026): nút xem trên khung video giới thiệu + khung phát toàn màn hình có tiếng. */
.film-play {
  position: absolute; left: clamp(18px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); z-index: 2;
  display: inline-flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #fff; font: inherit; text-align: left; text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.film-play .fp-ring {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background: rgba(20,20,24,.12); transition: background .35s, transform .35s;
}
.film-play .fp-ring::before { content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.film-play .fp-txt { display: grid; gap: 2px; }
.film-play .fp-k { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }
.film-play .fp-t { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.film-play:hover .fp-ring, .film-play:focus-visible .fp-ring { background: rgba(255,255,255,.22); transform: scale(1.06); }
.film-play:focus-visible { outline: 1px solid #fff; outline-offset: 8px; }

.film-box { position: fixed; inset: 0; z-index: 90; background: rgba(8,9,11,.96); display: grid; place-items: center;
  opacity: 0; transition: opacity .45s ease; }
.film-box.on { opacity: 1; }
.film-box[hidden] { display: none; }
.film-box video { width: min(100vw, calc(100vh * 16 / 9)); height: auto; max-height: 100vh; background: #000; outline: none; }
/* toàn màn hình thật: phim phủ kín màn (màn 16:9 thì khít, màn khác tỉ lệ chỉ còn dải đen mảnh, không cắt hình) */
.film-box:fullscreen { background: #000; }
.film-box:fullscreen video { width: 100vw; height: 100vh; max-height: none; object-fit: contain; }
.film-box:-webkit-full-screen { background: #000; }
.film-box:-webkit-full-screen video { width: 100vw; height: 100vh; max-height: none; object-fit: contain; }
.film-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px));
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.film-close:hover, .film-close:focus-visible { background: rgba(255,255,255,.15); }
/* ----- màn dạo đầu (js: prelude()). Hiện ~3 giây trong lúc phim tải ngầm, rồi hai tấm màn mở sang hai bên. ----- */
.film-pre { --gold: #cbb68e; position: absolute; inset: 0; z-index: 1; overflow: hidden; display: grid; place-items: center; color: #f3eee5; }
.film-pre[hidden] { display: none; }
/* hai tấm màn: mỗi tấm nửa màn hình, mang nửa ảnh phim (mờ, tối) của mình; ghép lại thành một ảnh liền, mở ra thì ảnh tách đôi theo màn */
.fl-cur { position: absolute; top: 0; bottom: 0; width: 50.1%; overflow: hidden; background: #0f0e0c; transition: transform 1.25s cubic-bezier(.76, 0, .24, 1) .5s; will-change: transform; }
.fl-cur.l { left: 0; } .fl-cur.r { right: 0; }
.fl-cur::before { content: ""; position: absolute; top: -8%; bottom: -8%; width: 199.6%; background: var(--poster, none) center / cover no-repeat; filter: blur(26px) saturate(.75); opacity: .42; }
.fl-cur.l::before { left: 0; } .fl-cur.r::before { right: 0; }
.film-pre.run .fl-cur::before { animation: fl-drift 7s cubic-bezier(.2, .6, .3, 1) both; }
.fl-cur::after { content: ""; position: absolute; inset: 0; }
.fl-cur.l::after { background: radial-gradient(130% 95% at 100% 50%, rgba(15,14,12,.34) 0%, rgba(15,14,12,.9) 72%); }
.fl-cur.r::after { background: radial-gradient(130% 95% at 0% 50%, rgba(15,14,12,.34) 0%, rgba(15,14,12,.9) 72%); }
.film-pre.leave .fl-cur.l { transform: translateX(-101%); }
.film-pre.leave .fl-cur.r { transform: translateX(101%); }
.fl-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gold); transform: scaleY(0); opacity: 0; z-index: 1; }
/* sợi chỉ vàng chỉ vẽ TRƯỚC khi màn mở (0,5 giây) rồi tắt hẳn; lúc màn mở, mép trong của mỗi tấm màn mang một viền vàng đi theo nó. Không còn đường nào nằm lại trên hình phim
   (user 21/11/2026: "đường này che mấy toà nhà": bản đầu sợi chỉ đứng giữa màn thêm gần 1 giây sau khi màn đã mở) */
.film-pre.leave .fl-seam { animation: fl-seam .5s cubic-bezier(.65, 0, .35, 1) both; }
.film-pre.leave .fl-cur.l { box-shadow: 1px 0 0 rgba(203, 182, 142, .8); }
.film-pre.leave .fl-cur.r { box-shadow: -1px 0 0 rgba(203, 182, 142, .8); }
.fl-mid { position: relative; z-index: 2; display: grid; justify-items: center; padding: 0 24px; text-align: center; transition: opacity .5s, translate .7s cubic-bezier(.5, 0, .75, 0), filter .5s; }
.film-pre.leave .fl-mid { opacity: 0; translate: 0 -16px; filter: blur(6px); }
.fl-k { font-family: var(--sans); font-stretch: 112%; font-size: 12px; font-weight: 500; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--gold); }
.fl-t { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .26em; margin-top: 16px; padding: .06em .04em .16em; overflow: hidden;
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.08; }
.fl-t b { font-weight: inherit; display: inline-block; }
.fl-ring { position: relative; width: 78px; height: 78px; margin-top: clamp(26px, 4vh, 44px); display: grid; place-items: center; }
.fl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fl-ring circle { fill: none; stroke-width: 1; }
.fl-ring .tr { stroke: rgba(243, 238, 229, .2); }
.fl-ring .pr { stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.fl-ring em { font-style: normal; font-family: var(--serif); font-weight: 300; font-size: 19px; letter-spacing: .12em; margin-right: -.12em; color: var(--gold); font-variant-numeric: tabular-nums; transition: opacity .3s, transform .4s; }
.fl-ring i { position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -5px; border-left: 14px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; opacity: 0; transform: scale(.5); transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.film-pre.done .fl-ring em { opacity: 0; transform: scale(.7); }
.film-pre.done .fl-ring i { opacity: 1; transform: none; }
.fl-note { margin-top: 18px; font-family: var(--sans); font-stretch: 112%; font-size: 11px; font-weight: 500; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: rgba(243, 238, 229, .62); }
.film-pre.run .fl-k { animation: fl-k 1.2s cubic-bezier(.16, 1, .3, 1) .1s both; }
.film-pre.run .fl-t b { animation: fl-rise 1.25s cubic-bezier(.16, 1, .3, 1) both; }
.film-pre.run .fl-t b:nth-child(1) { animation-delay: .22s; } .film-pre.run .fl-t b:nth-child(2) { animation-delay: .32s; }
.film-pre.run .fl-t b:nth-child(3) { animation-delay: .42s; } .film-pre.run .fl-t b:nth-child(4) { animation-delay: .52s; }
.film-pre.run .fl-ring { animation: fl-in .9s cubic-bezier(.16, 1, .3, 1) .55s both; }
.film-pre.run.done .fl-ring { animation: fl-pop .7s cubic-bezier(.16, 1, .3, 1); }
.film-pre.run .fl-note { animation: fl-in .9s cubic-bezier(.16, 1, .3, 1) .8s both; }
@keyframes fl-k { from { opacity: 0; letter-spacing: .7em; } }
@keyframes fl-rise { from { transform: translateY(108%); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes fl-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes fl-pop { 40% { transform: scale(1.1); } }
@keyframes fl-drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes fl-seam { 0% { transform: scaleY(0); opacity: 1; } 88% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fl-cur { transition-duration: .01s; transition-delay: 0s; }
  .film-pre.run .fl-cur::before, .film-pre.run .fl-k, .film-pre.run .fl-t b, .film-pre.run .fl-ring, .film-pre.run .fl-note, .film-pre.leave .fl-seam { animation: none; }
}
@media (max-width: 640px) {
  .film-play .fp-ring { width: 52px; height: 52px; }
  .film-play .fp-k { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .film-box { transition: none; } }
