/* Hallmark · shape: Night Shelf, a video index whose rows are sounds · genre: atmospheric · theme: custom · job: listen · idea: "a late-night shelf of ASMR videos sorted by sound, the sounds you hate struck out at the top" · vibe: "lamp off, programme guide, soft focus stills"
 * paper: oklch(15.5% 0.012 40) night, oklch(95.6% 0.004 60) day · accent: oklch(73% 0.14 18) rose, used for what you never want to hear · display and body: M PLUS Rounded 1c (Khan chose it for a softer feel) · hero: one question over eight sound pictures, with Just play something beside it · nav: search-led bar over a sticky sound strip · footer: statement · imagery: generated soft-focus stills as stand-in thumbnails in product slots · signature: Hide sounds, a sound struck through in rose and gone from every list
 * axes: dark/rounded-sans/chromatic-rose · posture: restrained · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: S, a grid of thumbnails is every video site; the struck-through Never play chips in the sticky strip and rows named by sound are what only this index has */
/* Hallmark · waive 80 · generated soft-focus stills stand in for YouTube thumbnails · the page host blocks remote images and the real site shows each video's own YouTube thumbnail in these slots */
/* Hallmark · dismissed F4 · the round play glyph is the video player's own control drawn on the still; the one filled action on the page is Play with sleep timer */
/* Hallmark · waive 59 · rows of videos part by hairlines and 96px · a video shelf is a dense macrostructure that separates its rows with rules, a band and a change of size */
/* Hallmark · waive 72 · div.desc.is-clamped · the description is clamped to three lines behind Show more and the hidden lines are what the check measures */
/* tokens.css and base.css are linked before this file in the layouts, each with a version query */

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
body { font-weight: 400; }
h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.12; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--bar-height); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.topbar .container { height: 100%; display: flex; align-items: center; gap: var(--space-lg); }
.wordmark { font: 700 1.6rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.search { flex: 1 1 auto; max-width: 40rem; margin-inline: auto; display: flex; align-items: center; gap: var(--space-xs); min-height: 46px; padding: 0 var(--space-xs) 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-muted); }
.search:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.search svg { width: 18px; height: 18px; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: var(--color-clear); color: var(--color-ink); outline: none; }
.search input::placeholder { color: var(--color-muted); }
.search kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border: var(--rule-hair) solid var(--color-muted); border-radius: var(--space-xs); font: 400 var(--text-sm)/1 var(--font-body); color: var(--color-muted); }
.bar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.modebtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.modebtn:hover { background: var(--color-paper-2); }
.modebtn:active { transform: translateY(1px); }
.modebtn svg { grid-area: 1 / 1; width: 20px; height: 20px; }
.modebtn .i-sun, .modebtn[data-current="dark"] .i-moon { display: none; }
.modebtn[data-current="dark"] .i-sun { display: block; }
html:not(.js) .modebtn { display: none; }
.iconbtn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.iconbtn:hover { background: var(--color-paper-2); }
.iconbtn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* The sound strip */
.strip { position: sticky; top: var(--bar-height); z-index: var(--z-sticky); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.strip__scroll { display: flex; align-items: center; gap: var(--space-xs); min-height: var(--chips-height); overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, var(--color-scrim) 0, var(--color-scrim) calc(100% - var(--space-2xl)), var(--color-clear)); }
.strip__scroll::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.chip:hover { background: var(--color-paper-3); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
a.chip { text-decoration: none; }
.chip--small { min-height: 36px; padding: 0 var(--space-sm); font-size: var(--text-xs); }
.chip--never { background: var(--color-paper); color: var(--color-ink); }
.chip--never[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); }
.chip--never[aria-pressed="true"] span { text-decoration: line-through; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

/* Thumbnails */
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-thumb); background: var(--color-band-2); }
.thumb > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.thumb > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, var(--color-clear)); outline-offset: -1px; }
.thumb::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--color-scrim); opacity: 0.12; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.len { position: absolute; right: var(--space-xs); bottom: var(--space-xs); z-index: 3; padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); background: var(--color-plate); color: var(--color-plate-ink); font: 500 var(--text-xs)/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.flag { position: absolute; left: var(--space-xs); bottom: var(--space-xs); z-index: 3; padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); background: var(--color-plate); color: var(--color-plate-ink); font: 400 var(--text-xs)/1.3 var(--font-body); }

.card { display: grid; gap: var(--space-sm); align-content: start; color: var(--color-ink); text-decoration: none; }
.card:hover .thumb::after, .card:focus-visible .thumb::after { opacity: 0; }
.card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-thumb); }
.card__text { display: grid; gap: var(--space-2xs); min-width: 0; }
.card__title { font: 500 var(--text-md)/1.35 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* Player frame (watch page) */
.player__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-card); background: var(--color-band); }
.player__frame > img, .player__frame > iframe, .player__frame > #yt-player, .player__frame iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player__frame.is-playing::before, .player__frame.is-playing::after { display: none; }
.player__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(var(--color-clear) 55%, color-mix(in oklab, var(--color-scrim) 70%, var(--color-clear))); pointer-events: none; }
.play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 88px; height: 88px; transform: translate(-50%, -50%); border: 0; border-radius: var(--radius-pill); background: var(--color-plate-ink); color: var(--color-scrim); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-short) var(--ease-out); }
.play:hover { transform: translate(-50%, -50%) scale(1.04); }
.play:active { transform: translate(-50%, -50%) scale(0.98); }
.play:focus-visible { outline: 3px solid var(--color-plate-ink); outline-offset: 4px; }
.play svg { width: 34px; height: 34px; }
.player__frame .len { right: var(--space-md); bottom: var(--space-md); font-size: var(--text-sm); }
.player__frame .flag { left: var(--space-md); bottom: var(--space-md); font-size: var(--text-sm); }
.player__frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: 2; background: linear-gradient(color-mix(in oklab, var(--color-scrim) 65%, var(--color-clear)), var(--color-clear)); pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .chip:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--quiet { background: var(--color-clear); color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); }
.queue { justify-self: stretch; display: grid; gap: var(--space-md); margin-top: var(--space-xs); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.queue__label { font-size: var(--text-sm); color: var(--color-muted); }
.queue .card { grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: var(--space-md); }
.queue .card__title { font-size: var(--text-sm); }

/* Section heads */
.shelf { padding-block: var(--space-3xl) 0; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.shelf__head h2 { font-size: var(--text-section); max-width: 22ch; }
.shelf__head a { font-weight: 500; font-size: var(--text-md); color: var(--color-ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.shelf__head a:hover { text-decoration-color: var(--color-accent); }

/* Triggers */
.triggers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { position: relative; display: grid; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.tile .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-card); }
.tile__text { display: grid; gap: var(--space-3xs); }
.tile__name { font: 700 var(--text-lg)/1.2 var(--font-display); }
.tile:hover .thumb::after, .tile:focus-visible .thumb::after { opacity: 0; }
.tile:hover .tile__name { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.tile p { font-size: var(--text-sm); color: var(--color-muted); }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }

/* Sleep band */

.pills { display: flex; gap: var(--space-2xs); padding: var(--space-3xs); border: var(--rule-hair) solid var(--color-band-rule); border-radius: var(--radius-pill); }
.pills button { min-width: 48px; min-height: 40px; padding: 0 var(--space-sm); white-space: nowrap; border: 0; border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-band-muted); font: 500 var(--text-sm)/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.pills button:hover { color: var(--color-band-ink); }
.pills button[aria-pressed="true"] { background: var(--color-band-ink); color: var(--color-band); }
.pills button:focus-visible { outline-color: var(--color-plate-ink); }
.switch { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0; border: 0; background: var(--color-clear); color: var(--color-band-ink); font: 400 var(--text-md)/1 var(--font-body); cursor: pointer; }
.switch__track { position: relative; width: 46px; height: 26px; border-radius: var(--radius-pill); background: var(--color-band-rule); transition: background-color var(--dur-short) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--color-band-ink); transition: transform var(--dur-short) var(--ease-in-out); }
.switch[aria-checked="true"] .switch__track { background: var(--color-accent); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(20px); background: var(--color-accent-ink); }

/* Collections */

/* Footer */
.footer { margin-top: var(--section-gap-s); padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__line { font: 700 var(--text-display-s)/1.15 var(--font-display); letter-spacing: var(--tracking-display); max-width: 20ch; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.footer__links a { color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

@media (max-width: 75rem) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .topbar .container { gap: var(--space-sm); }
  .search kbd, .iconbtn span { display: none; }
  .triggers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  :root { --bar-height: 112px; }
  .topbar .container { flex-wrap: wrap; align-content: center; row-gap: var(--space-xs); }
  .search { order: 3; flex-basis: 100%; margin-inline: 0; }
  .bar-actions { margin-left: auto; }
  .triggers, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-sm); }
  .play { width: 60px; height: 60px; }
  .play svg { width: 24px; height: 24px; }
  .player__frame .flag { display: none; }
  .shelf__head { flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-lg); }
  .wordmark { font-size: 1.375rem; }
  .bar-actions { gap: var(--space-xs); }
  .shelf { padding-top: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .chip, .btn, .play, .iconbtn, .modebtn, .pills button, .switch__track, .switch__track::after, .thumb::after, .shelf__head a { transition: none; }
}

/* Listings */
.listing { padding-block: var(--space-2xl) var(--space-3xl); }
.listing__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.listing__head h1 { font-size: var(--text-section); max-width: 24ch; }
.listing__head .lead { font-size: var(--text-lead); color: var(--color-muted); max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.filters__label { margin-right: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.pill:hover { background: var(--color-paper-2); }
.pill[aria-current="true"] { background: var(--color-ink); color: var(--color-paper); }
.pager { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.empty { display: grid; gap: var(--space-xs); padding: var(--space-2xl) 0; }
.empty__head { font: 700 var(--text-2xl)/1.1 var(--font-display); }
.empty__line { color: var(--color-muted); max-width: 48ch; }

/* Watch */
.watch { padding-block: var(--space-xl) var(--space-3xl); }
.watch__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-xl); align-items: start; }
.watch__main { display: grid; gap: var(--space-lg); }
.watch__frame::before, .watch__frame::after { display: none; }
.watch__poster { z-index: 2 !important; }
.watch__poster[hidden] { display: none; }
.watch__frame .play[hidden] { display: none; }
.watch__info { display: grid; gap: var(--space-sm); }
.watch__title { font: 700 var(--text-xl)/1.35 var(--font-body); letter-spacing: -0.01em; max-width: 60ch; }
.watch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.watch__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.textlink { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.textlink:hover { text-decoration-color: var(--color-accent); }
.textlink svg { width: 14px; height: 14px; flex-shrink: 0; }
.watch__side { display: grid; gap: var(--space-xl); }
.sleeppanel { display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-band-2); color: var(--color-band-ink); outline: 1px solid var(--color-band-rule); outline-offset: -1px; }
.sleeppanel__head { font: 700 var(--text-2xl)/1 var(--font-display); color: var(--color-band-ink); }
.sleeppanel__status { min-height: 2lh; font-size: var(--text-sm); color: var(--color-band-muted); }
.sleeppanel .pills { justify-self: start; }
.sleeppanel :focus-visible { outline-color: var(--color-plate-ink); }
.sleep-exit { position: fixed; left: 50%; bottom: var(--space-xl); z-index: calc(var(--z-modal) + 2); display: none; min-height: 44px; padding: 0 var(--space-lg); transform: translateX(-50%); border: var(--rule-hair) solid var(--color-band-rule); border-radius: var(--radius-pill); background: var(--color-band-2); color: var(--color-band-muted); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.is-sleep::before { content: ""; position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-scrim); opacity: 0.94; }
.is-sleep .watch__frame { z-index: calc(var(--z-modal) + 1); }
.is-sleep .sleep-exit { display: block; }

/* Prose pages */
.prose { max-width: 46rem; padding-block: var(--space-2xl) var(--space-3xl); }
.prose h1 { font-size: var(--text-section); margin-bottom: var(--space-lg); }
.prose h2 { font-size: var(--text-xl); margin: var(--space-xl) 0 var(--space-sm); }
.prose p, .prose li { color: var(--color-ink-2); line-height: 1.65; max-width: 65ch; }
.prose ul { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.prose a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.fill { padding: 0 var(--space-2xs); border: 1px dashed var(--color-muted); border-radius: var(--space-2xs); color: var(--color-muted); }

@media (max-width: 60rem) {
  .watch__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pill, .textlink { transition: none; }
}
.queue .flag { display: none; }

/* Admin */
.admin__badge { margin-left: var(--space-xs); padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); background: var(--color-accent-soft); color: var(--color-ink); font: 500 var(--text-xs)/1.3 var(--font-body); vertical-align: middle; }
.admin__nav { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; font-weight: 500; }
.admin__nav a { color: var(--color-muted); text-decoration: none; }
.admin__nav a[aria-current="page"], .admin__nav a:hover { color: var(--color-ink); }
.admin__linkbtn { padding: 0; border: 0; background: var(--color-clear); color: var(--color-muted); font: 500 var(--text-md)/1.4 var(--font-body); cursor: pointer; }
.admin__linkbtn:hover { color: var(--color-ink); }
.admin__linkbtn--danger { color: var(--color-accent); font-size: var(--text-sm); }
.admin__main { padding-block: var(--space-xl) var(--space-3xl); }
.admin__note { margin-bottom: var(--space-lg); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-thumb); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.admin__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.admin__head h1 { font-size: var(--text-2xl); }
.admin__stats { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin: 0; }
.admin__stats dt { font-size: var(--text-sm); color: var(--color-muted); }
.admin__stats dd { margin: 0; font: 500 var(--text-xl)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.admin__login { display: grid; gap: var(--space-sm); max-width: 24rem; margin: var(--space-3xl) auto; }
.admin__login h1 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.admin__login input, .admin__add input, .admin__filters input, .admin__filters select { min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-thumb); background: var(--color-paper); color: var(--color-ink); }
.admin__error { color: var(--color-accent); font-size: var(--text-sm); }
.admin__add { display: grid; gap: var(--space-xs); max-width: 40rem; margin-bottom: var(--space-xl); }
.admin__add label { font-weight: 500; }
.admin__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.admin__row input { flex: 1 1 16rem; min-width: 0; }
.admin__tabs { display: flex; gap: var(--space-2xs); margin-bottom: var(--space-md); }
.admin__channels, .admin__videos { list-style: none; margin: 0; padding: 0; }
.admin__channel { display: grid; grid-template-columns: minmax(14rem, 3fr) minmax(0, 5fr) auto; align-items: center; gap: var(--space-lg); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.admin__channel.is-blocked { opacity: 0.6; }
.admin__who { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.admin__avatar { width: 48px; height: 48px; border-radius: var(--radius-pill); flex-shrink: 0; }
.admin__title { font-weight: 500; line-height: 1.35; }
.admin__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.admin__thumbs .thumb { border-radius: var(--space-xs); }
.admin__actions { display: flex; gap: var(--space-xs); }
.btn--danger { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--danger:hover { background: var(--color-accent); filter: brightness(0.95); }
.admin__filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.admin__filters input { flex: 1 1 14rem; }
.admin__video { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.admin__vbody { display: grid; gap: var(--space-sm); align-content: start; }
.admin__tagform fieldset { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0 0 var(--space-sm); padding: 0; border: 0; }
.admin__tag { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 36px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); cursor: pointer; }
.admin__tag:has(input:checked) { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.admin__tag input { accent-color: var(--color-accent); }
@media (max-width: 60rem) {
  .admin__channel { grid-template-columns: minmax(0, 1fr); }
  .admin__video { grid-template-columns: minmax(0, 1fr); }
  .admin__nav { gap: var(--space-md); font-size: var(--text-sm); }
}

/* Top bar link, strip extra */
.barlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.barlink:hover { background: var(--color-paper-2); }
.barlink:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.barlink[aria-current="page"] { background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
.chip--more { background: var(--color-clear); }
.filters__group--wide { flex-basis: 100%; }

/* Creators */
.avatar { flex-shrink: 0; display: inline-grid; place-items: center; overflow: hidden; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink-2); font: 700 var(--text-lg)/1 var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--large { width: 112px; height: 112px; font-size: var(--text-3xl); }
.letters { display: flex; flex-wrap: wrap; gap: var(--space-3xs); margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.letters .pill { min-width: 40px; justify-content: center; padding: 0 var(--space-xs); }
.letter { scroll-margin-top: calc(var(--bar-height) + var(--chips-height) + var(--space-md)); }
.letter + .letter { margin-top: var(--space-xl); }
.letter__head { margin-bottom: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xl); }
.creators { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm) var(--gap-columns); }
.creators--search { margin-bottom: var(--space-2xl); padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.creator-row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm); border-radius: var(--radius-card); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.creator-row:hover { background: var(--color-paper-2); }
.creator-row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.creator-row__text { display: grid; gap: var(--space-3xs); min-width: 0; }
.creator-row__name { font: 500 var(--text-md)/1.3 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-row__meta, .creator-row__sounds { font-size: var(--text-sm); color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creatorhead { display: flex; align-items: center; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.creatorhead__text { display: grid; gap: var(--space-sm); justify-items: start; min-width: 0; }
.creatorhead h1 { font-size: var(--text-section); overflow-wrap: break-word; min-width: 0; max-width: 24ch; }
.creatorhead .lead { font-size: var(--text-lead); color: var(--color-muted); max-width: 52ch; }

/* All sounds */
.triggers--all { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.tile__count { font-size: var(--text-sm); color: var(--color-muted); }
.sounds__sub { margin: var(--space-3xl) 0 var(--space-lg); font-size: var(--text-2xl); }

/* Watch: creator link, description, more from */
.watch__creator { color: var(--color-ink); font-weight: 500; text-decoration: none; }
.watch__creator:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.22em; }
.desc { display: grid; justify-items: start; gap: var(--space-2xs); margin-top: var(--space-xs); padding: var(--space-md) var(--space-lg) var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper-2); }
.desc__body { max-width: 72ch; font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink-2); overflow-wrap: anywhere; }
.desc__body a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.desc.is-clamped .desc__body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc__more { min-height: 44px; padding: 0; border: 0; background: var(--color-clear); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.desc__more:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.shelf--tight { padding-top: var(--space-xl); }
.shelf--tight .shelf__head h2 { font-size: var(--text-2xl); }

@media (max-width: 75rem) {
  .triggers--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triggers--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .creators { grid-template-columns: minmax(0, 1fr); }
  .creatorhead { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .avatar--large { width: 80px; height: 80px; }
  .triggers--all { gap: var(--space-lg) var(--space-sm); }
  .barlink { padding: 0 var(--space-sm); }
  .desc { padding: var(--space-sm) var(--space-md); }
  .filters { flex-direction: column; flex-wrap: nowrap; gap: var(--space-xs); }
  .filters__group--wide { flex-basis: auto; }
  .filters__group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .filters__group::-webkit-scrollbar { display: none; }
  .filters__label { flex-shrink: 0; min-width: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .barlink, .creator-row { transition: none; }
}

/* Strip row and Hide sounds */
.strip__row { position: relative; display: flex; align-items: center; gap: var(--space-sm); }
.strip__row .strip__scroll { flex: 1 1 auto; min-width: 0; }
.hider { flex-shrink: 0; }
.hider__btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; list-style: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.hider__btn::-webkit-details-marker { display: none; }
.hider__btn:hover, .hider[open] .hider__btn { background: var(--color-paper-2); }
.hider__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hider__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.hider__btn[data-on] { border-color: var(--color-accent); background: var(--color-accent-soft); }
.hider__btn[data-on] svg { color: var(--color-accent); }
.hider__panel { position: absolute; right: var(--gutter); top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); width: 24rem; max-width: calc(100% - 2 * var(--gutter)); display: grid; gap: var(--space-sm); padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.hider:not([open]) .hider__panel { display: none; }
.hider__head { font: 700 var(--text-lg)/1.2 var(--font-display); }
.hider__line { font-size: var(--text-sm); color: var(--color-muted); }
.hider__chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-2xs); }

/* Home: pick a sound */
.start { padding-block: var(--space-2xl) var(--space-xl); }
.start__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-xl); margin-bottom: var(--space-xl); }
.start__text { display: grid; gap: var(--space-sm); min-width: 0; }
.start h1 { font-size: var(--text-section); max-width: 20ch; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.start .lead { font-size: var(--text-lead); color: var(--color-muted); max-width: 46ch; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.start__all { margin-top: var(--space-lg); }

@media (max-width: 60rem) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .start { padding-top: var(--space-lg); }
  .start__head { margin-bottom: var(--space-lg); }
  .picks { gap: var(--space-lg) var(--space-sm); }
  .tile__name { font-size: var(--text-md); }
  .hider__btn { padding: 0 var(--space-sm); }
  .hider__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hider__btn { transition: none; }
}
