:root {
  --bg: #0f0f0e;
  --bg-2: #161614;
  --bg-3: #1e1e1b;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #edebe6;
  --ink-2: #a9a59e;
  --ink-3: #75716b;
  --paper: #f2efe8;
  --paper-ink: #141412;
  --paper-2: #6b675f;
  --pink: #ff4d97;
  --pink-ink: #d92d76;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(14px, 3.2vw, 36px);
  --top-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 340px);
  align-items: center;
  gap: 20px;
  padding: 12px var(--pad) 10px;
}
.mark { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mark-word {
  font-weight: 800; font-stretch: 118%;
  font-size: 17px; letter-spacing: .06em;
  white-space: nowrap;
}
.mark-count { font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; letter-spacing: .02em; }
.tabs { display: flex; gap: 4px; justify-self: center; }
.tabs a {
  white-space: nowrap;
  font-size: 13px; font-weight: 600; font-stretch: 92%;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 12px 7px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--ink); background: var(--bg-2); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--pink); border-radius: 8px 8px 2px 2px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 38px;
}
.search:focus-within { border-color: var(--line-2); }
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--ink); font: 400 14px var(--sans);
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { filter: invert(.7); }

.rail-wrap { position: relative; }
.rail-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 11px; width: 42px; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,15,14,0), var(--bg) 85%);
}
.rail {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--pad) 11px;
  scroll-padding: 0 var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail a {
  flex: none;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px 5px;
  white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.rail a b { font: 500 10.5px var(--mono); color: var(--ink-3); }
.rail a:hover { color: var(--ink); border-color: var(--line-2); }
.rail a.on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.rail a.on b { color: var(--paper-2); }

/* ------------------------------------------------------------------ layout */
main { padding: 6px var(--pad) 60px; outline: 0; min-height: 70vh; }
.cat { padding-top: 34px; scroll-margin-top: calc(var(--top-h) + 4px); }
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cat-name {
  margin: 0;
  font-weight: 800; font-stretch: 84%;
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1;
  letter-spacing: .01em; text-transform: uppercase;
}
.cat-blurb { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; max-width: 62ch; }
.cat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.cat-count { font: 500 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.go {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: 5px 10px; white-space: nowrap;
  display: inline-flex; gap: 6px; align-items: center;
}
.go:hover { border-color: var(--ink-2); }
.go i { font-style: normal; color: var(--pink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 22px 16px;
}
.also-row { margin-top: 18px; }
.also-label { font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }

/* ------------------------------------------------------------------ the slab (a finished edit) */
.slab { display: block; position: relative; text-align: left; width: 100%; }
.slab-case {
  border-radius: 12px;
  padding: 5px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.015) 38%, rgba(255,255,255,.04)),
    var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease;
}
.slab:hover .slab-case { transform: translateY(-2px); border-color: var(--line-2); }
.label {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  align-items: stretch;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 7px 7px 3px 3px;
  padding: 7px 8px 7px 9px;
  min-height: 52px;
}
.label-set {
  font: 500 9.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.label-title {
  margin-top: 3px;
  font-weight: 800; font-stretch: 78%;
  font-size: 14.5px; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.label-grade {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  border-left: 1px solid rgba(20,20,18,.14); padding-left: 8px; min-width: 34px;
}
.label-grade b { font-weight: 800; font-stretch: 82%; font-size: 23px; line-height: .95; color: var(--pink-ink); }
.label-grade span { font: 600 8.5px var(--mono); letter-spacing: .08em; color: var(--paper-2); }
.window {
  margin-top: 5px;
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  background: #0a0a09;
}
.window img { width: 100%; height: 100%; object-fit: cover; }
.window .tag {
  position: absolute; left: 6px; bottom: 6px;
  font: 500 10.5px var(--mono); color: #fff;
  background: rgba(10,10,9,.72); border-radius: 5px; padding: 2px 6px;
}
.window .tag.never { left: auto; right: 6px; color: var(--paper-ink); background: var(--paper); }
.slab-meta {
  margin: 8px 2px 0;
  font-size: 12.5px; line-height: 1.35; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------------------ raw (an ungraded clip) */
.raw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 18px 12px;
}
.raw { display: block; width: 100%; text-align: left; }
.frame {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: #0a0a09;
  border: 1px solid var(--line);
}
.frame.wide { aspect-ratio: 16 / 9; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.frame .code {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  font: 600 10px var(--mono); letter-spacing: .03em;
  color: var(--paper-ink); background: var(--paper);
  border-radius: 4px; padding: 2px 5px;
}
.frame .dur {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  font: 500 10px var(--mono); color: #fff;
  background: rgba(10,10,9,.7); border-radius: 4px; padding: 2px 5px;
}
.frame .flag {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  font: 500 9.5px var(--mono); color: var(--ink-2);
  background: rgba(10,10,9,.78); border-radius: 4px; padding: 2px 5px;
}
.raw:hover .frame { border-color: var(--line-2); }
.raw-cap {
  margin: 7px 1px 0;
  font-size: 12px; line-height: 1.35; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.raw-cap b { color: var(--ink); font-weight: 600; }

.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.sec-name { margin: 0; font-size: 15.5px; font-weight: 700; font-stretch: 92%; letter-spacing: .01em; }
.sec-count { font: 500 11px var(--mono); color: var(--ink-3); }

/* raw home: folders */
.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.folder {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 14px 14px 13px;
  transition: border-color .18s ease;
}
.folder:hover { border-color: var(--line-2); }
.fan { position: relative; height: 150px; margin-bottom: 12px; }
.fan img {
  position: absolute; top: 8px; left: 50%;
  width: 78px; height: 138px; object-fit: cover;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.14);
  background: #0a0a09;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
.fan img:nth-child(1) { transform: translateX(-118%) rotate(-7deg); }
.fan img:nth-child(2) { transform: translateX(-50%) translateY(-4px); z-index: 2; }
.fan img:nth-child(3) { transform: translateX(18%) rotate(7deg); }
.folder:hover .fan img:nth-child(1) { transform: translateX(-128%) rotate(-10deg); }
.folder:hover .fan img:nth-child(3) { transform: translateX(28%) rotate(10deg); }
.folder-name { font-weight: 800; font-stretch: 84%; font-size: 18px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.folder-meta { margin-top: 5px; font: 500 11px var(--mono); color: var(--ink-3); }
.folder-secs { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.page-head { padding: 30px 0 4px; }
.crumbs { font: 500 11.5px var(--mono); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.page-title {
  margin: 8px 0 0;
  font-weight: 800; font-stretch: 84%;
  font-size: clamp(28px, 4.2vw, 46px); line-height: .98; text-transform: uppercase;
}
.page-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; font-size: 14.5px; }
.page-tools { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.film-links { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 10px; color: var(--ink);
}
.chip:hover { border-color: var(--ink-2); }
.chip small { font: 500 10.5px var(--mono); color: var(--ink-3); }

/* ------------------------------------------------------------------ log */
.log-day { margin-top: 30px; }
.log-day h3 {
  margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.log-row {
  display: grid;
  grid-template-columns: 52px 46px minmax(140px, 230px) 64px 1fr;
  gap: 14px; align-items: center;
  padding: 9px 2px;
  border-top: 1px solid var(--line);
  width: 100%; text-align: left;
}
.log-row:hover { background: var(--bg-2); }
.log-row img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.log-time { font: 500 12px var(--mono); color: var(--ink-3); }
.log-film { font-weight: 700; font-stretch: 88%; font-size: 14px; text-transform: uppercase; line-height: 1.1; }
.log-film span { display: block; margin-top: 3px; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: none; }
.log-v { font: 600 11.5px var(--mono); color: var(--pink); }
.log-vm { display: none; font-weight: 600; color: var(--pink); }
.log-cap { font-size: 13px; color: var(--ink-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ search */
.results-head { padding-top: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.results-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.results-head h2 b { color: var(--ink); }
.empty { padding: 60px 0; color: var(--ink-3); text-align: center; }
mark { background: rgba(255,77,151,.28); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ------------------------------------------------------------------ sheet (player) */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(7,7,6,.9); }
.sheet-body {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: auto minmax(340px, 520px);
  justify-content: center;
  gap: 34px;
  padding: 28px 34px;
  overflow: hidden;
  pointer-events: none;
}
.sheet-body > * { pointer-events: auto; }
.x {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 5;
  width: 40px; height: 40px; padding: 10px;
  border-radius: 50%; background: rgba(30,30,27,.9); border: 1px solid var(--line-2);
}
.x:hover { background: var(--bg-3); }
.stage { position: relative; align-self: center; display: flex; align-items: center; justify-content: center; }
.stage video {
  height: calc(100vh - 56px); height: calc(100dvh - 56px);
  max-width: min(58vw, 760px);
  aspect-ratio: var(--ar, 9 / 16);
  background: #000; border-radius: 10px;
  object-fit: contain;
}
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: rgba(20,20,18,.82); border: 1px solid var(--line-2); z-index: 3;
}
.nav.prev { left: -58px; }
.nav.next { right: -58px; }
.nav[hidden] { display: none; }
.nav:hover { background: var(--bg-3); }
.info {
  align-self: stretch;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 6px 40px 0;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.info-label {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 10px; padding: 14px 16px 15px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
}
.info-label .label-set { font-size: 10.5px; white-space: normal; }
.info-title {
  margin: 6px 0 0;
  font-weight: 800; font-stretch: 80%;
  font-size: clamp(26px, 3vw, 36px); line-height: .98; text-transform: uppercase;
}
.info-label .label-grade b { font-size: 34px; }
.info-label .label-grade span { font-size: 9.5px; }
.info-blurb { margin: 14px 0 0; color: var(--ink); font-size: 15px; }
.info-music { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }
.info-music::before { content: "♪ "; color: var(--pink); }
.now {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
}
.now-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.now-v { font: 600 12px var(--mono); color: var(--pink); }
.now-when { font: 500 12px var(--mono); color: var(--ink-3); }
.now-cap { margin: 7px 0 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
.now-note { margin: 7px 0 0; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.now-note + .now-cap { color: var(--ink-2); font-size: 13px; }
.actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600;
}
.btn:hover { border-color: var(--ink-2); }
.btn.solid { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.btn.solid:hover { background: #fff; }
.btn small { font: 500 11px var(--mono); opacity: .7; }
.btn svg { width: 15px; height: 15px; }
.h4 { margin: 26px 0 10px; font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.cuts { border-top: 1px solid var(--line); }
.cut {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline;
  width: 100%; text-align: left;
  padding: 10px 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.cut:hover { background: var(--bg-2); }
.cut.on { border-left-color: var(--pink); background: var(--bg-2); }
.cut-v { font: 600 12px var(--mono); color: var(--ink); }
.cut.on .cut-v { color: var(--pink); }
.cut-cap { font-size: 13px; color: var(--ink-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cut-meta { font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.cut .never { font: 600 9.5px var(--mono); color: var(--paper-ink); background: var(--paper); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.mini { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #0a0a09; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini span { position: absolute; left: 4px; top: 4px; font: 600 8.5px var(--mono); color: var(--paper-ink); background: var(--paper); border-radius: 3px; padding: 1px 3px; }
.mini:hover { border-color: var(--ink-2); }
.prompt { margin-top: 2px; }
.prompt summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::before { content: "+"; font: 600 13px var(--mono); color: var(--pink); width: 10px; }
.prompt[open] summary::before { content: "−"; }
.shot { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.shot b { font: 500 11px var(--mono); color: var(--ink-3); padding-top: 2px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kv span { font: 500 11px var(--mono); color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.sha { margin-top: 10px; font: 500 10.5px var(--mono); color: var(--ink-3); word-break: break-all; }

.foot {
  padding: 26px var(--pad) calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 500 11px/1.6 var(--mono); color: var(--ink-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--paper); color: var(--paper-ink);
  font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 9px;
  transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1100px) {
  .top-row { grid-template-columns: auto 1fr; }
  .search { grid-column: 1 / -1; }
  .tabs { justify-self: end; }
  .sheet-body { grid-template-columns: auto minmax(300px, 420px); gap: 24px; padding: 22px; }
  .nav.prev { left: 8px; } .nav.next { right: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .top-row { gap: 10px 12px; padding-top: 10px; padding-bottom: 8px; }
  .mark-word { font-size: 15.5px; }
  .mark-count { display: none; }
  .tabs { gap: 0; }
  .tabs a { padding: 7px 8px 6px; font-size: 12px; letter-spacing: .04em; }
  .search { height: 36px; }
  .cat { padding-top: 26px; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 12px; }
  .cat-side { flex-direction: row; align-items: center; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .label { min-height: 48px; padding: 6px 7px 6px 8px; gap: 6px; }
  .label-title { font-size: 13px; }
  .label-grade { min-width: 28px; padding-left: 6px; }
  .label-grade b { font-size: 19px; }
  .raw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 9px; }
  .raw-cap { font-size: 11.5px; }
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .folder { padding: 10px 10px 11px; border-radius: 12px; }
  .fan { height: 112px; margin-bottom: 9px; }
  .fan img { width: 58px; height: 103px; top: 6px; }
  .folder-name { font-size: 15px; }
  .folder-secs { display: none; }
  .log-row { grid-template-columns: 46px 40px 1fr; gap: 10px; }
  .log-row img { width: 40px; height: 40px; }
  .log-row { grid-template-columns: 40px 40px 1fr; }
  .cut { grid-template-columns: auto 1fr; row-gap: 3px; }
  .cut-meta { justify-self: end; }
  .cut-cap { grid-column: 1 / -1; grid-row: 2; -webkit-line-clamp: 2; }
  .log-row .log-v { display: none; }
  .log-vm { display: inline; }
  .log-row .log-cap { grid-column: 3; font-size: 12.5px; }

  .sheet-body {
    display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 0 calc(30px + env(safe-area-inset-bottom));
    background: var(--bg);
  }
  .stage { background: #000; padding-top: env(safe-area-inset-top); }
  .stage video { height: auto; width: 100%; max-width: none; max-height: 66vh; max-height: 66dvh; border-radius: 0; }
  .nav { width: 38px; height: 38px; padding: 9px; }
  .info { overflow: visible; padding: 16px var(--pad) 10px; }
  .x { top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; padding: 9px; }
}
@media (hover: none) {
  .slab:hover .slab-case { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
