/* Beat catalogue: a plain list of rows with thin rules, no cards. Hierarchy by type and alignment. */
.beats { width: min(100% - 2 * var(--margin), 1100px); margin-inline: auto; padding: clamp(110px, 14vw, 160px) 0 var(--gap-section); }
.beats h1 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.search { position: relative; display: flex; align-items: center; margin-top: clamp(28px, 4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, 0.28); transition: border-color 200ms; }
.search:focus-within { border-bottom-color: rgba(255, 255, 255, 0.6); }
.search input { flex: 1; min-width: 0; width: 100%; min-height: 52px; padding: 0 2px; background: none; border: 0; border-radius: 0; color: var(--ink);
  font: inherit; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.f-open { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px 0 12px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: var(--step-small); font-weight: 600; transition: color 160ms; }
.f-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.f-open:hover, .f-open[aria-expanded="true"] { color: var(--ink); }
.f-open.set { color: var(--accent); }
.f-n:empty { display: none; }
.f-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--ink); color: var(--ground); font-size: 0.75rem; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.f-open:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.count { margin-top: 14px; min-height: 1.5em; color: var(--muted); font-size: var(--step-small); }

.row, .lhead { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 64px 104px 132px; gap: 0 18px; align-items: center; }
.lhead { min-height: 40px; color: var(--muted); font-size: 0.8125rem; }
.lhead .h-name { grid-column: 3; }
.ridx { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; text-align: right; }
.h-sort { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; transition: color 160ms; }
.h-sort svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: rotate(180deg); transition: opacity 160ms, transform 200ms var(--ease-out); }
.h-sort:hover { color: var(--ink); }
.h-sort:hover svg { opacity: 0.5; }
.h-sort.on { color: var(--accent); }
.h-sort.on svg { opacity: 1; }
.h-sort.down svg { transform: none; }
.h-sort:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.cbpm, .ckey { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .sub .sep, .row .sub .bk { display: none; }
.list { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.row { position: relative; padding: 12px 0; }
.row .name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.row .sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--step-small); font-weight: 400; font-variant-numeric: tabular-nums; }
/* the price button opens the licence chooser: a soft pill that only turns solid under the pointer, so a column of
   them reads as prices, not as a stack of white blocks */
.rbuy { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--ink); font: inherit; font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.rbuy svg { width: 18px; height: 18px; opacity: 0.75; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: opacity 180ms; }
.rbuy:hover { background: var(--ink); color: #0d0c10; }
.rbuy:hover svg { opacity: 1; }
.rbuy:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.row.playable { cursor: pointer; }
/* add to cart: an icon at the row end; it opens the licence chooser */
.radd { position: relative; display: block; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--muted);
  transition: color 160ms, background-color 160ms; }
.radd svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.radd:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.radd:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

/* play control at the row start: the cover is the button; the glyph shows on hover and while the beat is current, always when
   there is no cover (a --ground-2 square). */
.rplay, .rplay-ph { position: relative; display: block; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; }
.rplay, .rplay-ph:has(.cover-img) { background: var(--ground-2); }
.cover-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rplay { padding: 0; border: 0; border-radius: 0; cursor: pointer; color: var(--ink); transition: background-color 160ms, color 160ms; }
.rplay:hover { background: #211e29; }
.rplay.has-cover::after { content: ""; position: absolute; inset: 0; background: rgba(13, 12, 16, 0.55); opacity: 0; transition: opacity 180ms; }
.rplay.has-cover:hover::after, .rplay.has-cover:focus-visible::after, .is-active .rplay.has-cover::after { opacity: 1; }
.rg { position: absolute; inset: 0; z-index: 1; transition: opacity 180ms; }
.rplay.has-cover .rg { opacity: 0; }
.rplay.has-cover:hover .rg, .rplay.has-cover:focus-visible .rg, .is-active .rplay.has-cover .rg { opacity: 1; }
.rplay:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.rplay svg, .p-btn svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.rplay svg, .p-play svg { transition: opacity 180ms, transform 220ms var(--ease-out); }
.i-play { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.i-pause { fill: currentColor; opacity: 0; transform: scale(0.9); }
.is-playing .rplay .i-play, .is-busy .rplay .i-play, .pbar.is-playing .p-play .i-play, .pbar.is-busy .p-play .i-play { opacity: 0; transform: scale(0.9); }
.is-playing .rplay .i-pause, .is-busy .rplay .i-pause, .pbar.is-playing .p-play .i-pause, .pbar.is-busy .p-play .i-pause { opacity: 1; transform: none; }
.is-busy .rplay .i-pause, .pbar.is-busy .p-play .i-pause { animation: beat-wait 900ms ease-in-out infinite alternate; }
@keyframes beat-wait { to { opacity: 0.35; } }
.row .name { transition: color 200ms; }
.is-active .row .name { color: var(--accent); }
.rline { display: none; }

/* the licence chooser: a dialog in the middle of the screen, a sheet from the bottom on phones */
.lic { width: min(720px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 26px 30px 24px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0;
  background: var(--ground-2); color: var(--ink); overflow-y: auto; }
.lic::backdrop { background: rgba(5, 4, 8, 0.7); backdrop-filter: blur(6px); }
.lic-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 16px; align-items: center; }
.lic-cover { position: relative; width: 56px; height: 56px; background: rgba(255, 255, 255, 0.06); }
.lic-cover:empty { display: none; }
.lic-name { margin: 0; font-size: 1.25rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.lic-meta { margin-top: 4px; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.lic-x { position: relative; width: 44px; height: 44px; margin: -10px -12px 0 0; align-self: start; padding: 0; background: none; border: 0; cursor: pointer; color: var(--muted); }
.lic-x:hover, .lic-x:focus-visible { color: var(--ink); outline: none; }
.lic-x svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* the licences side by side; the chosen one gets the accent line on top and accent type */
.lic-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.lic-opt { position: relative; display: grid; gap: 4px; padding: 14px 16px 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer; transition: background-color 160ms, box-shadow 160ms; }
.lic-opt:hover { background: rgba(255, 255, 255, 0.06); }
.lic-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lic-opt:has(input:checked) { background: rgba(185, 166, 232, 0.08); box-shadow: inset 0 2px 0 var(--accent); }
.lic-opt:has(input:focus-visible) { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.lic-title { font-weight: 650; font-stretch: 112%; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.9375rem; }
.lic-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.lic-opt:has(input:checked) .lic-price { color: var(--accent); }
.lic-files { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.04em; }
/* what the licence allows: icon + line, two columns */
.lic-sub { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; font-weight: 650; }
.lic-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px 24px; margin-top: 14px; }
.lic-terms li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.lic-note { margin: 16px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.lic-note[hidden] { display: none; }
.lic-ic svg { display: block; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* total and actions */
.lic-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.lic-total { display: grid; gap: 2px; }
.lic-total span { color: var(--muted); font-size: var(--step-small); }
.lic-total b { font-size: 1.375rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.lic-acts { display: flex; gap: 10px; }
.lic-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); font: inherit; font-weight: 600; font-size: var(--step-small); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms; }
.lic-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); }
.lic-btn.solid { background: var(--button); color: var(--button-ink); box-shadow: none; }
.lic-btn.solid:hover:not(:disabled) { background: #fff; }
.lic-btn:disabled { opacity: 0.35; cursor: default; }
.lic-btn[hidden], .lic-later[hidden] { display: none; }
.lic-later { margin-top: 14px; color: var(--muted); font-size: var(--step-small); text-align: right; }
.lic-later a { color: var(--ink); text-underline-offset: 3px; }
.lic-later a:hover { color: #fff; }

.note { margin-top: 28px; color: var(--muted); }
.more { display: block; margin: 32px auto 0; min-height: 48px; padding: 0 28px; background: none; border: 0; border-radius: 0; cursor: pointer; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); transition: background-color 160ms; }
.more:hover { background: rgba(255, 255, 255, 0.06); }
.more:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 760px) {
  .rplay, .rplay-ph { width: 48px; height: 48px; }
  /* one line per beat: cover, name over "BPM · key", the cart at the end */
  .row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0 14px; padding: 10px 0; min-height: 0; }
  .lhead, .cbpm, .ckey, .ridx { display: none; }
  .row .sub .bk { display: inline; }
    .row .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbuy { min-height: 40px; padding: 0 12px; gap: 6px; }
  .ract { gap: 0; }
  .ibtn { width: 36px; }
  .row .name { overflow: hidden; }
  /* phones: the authors get their own line instead of being cut to "MONA…"; BPM and key under them */
  .row .sub .au { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row .sub .sep { display: none; }
  .f-open-t { display: none; }
  .is-shared .row { margin-inline: calc(var(--margin) * -0.5); padding-inline: calc(var(--margin) * 0.5); }
  .lic { width: 100%; max-width: none; margin: auto 0 0; padding: 20px var(--margin) calc(20px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  /* the three licences stacked, each on a short block: title and price on one line, the files under them */
  .lic-opts { grid-template-columns: 1fr; gap: 8px; }
  .lic-opt { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
  .lic-files { grid-column: 1 / -1; }
  .lic-terms { grid-template-columns: 1fr; gap: 10px; }
  .lic-foot { flex-direction: column; align-items: stretch; }
  .lic-total { grid-auto-flow: column; justify-content: space-between; align-items: baseline; }
  .lic-acts .lic-btn { flex: 1; }
  .lic-later { text-align: center; }
}

/* the player bar: a full-bleed surface, its content in the same column as the list; the waveform on top, the beat and controls under it */
.pbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: #16141b; border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%); transition: transform 420ms var(--ease-out); }
.pbar.in { transform: none; }
/* the contact button rides above the player bar while it is shown */
.fab { transition: opacity 300ms, transform 400ms var(--ease-out), background-color 200ms, gap 300ms var(--ease-out), padding 300ms var(--ease-out), bottom 420ms var(--ease-out); }
.has-player .fab { bottom: calc(var(--player-h, 0px) + clamp(16px, 2.2vw, 32px)); }
.p-in { width: min(100% - 2 * var(--margin), 1100px); margin-inline: auto; display: grid; align-items: center; column-gap: clamp(16px, 2vw, 28px);
  grid-template-columns: auto minmax(160px, 240px) minmax(0, 1fr) auto; grid-template-areas: "ctl info time side"; }
.p-id { grid-area: info; display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-cover { position: relative; flex: none; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--ground-2); }
.p-cover:empty { display: none; }
.p-info { display: grid; gap: 1px; min-width: 0; }
.p-name { font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta, .p-msg { color: var(--muted); font-size: var(--step-small); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-msg { display: none; }
.p-msg a { color: var(--ink); text-underline-offset: 3px; }
.p-msg a:hover { color: #fff; }
.pbar.has-msg .p-meta { display: none; }
.pbar.has-msg .p-msg { display: block; }
.p-ctl { grid-area: ctl; display: flex; align-items: center; gap: 2px; }
.p-btn { position: relative; display: block; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; color: var(--ink); transition: color 160ms, background-color 160ms; }
.p-btn:hover:not(:disabled) { color: #fff; }
.p-btn:focus-visible { outline: none; color: #fff; }
.p-btn:disabled { opacity: 0.35; cursor: default; }
.p-btn svg { width: 20px; height: 20px; margin: -10px 0 0 -10px; fill: currentColor; stroke: none; }
.p-btn .w { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.p-btn.p-play svg { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.p-btn .i-play { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.p-time { grid-area: time; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.p-clock { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; min-width: 2.4em; }
.p-clock:last-child { text-align: right; }
/* the waveform is the slider: a click or a drag seeks */
.p-line { position: relative; height: 36px; cursor: pointer; touch-action: none; outline-offset: 2px; }
.p-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p-line:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); }
.p-side { grid-area: side; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.p-vol { display: flex; align-items: center; gap: 0; margin-right: 6px; }
/* volume, heart and cart: one size, one stroke, one centre line */
.p-side .p-btn, .p-side .ibtn { width: 40px; height: 40px; }
.p-mute svg { width: 24px; height: 24px; margin: -12px 0 0 -12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-side .ibtn svg, .p-side .ibtn.radd svg { width: 24px; height: 24px; margin: -12px 0 0 -12px; stroke-width: 1.6; }
.p-side .ibtn.radd svg { margin-top: -13px; }   /* the handle sits high: lift the bag so its mass lines up with the heart */
.p-mute .w { transition: opacity 160ms; }
.pbar.is-muted .p-mute .w { opacity: 0; }
.p-range { -webkit-appearance: none; appearance: none; width: 84px; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.p-range::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, 0.28); }
.p-range::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.28); }
.p-range::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--ink); border: 0; }
.p-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 0; }
.p-range:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.p-buy-slot { display: contents; }
.beats { transition: padding-bottom 300ms; }
html.has-player .beats { padding-bottom: calc(var(--gap-section) + var(--player-h, 0px)); }
/* the cookie panel and the footer step over the bar while it is there */
html.has-player .consent { bottom: calc(var(--margin) + var(--player-h, 0px)); }
html.has-player .footer { margin-bottom: var(--player-h, 0px); }
@media (max-width: 560px) { html.has-player .consent { bottom: var(--player-h, 0px); } }
@media (max-width: 960px) { .p-vol { display: none; } }
/* phones: the waveform across the top; under it the beat, play, next and the cart. No volume (hardware keys), no heart. */
@media (max-width: 760px) {
  .p-in { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "time time time" "info ctl side"; row-gap: 4px; column-gap: 8px; }
  .p-ctl { gap: 0; }
  .p-line { height: 28px; }
  .p-time { gap: 10px; }
  .p-btn.p-prev, .ibtn.p-fav { display: none; }
  .p-cover { width: 40px; height: 40px; }
  .p-id { gap: 10px; }
  .p-ctl { gap: 0; }
}

/* the actions at the row end: heart, menu, price */
.ract { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.ibtn { position: relative; display: block; flex: none; width: 40px; height: 40px; padding: 0; background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--muted);
  transition: color 160ms, background-color 160ms; }
.ibtn svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: fill 160ms; }
.ibtn:hover { color: var(--ink); }
.ibtn.radd:hover { background: none; }
.ibtn.radd svg { width: 24px; height: 24px; margin: -12px 0 0 -12px; stroke-width: 1.6; }
.ibtn:focus-visible { outline: none; color: var(--ink); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] svg { fill: var(--accent); }
.kebab svg circle { fill: currentColor; }
.kebab[aria-expanded="true"] { color: var(--ink); }
/* one popover for the row menu and the filters: a dark surface, a hairline, no glow */
.kmenu:not([hidden]) { position: fixed; z-index: 40; display: grid; min-width: 200px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 0; background: #1d1a24; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.kmenu:focus { outline: none; }
.kitem { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; background: none; border: 0; border-radius: 0; cursor: pointer; color: var(--ink); font: inherit; font-size: var(--step-small); text-align: left; white-space: nowrap; transition: color 160ms, background-color 160ms; }
.kitem svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kitem:hover, .kitem:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; }
.kitem.sel svg { visibility: hidden; color: var(--accent); }
.kitem.sel[aria-selected="true"] svg { visibility: visible; }
.kitem.sel[aria-selected="true"] { color: var(--accent); }

.pop-bpm { display: flex; align-items: center; gap: 10px; }
.pop-num { width: 84px; min-height: 40px; padding: 0 2px; background: none; border: 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: var(--ink); font: inherit; font-size: var(--step-small); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; transition: border-color 200ms; }
.pop-num::-webkit-outer-spin-button, .pop-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pop-num::placeholder { color: var(--muted); }
.pop-num:focus { outline: none; border-bottom-color: rgba(255, 255, 255, 0.6); }
.f-dash { width: 10px; height: 1px; background: var(--muted); }
.pop-presets { display: flex; flex-wrap: wrap; gap: 0 16px; }
.pop-preset, .pop-key { min-height: 40px; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: var(--step-small); font-variant-numeric: tabular-nums; transition: color 160ms; }
.pop-preset:hover, .pop-key:hover { color: var(--ink); }
.pop-preset[aria-pressed="true"], .pop-key[aria-pressed="true"] { color: var(--accent); font-weight: 650; }
.pop-preset:focus-visible, .pop-key:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.pop-key.any { justify-self: start; }
.pop-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 4px; min-width: 264px; }
.pop-keys .pop-key { min-width: 40px; text-align: center; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + var(--player-h, 0px)); padding: 12px 20px; background: var(--ground-2); border: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--step-small);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity 200ms, transform 240ms var(--ease-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* a beat opened from a shared link: a soft accent tint */
.is-shared .row { margin-inline: -12px; padding-inline: 12px; background: rgba(185, 166, 232, 0.09); }

/* the filter panel (behind the button in the search field) */
.kmenu.is-dialog { width: 340px; padding: 16px; gap: 18px; }
.fp-sec { display: grid; gap: 8px; }
.fp-h { color: var(--muted); font-size: 0.8125rem; }
.fp-sort { display: none; }
.fp-sort .kitem { margin-inline: -12px; }
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fp-fav { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: var(--step-small); font-weight: 600; transition: color 160ms; }
.fp-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: fill 160ms; }
.fp-fav:hover { color: var(--ink); }
.fp-fav[aria-pressed="true"] { color: var(--accent); }
.fp-fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.fp-fav:focus-visible, .f-reset:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.f-reset:not([hidden]) { display: inline-block; min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: var(--step-small); transition: color 160ms; }
.f-reset:hover { color: var(--ink); }
@media (max-width: 760px) {
  .fp-sort { display: grid; gap: 0; }
  /* phones: the panel is a sheet from the bottom edge, over the player, scrolling inside when it is taller than the screen */
  .kmenu.is-dialog { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; max-height: 85vh; overflow-y: auto;
    border-radius: 0; border-width: 1px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbar { transition: none; }
  .is-busy .rplay .i-pause, .pbar.is-busy .p-play .i-pause { animation: none; }
  .rplay svg, .p-play svg { transition: none; }
}

/* phones: the heart leaves the row (no room next to the price); it stays in the row menu */
@media (max-width: 560px) { .row .ibtn.fav { display: none; } }
