/* The launch videos: cards, the small "Watch and share" row and the full-screen player (landing/video-share.js).
   Shared by the waitlist (index.html) and nomila.co/videos (videos.html). Look: DESIGN.md + the approved mock of 17 Nov 2026. */

/* ── who a video is from: small round picture + name ── */
.nv-by{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;line-height:18px;font-weight:600;color:rgba(255,255,255,.9);min-width:0;}
.nv-by img{width:18px;height:18px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#F3F3F1;}
.nv-by span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}

/* ── cards ── */
.nv-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.nv-cards.one{grid-template-columns:1fr;}
/* two or more: upright posters, whole and untouched (a poster may carry its own logo and wordmark), with the title and
   who it is from UNDER each one */
.nv-card{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;border:0;padding:0;margin:0;background:none;cursor:pointer;color:#0E0E0E;text-align:left;font-family:inherit;-webkit-tap-highlight-color:transparent;}
.nv-pic{position:relative;display:block;width:100%;aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:#1B1B1B center/cover no-repeat;}
.nv-card .nv-ft{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;width:100%;padding:0 2px;}
.nv-card .nv-t{font-size:14px;line-height:1.1;font-weight:900;text-transform:uppercase;letter-spacing:-.2px;}
.nv-card .nv-by{color:#6B6B6B;max-width:100%;}
.nv-dur{position:absolute;top:10px;left:10px;padding:3px 8px;border-radius:999px;background:rgba(14,14,14,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#FFFFFF;font-size:11px;line-height:16px;font-weight:700;font-variant-numeric:tabular-nums;z-index:1;}
.nv-play{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:center;color:#0E0E0E;box-shadow:0 8px 22px rgba(0,0,0,.35);}
.nv-card:focus-visible{outline:2px solid #C8325A;outline-offset:3px;border-radius:16px;}
/* one video: one wide card (no empty tile), its words on the picture. The picture is anchored near its top so the
   film's opening title shows. */
.nv-cards.one .nv-card{display:block;height:330px;border-radius:18px;overflow:hidden;background:#1B1B1B;color:#FFFFFF;}
.nv-cards.one .nv-pic{position:absolute;inset:0;aspect-ratio:auto;border-radius:0;background-position:center 6%;}
.nv-cards.one .nv-pic::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.82) 100%);}
.nv-cards.one .nv-card .nv-ft{position:absolute;left:0;right:0;bottom:0;width:auto;padding:16px;gap:8px;}
.nv-cards.one .nv-card .nv-t{font-size:22px;line-height:1;letter-spacing:-.4px;}
.nv-cards.one .nv-card .nv-by{color:rgba(255,255,255,.9);}
.nv-cards.one .nv-play{width:58px;height:58px;top:63%;}
.nv-cards.one .nv-play svg{width:22px;height:22px;}
.nv-cards.one .nv-dur{top:12px;left:auto;right:12px;}

/* ── the last waitlist screen: small upright pictures with the title and who it is from. Black and grey only. ── */
.nv-row{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;}
.nv-row::-webkit-scrollbar{display:none;}
.nv-item{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto;max-width:100%;border:0;background:none;padding:0;margin:0;text-align:left;cursor:pointer;color:#0E0E0E;font-family:inherit;}
.nv-item .nv-th{position:relative;width:45px;height:80px;border-radius:8px;background:#1B1B1B center/cover no-repeat;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#FFFFFF;overflow:hidden;}
.nv-item .nv-th::before{content:'';position:absolute;inset:0;background:rgba(0,0,0,.18);}
.nv-item .nv-th svg{position:relative;}
.nv-item .nv-tx{display:flex;flex-direction:column;gap:4px;min-width:0;}
.nv-item .nv-tx b{font-size:13px;line-height:1.15;font-weight:800;}
.nv-item .nv-by{color:#6B6B6B;font-size:11.5px;line-height:16px;gap:5px;}
.nv-item .nv-by img{width:16px;height:16px;}
.nv-item:focus-visible{outline:2px solid #C8325A;outline-offset:3px;}

/* ── full-screen player ── */
.nvp{position:fixed;inset:0;z-index:200;background:#000000;color:#FFFFFF;display:flex;justify-content:center;font-family:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none;}
.nvp *,.nvp *::before,.nvp *::after{box-sizing:border-box;}
.nvp button,.nvp a{font-family:inherit;-webkit-tap-highlight-color:transparent;}
.nvp [hidden]{display:none !important;}
.nvp-col{position:relative;width:100%;max-width:460px;height:100%;overflow:hidden;background:#000000;container-type:size;display:flex;flex-direction:column;transition:transform .25s ease;}
@media (min-width:480px){.nvp{background:rgba(6,6,6,.96);}}
@media (min-width:480px) and (min-height:720px){.nvp{padding:20px;align-items:center;}.nvp-col{height:min(860px,calc(100dvh - 40px));border-radius:28px;box-shadow:0 24px 70px rgba(0,0,0,.55);}}
/* the film is 9:16. A phone is taller: fit the width and pin to the top, so nothing is cut off the sides and the
   controls use the spare space below. On a shorter window the whole picture still fits. */
.nvp-stage{position:absolute;top:0;left:50%;transform:translateX(-50%);width:100%;width:min(100cqw,calc(100cqh * 9 / 16));aspect-ratio:9/16;background:#000000 center/cover no-repeat;overflow:hidden;}
.nvp-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:transparent;}
.nvp-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 44%,rgba(0,0,0,.9) 76%);transition:opacity .3s;}
.nvp.end .nvp-scrim{background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,0) 13%);}
.nvp-top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(14px + env(safe-area-inset-top,0px)) 14px 0;}
.nvp-tr{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.nvp-ib{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(14,14,14,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#FFFFFF;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;padding:0;}
/* tiny live status over the video; raspberry and tappable once the score is ready */
.nvp-live{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:999px;background:rgba(14,14,14,.45);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:12px;font-weight:700;border:1px solid rgba(255,255,255,.25);color:#FFFFFF;cursor:default;white-space:nowrap;min-width:0;max-width:100%;overflow:hidden;}
.nvp-live span:last-child{overflow:hidden;text-overflow:ellipsis;}
.nvp-live .nvp-dot{width:8px;height:8px;border-radius:50%;background:#FFFFFF;flex:0 0 auto;animation:nvpdot 1.4s ease-in-out infinite;}
.nvp-live.ready{background:#C8325A;border-color:#C8325A;cursor:pointer;font-weight:800;}
.nvp-live.ready .nvp-dot{display:none;}
@keyframes nvpdot{0%,100%{opacity:1;transform:scale(1);}50%{opacity:.3;transform:scale(.7);}}
.nvp-paused{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:#0E0E0E;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.35);cursor:pointer;padding:0;}
.nvp-bot{position:relative;margin-top:auto;padding:0 16px 12px;display:flex;flex-direction:column;gap:10px;}
.nvp-t{margin:0;font-size:28px;line-height:.98;font-weight:900;letter-spacing:-.6px;text-transform:uppercase;}
.nvp-bot .nv-by{font-size:13.5px;line-height:24px;gap:8px;}
.nvp-bot .nv-by img{width:24px;height:24px;}
.nvp-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border:0;border-radius:999px;background:#C8325A;color:#FFFFFF;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;text-decoration:none;flex:0 0 auto;transition:background .2s,transform .15s;}
.nvp-go:hover{background:#A82648;}
.nvp-go:active{transform:scale(.98);}
.nvp-go.white{background:#FFFFFF;color:#0E0E0E;}
.nvp-go.white:hover{background:#F3F3F1;}
.nvp-next{display:flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0;border:0;background:none;color:#FFFFFF;font-size:12.5px;cursor:pointer;width:100%;}
.nvp-next b{font-weight:700;}
.nvp-next span{color:rgba(255,255,255,.7);font-weight:600;}
.nvp-next span:not(:empty)::before{content:"· ";}
.nvp-prog{position:relative;height:3px;background:rgba(255,255,255,.28);margin-bottom:max(10px,env(safe-area-inset-bottom,0px));flex:0 0 auto;}
.nvp-prog i{display:block;height:100%;width:0;background:#FFFFFF;}
/* while it shows, the line is a seek bar: a round handle on it, a 26px-tall strip to touch (video-share.js), and the
   time over the handle while a finger drags. Hidden with the line while the film plays (.quiet). */
.nvp-knob{position:absolute;top:50%;left:clamp(7px,var(--p,0%),calc(100% - 7px));width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#FFFFFF;box-shadow:0 1px 6px rgba(0,0,0,.5);pointer-events:none;transition:transform .15s ease;}
.nvp.seeking .nvp-knob{transform:scale(1.3);}
.nvp-seek{position:absolute;left:0;right:0;top:-13px;height:26px;cursor:pointer;touch-action:none;}
.nvp-seek:focus-visible{outline-offset:-2px;}
.nvp-time{position:absolute;bottom:20px;left:clamp(46px,var(--p,0%),calc(100% - 46px));transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:#0E0E0E;border:1px solid rgba(255,255,255,.3);color:#FFFFFF;font-size:12px;line-height:16px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;}
.nvp.seeking .nvp-time{opacity:1;visibility:visible;}
/* end card: the film's last picture has a painted "Join the waitlist" button and "nomila.co". A real button sits exactly on top. */
.nvp.end .nvp-t,.nvp.end .nvp-bot .nv-by{display:none;}
.nvp-endpill{position:absolute;border:0;border-radius:999px;background:#C8325A;color:#FFFFFF;font-size:13px;font-size:clamp(10px,3.4cqw,15px);font-weight:800;letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none;box-shadow:0 6px 18px rgba(200,50,90,.35);padding:0;white-space:nowrap;}
.nvp-endpill:hover{background:#A82648;}
.nvp-endlink{position:absolute;background:#FDFDFC;color:#0E0E0E;font-size:14.5px;font-size:clamp(11px,3.7cqw,17px);font-weight:700;display:flex;align-items:center;justify-content:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
/* a dark last picture: no light box, the painted address shows through and the link sits on it */
.nvp-endlink.clear{background:none;color:transparent;}
.nvp-toast{position:absolute;left:50%;top:calc(62px + env(safe-area-inset-top,0px));z-index:3;transform:translate(-50%,-12px);opacity:0;pointer-events:none;background:#FFFFFF;color:#0E0E0E;font-size:14px;font-weight:700;padding:12px 18px;border-radius:999px;box-shadow:0 12px 30px rgba(0,0,0,.3);transition:opacity .3s,transform .3s;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;}
.nvp-toast.on{opacity:1;transform:translate(-50%,0);}
/* on a computer there is no share sheet for files: Share opens this small menu */
.nvp-menu{position:absolute;left:16px;right:16px;bottom:84px;z-index:4;background:#FFFFFF;color:#0E0E0E;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.45);display:flex;flex-direction:column;overflow:hidden;}
.nvp-menu a,.nvp-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 16px;border:0;background:none;color:#0E0E0E;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;text-align:left;}
.nvp-menu a+a,.nvp-menu a+button,.nvp-menu button+a,.nvp-menu button+button{border-top:1px solid #E4E4E2;}
.nvp-menu a:hover,.nvp-menu button:hover{background:#F3F3F1;}
.nvp :focus-visible{outline:2px solid #FFFFFF;outline-offset:3px;}
/* while the film plays (.quiet): only the film, ✕ and the expand button (it wears ✕'s class: same look, never hidden). A tap, a pause or the end card brings the rest back (video-share.js).
   .peek: the score became ready meanwhile, so the pill alone shows for a moment. */
.nvp-x{background:rgba(14,14,14,.6);border-color:rgba(255,255,255,.45);box-shadow:0 1px 8px rgba(0,0,0,.35);}
.nvp-paused.playing{width:60px;height:60px;border:1px solid rgba(255,255,255,.3);background:rgba(14,14,14,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#FFFFFF;box-shadow:none;}
.nvp-scrim,.nvp-bot,.nvp-live,.nvp-top .nvp-ib,.nvp-paused,.nvp-prog{transition:opacity .35s ease,visibility 0s;}
.nvp.quiet .nvp-scrim,.nvp.quiet .nvp-bot,.nvp.quiet .nvp-live,.nvp.quiet .nvp-top .nvp-ib:not(.nvp-x),.nvp.quiet .nvp-paused,.nvp.quiet .nvp-prog{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s ease,visibility 0s .35s;}
.nvp.quiet.peek .nvp-live{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .35s ease,visibility 0s;}
@media (prefers-reduced-motion:reduce){.nvp,.nvp *{animation:none !important;transition:none !important;}}
