[hidden] { display: none !important; }
/* Bitter Lemon — reels review site */

:root {
  --lemon: #FFC233;
  --lemon-ink: #141414;
  --ink: #141414;
  --paper: #F6F5F1;

  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #EEECE6;
  --fg: #141414;
  --fg-2: #55534D;
  --fg-3: #6B6860; /* 5.1:1 on --bg, 5.6:1 on white (was #85827A, 3.5:1) */
  --line: #E4E1D9;
  --line-strong: #CBC7BC;
  --track: #D9D5CB;
  --inv-bg: #141414;
  --inv-fg: #FFFFFF;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px -12px rgba(20, 20, 20, .18);

  --hh: 60px;
  --r: 14px;
  --r-sm: 10px;
  --gutter: 16px;
  --maxw: 1240px;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --surface: #1B1B19;
    --surface-2: #252522;
    --fg: #F6F5F1;
    --fg-2: #B9B6AE;
    --fg-3: #8A877F;
    --line: #2C2B28;
    --line-strong: #43413C;
    --track: #3A3935;
    --inv-bg: #F6F5F1;
    --inv-fg: #141414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .hero h1 em { color: var(--ink); background: var(--lemon); padding: 0 .1em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
:root[data-theme="dark"] {
  --bg: #121211;
  --surface: #1B1B19;
  --surface-2: #252522;
  --fg: #F6F5F1;
  --fg-2: #B9B6AE;
  --fg-3: #8A877F;
  --line: #2C2B28;
  --line-strong: #43413C;
  --track: #3A3935;
  --inv-bg: #F6F5F1;
  --inv-fg: #141414;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="dark"] .hero h1 em { color: var(--ink); background: var(--lemon); padding: 0 .1em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

@media (min-width: 900px) {
  :root { --hh: 64px; --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -.01em; }
.dim { color: var(--fg-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--inv-bg); color: var(--inv-fg); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--hh);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-in {
  height: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; min-height: 44px; flex-shrink: 0;
}
.brand .mark { width: 26px; height: 26px; }
.brand-txt { font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-txt span { font-weight: 500; color: var(--fg-3); }
.top-upd { margin-left: auto; font-size: 12px; color: var(--fg-3); display: none; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.top-upd + .nav { margin-left: 8px; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  font-weight: 500; font-size: 15px; color: var(--fg-2); text-decoration: none;
  border-radius: 10px;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--lemon);
}
@media (min-width: 760px) { .top-upd { display: block; } .hero-upd { display: none; } }
@media (max-width: 380px) { .brand-txt { font-size: 15.5px; } .nav a { padding: 0 9px; } }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; }
main:focus { outline: none; }
.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.foot {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.foot .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  padding-top: 22px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--fg-3);
}
.foot strong { color: var(--fg-2); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg);
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { border-color: var(--fg-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.btn-primary:hover { border-color: var(--inv-bg); opacity: .92; }
.btn-lemon { background: var(--lemon); color: var(--lemon-ink); border-color: var(--lemon); }
.btn-lemon:hover { border-color: var(--lemon); filter: brightness(1.03); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
  text-decoration: none; flex-shrink: 0;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { border-color: var(--fg-3); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg);
  font-weight: 500; font-size: 14.5px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--fg-3); }
.chip[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.chip .count { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.chip[aria-pressed="true"] .count { color: color-mix(in srgb, var(--inv-fg) 60%, transparent); }

.tag {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 6px; border-radius: 5px;
  font: 500 11px/1 var(--mono); letter-spacing: 0;
  background: var(--surface-2); color: var(--fg-2);
}
.chip[aria-pressed="true"] .tag { background: color-mix(in srgb, var(--inv-fg) 16%, transparent); color: var(--inv-fg); }
.tag-lemon, .chip[aria-pressed="true"] .tag-lemon { background: var(--lemon); color: var(--lemon-ink); }

/* ---------- overview ---------- */
.hero { padding-top: 28px; padding-bottom: 8px; }
.hero-grid { display: grid; gap: 20px; }
.eyebrow { font: 500 12px/1.4 var(--mono); color: var(--fg-3); letter-spacing: .02em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(30px, 8.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  margin-top: 10px; max-width: 14ch;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lemon) 62%, var(--lemon) 92%, transparent 92%); }
.hero-intro { margin-top: 14px; font-size: 16.5px; color: var(--fg-2); max-width: 54ch; }
.hero-format { margin-top: 10px; font-size: 12.5px; color: var(--fg-3); max-width: 70ch; }
.hero-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.stats { display: flex; gap: 28px; }
.stat b { display: block; font: 500 24px/1.1 var(--mono); letter-spacing: -.03em; }
.stat span { font-size: 12.5px; color: var(--fg-3); }
.hero-upd { font-size: 12px; color: var(--fg-3); }
.eb-phone { display: none; }
@media (max-width: 599px) {
  /* phones: the reels are what people came for, so the hero shrinks to eyebrow + title + one line + button */
  .hero { padding-top: 18px; padding-bottom: 0; }
  .hero-grid { gap: 14px; }
  .eb-wide { display: none; }
  .eb-phone { display: inline; text-transform: none; letter-spacing: 0; }
  .hero h1 { font-size: 30px; margin-top: 8px; max-width: none; }
  .hero-intro { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .hero-format, .stats, .hero-upd { display: none; }
  .hero-side { flex-direction: row; }
  .hero .btn-lg { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .filters { margin-top: 16px; padding-bottom: 14px; }
}
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .hero-side { align-items: flex-end; text-align: right; }
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; padding-bottom: 18px;
}

@media (pointer: coarse) { .filters .chip { min-height: 44px; } }

.grid {
  display: grid; gap: 14px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1320px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-poster {
  position: relative; aspect-ratio: 9 / 16; background: var(--surface-2); overflow: hidden;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-poster img { transform: scale(1.025); }
.card-badges {
  position: absolute; left: 8px; right: 8px; top: 8px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 6px;
}
.vbadge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px;
  background: rgba(255, 255, 255, .94); color: #141414;
  font: 500 11.5px/1 var(--mono); white-space: nowrap;
}
.newbadge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px;
  background: var(--lemon); color: #141414; font: 600 11.5px/1 var(--mono);
  box-shadow: 0 0 0 1.5px rgba(20, 20, 20, .85);
}
.card-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(20, 20, 20, .72); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.card-play svg { width: 16px; height: 16px; margin-left: 2px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; }
.card:focus-visible { outline-offset: 3px; border-radius: var(--r); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { display: flex; gap: 7px; align-items: baseline; font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.card-title .mono { font-size: 12px; font-weight: 500; color: var(--fg-3); flex-shrink: 0; }
.card-proj { font-size: 12.5px; color: var(--fg-2); font-weight: 500; }
.card-style {
  font-size: 12.5px; line-height: 1.4; color: var(--fg-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px;
}
.card-foot { margin-top: auto; padding-top: 8px; font: 500 11.5px/1 var(--mono); color: var(--fg-3); }
@media (max-width: 420px) {
  .card-style { font-size: 12px; line-height: 1.35; }
  .card-body { padding: 9px 10px 11px; }
  .card-title { font-size: 14px; }
}
.norender {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px;
  color: var(--fg-3); font: 500 12px/1.4 var(--mono);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 70%, transparent) 10px 11px);
}
.empty { padding: 48px 0; color: var(--fg-3); }

/* ---------- reel page ---------- */
.reel { padding-top: 12px; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fg-2); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--fg); }
.crumbs a svg { width: 18px; height: 18px; }
.crumbs .mono { font-size: 12px; color: var(--fg-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-now .crumb-v { color: var(--fg); font-weight: 600; }
@media (min-width: 900px) { .crumb-name { display: none; } }

.reel-grid { display: grid; gap: 20px; }
@media (max-width: 899px) {
  .reel-grid { gap: 0; }
  .reel-media { display: contents; }
  /* height capped so the reel name shows under the controls on the first screen (music is also in the bar) */
  .reel-media .player {
    width: min(100%, calc(max(55vh, 100vh - 300px) * 9 / 16));
    width: min(100%, calc(max(55svh, 100svh - 300px) * 9 / 16));
    margin: 0 auto;
  }
  .reel-media .controls { position: sticky; top: var(--hh); z-index: 20; border-bottom: 1px solid var(--line); }
  .reel-info { padding-top: 20px; }
}
@media (max-width: 599px) {
  .reel { padding-top: 0; }
  .reel .crumbs { padding: 0 var(--gutter); margin-bottom: 0; }
  .reel > .wrap { padding-left: 0; padding-right: 0; }
  .reel-info { padding-left: var(--gutter); padding-right: var(--gutter); }
  .reel-media .player {
    width: min(calc(100% - 2 * var(--gutter)), calc(max(55vh, 100vh - 300px) * 9 / 16));
    width: min(calc(100% - 2 * var(--gutter)), calc(max(55svh, 100svh - 300px) * 9 / 16));
    border-radius: 12px;
  }
  .reel-media .controls { padding: 0 calc(var(--gutter) - 4px); }
}
@media (min-width: 900px) {
  .reel { padding-top: 20px; }
  .reel-grid {
    grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start;
  }
  .reel-media {
    position: sticky; top: calc(var(--hh) + 20px);
    width: min(480px, calc((100vh - var(--hh) - 180px) * 9 / 16));
    width: min(480px, calc((100dvh - var(--hh) - 180px) * 9 / 16));
    margin: 0;
  }
}

.player {
  position: relative; aspect-ratio: 9 / 16; width: 100%;
  background: transparent; border-radius: var(--r); overflow: hidden;
  isolation: isolate;
}
/* children carry the black + the radius themselves, so no dark parent background bleeds through the curve */
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: inherit; }
.player-hit { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; padding: 0; cursor: pointer; }
.player-big {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  border: 0; background: var(--lemon); color: #141414;
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  transition: transform .15s, opacity .2s;
}
.player-big svg { width: 30px; height: 30px; margin-left: 4px; }
.player-big:hover { transform: scale(1.05); }
.player.is-playing .player-big { opacity: 0; pointer-events: none; transform: scale(.9); }
.player-spin {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none; pointer-events: none;
}
.player.is-waiting .player-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-tag {
  position: absolute; left: 8px; top: 8px; z-index: 2; pointer-events: none;
}
.tag svg { width: 12px; height: 12px; margin-right: 4px; }
.tag-snd { background: rgba(20, 20, 20, .7); color: #fff; }
.player-freeze { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; pointer-events: none; background: #000; border-radius: inherit; }
.player video { position: relative; z-index: 0; }
.player-freeze { z-index: 1; }
.player-hit { z-index: 2 !important; }
.player-big, .player-spin, .player-tag { z-index: 3 !important; }
.player-empty { background: #1b1b19; display: grid; place-items: center; color: #9a978f; font: 500 13px/1.4 var(--mono); text-align: center; padding: 24px; }

.controls {
  display: flex; align-items: center; gap: 6px;
  height: 56px; padding: 0 4px;
  background: var(--bg);
}
.controls .time { font: 500 12px/1 var(--mono); color: var(--fg-2); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.ctl {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--fg);
  display: grid; place-items: center; flex-shrink: 0;
}
.ctl svg { width: 22px; height: 22px; }
.ctl:hover { background: var(--surface-2); }
.ctl-play { background: var(--inv-bg); color: var(--inv-fg); }
.ctl-play:hover { background: var(--inv-bg); opacity: .9; }
.ctl-play svg { width: 18px; height: 18px; }
.ctl[data-state="locked"] { color: var(--fg-3); }
.ctl-music svg { width: 20px; height: 20px; }
.ctl-music.is-on { color: var(--fg); box-shadow: inset 0 0 0 2px var(--lemon); }

/* scrubber: an invisible native range on top (pointer + keyboard + a11y), the visible bar underneath is moved
   with transforms only, so playing never forces layout */
.scrub-wrap { position: relative; flex: 1; min-width: 0; height: 44px; }
.scrub {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0;
  background: transparent; cursor: pointer; opacity: 0;
  touch-action: none;
}
.scrub::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 44px; background: transparent; }
.scrub::-moz-range-thumb { width: 32px; height: 44px; border: 0; background: transparent; }
.scrub-vis { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--track); pointer-events: none; }
.scrub-fill { position: absolute; inset: 0; border-radius: 2px; background: var(--fg); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.scrub-head {
  position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: var(--lemon); border: 2px solid var(--fg); will-change: transform;
}
.scrub:focus-visible + .scrub-vis { outline: 2px solid var(--fg); outline-offset: 8px; border-radius: 4px; }

.reel-info { min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.reel-title-row { display: flex; align-items: flex-start; gap: 12px; }
.reel-title-row > div:first-child { flex: 1; min-width: 0; }
.reel-title-row h1 { font-size: clamp(26px, 6.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin-top: 6px; }
.reel-style { color: var(--fg-2); font-size: 15.5px; margin-top: 10px; max-width: 60ch; }
.pn { display: flex; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-note { font-size: 12.5px; color: var(--fg-3); margin-top: -12px; }
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 auto; padding: 0 12px; }
  .actions .btn-primary { flex-basis: 100%; }
}

.block { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block h2 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.block-h .mono { font-size: 12px; color: var(--fg-3); }
.pills, .mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--mono); font-size: 14px; font-weight: 500; min-width: 56px; justify-content: center; }
.vinfo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.vinfo .mono { font-size: 12.5px; color: var(--fg-3); }
.vinfo p { margin-top: 6px; font-size: 15px; white-space: pre-line; }
.mdesc { font-size: 14px; color: var(--fg-2); }
.mdesc b { color: var(--fg); font-weight: 600; }
.mglobal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--fg-3); }
.linkbtn {
  border: 0; background: none; padding: 0 2px; min-height: 44px;
  color: var(--fg); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.linkbtn:hover { text-decoration-color: var(--fg); }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log-item details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.log-item.is-current details { border-color: var(--fg-3); }
.log-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 14px;
}
.log-item summary::-webkit-details-marker { display: none; }
.log-item summary .mono { font-size: 13px; }
.log-item summary .v { font-weight: 500; }
.log-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); font-size: 14px; }
.log-item summary .chev { width: 18px; height: 18px; color: var(--fg-3); transition: transform .2s; }
.log-item details[open] summary .chev { transform: rotate(180deg); }
.log-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.log-body p { font-size: 14.5px; white-space: pre-line; }
.log-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.log-acts .btn { min-height: 40px; font-size: 13.5px; }
@media (pointer: coarse) { .log-acts .btn { min-height: 44px; } }
.cur-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); display: inline-block; }

/* ---------- compare ---------- */
.cmp { padding-top: 12px; }
.cmp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp-head .crumbs { margin: 0; }
.cmp-title { flex: 1; min-width: 0; }
.cmp-title h1 { font-size: clamp(20px, 5.4vw, 30px); letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }
.cmp-title .mono { font-size: 12px; color: var(--fg-3); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: center; }
.cmp-side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp-pick { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; padding: 4px; margin: -4px; }
.side-tag {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font: 600 12px/1 var(--mono); background: var(--inv-bg); color: var(--inv-fg);
}
.side-tag.b { background: var(--lemon); color: #141414; }
.sel {
  flex: 1; min-width: 0; height: 44px; padding: 0 30px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2385827A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none;
  font: 500 13.5px/1 var(--mono); text-overflow: ellipsis;
}
.cmp-side .player { border-radius: var(--r-sm); }
.cmp-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  margin: 10px calc(var(--gutter) * -1) 0; padding: 8px var(--gutter);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cmp-bar .ctl-play { width: 52px; height: 52px; }
.cmp-bar .ctl-play svg { width: 22px; height: 22px; }
.cmp-bar .time { font: 500 12px/1 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.cmp-music { min-height: 44px; min-width: 44px; max-width: 42%; padding: 0 12px; gap: 6px; justify-content: center; }
.cmp .player-big { display: none; } /* the shared bar is the play control; tapping a video toggles both */
.cmp-music span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-music svg { width: 16px; height: 16px; flex-shrink: 0; }
.cmp-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cmp-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; min-width: 0; }
.cmp-note .mono { font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.cmp-note .side-tag { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.cmp-note p { margin-top: 6px; font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
.cmp-swap { margin-left: auto; }
.cmp-note .tag { height: 18px; font-size: 10.5px; }
.cmp-note .nw { white-space: nowrap; }
.cmp-note .mono { flex-wrap: wrap; }
@media (max-width: 599px) {
  .cmp-time-d { display: none; }
  .cmp-music { max-width: 36vw; padding: 0 10px; }
  .cmp-music .lbl { font-size: 13px; white-space: nowrap; }
}
@media (min-width: 900px) {
  .cmp { padding-top: 24px; }
  /* header, players, bar and notes share one width so their edges line up */
  .cmp-in {
    --cw: min(400px, calc((100vh - var(--hh) - 240px) * 9 / 16));
    --cw: min(400px, calc((100dvh - var(--hh) - 240px) * 9 / 16));
    max-width: calc(2 * var(--cw) + 24px); margin: 0 auto;
  }
  .cmp-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cmp-notes { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cmp-bar { position: static; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px 6px 6px; background: var(--surface); }
}

/* ---------- feed ---------- */
html.feed-open, html.feed-open body { overflow: hidden; height: 100%; }
html.feed-open .top, html.feed-open .foot, html.feed-open .skip { display: none; }
.feed {
  position: fixed; inset: 0; z-index: 100;
  background: #000; color: #fff;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  height: 100vh; height: 100dvh;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }
.fi {
  position: relative;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; justify-content: center;
  overflow: hidden;
}
.fi-stage {
  position: relative; height: 100%;
  width: min(100%, calc(100dvh * 9 / 16));
}
.fi-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.fi-tap { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fi-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}
.fi-scrim.top { top: 0; bottom: auto; height: 22%; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.fi-info {
  position: absolute; z-index: 3; left: 16px; right: 88px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.fi-num { font: 500 12.5px/1.3 var(--mono); color: var(--lemon); }
.fi-num span { color: rgba(255, 255, 255, .8); }
.fi-name { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin-top: 6px; }
.fi-proj { font-size: 14px; color: rgba(255, 255, 255, .86); margin-top: 4px; font-weight: 500; }
.fi-actions {
  position: absolute; z-index: 3; right: 10px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.fab {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 68px; border: 0; background: none; color: #fff; text-decoration: none; padding: 0;
  font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.fab i {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20, 20, 20, .62);
  border: 1px solid rgba(255, 255, 255, .16);
}
.fab svg { width: 22px; height: 22px; }
.fab span { max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab.is-music i { background: var(--lemon); color: #141414; border-color: var(--lemon); }
.fab.is-off i { background: rgba(20, 20, 20, .55); color: #fff; }
.fab:focus-visible { outline: none; }
.fab:focus-visible i { outline: 2px solid #fff; outline-offset: 2px; }
.fi-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.fi-progress i { display: block; height: 100%; width: 100%; background: var(--lemon); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.fi-flash {
  position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%) scale(.85); opacity: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; background: rgba(20, 20, 20, .7); color: #fff;
  font-weight: 600; font-size: 14px;
  transition: opacity .25s, transform .25s;
}
.fi-flash svg { width: 22px; height: 22px; }
.fi-flash.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fi-paused-ico {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(20, 20, 20, .5); display: none; place-items: center;
}
.fi-paused-ico svg { width: 30px; height: 30px; margin-left: 4px; }
.fi.is-paused .fi-paused-ico { display: grid; }

.feed-top {
  position: fixed; z-index: 110; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  pointer-events: none;
}
.feed-top > * { pointer-events: auto; }
.feed-x {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(20, 20, 20, .62); color: #fff; display: grid; place-items: center; text-decoration: none;
}
.feed-x svg { width: 22px; height: 22px; }
.feed-x:focus-visible, .feed-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.feed-sound {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--lemon); color: #141414; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
.feed-sound svg { width: 18px; height: 18px; }
.feed-sound[hidden] { display: none; }
.feed-count {
  min-width: 44px; height: 32px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(20, 20, 20, .55); color: #fff;
  font: 500 12px/1 var(--mono);
}
.feed-brand { display: none; }
.feed-hint { display: none; }
/* buttons move outside the video only when there is room beside it (landscape); portrait tablets keep them inside */
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .fi-actions { right: auto; left: calc(100% + 16px); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .fi-info { right: 16px; }
  .feed-hint {
    display: block; position: fixed; z-index: 110; left: 20px; bottom: 20px;
    max-width: calc((100vw - 100vh * 9 / 16) / 2 - 40px);
    font: 500 12px/1.5 var(--mono); color: rgba(255, 255, 255, .55); text-align: left;
  }
}
@media (min-width: 760px) {
  .feed-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
  .feed-brand .mark { width: 22px; height: 22px; }
  .feed-top-l { display: flex; align-items: center; gap: 14px; }
}

/* ---------- sheet ---------- */
.sheet-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
.sheet {
  width: min(100%, 520px);
  max-height: 86dvh; overflow-y: auto;
  background: var(--surface); color: var(--fg);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  animation: up .22s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 760px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: 20px; padding-bottom: 16px; }
}
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 10px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet-h h2 { font-size: 18px; letter-spacing: -.02em; }
.sheet-h .mono { font-size: 12px; color: var(--fg-3); display: block; margin-top: 2px; font-weight: 400; letter-spacing: 0; }
.trk {
  width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start;
  text-align: left; padding: 12px 10px; border-radius: 12px; border: 1px solid transparent; background: none;
  min-height: 56px;
}
.trk:hover { background: var(--surface-2); }
.trk[aria-pressed="true"] { border-color: var(--fg); background: var(--surface-2); }
.trk .radio { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.trk[aria-pressed="true"] .radio { border-color: var(--fg); }
.trk[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); }
.trk-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trk-desc { font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.sheet-foot b, .mglobal b { color: var(--fg-2); font-weight: 600; }
.sheet-foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; color: var(--fg-3); }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 400;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--inv-bg); color: var(--inv-fg);
  padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notice { padding: 64px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.notice h1 { font-size: 28px; letter-spacing: -.02em; }
.notice p { color: var(--fg-2); }
.loading { padding: 80px 0; display: grid; place-items: center; color: var(--fg-3); font: 500 13px var(--mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .card:hover, .card:hover .card-poster img { transform: none; }
  .player-spin { animation: none; border-top-color: rgba(255, 255, 255, .25); }
}
