/* Tap Science: always-dark streaming-style catalog for physiology labs. */
:root {
  --bg: #000;
  --bg-2: #0a0a0b;
  --panel: #141416;
  --panel-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f1ea;
  --dim: #a8acb2;
  --faint: #6c7177;
  --brand: #ff4d3d;
  --brand-hi: #ff6a5c;
  --amber: #f2a33b;
  --cyan: #46d5ce;
  --blue: #5aa9e6;
  --green: #52c77e;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 60px);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- icons & buttons ---------- */
.btn svg, .icon-btn svg, .disc-btn svg, .feature svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 8px;
  font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: background-color 0.18s, transform 0.12s var(--ease-out), border-color 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-play { background: var(--text); color: #000; }
.btn-play svg { fill: currentColor; stroke: none; }
.btn-play:hover { background: #d9d7cf; }
.btn-ghost { background: rgba(120, 124, 130, 0.32); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(120, 124, 130, 0.48); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hi); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--text);
  transition: background-color 0.18s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  transition: background-color 0.3s;
}
.nav.solid { background-color: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px); }
.nav-inner { height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-weight: 700; letter-spacing: 0.16em; font-size: 19px; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; color: #d6d4cd; }
.nav-links > a:hover, .disc-btn:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.disc { position: relative; }
.disc-btn { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #fff; }
.disc-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.disc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.disc-menu {
  position: absolute; top: calc(100% + 14px); left: -14px; min-width: 250px;
  background: rgba(12, 12, 13, 0.97); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform-origin: top left; animation: pop 0.18s var(--ease-out);
}
.disc-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 7px; font-size: 14.5px; }
.disc-item.live { color: #fff; font-weight: 600; }
.disc-item.live::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.disc-all { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 7px 7px; color: var(--dim); }
.disc-all:hover { color: #fff; }
.disc-item.soon { color: var(--faint); }
.disc-item .soon-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }

.lang { position: relative; }
.lang[hidden] { display: none; }
.lang-btn {
  height: 40px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--text); transition: background-color 0.18s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lang-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu { left: auto; right: 0; min-width: 180px; transform-origin: top right; }
button.disc-item { width: 100%; text-align: left; font: inherit; font-size: 14.5px; cursor: pointer; }
button.disc-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.search { display: flex; align-items: center; border: 1px solid transparent; border-radius: 8px; transition: border-color 0.2s, background-color 0.2s; }
.search input {
  width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px;
  transition: width 0.3s var(--ease-out), padding 0.3s;
}
.search input:focus { outline: none; }
.search.open { border-color: var(--line-2); background: rgba(0, 0, 0, 0.75); }
.search.open input { width: min(240px, 42vw); padding-right: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art .art { position: absolute; inset: 0; width: 100%; height: 100%; animation: heroIn 1.1s var(--ease-out); }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.1) 62%, transparent 80%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 16%, transparent 38%);
}
.hero-content {
  position: absolute; left: var(--gutter); bottom: clamp(120px, 20vh, 190px);
  width: min(620px, calc(100% - 2 * var(--gutter)));
}
.hero-content > * { animation: rise 0.7s var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: 0.06s; }
.hero-content > :nth-child(3) { animation-delay: 0.12s; }
.hero-content > :nth-child(4) { animation-delay: 0.16s; }
.hero-content > :nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.eyebrow .badge-new { background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.1em; }
.hero-title { margin: 0 0 16px; font-size: clamp(38px, 6.4vw, 84px); line-height: 0.95; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.hero-title.long { font-size: clamp(32px, 4.6vw, 62px); }
.hero-tag { margin: 0 0 12px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: #e2e0d8; max-width: 540px; text-wrap: pretty; }
.hero-meta { margin: 0 0 26px; color: var(--dim); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-meta span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(120px, 20vh, 190px); display: flex; gap: 8px; }
.hero-dot { width: 34px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; position: relative; }
.hero-dot::before { content: ""; position: absolute; inset: -12px 0; }
.hero-dot i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.hero-dot.done i { transform: scaleX(1); }
.hero-dot.active i { animation: fill var(--hero-ms, 9000ms) linear forwards; }
.hero.paused .hero-dot.active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- catalog rows ---------- */
.catalog { position: relative; z-index: 2; margin-top: clamp(-120px, -12vh, -60px); padding-bottom: 40px; }
.view-tabs { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
.view-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); font-weight: 600; font-size: 15px; }
.view-tab:hover { color: #fff; }
.view-tab.on { background: #fff; color: #000; border-color: #fff; }
.view-tab.build.on { background: var(--green); border-color: var(--green); color: #04130a; }
.view-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.view-count { font-family: var(--mono); font-size: 12px; opacity: .7; margin-left: 4px; }
.view-note { flex-basis: 100%; margin: 6px 0 0; color: var(--dim); font-size: 14.5px; }
.row { margin-bottom: clamp(30px, 4vw, 48px); }
.row-head { padding: 0 var(--gutter); display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.row-head h2 { margin: 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
.row-sub { color: var(--faint); font-size: 14px; }
.row-wrap { position: relative; }
.row-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 14px var(--gutter) 26px; margin: -14px 0 -26px; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: calc(var(--gutter) - 6px); min-width: 36px;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #fff;
  opacity: 0; transition: opacity 0.2s, background-color 0.2s;
}
.row-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.row-arrow:hover svg { transform: scale(1.2); }
.row-arrow.prev { left: 0; }
.row-arrow.next { right: 0; }
.row-arrow[hidden] { display: none; }
@media (hover: hover) { .row-wrap:hover .row-arrow { opacity: 1; } }

/* card */
.card {
  flex: 0 0 auto; width: clamp(236px, 22vw, 330px); aspect-ratio: 16 / 9;
  position: relative; border-radius: 8px; overflow: hidden; text-align: left;
  background: var(--panel); scroll-snap-align: start;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 70%); }
.card-body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.card-title { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.card-meta { margin-top: 6px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--dim); }
.card-meta span { white-space: nowrap; }
.top-item .card-meta span:not(.type) { display: none; }
.card-meta .type { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.card-flag { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 4px; }
.card-flag.new { background: var(--brand); color: #fff; }
.card-flag.build { left: auto; right: 10px; background: var(--green); color: #04130a; }
.card-flag.soon { background: rgba(0, 0, 0, 0.7); color: var(--dim); border: 1px solid var(--line-2); }
.card-play {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--text); color: #000; display: grid; place-items: center;
  opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.card-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.card.is-soon .art { filter: saturate(0.55) brightness(0.72); }
@media (hover: hover) {
  .card:hover, .card:focus-visible { transform: scale(1.05); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.7); z-index: 2; }
  .card:hover .art { transform: scale(1.06); }
  .card:hover .card-play { opacity: 1; transform: scale(1); }
}

/* top picks */
.top-item { flex: 0 0 auto; display: flex; align-items: flex-end; scroll-snap-align: start; }
.top-num {
  font-size: clamp(120px, 12vw, 190px); line-height: 0.74; font-weight: 700; letter-spacing: -0.08em;
  color: #000; -webkit-text-stroke: 3px #57595e; margin-right: -0.14em; user-select: none;
}
.top-item .card { width: clamp(150px, 13vw, 200px); aspect-ratio: 2 / 3; }
.top-item .card-title { font-size: 16px; }

/* results */
.results { padding-top: 110px; margin-bottom: 40px; }
.results-grid { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px 10px; }
.results-grid .card { width: 100%; }
.results-empty { padding: 0 var(--gutter); color: var(--dim); }
body.searching .hero, body.searching #rows { display: none; }
body.searching .catalog { margin-top: 0; }

/* ---------- art animation (hover / hero only) ---------- */
.art .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.art .spin, .art .drift, .art .rise, .art .pulse { animation-play-state: paused; }
.art .spin { animation: spin 7s linear infinite; }
.art .drift { animation: drift 9s ease-in-out infinite alternate; }
.art .rise { animation: riseB 5s linear infinite; }
.art .pulse { animation: pulse 2.4s ease-in-out infinite; }
.hero-art .art .spin, .hero-art .art .drift, .hero-art .art .rise, .hero-art .art .pulse,
.card:hover .art .spin, .card:hover .art .drift, .card:hover .art .rise, .card:hover .art .pulse,
.d-art .art .spin, .d-art .art .drift, .d-art .art .rise, .d-art .art .pulse { animation-play-state: running; }
.hero-art .art .trace, .d-art .art .trace { animation: draw 3.6s var(--ease-out) both; }
.card:hover .art .trace { animation: draw 1.6s var(--ease-out); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate(-4px, 2px); } to { transform: translate(6px, -4px); } }
@keyframes riseB { from { transform: translateY(0); } to { transform: translateY(-40px); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ---------- sections ---------- */
.section-inner { padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto; }
.why, .plans { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.display { margin: 0 0 20px; font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; max-width: 900px; text-wrap: balance; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--brand); }
.lede { margin: 0 0 56px; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); text-wrap: pretty; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 26px 34px; }
.feature svg { width: 30px; height: 30px; color: var(--brand); margin-bottom: 22px; stroke-width: 1.6; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 20px; margin-top: 44px; }
.plan { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 34px 30px 30px; display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.plan-for { margin: 4px 0 24px; color: var(--dim); }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15.5px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-featured { border-color: rgba(255, 77, 61, 0.5); background: radial-gradient(120% 80% at 100% 0%, rgba(255, 77, 61, 0.14), transparent 60%), var(--bg-2); }
.plan-flag { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); border: 1px solid rgba(255, 77, 61, 0.5); padding: 3px 8px; border-radius: 4px; }

.footer { border-top: 1px solid var(--line); padding: 50px 0 60px; color: var(--faint); font-size: 14px; }
.footer-inner p { max-width: 560px; margin: 16px 0 0; }
.footer-small { font-family: var(--mono); font-size: 12px; }

/* ---------- detail dialog ---------- */
.detail {
  width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 48px); margin: 24px auto auto;
  padding: 0; border: 0; border-radius: 12px; background: #141416; color: var(--text);
  overflow-y: auto; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.detail[open] { animation: dialogIn 0.32s var(--ease-out); }
.detail::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.d-art { position: relative; aspect-ratio: 16 / 8; min-height: 260px; overflow: hidden; }
.d-art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-art-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #141416 0%, rgba(20, 20, 22, 0.6) 30%, transparent 62%); }
.d-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0, 0, 0, 0.7); }
.d-art-content { position: absolute; left: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); bottom: 20px; }
.d-art-content h2 { margin: 0 0 18px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.d-actions .round { width: 48px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(20, 20, 22, 0.6); }
.d-actions .round:hover { border-color: #fff; }
.d-body { padding: 8px clamp(20px, 4vw, 44px) 40px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px 40px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; color: var(--dim); font-size: 14.5px; }
.d-meta .type { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text); padding: 2px 7px; border-radius: 4px; }
.d-meta .new { color: var(--brand); font-weight: 600; }
.d-desc { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; }
.d-side { font-size: 14.5px; color: var(--dim); display: grid; gap: 10px; align-content: start; }
.d-side b { color: var(--faint); font-weight: 400; }
.d-side span { color: var(--text); }
.d-section { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.d-section h3 { margin: 0 0 14px; font-size: 13px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.d-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.d-list li { display: flex; gap: 12px; line-height: 1.5; }
.d-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--brand); }
.d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prompts { counter-reset: p; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.prompts li { counter-increment: p; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 52px; position: relative; line-height: 1.5; }
.prompts li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--mono); color: var(--brand); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; color: var(--dim); background: var(--panel-2); border-radius: 100px; padding: 4px 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--text); color: #000; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- player page ---------- */
.player-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.player-bar { flex: none; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 clamp(8px, 2vw, 20px); background: #000; border-bottom: 1px solid var(--line); }
.pb-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pb-title strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.player-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links > a { display: none; }
  .nav-inner { gap: 20px; }
}
@media (max-width: 720px) {
  .nav-inner { height: 60px; gap: 12px; }
  .logo span { display: none; }
  .nav-right .btn-brand { display: none; }
  .search.open input { width: min(200px, 48vw); }
  .hero { height: 82vh; min-height: 540px; }
  .hero-shade { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.35) 100%); }
  .hero-content { bottom: 92px; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 58px; }
  .catalog { margin-top: -16px; }
  .hero-actions .btn { flex: 1; padding: 0 16px; }
  .features, .plan-grid, .d-body, .d-cols { grid-template-columns: 1fr; }
  .card { width: 72vw; }
  .top-item .card { width: 36vw; }
  .top-num { font-size: 104px; -webkit-text-stroke-width: 2px; }
  .d-art { aspect-ratio: 4 / 3; }
  .pb-copy-label, #pbCopy span { display: none; }
  .detail { margin-top: 12px; max-height: calc(100dvh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
