/* ============================================================
   SUP3RNOVA · Inspiration Radar
   Dark editorial mobile publication
   ============================================================ */

:root {
  /* Driven by Tweaks; these are the defaults */
  --bg:        oklch(0.155 0.008 285);
  --bg-deep:   oklch(0.115 0.008 285);
  --surface:   oklch(0.205 0.010 285);
  --hairline:  oklch(0.42 0.012 285 / 0.30);
  --hairline-soft: oklch(0.42 0.012 285 / 0.16);

  --text:   oklch(0.965 0.004 285);
  --muted:  oklch(0.74 0.010 285);
  --faint:  oklch(0.56 0.012 285);

  /* Violet primary, electric blue secondary (shared C/L, varied hue) */
  --accent:    oklch(0.66 0.165 295);
  --accent-2:  oklch(0.68 0.155 248);
  --accent-ink: oklch(0.16 0.02 290);

  --radius: 8px;
  --radius-sm: 6px;
  --d: 1;            /* density multiplier */

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, sans-serif;
  --label: "Hanken Grotesk", "Inter", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --glass: oklch(0.18 0.01 285 / 0.62);
  --glass-strong: oklch(0.165 0.01 285 / 0.86);

  --col: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, oklch(0.24 0.04 290 / 0.5), transparent 60%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

#root { height: 100%; }

/* ---------- Device frame / stage ---------- */
.stage {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
}
.frame {
  position: relative;
  width: min(100vw, var(--col));
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 480px) {
  .stage { padding: 26px; }
  .frame {
    height: min(100dvh - 52px, 932px);
    border-radius: 30px;
    border: 1px solid oklch(0.5 0.02 285 / 0.18);
    box-shadow:
      0 1px 0 oklch(1 0 0 / 0.05) inset,
      0 40px 90px -30px oklch(0 0 0 / 0.8),
      0 0 0 1px oklch(0 0 0 / 0.4);
  }
}

/* ---------- Scroll region ---------- */
.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { width: 0; display: none; }

.scroll-inner { padding-bottom: calc(96px + 22px); }

/* ============================================================
   GLASS TOP BAR
   ============================================================ */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 13px;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: backdrop-filter .4s ease, background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: linear-gradient(to bottom, var(--glass-strong), oklch(0.165 0.01 285 / 0.55));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-soft);
}
.topbar__title {
  font-family: var(--label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .35s ease, transform .35s ease;
}
.topbar.solid .topbar__title { opacity: 1; transform: none; }
.topbar__title b { color: var(--accent); font-weight: 700; }

/* round glass icon button */
.iconbtn {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: oklch(0.22 0.012 285 / 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.iconbtn:hover { background: oklch(0.28 0.015 285 / 0.6); }
.iconbtn:active { transform: scale(0.92); }
.iconbtn svg { width: 19px; height: 19px; stroke-width: 1.8; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 86svh;
  min-height: 560px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 1%, oklch(0.155 0.008 285 / 0.2) 42%, transparent 72%),
    linear-gradient(to bottom, oklch(0.1 0.01 285 / 0.55) 0%, transparent 30%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 22px 104px;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid oklch(1 0 0 / 0.18);
  background: oklch(0.2 0.01 285 / 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 18px;
  white-space: nowrap;
}
.hero__kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 700; }
.hero__deck {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 33ch;
  text-wrap: pretty;
}
.hero__meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--faint);
}
.hero__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero__scrollcue {
  position: absolute; left: 50%; bottom: 92px; z-index: 3;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: 6px;
  color: var(--faint);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(6px);} }

/* ============================================================
   MEDIA FRAME (cinematic placeholder)
   ============================================================ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.media__bg {
  position: absolute; inset: 0;
  background-size: 200% 200%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.media__grain {
  position: absolute; inset: 0;
  opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
  background-image: repeating-linear-gradient(115deg,
    oklch(1 0 0 / 0.05) 0 1px, transparent 1px 3px);
}
.media__vign { position: absolute; inset: 0; box-shadow: inset 0 0 120px 10px oklch(0 0 0 / 0.55); pointer-events: none; }
.media__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: oklch(0.92 0.01 285 / 0.78);
  display: flex; align-items: center; gap: 7px;
}
.media__label .rec { color: var(--accent); }
.media__tag {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  font-family: var(--label);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 100px;
  background: oklch(0.12 0.01 285 / 0.6);
  border: 1px solid oklch(1 0 0 / 0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

/* native-looking control row */
.media__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: linear-gradient(to top, oklch(0.08 0.01 285 / 0.85), transparent);
}
.media__play {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: oklch(0.97 0.01 285 / 0.92); color: oklch(0.16 0.01 285);
  border: none; cursor: pointer;
  transition: transform .15s ease;
}
.media__play:active { transform: scale(0.9); }
.media__play svg { width: 14px; height: 14px; }
.media__progress {
  flex: 1; height: 3px; border-radius: 3px;
  background: oklch(1 0 0 / 0.22);
  overflow: hidden; cursor: pointer;
}
.media__progress > i { display: block; height: 100%; width: 32%; background: var(--text); border-radius: 3px; transition: width .3s ease; }
.media.is-playing .media__progress > i { animation: playfill 9s linear forwards; }
@keyframes playfill { from { width: 32%; } to { width: 100%; } }
.media.is-playing .media__label .rec { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.media__time { font-family: var(--mono); font-size: 10px; color: oklch(0.95 0 0 / 0.8); flex: 0 0 auto; }
.media__expand {
  position: absolute; right: 12px; top: 12px; z-index: 4;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: oklch(0.12 0.01 285 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.media__expand:hover { background: oklch(0.2 0.01 285 / 0.7); }
.media__expand:active { transform: scale(0.9); }
.media__expand svg { width: 15px; height: 15px; }

/* ============================================================
   CURATOR
   ============================================================ */
.curator {
  display: flex; align-items: center; gap: 13px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid var(--hairline-soft);
}
.curator__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  position: relative; overflow: hidden;
  background:
    conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 17px;
  color: oklch(0.13 0.02 290);
}
.curator__avatar span {
  position: absolute; inset: 2px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center;
  color: var(--text); font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.curator__by { font-size: 13.5px; color: var(--text); font-weight: 500; }
.curator__by b { color: var(--text); font-weight: 600; }
.curator__meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  margin-top: 3px; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.curator__ai {
  color: var(--accent); display: inline-flex; align-items: center; gap: 5px;
}
.curator__ai svg { width: 11px; height: 11px; }

/* ============================================================
   EDITORIAL INTRO
   ============================================================ */
.intro { padding: 30px 22px 10px; }
.intro p {
  font-size: 18.5px; line-height: 1.62; color: oklch(0.9 0.006 285);
  text-wrap: pretty; letter-spacing: -0.003em;
}
.intro p.lead::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.78;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.intro p + p { margin-top: 18px; color: var(--muted); font-size: 16.5px; }

.section-rule {
  display: flex; align-items: center; gap: 14px;
  padding: 34px 22px 4px;
}
.section-rule .ln { flex: 1; height: 1px; background: var(--hairline-soft); }
.section-rule span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}

/* ============================================================
   SIGNAL CARD
   ============================================================ */
.signals { padding: 8px 0 0; }
.signal {
  padding: 26px 22px;
  border-bottom: 1px solid var(--hairline-soft);
}
.signal__index {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--faint); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.signal__index b { color: var(--accent); font-weight: 500; }
.signal__index .ln { flex: 1; height: 1px; background: var(--hairline-soft); }

.signal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
}
.signal__caption {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  margin: 12px 2px 0; letter-spacing: 0.01em; line-height: 1.5;
  display: flex; gap: 8px;
}
.signal__caption .fig { color: var(--accent-2); flex: 0 0 auto; }

.signal__head {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; line-height: 1.08; letter-spacing: -0.012em;
  margin: 16px 0 12px; text-wrap: balance;
}
.signal__body { font-size: 15.5px; line-height: 1.56; color: var(--muted); text-wrap: pretty; }

.signal__action {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, oklch(0.22 0.012 290 / 0.5), oklch(0.18 0.01 285 / 0.3));
  padding: 14px 15px;
  display: flex; gap: 13px; align-items: flex-start;
}
.signal__action .ico {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: oklch(0.66 0.165 295 / 0.16);
  color: var(--accent);
  border: 1px solid oklch(0.66 0.165 295 / 0.3);
}
.signal__action .ico svg { width: 15px; height: 15px; }
.signal__action .lbl {
  font-family: var(--label); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 4px;
}
.signal__action .txt { font-size: 13.5px; line-height: 1.45; color: var(--text); }
.signal__action .txt b { color: var(--text); font-weight: 600; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.signal.dimmed { opacity: 0.26; filter: saturate(0.4); transition: opacity .4s ease, filter .4s ease; }
.signal.hidden-filter { display: none; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote {
  padding: 50px 26px;
  text-align: left;
  position: relative;
}
.pullquote .mark {
  font-family: var(--serif); font-size: 90px; line-height: 0.5; color: var(--accent);
  opacity: 0.5; display: block; height: 40px;
}
.pullquote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 28px; line-height: 1.22; letter-spacing: -0.01em;
  color: var(--text); text-wrap: balance;
}
.pullquote blockquote b { font-style: normal; color: var(--accent); font-weight: 600; }
.pullquote cite {
  display: block; margin-top: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); font-style: normal;
}

/* ============================================================
   TAG / FILTER CHIPS
   ============================================================ */
.tags { padding: 8px 0 40px; }
.tags__head {
  padding: 0 22px 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.tags__head h3 {
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
}
.tags__head .clear {
  font-family: var(--label); font-size: 12px; font-weight: 600; color: var(--accent-2);
  background: none; border: none; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.tags__head .clear.on { opacity: 1; pointer-events: auto; }
.chiprow {
  display: flex; gap: 9px; flex-wrap: wrap;
  padding: 0 22px;
}
.chip {
  font-family: var(--label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 15px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  background: oklch(0.21 0.01 285 / 0.5);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s ease;
}
.chip .cnt { font-family: var(--mono); font-size: 10px; opacity: 0.7; }
.chip:hover { border-color: var(--hairline); color: var(--text); background: oklch(0.25 0.012 285 / 0.6); }
.chip.active {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 6px 22px -8px var(--accent);
}
.chip.active .cnt { opacity: 0.7; }

/* ============================================================
   GLASS BOTTOM ACTION BAR
   ============================================================ */
.bottombar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--glass-strong) 60%, oklch(0.165 0.01 285 / 0.4));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-top: 1px solid var(--hairline-soft);
}
.actbtn {
  width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center; flex: 0 0 auto;
  background: oklch(0.24 0.012 285 / 0.5);
  border: 1px solid var(--hairline);
  color: var(--muted); cursor: pointer; position: relative;
  transition: transform .15s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.actbtn svg { width: 20px; height: 20px; stroke-width: 1.7; }
.actbtn:active { transform: scale(0.9); }
.actbtn .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 100px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.actbtn .badge.show { transform: scale(1); }
.actbtn.liked { color: oklch(0.7 0.2 18); border-color: oklch(0.7 0.2 18 / 0.4); background: oklch(0.7 0.2 18 / 0.12); }
.actbtn.liked svg { fill: currentColor; }
.actbtn.saved { color: var(--accent); border-color: oklch(0.66 0.165 295 / 0.45); background: oklch(0.66 0.165 295 / 0.14); }
.actbtn.saved svg { fill: currentColor; }
.share {
  flex: 1; height: 46px; border-radius: var(--radius);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--label); font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em;
  color: oklch(0.99 0.005 290);
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px -10px var(--accent), 0 1px 0 oklch(1 0 0 / 0.2) inset;
  transition: transform .15s ease, filter .2s ease;
}
.share:hover { filter: brightness(1.08); }
.share:active { transform: scale(0.97); }
.share svg { width: 18px; height: 18px; stroke-width: 2; }

/* ============================================================
   OVERLAYS: search, modal, share sheet, toast
   ============================================================ */
.overlay {
  position: absolute; inset: 0; z-index: 60;
}
.overlay__scrim {
  position: absolute; inset: 0;
  background: oklch(0.08 0.008 285 / 0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.overlay.in .overlay__scrim { opacity: 1; }

/* ---- search panel (top sheet) ---- */
.search {
  position: absolute; top: 0; left: 0; right: 0; z-index: 61;
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0 0 18px 18px;
  transform: translateY(-100%); transition: transform .42s cubic-bezier(.16,1,.3,1);
  max-height: 100%; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column;
}
.search::-webkit-scrollbar { display: none; }
.overlay.in .search { transform: none; }
.search__bar {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 14px; padding-top: max(16px, env(safe-area-inset-top));
  position: sticky; top: 0;
}
.search__field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: oklch(0.13 0.01 285 / 0.6);
  border: 1px solid var(--hairline);
  border-radius: 100px; padding: 11px 16px;
}
.search__field svg { width: 17px; height: 17px; color: var(--faint); flex: 0 0 auto; }
.search__field input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--sans); font-size: 15px;
}
.search__field input::placeholder { color: var(--faint); }
.search__cancel {
  font-family: var(--label); font-size: 14px; font-weight: 600; color: var(--accent-2);
  background: none; border: none; cursor: pointer; flex: 0 0 auto;
}
.search__body { padding: 4px 14px 22px; }
.search__hint {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
  padding: 10px 6px;
}
.suggrow { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 4px 14px; }
.sugg {
  font-family: var(--label); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 100px;
  border: 1px solid var(--hairline); background: oklch(0.2 0.01 285 / 0.5);
  color: var(--muted); cursor: pointer; transition: all .18s ease;
}
.sugg:hover { color: var(--text); border-color: var(--accent); }
.result {
  display: flex; gap: 13px; align-items: center;
  padding: 11px 6px;
  border-top: 1px solid var(--hairline-soft);
  cursor: pointer; transition: background .15s ease;
  border-radius: 8px;
}
.result:hover { background: oklch(0.24 0.012 285 / 0.5); }
.result__thumb {
  width: 50px; height: 62px; border-radius: 7px; flex: 0 0 auto; overflow: hidden;
  position: relative; border: 1px solid var(--hairline-soft);
}
.result__cat {
  font-family: var(--label); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 3px;
}
.result__title { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.12; }
.result__fit { font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 4px; }
.result mark { background: oklch(0.66 0.165 295 / 0.3); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search__empty {
  text-align: center; padding: 40px 20px; color: var(--faint);
  font-size: 14px;
}
.search__empty .em { font-family: var(--serif); font-size: 22px; color: var(--muted); display: block; margin-bottom: 8px; }

/* ---- fullscreen media modal ---- */
.modal {
  position: absolute; inset: 0; z-index: 61;
  display: flex; flex-direction: column;
  background: oklch(0.06 0.008 285);
  opacity: 0; transform: scale(1.04);
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.overlay.in .modal { opacity: 1; transform: none; }
.modal__media { position: relative; flex: 1; overflow: hidden; }
.modal__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; padding-top: max(16px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, oklch(0.06 0.01 285 / 0.7), transparent);
}
.modal__tag {
  font-family: var(--label); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  padding: 6px 12px; border-radius: 100px;
  background: oklch(0.2 0.01 285 / 0.5); border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 22px 20px 26px;
  background: linear-gradient(to top, oklch(0.06 0.01 285 / 0.92) 30%, transparent);
}
.modal__info h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.06; margin-bottom: 10px; }
.modal__info p { font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.modal__bigcontrols {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  font-family: var(--mono); font-size: 11px; color: oklch(0.95 0 0 / 0.85);
}
.modal__playbig {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer;
  background: oklch(0.97 0.01 285 / 0.95); color: oklch(0.14 0.01 285); border: none;
  transition: transform .15s ease;
}
.modal__playbig:active { transform: scale(0.92); }
.modal__playbig svg { width: 22px; height: 22px; }
.modal__track { flex: 1; height: 4px; border-radius: 4px; background: oklch(1 0 0 / 0.22); overflow: hidden; }
.modal__track > i { display: block; height: 100%; width: 40%; background: var(--text); }

/* ---- share sheet (bottom sheet) ---- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-top: 1px solid var(--hairline);
  border-radius: 20px 20px 0 0;
  padding: 12px 18px 26px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.overlay.in .sheet { transform: none; }
.sheet__grip { width: 38px; height: 4px; border-radius: 4px; background: var(--hairline); margin: 4px auto 18px; }
.sheet__title { font-family: var(--serif); font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.sheet__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.sheet__preview {
  display: flex; gap: 13px; align-items: center;
  padding: 13px; border-radius: var(--radius);
  border: 1px solid var(--hairline-soft); background: oklch(0.2 0.01 285 / 0.4);
  margin-bottom: 20px;
}
.sheet__preview .px { width: 42px; height: 52px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; position: relative; }
.sheet__preview .meta .t { font-family: var(--label); font-weight: 600; font-size: 14px; }
.sheet__preview .meta .s { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.sheet__channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.channel { display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.channel .cc {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: oklch(0.24 0.012 285 / 0.6); border: 1px solid var(--hairline);
  color: var(--text); transition: transform .15s ease, border-color .2s ease;
}
.channel:active .cc { transform: scale(0.92); }
.channel .cc svg { width: 22px; height: 22px; }
.channel span { font-family: var(--label); font-size: 11px; color: var(--muted); }
.sheet__copy {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: var(--radius);
  border: 1px dashed var(--hairline); background: oklch(0.16 0.01 285 / 0.5);
  font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer;
}
.sheet__copy .lnk { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__copy .go { color: var(--accent-2); font-weight: 600; font-family: var(--label); font-size: 13px; }

/* ---- toast ---- */
.toast {
  position: absolute; left: 50%; bottom: 84px; z-index: 90;
  transform: translateX(-50%) translateY(20px);
  background: oklch(0.96 0.01 285); color: oklch(0.16 0.01 285);
  font-family: var(--label); font-weight: 600; font-size: 13px;
  padding: 11px 18px; border-radius: 100px;
  box-shadow: 0 14px 36px -12px oklch(0 0 0 / 0.7);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 15px; height: 15px; color: var(--accent); }

/* float-in helper for filter mode banner */
.filterbar {
  position: sticky; top: 0; z-index: 30;
  margin: 0; padding: 10px 22px;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.filterbar b { color: var(--accent); }
.filterbar button {
  font-family: var(--label); font-size: 12px; font-weight: 600; color: var(--accent-2);
  background: none; border: none; cursor: pointer;
}

/* ---- search-jump flash ---- */
.flashring { animation: flashring 1.4s ease; }
@keyframes flashring {
  0% { box-shadow: inset 0 0 0 2px transparent; background: transparent; }
  18% { box-shadow: inset 0 0 0 2px var(--accent); background: oklch(0.66 0.165 295 / 0.06); }
  100% { box-shadow: inset 0 0 0 2px transparent; background: transparent; }
}

/* ---- density variants ---- */
.density-compact .signal { padding-top: 18px; padding-bottom: 18px; }
.density-compact .intro { padding-top: 22px; }
.density-compact .hero__content { padding-bottom: 22px; }
.density-compact .curator { padding-top: 20px; padding-bottom: 18px; }
.density-compact .pullquote { padding-top: 38px; padding-bottom: 38px; }

.density-spacious .signal { padding-top: 36px; padding-bottom: 36px; }
.density-spacious .intro { padding-top: 40px; }
.density-spacious .hero__content { padding-bottom: 40px; }
.density-spacious .curator { padding-top: 34px; padding-bottom: 30px; }
.density-spacious .pullquote { padding-top: 64px; padding-bottom: 64px; }
.density-spacious .signal__head { margin-top: 22px; }
