:root {
  --bg: #12161c; --card: #1c222b; --card2: #242b36; --line: #2e3744; --text: #e8ecf1; --dim: #9aa5b4;
  --accent: #e5484d; --accent2: #b5333a; --warn: #e5a03a; --bad: #e0605a; --blue: #5aa2e0;
  --top: env(safe-area-inset-top); --bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }  /* no double-tap zoom */
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: var(--card2); border-radius: 10px; padding: 10px 14px; }
button:active { opacity: .7; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: transparent; border: 1px solid var(--line); }
button.wide { width: 100%; margin-top: 18px; }
input { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; padding: 0; flex: none; accent-color: var(--accent); }
h2 { font-size: 17px; margin: 22px 0 8px; }

/* login */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.login-box { text-align: center; width: 300px; }
.login-icon { width: 76px; height: 76px; border-radius: 18px; }
.login-box h1 { margin: 10px 0 4px; font-size: 24px; }
#login-msg { color: var(--dim); min-height: 22px; }
.dots { display: flex; gap: 12px; justify-content: center; margin: 14px 0 22px; min-height: 16px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--text); display: block; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.keypad button { height: 66px; font-size: 26px; border-radius: 33px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-10px) } 75% { transform: translateX(10px) } }

/* layout */
.top { position: sticky; top: 0; z-index: 5; background: rgba(18,22,28,.94); backdrop-filter: blur(10px);
  padding: calc(var(--top) + 10px) 16px 10px; display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); }
.top h1 { font-size: 22px; margin: 0; }
.status { color: var(--dim); font-size: 13px; }
main { padding: 12px 14px calc(var(--bottom) + 90px); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(22,27,34,.97);
  border-top: 1px solid var(--line); padding: 6px 4px calc(var(--bottom) + 6px); z-index: 6; }
.tabs button { flex: 1; background: none; padding: 4px 0; font-size: 11px; color: var(--dim); display: flex;
  flex-direction: column; align-items: center; gap: 2px; }
.tabs button .ic { font-size: 21px; filter: grayscale(1); opacity: .7; }
.tabs button.on { color: var(--accent); }
.tabs button.on .ic { filter: none; opacity: 1; }

.searchbar { display: flex; gap: 8px; }
.searchbar button { background: var(--accent); color: #fff; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; padding: 7px 12px; border-radius: 18px; font-size: 14px; background: var(--card); }
.chips button.on { background: var(--accent); color: #fff; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--dim); font-size: 14px; }
.hint { color: var(--dim); font-size: 14px; }
.note { background: #2b2414; color: #f2d49a; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }
.row-btns { display: flex; gap: 10px; margin: 12px 0; }
.row-btns .primary { flex: 1; }

/* cards */

/* ---------- Razzite Video ---------- */
main { padding: 10px 12px calc(var(--bottom) + 40px); }
.bar1 { display: flex; gap: 8px; }
.bar1 input { flex: 1; }
.bar2 { display: flex; gap: 8px; margin-top: 8px; }
.bar2 select { flex: 1; font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.count { color: var(--dim); font-size: 13px; margin: 8px 2px 0; }
h2.row-t { font-size: 16px; margin: 16px 2px 8px; }
.hrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .vt { flex: 0 0 62%; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.vt { background: none; padding: 0; text-align: left; border-radius: 10px; }
.vt .imw { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--card2); }
.vt .imw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt .dur { position: absolute; right: 5px; bottom: 7px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 6px; }
.vt .fav { position: absolute; left: 6px; top: 4px; color: #ff6b8b; font-size: 16px; text-shadow: 0 0 3px #000; }
.vt .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.vt .prog i { display: block; height: 100%; background: var(--accent); }
.vt .tt { font-size: 13px; line-height: 1.25; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vt .st { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { width: 100%; margin-top: 14px; }
/* player */
.player { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.player video { width: 100%; max-height: 45vh; background: #000; display: block; margin-top: var(--top); }
.pbar { display: flex; align-items: center; gap: 8px; padding: calc(var(--top) + 6px) 10px 6px; }
.pbar button { padding: 6px 12px; }
.pbody { padding: 10px 14px calc(var(--bottom) + 30px); }
.pbody h2 { margin: 4px 0; font-size: 18px; }
.pacts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pacts button.on { background: var(--accent); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags button { font-size: 13px; padding: 4px 10px; border-radius: 14px; }
.eps { margin-top: 14px; }
.ep { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--card); margin-top: 6px; padding: 6px; }
.ep img { width: 110px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--card2); flex: none; }
.ep.cur { outline: 2px solid var(--accent); }
.ep small { color: var(--dim); }
.lockb { font-size: 13px; padding: 5px 10px; }
.top .acts { display: flex; gap: 6px; }
.vt { min-width: 0; }
.vt .tt { overflow-wrap: anywhere; }
.vgrid > * { min-width: 0; }
:root { --on-accent: #fff; }

/* sideways = the video fills the screen (rotate back to see the details again) */


/* Video with touch gestures */
.vx { position: relative; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vx video { display: block; width: 100%; max-height: 60vh; margin: 0; background: #000; object-fit: contain; }
.vx.full { position: fixed; inset: 0; z-index: 46; border-radius: 0; } .vx.full video { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.vx-pad { position: absolute; inset: 0; touch-action: pan-y; } .vx.full .vx-pad { touch-action: none; }
.vx-say { position: absolute; top: 0; bottom: 0; width: 42%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; opacity: 0; transition: opacity .15s; pointer-events: none; text-shadow: 0 0 6px #000; }
.vx-say.left { left: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.22), transparent 70%); } .vx-say.right { right: 0; background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.22), transparent 70%); } .vx-say.on { opacity: 1; }
.vx-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; padding: 0; } .vx.playing .vx-big { display: none; }
.vx-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vx.show .vx-bar { opacity: 1; pointer-events: auto; } .vx.full .vx-bar { padding: 30px max(env(safe-area-inset-right), 12px) calc(env(safe-area-inset-bottom) + 10px) max(env(safe-area-inset-left), 12px); }
.vx-bar button { background: none; color: #fff; padding: 8px; min-width: 40px; font-size: 17px; } .vx-bar span { font-size: 12px; font-variant-numeric: tabular-nums; } .vx-bar input { flex: 1; min-width: 40px; padding: 0; border: 0; background: none; accent-color: #7c8cf8; }
.player .vx { margin-top: var(--top); } .player .vx video { margin-top: 0; max-height: 45vh; } .player .vx.full { margin: 0; } .player .vx.full video { max-height: none; }

.vx-wait { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; } .vx.busy.playing .vx-wait { display: flex; }
.vx-q { font-size: 12px !important; white-space: nowrap; } .vx-menu { position: absolute; right: 10px; bottom: 58px; z-index: 2; background: rgba(28,34,43,.97); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; max-height: 75%; overflow: auto; }
.vx-menu button { background: none; color: #fff; padding: 9px 16px; text-align: left; } .vx-menu button.on { color: #7c8cf8; font-weight: 700; }

.vx-sub { position: absolute; left: 6%; right: 6%; bottom: 12px; text-align: center; white-space: pre-line; pointer-events: none; color: #fff; font-size: clamp(15px, 2.6vw, 26px); line-height: 1.3; font-weight: 600; text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 2px #000; transition: bottom .2s; }
.vx.show .vx-sub { bottom: 62px; } .vx.full .vx-sub { bottom: calc(env(safe-area-inset-bottom) + 18px); } .vx.full.show .vx-sub { bottom: calc(env(safe-area-inset-bottom) + 70px); }
.vx-r { display: flex; flex-wrap: wrap; max-width: 230px; } .vx-menu { max-height: 70%; overflow-y: auto; }

/* ---- shared player, reader and game screen (whole rules from the Razzite app) ---- */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--dim); border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg) } }
#play { position: fixed; inset: 0; z-index: 42; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; padding: var(--top) env(safe-area-inset-right) var(--bottom) env(safe-area-inset-left); }
.pl-stage { position: absolute; top: var(--top); bottom: calc(var(--bottom) + 60px); left: env(safe-area-inset-left); right: env(safe-area-inset-right); }
#play .pl-stage { overflow: hidden; }
.pl-cur { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; background: rgba(124,140,248,.7); box-shadow: 0 0 5px #000; pointer-events: none; }
.pl-show { position: absolute; right: max(env(safe-area-inset-right), 8px); bottom: calc(var(--bottom) + 8px); z-index: 2; background: rgba(50,58,72,.55); color: #fff; }
#play.side .pl-stage { top: 0; bottom: 0; right: calc(max(env(safe-area-inset-right), 8px) + 70px); }
#play canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: var(--bottom); display: flex; justify-content: center; gap: 5px; padding: 8px; }
.pl-bar button, .pl-more button { background: rgba(50,58,72,.75); color: #fff; padding: 10px 11px; font-size: 14px; }
#play.side .pl-bar { flex-direction: column; left: auto; right: max(env(safe-area-inset-right), 8px); width: 66px; top: 0; bottom: 0; padding: 0; }
#play.side .pl-bar button { padding: 11px 2px; font-size: 12px; width: 100%; }
.pl-bar button { white-space: nowrap; padding-left: 8px !important; padding-right: 8px !important; font-size: 13px !important; }
.pl-bar .pl-x { background: rgba(150,50,50,.85); }
.pl-more { position: absolute; bottom: calc(var(--bottom) + 64px); left: 12px; right: 12px; max-width: 420px; margin: 0 auto; background: rgba(28,34,43,.96); border-radius: 16px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
#play.side .pl-more { bottom: 12px; }
.pl-more p { margin: 4px 2px 0; font-size: 13px; color: var(--dim); }
.pl-msg { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 30px; color: #ddd; pointer-events: none; }
.pl-msg button { pointer-events: auto; }
#rz { position: fixed; inset: 0; z-index: 41; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rz-view { position: absolute; inset: 0; }
.rz-view.pages { overflow: hidden; touch-action: none; }
.rz-view.scroll { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y; padding: calc(var(--top) + 48px) 0 calc(var(--bottom) + 70px); overflow-anchor: none; }
.rz-p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.rz-p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.rz-p.ok img { opacity: 1; }
.rz-p.ok .spin { display: none; }
.rz-p.bad::after, .rz-c.bad::after { content: "Can't show this one"; color: #999; }
.rz-p.bad .spin, .rz-c.bad img { display: none; }
.rz-strip { position: relative; margin: 0 auto; }
.rz-c { background: #0c0e12; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rz-c img { width: 100%; display: block; pointer-events: none; }
.rz-top, .rz-bot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; background: rgba(14,17,23,.8); backdrop-filter: blur(14px); transition: opacity .2s; z-index: 2; }
.rz-top { top: 0; padding: calc(var(--top) + 4px) 10px 6px; }
.rz-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 14px; }
.rz-top button { background: none; color: var(--accent); padding: 8px 10px; white-space: nowrap; }
.rz-top [data-r="close"] { font-size: 26px; padding: 0 14px; }
.rz-bot { bottom: 0; padding: 8px 12px calc(var(--bottom) + 8px); }
.rz-bot input { flex: 1; min-width: 40px; padding: 0; background: none; border: 0; accent-color: var(--accent); }
.rz-bot span { font-size: 13px; color: var(--dim); white-space: nowrap; }
.rz-bot button { font-size: 12px; padding: 8px 9px; white-space: nowrap; }
#rz.bare .rz-top, #rz.bare .rz-bot { opacity: 0; pointer-events: none; }
.rz-next { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 80px); z-index: 1; }
.rz-more { display: block; margin: 20px auto 60px; }
.vx { position: relative; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vx video { display: block; width: 100%; max-height: 60vh; margin: 0; background: #000; object-fit: contain; }
.vx.full { position: fixed; inset: 0; z-index: 46; border-radius: 0; }
.vx.full video { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.vx-pad { position: absolute; inset: 0; touch-action: pan-y; }
.vx.full .vx-pad { touch-action: none; }
.vx-say { position: absolute; top: 0; bottom: 0; width: 42%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; opacity: 0; transition: opacity .15s; pointer-events: none; text-shadow: 0 0 6px #000; }
.vx-say.left { left: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.22), transparent 70%); }
.vx-say.right { right: 0; background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.22), transparent 70%); }
.vx-say.on { opacity: 1; }
.vx-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; padding: 0; }
.vx.playing .vx-big { display: none; }
.vx-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vx.show .vx-bar { opacity: 1; pointer-events: auto; }
.vx.full .vx-bar { padding: 30px max(env(safe-area-inset-right), 12px) calc(env(safe-area-inset-bottom) + 10px) max(env(safe-area-inset-left), 12px); }
.vx-bar button { background: none; color: #fff; padding: 8px; min-width: 40px; font-size: 17px; }
.vx-bar span { font-size: 12px; font-variant-numeric: tabular-nums; }
.vx-bar input { flex: 1; min-width: 40px; padding: 0; border: 0; background: none; accent-color: #7c8cf8; }
.pl-more .pl-stat { width: 100%; color: var(--accent); }
.vx-wait { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.vx.busy.playing .vx-wait { display: flex; }
.vx-q { font-size: 12px !important; white-space: nowrap; }
.vx-menu { position: absolute; right: 10px; bottom: 58px; z-index: 2; background: rgba(28,34,43,.97); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; max-height: 75%; overflow: auto; }
.vx-menu button { background: none; color: #fff; padding: 9px 16px; text-align: left; }
.vx-menu button.on { color: #7c8cf8; font-weight: 700; }
.vx-sub { position: absolute; left: 6%; right: 6%; bottom: 12px; text-align: center; white-space: pre-line; pointer-events: none; color: #fff; font-size: clamp(15px, 2.6vw, 26px); line-height: 1.3; font-weight: 600; text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 2px #000; transition: bottom .2s; }
.vx.show .vx-sub { bottom: 62px; }
.vx.full .vx-sub { bottom: calc(env(safe-area-inset-bottom) + 18px); }
.vx.full.show .vx-sub { bottom: calc(env(safe-area-inset-bottom) + 70px); }
.vx-r { display: flex; flex-wrap: wrap; max-width: 230px; }
.vx-menu { max-height: 70%; overflow-y: auto; }

/* ---- Razzite Media ---- */
.box { max-width: 380px; margin: 0 auto; padding: calc(var(--top) + 40px) 18px; text-align: center; }
.box img { width: 76px; border-radius: 18px; }
.box input[type=text], .box input[type=password] { margin: 8px 0; text-align: center; }
.box label { display: flex; gap: 10px; text-align: left; margin: 12px 0; }
.err { color: var(--warn); min-height: 22px; }
.mark { position: absolute; z-index: 5; pointer-events: none; color: #fff; opacity: .2; font-size: 15px; text-shadow: 0 0 3px #000; transition: left 2s, top 2s; }
.asks { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.asks > div { background: var(--card); width: 100%; border-radius: 16px 16px 0 0; padding: 14px 16px calc(var(--bottom) + 18px); display: grid; gap: 10px; }
.asks h2 { margin: 0; overflow-wrap: anywhere; }
.pf-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; } .pf-g button { background: none; display: grid; justify-items: center; gap: 6px; min-width: 0; } .pf-g b { overflow-wrap: anywhere; } .pf-g small { color: var(--dim); min-height: 1em; }
.pf-a { width: 92px; height: 92px; border-radius: 22px; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-size: 48px; } .pf-s { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; vertical-align: middle; }
.pf-i { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; } .pf-i button { width: 44px; height: 44px; padding: 0; font-size: 22px; } #sw { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; } .top h1 { white-space: nowrap; font-size: 19px; } .top { align-items: center; }
.pf-a, .pf-s { position: relative; overflow: hidden; } .pf-a img, .pf-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; } .pf-l { font-size: inherit; } .box.pf .pf-a img { width: 100%; }
.pf-b { background: none; padding: 0; } .pf-t { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; } .pf-t button.on { background: var(--accent); color: #fff; }
.err2 { color: var(--warn); margin: 0; min-height: 20px; } .av-b { max-height: 62vh; overflow-y: auto; } .av-c { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .av-c button { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 8px; min-width: 0; } .av-c img, .av-c .pf-a { width: 52px; height: 52px; border-radius: 14px; grid-row: span 2; font-size: 28px; } .av-c small { color: var(--dim); }
.av-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 10px; } .av-g button { padding: 0; aspect-ratio: 1; font-size: 36px; overflow: hidden; border-radius: 18px; } .av-g img { width: 100%; height: 100%; display: block; }

/* ================= Razzite Holoverse look (Nov 26): the PC's hologram theater ================= */
:root { --bg: #140a26; --card: #21123a; --card2: #2c1a4b; --line: #3d2763; --text: #f4efff; --dim: #b8a6dc; --accent: #ff4fd8; --accent2: #d43bb3; --cyan: #4fd8ff; }
html { background: var(--bg); }
body { background: linear-gradient(#120826d9, #1a0b33c0 40%, #0c0618f0), url(holo-bg.png) center top / cover fixed; min-height: 100vh; }
button.primary { background: var(--accent); color: #200a2a; font-weight: 700; border-radius: 24px; }
.top { background: rgba(20,10,38,.82) !important; border-bottom: 1px solid var(--line) !important; align-items: center !important; }
.top h1 { display: flex; align-items: center; gap: 10px; font-size: 13px !important; letter-spacing: .32em; text-transform: uppercase; font-weight: 700; }
.top h1 img { width: 30px; height: 30px; border-radius: 8px; }
.chips { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: center; gap: 10px; padding: 10px 10px calc(var(--bottom) + 12px); background: linear-gradient(#0c061800, #0c0618 40%); }
.chips button { flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 4px; font-size: 11.5px; font-weight: 700; white-space: normal; line-height: 1.15; background: rgba(20,10,42,.85); border: 2px solid #4fb8d8; color: var(--text); }
.chips button.on { background: var(--accent); border-color: #fff; color: #200a2a; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 65%, transparent); }
main { padding-bottom: calc(var(--bottom) + 110px) !important; }
.hv-t { text-align: center; margin-top: 10px; } .hv-t h2 { margin: 0; font-size: 21px; } .hv-t p { margin: 3px 0 0; color: var(--dim); font-size: 13px; min-height: 1em; }
.hv-st { position: relative; height: 230px; perspective: 700px; margin: 14px -14px 0; overflow: hidden; }
.hv-st.tall { height: 330px; }
.hv-c { position: absolute; left: 50%; top: 12px; width: 62vw; max-width: 300px; aspect-ratio: 16 / 9; padding: 0; border-radius: 6px; overflow: hidden; background: var(--card2); transition: transform .35s; -webkit-box-reflect: below 6px linear-gradient(#0000 70%, #fff3); }
.hv-st.tall .hv-c { width: 46vw; max-width: 220px; aspect-ratio: 2 / 3; }
.hv-c img { width: 100%; height: 100%; object-fit: cover; display: block; } .hv-c b { display: grid; place-items: center; height: 100%; padding: 8px; font-size: 13px; }
.hv-c.mid { outline: 3px solid var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.hv-pad { position: absolute; left: 50%; bottom: 18px; width: 70%; height: 34px; transform: translateX(-50%); border-radius: 50%; border: 2.5px solid var(--cyan); box-shadow: 0 0 18px #4fd8ff99, inset 0 0 14px #4fd8ff66; }
.hv-st.tall .hv-pad { bottom: 22px; }
.hv-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 110px; background: repeating-linear-gradient(90deg, #ff4fd833 0 1px, #0000 1px 40px), repeating-linear-gradient(#ff4fd833 0 1px, #0000 1px 22px); transform: perspective(260px) rotateX(58deg); transform-origin: bottom; opacity: .6; }
.hv-go { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 6px; } .hv-go button { padding: 11px 28px; } .hv-go span { color: var(--dim); font-size: 12.5px; }
.vt { background: var(--card) !important; border: 1px solid var(--line) !important; }
input { background: rgba(33,18,58,.85) !important; }
.top .status { display: flex; gap: 6px; align-items: center; } .top .status button { padding: 6px 10px; font-size: 13px; white-space: nowrap; } .top h1 { letter-spacing: .2em !important; font-size: 12px !important; } .pf-s { width: 24px; height: 24px; }

/* Nov 26: the 18+ library button (the profile's chosen picture, furthest right) and its own sections */
.chips .b18 { padding: 0 !important; overflow: hidden; border-color: #e5484d !important; position: relative; }
.chips .b18 .pf-18 { width: 100%; height: 100%; border-radius: 50%; display: block; position: relative; overflow: hidden; }
.chips .b18 .pf-18 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chips .b18.on { box-shadow: 0 0 0 3px #e5484d, 0 0 18px rgba(229,72,77,.7); }
.chips .b18::after { content: "18+"; position: absolute; right: -2px; bottom: -2px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 800; border-radius: 8px; padding: 1px 5px; }
.sub18 { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom) + 88px); z-index: 6; display: flex; justify-content: center; gap: 8px; }
.sub18 button { padding: 7px 14px; border-radius: 18px; font-size: 13px; font-weight: 700; background: rgba(40,8,20,.9); border: 1.5px solid #e5484d; color: #fff; }
.sub18 button.on { background: #e5484d; }
.pf-b18 { width: 64px; height: 64px; padding: 0; border-radius: 50%; overflow: hidden; position: relative; border: 2px solid #e5484d; background: var(--card2); }
.pf-b18 .pf-18 { position: absolute; inset: 0; display: block; } .pf-b18 .pf-18 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-b18 small { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; }
.empty { text-align: center; opacity: .75; padding: 40px 0; }
.hidden { display: none !important; }
main { padding-bottom: calc(var(--bottom) + 150px); }

/* filters (Nov 27) */
.fbar { display: flex; gap: 8px; align-items: center; margin: 8px 0 2px; } .fbar select { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: #fff; background: rgba(20,10,42,.85); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px; }
.fbar button { white-space: nowrap; } .fbar button.on { background: var(--accent); color: #200a2a; border-color: var(--accent); font-weight: 700; }
.fcount { margin: 4px 2px 0; font-size: 13px; opacity: .75; } #f { margin-top: 10px; }

/* shelves by content (Nov 27) */
.shelf { margin: 14px 0 4px; } .sh-t { display: flex; width: 100%; justify-content: space-between; align-items: baseline; background: none; border: 0; padding: 4px 2px 8px; color: inherit; text-align: left; }
.sh-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sh-t span { opacity: .7; font-size: 13px; flex: none; margin-left: 8px; }
.shelf .hrow .vt { flex: 0 0 40%; } #gb { flex: 1; }
