/* MentiPlayer · open media, in the house's black and gold */
:root { --bg: #08080a; --bg2: #101013; --bg3: #17171c; --ink: #f2ede4; --dim: #a39a8a; --mute: #766f63; --line: rgba(242,237,228,.1); --acc: #f0b24a; --acc2: #ff7a59; --bad: #ff6a4d; --rh: 190px; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); background: radial-gradient(70% 40% at 80% -10%, rgba(240,178,74,.12), transparent 70%), var(--bg); }
body.deck-on { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
.dim { color: var(--dim); }
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: rgba(8,8,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ink); } .logo span { color: var(--acc); }
.q { flex: 1; min-width: 220px; display: flex; gap: 8px; max-width: 640px; }
.q input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); padding: 0 18px; outline: none; }
.q input:focus { border-color: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--acc); }
.btn.pri { background: linear-gradient(135deg, #ffd27a, var(--acc)); color: #1a1200; border-color: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1; } .ic:hover { background: var(--bg3); }
.ic.big { width: 46px; height: 46px; background: var(--acc); color: #1a1200; } .ic.big:hover { background: #ffd27a; }
.ic.txt { width: auto; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
#tabs { display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); } #tabs::-webkit-scrollbar { display: none; }
#tabs button { flex: none; border: 1px solid transparent; background: transparent; color: var(--dim); font-weight: 600; font-size: 14px; padding: 7px 15px; border-radius: 999px; }
#tabs button:hover { color: var(--ink); } #tabs button.on { background: var(--ink); color: #111; }
main { padding: 6px 0 24px; min-height: 60vh; }
#status { padding: 8px 18px; color: var(--dim); font-size: 14px; min-height: 2.2em; }
.shelf { margin: 8px 0 22px; } .shelf > h2 { margin: 0 18px 10px; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; } .shelf > h2 small { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rail .card { flex: none; width: calc(var(--rh) * var(--ar)); scroll-snap-align: start; }
.rail .card .art { height: var(--rh); aspect-ratio: auto; width: 100%; }
.shelf .skel { height: var(--rh); border-radius: 12px; width: 70%; margin: 0 18px; background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: sh 1.4s linear infinite; } @keyframes sh { to { background-position: -200% 0; } }
.shelf .gone { margin: 0 18px; color: var(--mute); font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 14px; padding: 8px 18px; }
.card { position: relative; --ar: 1; min-width: 0; }
.card .open { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; border-radius: 12px; }
.card .art { position: relative; width: 100%; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card .open:hover .art, .card .open:focus-visible .art { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card .badge.live::before { content: "● "; color: var(--bad); }
.card h3 { margin: 8px 2px 1px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: 0 2px; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .heart { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; opacity: 0; transition: opacity .15s; }
.card:hover .heart, .card .heart:focus-visible, .card .heart.on, .touch .card .heart { opacity: 1; } .card .heart.on { color: var(--acc2); }
.t-movie, .t-tv { --ar: .6667; } .t-video, .t-live { --ar: 1.7778; } .t-music, .t-radio, .t-audiobook, .t-podcast { --ar: 1; }
.morerow { text-align: center; padding: 8px; }
.empty { grid-column: 1 / -1; padding: 50px 18px; text-align: center; color: var(--dim); }
dialog { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 18px; padding: 0; width: min(920px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
#srcdlg { width: min(560px, calc(100vw - 20px)); padding: 0 20px 20px; }
.dhead { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 20px; background: var(--bg2); } .dhead h2 { margin: 0; flex: 1; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
#dbody { padding: 0 20px 20px; }
.stage { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stage video { display: block; width: 100%; max-height: 62vh; background: #000; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.cover { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; } .cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .chips span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg3); color: var(--dim); }
.desc { color: var(--dim); max-width: 70ch; white-space: pre-line; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.links a { margin-right: 14px; }
.lic { font-size: 12.5px; color: var(--mute); margin-top: 10px; }
.tracks { list-style: none; margin: 12px 0 0; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.tracks li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; } .tracks li:last-child { border-bottom: 0; } .tracks li:hover { background: var(--bg3); }
.tracks li.on { background: rgba(240,178,74,.12); color: var(--acc); } .tracks li small { margin-left: auto; color: var(--mute); white-space: nowrap; } .tracks li b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; } .eps li { font-size: 14px; } .eps li small { color: var(--mute); }
.cast { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px; } .cast figure { margin: 0; flex: none; width: 84px; text-align: center; font-size: 12px; color: var(--dim); } .cast img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; background: var(--bg3); } .cast b { display: block; color: var(--ink); font-weight: 500; }
.note { padding: 22px; text-align: center; color: var(--dim); background: var(--bg3); border-radius: 12px; }
.spin { text-align: center; padding: 40px; color: var(--dim); }
.deck { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 8px); display: grid; grid-template-columns: 46px minmax(120px, 1.2fr) auto minmax(140px, 2fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: rgba(23,23,28,.96); border: 1px solid rgba(240,178,74,.35); box-shadow: 0 14px 40px rgba(0,0,0,.6); backdrop-filter: blur(14px); max-width: 1100px; margin: 0 auto; }
.deck img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg3); }
.dkt { min-width: 0; } .dkt b, .dkt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dkt small { color: var(--mute); font-size: 12.5px; }
.dkc { display: flex; align-items: center; gap: 2px; } .dks { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; } .dks input { flex: 1; min-width: 0; accent-color: var(--acc); }
.deck.live .dks input { visibility: hidden; }
.srclist { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; } .srclist li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.srclist input { grid-row: span 2; width: 20px; height: 20px; accent-color: var(--acc); margin-top: 3px; } .srclist label { font-weight: 600; cursor: pointer; } .srclist small { color: var(--mute); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; background: #666; vertical-align: 1px; } .dot.ok { background: #7ddc7d; } .dot.bad { background: var(--bad); }
.row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 28px 18px 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; } .foot h3 { margin: 0 0 6px; color: var(--dim); font-size: 14px; } .foot p { margin: 0; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #111; padding: 9px 16px; border-radius: 999px; font-size: 14px; max-width: 90vw; }
.deck.in-dlg { position: sticky; left: auto; right: auto; bottom: 0; margin: 0; max-width: none; border-radius: 0 0 17px 17px; border-width: 1px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
@media (max-width: 760px) {
  :root { --rh: 160px; }
  .top { padding-left: 12px; padding-right: 12px; } .q { order: 3; flex-basis: 100%; max-width: none; }
  #tabs, #status { padding-left: 12px; padding-right: 12px; } .shelf > h2 { margin-left: 12px; } .rail { padding-left: 12px; padding-right: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 12px; padding-right: 12px; gap: 16px 10px; }
  .cover { grid-template-columns: 96px 1fr; } #dbody { padding: 0 14px 16px; }
  .deck { grid-template-columns: 42px 1fr auto auto; grid-template-areas: "art t c x" "s s s s"; } .deck img { grid-area: art; width: 42px; height: 42px; } .dkt { grid-area: t; } .dkc { grid-area: c; } .dks { grid-area: s; } #dkrate { display: none; } #dkclose { grid-area: x; }
  body.deck-on { padding-bottom: calc(env(safe-area-inset-bottom) + 130px); } #toast { bottom: calc(env(safe-area-inset-bottom) + 130px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.stage.widget iframe { aspect-ratio: auto; height: 180px; }
.watch { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px; } .watch .card { flex: none; width: 150px; } .watch .card .art { aspect-ratio: 16/10; }
.back { margin-bottom: 10px; }
.srclist input:disabled + label { opacity: .6; cursor: default; }

.btn.safe { border-color: #2e7d5b; color: #8fe0b8; } .btn.safe:not(.on) { border-color: var(--bad); color: var(--bad); }
@media (max-width: 640px) { .top .btn.safe { padding-left: 10px; padding-right: 10px; font-size: 12.5px; } }
.card .score { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.78); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* ── v2: featured film, shelf arrows, jump chips, backdrop ── */
.hero { position: relative; margin: 4px 18px 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); min-height: 260px; }
.hero .hbg { position: absolute; inset: -40px; background: var(--bd) center/cover no-repeat; filter: blur(34px) saturate(1.25) brightness(.55); transform: scale(1.1); }
.hero .hin { position: relative; display: flex; gap: 22px; padding: 24px; align-items: flex-end; background: linear-gradient(90deg, rgba(8,8,10,.92), rgba(8,8,10,.55) 60%, rgba(8,8,10,.2)); min-height: 260px; }
.hero .hpost { width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.6); flex: none; }
.hero .htxt { max-width: 640px; } .hero .kick { color: var(--acc); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero h2 { margin: 4px 0 4px; font-size: clamp(24px, 4vw, 38px); line-height: 1.1; letter-spacing: -.02em; } .hero .meta { color: var(--dim); font-size: 14px; }
.hero p { margin: 10px 0 0; color: #d8d2c6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.shelf { position: relative; } .snav { position: absolute; right: 14px; top: -4px; display: flex; gap: 4px; } .touch .snav { display: none; }
.snav .ic { width: 34px; height: 34px; border: 1px solid var(--line); font-size: 20px; }
.rail .skel { flex: none; width: calc(var(--rh) * .667); height: var(--rh); margin: 0; }
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 16px; scrollbar-width: none; } .jump::-webkit-scrollbar { display: none; }
.jump button { flex: none; border: 1px solid var(--line); background: var(--bg2); color: var(--dim); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; } .jump button:hover { color: var(--ink); border-color: var(--acc); }
.card .art img { transition: transform .35s ease; } .card .open:hover .art img { transform: scale(1.06); }
#dlg { position: relative; } #dlg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; background: var(--bd, none) center/cover no-repeat; filter: blur(30px) brightness(.5); opacity: .55; pointer-events: none; z-index: 0; } #dlg > * { position: relative; z-index: 1; }
@media (min-width: 1200px) { :root { --rh: 220px; } }
@media (max-width: 640px) { .hero { margin: 4px 12px 22px; } .hero .hin { align-items: flex-start; gap: 14px; padding: 16px; min-height: 0; } .hero { min-height: 0; } .hero .hpost { width: 88px; } .hero p { -webkit-line-clamp: 2; font-size: 13.5px; } .hero h2 { font-size: 22px; } .hero .acts .btn { height: 38px; padding: 0 14px; } .snav { display: none; } .jump { padding: 0 12px 14px; } }

/* ══ v3 · "Gold Reel": a layout and look of MentiPlayer's own ══
   A cinema-black room lit in gold: a film-strip rail down the side on a big screen, a tab bar under the thumb on a phone,
   shelves numbered like reels, cards that play from where they sit, and a now-playing view that fills the screen. */
:root { --disp: "Syne", ui-sans-serif, -apple-system, "Segoe UI", sans-serif; --side: 236px; --gold: linear-gradient(135deg, #ffe2a3, #f0b24a 45%, #c98a2b); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
h1, h2, .logo, .hero h2, .np h2 { font-family: var(--disp); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.logo .reel { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 50%, #0b0a08 0 3px, transparent 3.5px), radial-gradient(circle at 50% 20%, #0b0a08 0 3px, transparent 3.5px), radial-gradient(circle at 80% 62%, #0b0a08 0 3px, transparent 3.5px), radial-gradient(circle at 20% 62%, #0b0a08 0 3px, transparent 3.5px), var(--gold); box-shadow: 0 0 18px rgba(240,178,74,.35); animation: reel 14s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }
.side { position: relative; z-index: 25; }
#tabs button i { font-style: normal; display: inline-block; width: 1.4em; text-align: center; opacity: .85; }
.qwrap { position: relative; flex: 1; min-width: 0; display: flex; } .qwrap input { width: 100%; }
#sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: rgba(16,15,12,.97); border: 1px solid rgba(240,178,74,.25); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); z-index: 40; max-height: 60vh; overflow: auto; }
#sugg li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; } #sugg li:hover, #sugg li.on { background: rgba(240,178,74,.12); }
#sugg i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--bg3); color: var(--acc); flex: none; } #sugg span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #sugg small { color: var(--mute); font-size: 12px; }
/* shelves numbered like reels */
#home, #grid { counter-reset: reel; }
.shelf > h2::before { counter-increment: reel; content: counter(reel, decimal-leading-zero); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--acc); letter-spacing: .12em; padding: 4px 6px; border: 1px solid rgba(240,178,74,.35); border-radius: 6px; align-self: center; }
.shelf > h2 { font-size: 19px; letter-spacing: -.02em; }
/* cards */
.card .art { border-radius: 14px; } .card .open:hover .art, .card .open:focus-visible .art { border-color: transparent; box-shadow: 0 0 0 1.5px #f0b24a, 0 14px 34px rgba(0,0,0,.55), 0 0 30px rgba(240,178,74,.18); }
.card .qp { position: absolute; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: #1a1200; font-size: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; top: calc(var(--rh) - 52px); }
.grid .card .qp, .watch .card .qp, .topres .card .qp { top: auto; bottom: 64px; }
.card:hover .qp, .card:focus-within .qp, .touch .card .qp { opacity: 1; transform: none; }
.card .heart { z-index: 4; }
/* search, laid out by kind */
#grid.grouped { display: block; padding: 0; } #grid.grouped .shelf { margin-top: 6px; }
.seeall { border: 1px solid var(--line); background: transparent; color: var(--dim); border-radius: 999px; padding: 0 14px; height: 34px; font-weight: 600; font-size: 13px; } .seeall:hover { color: var(--ink); border-color: var(--acc); }
.touch .snav { display: flex; } .touch .snav .ic { display: none; }
.topres { display: flex; gap: 24px; align-items: flex-end; margin: 8px 18px 26px; padding: 22px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(240,178,74,.16), transparent 60%), var(--bg2); border: 1px solid rgba(240,178,74,.18); }
.topres .toptxt { flex: 1; min-width: 0; } .topres .kick { color: var(--acc); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; } .topres h2 { margin: 6px 0 4px; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; } .topres .meta { color: var(--dim); } .topres .acts { margin-top: 16px; }
.topres .card { width: 170px; flex: none; } .topres .card h3, .topres .card .meta { display: none; }
/* the deck floats; tap it for the full view */
.deck { border-radius: 18px; border: 1px solid rgba(240,178,74,.22); background: rgba(14,13,11,.9); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4); }
.deck .dkt, .deck #dkart { cursor: pointer; } .deck input[type=range], .np input[type=range] { accent-color: #f0b24a; }
.np { position: fixed; inset: 0; z-index: 70; overflow: auto; background: #070706; padding: calc(env(safe-area-inset-top) + 10px) 18px calc(env(safe-area-inset-bottom) + 20px); }
.np .npbg { position: fixed; inset: -60px; background: var(--bd, none) center/cover no-repeat; filter: blur(60px) saturate(1.4) brightness(.45); transform: scale(1.2); z-index: -1; }
.np .nphead { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; } .np .nphead .ic { font-size: 26px; }
.np .npbody { max-width: 560px; margin: 0 auto; display: grid; gap: 18px; } .np #npart { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin: 14px auto 0; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(240,178,74,.15); background: var(--bg3); }
.np h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); letter-spacing: -.02em; line-height: 1.1; } .np #npsub { margin: 4px 0 0; color: var(--dim); } .np .npacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.np .npseek { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--dim); } .np .npseek input { width: 100%; } .np.live .npseek input { visibility: hidden; }
.np .npctl { display: flex; justify-content: center; gap: 22px; align-items: center; } .np .npctl .ic { width: 52px; height: 52px; font-size: 22px; } .np .npctl .ic.big { width: 72px; height: 72px; font-size: 28px; background: var(--gold); }
.np h3 { margin: 6px 0 0; font-family: var(--disp); font-size: 15px; letter-spacing: .02em; color: var(--dim); } .npq { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: q; }
.npq li { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; } .npq li::before { counter-increment: q; content: counter(q); grid-row: span 2; color: var(--mute); font-size: 12px; align-self: center; text-align: right; }
.npq li:hover { background: rgba(255,255,255,.05); } .npq li.on { background: rgba(240,178,74,.14); } .npq li.on b { color: var(--acc); } .npq small { color: var(--mute); }
body.np-on { overflow: hidden; } body.np-on .deck { visibility: hidden; }

/* big screens: a film-strip rail down the side */
@media (min-width: 1000px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 18px 30px; background: linear-gradient(180deg, rgba(14,12,9,.96), rgba(8,8,7,.98)); border-right: 1px solid rgba(240,178,74,.14); }
  .side::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(240,178,74,.22) 8px 16px, transparent 16px 26px); -webkit-mask: linear-gradient(90deg, #000 0 100%); border-radius: 3px; opacity: .8; }
  #tabs { flex-direction: column; gap: 2px; padding: 0; border: 0; overflow: visible; }
  #tabs button { text-align: left; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; color: var(--dim); border: 0; position: relative; }
  #tabs button:hover { background: rgba(255,255,255,.04); color: var(--ink); }
  #tabs button.on { background: rgba(240,178,74,.12); color: #ffd98c; } #tabs button.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
  .sidefoot { margin-top: auto; display: grid; gap: 8px; } .sidefoot .btn { width: 100%; }
  .top, main, .foot { margin-left: var(--side); } .top { padding-left: 26px; padding-right: 26px; } .q { max-width: 760px; }
  .deck { left: calc(var(--side) + 16px); right: 16px; bottom: calc(env(safe-area-inset-bottom) + 14px); }
  #toast { left: calc(50% + var(--side) / 2); }
}
/* phones and small screens: the logo on top, the tabs under your thumb */
@media (max-width: 999px) {
  .side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 2px; }
  .sidefoot { display: flex; gap: 8px; } .sidefoot .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .top { padding-top: 8px; } .top .q { order: 0; flex-basis: 100%; max-width: none; }
  #tabs { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; gap: 0; padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); background: rgba(10,9,8,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(240,178,74,.16); border-bottom: 0; overflow-x: auto; }
  #tabs button { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 12px; font-size: 10.5px; font-weight: 600; color: var(--mute); border: 0; white-space: nowrap; }
  #tabs button i { font-size: 19px; width: auto; } #tabs button.on { background: transparent; color: #ffd98c; } #tabs button.on i { text-shadow: 0 0 14px rgba(240,178,74,.7); }
  body { padding-bottom: calc(env(safe-area-inset-bottom) + 76px); } body.deck-on { padding-bottom: calc(env(safe-area-inset-bottom) + 76px + 130px); }
  .deck { bottom: calc(env(safe-area-inset-bottom) + 72px); left: 8px; right: 8px; }
  #toast { bottom: calc(env(safe-area-inset-bottom) + 150px); }
  .topres { flex-direction: column-reverse; align-items: flex-start; margin: 6px 12px 22px; padding: 18px; } .topres .card { width: 120px; }
}
@media (max-width: 420px) { .logo { font-size: 19px; } .logo .reel { width: 22px; height: 22px; } .sidefoot .btn.safe { font-size: 12px; padding: 0 10px; } }
.logo { gap: 0; } .logo .reel { margin-right: 10px; } .topres .card .qp { display: none; }
