/* The film library (/videos/): gold on black, framed like the act plates. Loaded after pages.css. */
.vl-hero { min-height: 0; padding: clamp(28px, 6vh, 80px) 0 clamp(18px, 3vh, 36px); max-width: 760px; }
.vl-hero h1 { margin: 6px 0 14px; font: 400 clamp(38px, 5.4vw, 86px)/1.02 var(--serif); letter-spacing: .03em;
  background: linear-gradient(180deg, #f3e6c6, #c8a25e 70%, #8a6a32); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vl-hero .lede { font: 400 clamp(18px, 1.5vw, 24px)/1.5 var(--book); color: var(--fg); margin: 0; }

/* the plate: a black screen inside a double gold rule */
.vl-plate { position: relative; margin: 0; padding: clamp(8px, 1vw, 14px); background: #050302;
  border: 1px solid rgba(199,147,69,.55); box-shadow: inset 0 0 0 4px #050302, inset 0 0 0 5px rgba(232,196,122,.28), 0 30px 80px rgba(0,0,0,.55); }
.vl-plate::before, .vl-plate::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid #e8c47a; pointer-events: none; }
.vl-plate::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.vl-plate::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.vl-screen { position: relative; aspect-ratio: var(--r, 16/9); background: #000; max-height: 72vh; margin: 0 auto; }
.vl-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

.vl-big { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.vl-big.in { opacity: 1; transform: none; }
.vl-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(28px, 3vw, 48px); align-items: start; }
.vl-big figcaption { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 8px 8px; }
.vl-big h2 { margin: 0; font: 500 clamp(24px, 2.6vw, 40px)/1.1 Cinzel, var(--serif); color: #efdbb6; letter-spacing: .04em; }
.vl-big .vl-world { margin-top: 14px; }
.vl-big .vl-screen { aspect-ratio: 16/10; }

.vl-kind { display: block; margin: 0; font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #c79345; }
.vl-meta { display: block; margin: 2px 0 0; font: 400 13px/1.4 var(--sans); letter-spacing: .08em; color: rgba(239,219,182,.72); }
.vl-line { display: block; margin: 8px 0 0; font: italic 400 clamp(16px, 1.15vw, 19px)/1.5 var(--book); color: var(--fg); max-width: 62ch; }
.vl-world { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(199,147,69,.6);
  color: #e8c47a; text-decoration: none; font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.vl-world:hover, .vl-world:focus-visible { background: rgba(199,147,69,.16); color: #f3e6c6; }

/* the grid */
.vl-lib { margin-top: clamp(56px, 9vh, 110px); }
.vl-lib h2 { font-family: Cinzel, var(--serif); color: #efdbb6; text-align: center; margin-bottom: 28px; }
.vl-lib h2::after { content: ''; display: block; width: 120px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, #c79345, transparent); }
.vl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(22px, 3vw, 40px); }
.vl-card { display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(18px); transition: opacity .9s ease var(--d, 0ms), transform .9s ease var(--d, 0ms); }
.vl-card.in { opacity: 1; transform: none; }
.vl-card .vl-world { align-self: flex-start; }
.vl-open { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.vl-open b { font: 500 clamp(19px, 1.5vw, 24px)/1.2 Cinzel, var(--serif); color: #efdbb6; letter-spacing: .03em; }
.vl-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 10px; background: #050302;
  border: 1px solid rgba(199,147,69,.5); box-shadow: inset 0 0 0 3px #050302, inset 0 0 0 4px rgba(232,196,122,.25); }
.vl-thumb img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: 50% 30%;
  filter: saturate(.92) brightness(.86); transform: scale(1.01); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.vl-open:hover .vl-thumb img, .vl-open:focus-visible .vl-thumb img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.vl-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 1px solid rgba(232,196,122,.85); background: rgba(5,3,2,.55); backdrop-filter: blur(2px); transition: transform .5s, background .5s; }
.vl-play::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 17px solid #e8c47a; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vl-open:hover .vl-play, .vl-open:focus-visible .vl-play { transform: scale(1.08); background: rgba(199,147,69,.3); }
.vl-dur { position: absolute; right: 12px; bottom: 10px; padding: 3px 8px; background: rgba(5,3,2,.72); color: #efdbb6; font: 600 11px var(--sans); letter-spacing: .12em; }
.vl-open:focus-visible { outline: 2px solid #e8c47a; outline-offset: 6px; }

/* the lightbox: fits the screen, controls never cut off */
.vl-box { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; overflow: hidden; }
.vl-box::backdrop { background: rgba(3,2,1,.96); }
.vl-box-in { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1280px, calc(100vw - 32px)); }
.vl-frame { position: relative; aspect-ratio: var(--r, 16/9); max-height: calc(100dvh - 150px); max-width: 100%; margin: 0 auto;
  width: min(100%, calc((100dvh - 150px) * var(--r, 16/9))); background: #000; border: 1px solid rgba(199,147,69,.55); }
.vl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vl-x { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(199,147,69,.6);
  background: rgba(7,3,4,.8); color: #efdbb6; font-size: 18px; cursor: pointer; }
.vl-cap { margin: 12px 0 0; text-align: center; font: 500 12px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c79345; }
.vl-cap b { font: 500 15px Cinzel, var(--serif); letter-spacing: .06em; text-transform: none; color: #efdbb6; }

@media (max-width: 760px) {
  .vl-big figcaption { padding: 14px 4px 4px; }
  .vl-plate { padding: 6px; }
  .vl-box-in { width: calc(100vw - 24px); }
  .vl-frame { max-height: calc(100dvh - 170px); width: min(100%, calc((100dvh - 170px) * var(--r, 16/9))); }
}
@media (prefers-reduced-motion: reduce) { .vl-card, .vl-big { opacity: 1; transform: none; transition: none; } .vl-thumb img { transition: none; } }

/* group jump links + grouped sections (the full official library) */
.vl-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: clamp(48px, 7vh, 88px) auto 0; }
.vl-jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(199,147,69,.45);
  color: #e8c47a; text-decoration: none; font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.vl-jump a span { color: rgba(239,219,182,.6); letter-spacing: .08em; }
.vl-jump a:hover, .vl-jump a:focus-visible { background: rgba(199,147,69,.16); color: #f3e6c6; }
#vl-groups .vl-lib { scroll-margin-top: 90px; }
.vl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* hold the space the films will fill so the footer does not jump down when videos.json arrives (crawl: CLS 0.19 at 1440) */
#vl-feature:empty { min-height: min(70vh, 640px); }
#vl-groups:empty { min-height: 100vh; }
/* F09 (confirm-read 173525Z): the turned-phone rule lived in phone.css, which loads BEFORE this file, so the base
   .vl-frame cap (100dvh - 150px = 190 px at 340 tall) won. Same rule here, after the base, so it applies. */
@media (orientation: landscape) and (max-height: 500px) {
  .vl-box-in { width: calc(100vw - 24px); }
  .vl-frame { max-height: calc(100dvh - 16px); width: min(100%, calc((100dvh - 16px) * var(--r, 16/9))); }
  .vl-cap { display: none; }
  .vl-x { top: 4px; right: 4px; z-index: 3; background: rgba(0,0,0,.6); }
}
