/* css/players.css — the blind test and sequence players.
 *
 * Until v0.1.1 these rules were built as template strings in
 * js/blindtest-player.js and js/playlist-player.js and injected into a <style>
 * element at mount. That worked, but it put a quarter of the app's CSS
 * somewhere no CSS tooling and no grep of css/ would ever look — which is
 * precisely where the hardcoded #5b6b7a and #aeb9c6 bypasses were hiding when
 * the design-system audit went looking for them.
 *
 * Lifted here VERBATIM. The only edits are literals routed to tokens that hold
 * the identical value, which cannot change a computed style.
 *
 * CASCADE — this file MUST be linked LAST on every page that mounts a player.
 * The injected <style> was appended to document.head at mount time, so it sat
 * after every <link> and won any specificity TIE against them. Linking this
 * file last reproduces that position exactly. Move it earlier and ties silently
 * flip — the same class of bug as the yellow-on-yellow title in v0.1.0.
 *
 * Pages: index.html (library modals), blindtest.html, playlist.html.
 */

/* ============================ BLIND TEST ============================ */

/* No max-width here (v0.2.18). It used to carry `max-width: 100%`, which was
   harmless while this player had no width bound of its own — but v0.2.17 put the
   shared bound on .card-frame (max-width: var(--card-max)), and the two are the
   same specificity (0,1,0) with css/players.css loading AFTER css/tokens.css on
   every page that shows a player. So 100% won, and the blind test ran the full
   width of a desktop window while the standard card sat in its 560px column.
   Nothing is lost by dropping it: the root is a block-level flex item, so it
   already fills no more than its container. */
.bt-player { display: flex; flex-direction: column; gap: 14px; }
.bt-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: var(--tracking);
            font-size: var(--text-title); overflow-wrap: anywhere; }
.bt-scrub { display: block; width: 100%; max-width: 100%; height: 96px;
            background: var(--input-bg); border: 1px solid transparent;
            touch-action: none; cursor: pointer; }
/* Positioned parent for the shared .play-foot time overlay (css/tokens.css). */
.bt-scrub-wrap { position: relative; }

/* ⚠️⚠️ THE "PREPARING BLIND TEST" OVERLAY WAS HERE (.bt-prep, .bt-prep-fill,
   .bt-prep-label) AND IS GONE — v0.2.164, S3. A scrim over the wave window with
   a marching .barberpole fill, shown by `.bt-player.bt-busy .bt-prep` for as
   long as every member took to fetch and decode. Both formats now open on the
   STREAMED path, so that wait no longer exists and neither does the thing that
   narrated it; the waveform is drawn from payload peaks and was always ready
   first. The element went with these rules (js/blindtest-player.js).
   ★ .barberpole itself is untouched — the upload box still uses it, and it was
   never this component's to own.
   ⚠️ --scrim-veil went with it in v0.2.165: this was its only consumer, and a
   token nothing reads is a dial that does nothing. */

/* ★★★ THE INTERSTITIAL (v0.2.166, S6) — "switching may jump", over the wave.
   Fires when you play or switch before the set can switch seamlessly, and takes
   itself away again.

   ⚠️⚠️ NON-BLOCKING IS THE WHOLE POINT, and `pointer-events: none` is what makes
   it true. This is a comparison tool: a notice that stopped playback, or that
   swallowed a tap meant for the scrubber underneath, would interrupt the exact
   listening it exists to explain. Nothing here can be clicked, and the audio is
   never touched.

   ★ THE .toast PATTERN, NOT THE .toast ELEMENT. Always in the DOM, opacity 0,
   raised by a class — the same shape css/style.css uses for the copy toast, so
   the fade behaves identically. The element itself could not be reused: that
   toast is created by js/library.js, which blindtest.html does not load, so a
   recipient on a share link would have got silence.

   ⚠️ POSITIONED AGAINST .bt-scrub-wrap, which is already `position: relative`
   for the .play-foot time readout — the same anchor the old prep overlay used.
   Pinned to the TOP so it never covers that readout in the bottom-right. */
.bt-notice {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: var(--z-raised);
  padding: var(--bt-notice-pad);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--btn-radius);
  box-shadow: 0 8px 28px var(--scrim-shadow);
  font-family: var(--font-body);
  font-size: var(--bt-notice-size);
  line-height: 1.35;
  color: var(--text-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bt-notice-fade) ease;
}
.bt-notice.is-shown { opacity: 1; }
/* ⚠️ NO SIZE OF ITS OWN. The title is distinguished by FACE and COLOUR, which
   costs no height — and height is the scarce thing here. */
.bt-notice-title {
  font-family: var(--font-strong);
  color: var(--text);
  font-weight: normal;   /* U67 is registered at 400 — see .bt-description */
}
.bt-notice-body { margin-top: 2px; }

/* ★★ THE SEAMLESS READOUT (v0.2.165, S5) — js/readyline.js owns the text; this
   only says how it looks. Body font and left-aligned: it is a sentence about the
   material, read once while waiting, not a figure to scan.
   ⚠️⚠️ IT DECLARES NO `display`, DELIBERATELY. The controller shows and hides it
   with the `hidden` property, and any `display` here would out-specify the UA's
   `[hidden] { display: none }` and leave a hidden line fully visible — which is
   exactly what .bt-switch does, and why the blind toggle had to be built absent
   from the DOM instead. The explicit rule below is the belt to that braces. */
.bt-readyline {
  font-family: var(--font-body);
  font-size: var(--bt-readyline-size);
  color: var(--bt-readyline-colour);
  text-align: left;
  /* The row sits in a 14px flex gap; this trims the space to the wave above it
     so it reads as a caption on the waveform rather than a row of its own. */
  margin-top: calc(var(--bt-readyline-gap) - 14px);
}
.bt-readyline[hidden] { display: none; }

/* Exactly one slot is solid — the member you are hearing; the rest carry the
   shared `secondary` class, which is where their outline treatment and their
   accent hover now come from (v0.1.3). Nothing left to declare here. */
.bt-slot-empty { background: transparent; color: var(--panel-border);
                 border-color: var(--panel-border); cursor: default; opacity: 0.5; }
/* ★★ A SLOT NAME TRUNCATES; IT NEVER WRAPS AND NEVER WIDENS (v0.2.152).
   A label may be up to BT_LABEL_MAX (24) characters, and a slot button is 1/N of
   the 528px card — about 36px at eight members on a phone. Without this the
   button either grows (breaking the even 1/N division slice 1b measured) or
   wraps to two lines (making the row taller than every other control on the
   card). Clipped with an ellipsis instead: the FULL name is in the details line
   below and in the edit field, which are the places with room for it.

   ⚠️ SCOPED TO .bt-slots, NOT PUT ON .u-equal-row. That utility is shared with
   the sequence card's SEQ/PLAY rows and the play card transport, whose labels
   are fixed words that must never be clipped — this is the one row whose text is
   user-supplied. .bt-slots button is (0,2,0) like .u-equal-row button, and
   css/players.css loads last, so it wins the tie.
   ⚠️ text-overflow needs ALL THREE of nowrap + hidden + ellipsis; the flex
   min-width:0 that lets the button shrink at all is already on .u-equal-row. */
.bt-slots button {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-actions button { flex: 0 0 108px; }

/* The .bt-switch / .bt-track / .bt-knob rules now live in css/tokens.css, which
   every page loads — listen.html reuses the same switch. Only the player-specific
   dimming below stays here. */

/* ★★ THE AUTHOR'S DESCRIPTION (v0.2.154) — PRIMARY, not dimmed.
   It carries `.notes-body` as well, so it keeps the shared renderer's typography
   (face, size, line-height, the strong/em/del treatment) and overrides only the
   colour. ⚠️ Both selectors are (0,1,0), so this wins on SOURCE ORDER alone —
   css/players.css is linked LAST on every page that mounts a player, which is
   the same cascade position that file has always relied on. If it ever moves
   earlier, this silently goes back to grey.
   ⚠️ `--text` is the app's primary text colour (#e6e9ee), not literal #ffffff —
   the same off-white every heading and track name uses. Undimmed and consistent
   beats undimmed and unique; no new value minted. */
.bt-description { color: var(--text); }

/* ★★★ BOLD AS A REAL FACE, BECAUSE COLOUR NO LONGER SIGNALS IT (v0.2.154).
   `.notes-body strong` renders emphasis as a BRIGHTER COLOUR (--text against a
   --text-dim body) — which works everywhere the body is dimmed, and stopped
   working here the moment the description went full --text: bold became
   invisible. So in THIS element emphasis is carried by the face instead.

   ⚠️ SCOPED TO .bt-description, NOT FIXED ON .notes-body. That rule still serves
   the play card and the sequence header, whose bodies ARE still dimmed — there
   the colour lift is the only signal there is, and removing it would delete
   their emphasis rather than improve it. `.dropzone strong` rides the same rule
   for the same reason. Both selectors are (0,2,0), so this wins on source order:
   css/players.css is linked LAST on every page that mounts a player.

   ⚠️⚠️ `font-weight: normal` IS LOAD-BEARING, NOT TIDINESS. <strong> is bold by
   UA default, and U67 is registered at weight 400 — so leaving the weight alone
   would make the browser SYNTHESISE bold on top of an already-bold face. Asking
   for 400 means there is nothing to synthesise. font-synthesis:none is the belt
   to that braces, for any engine that decides otherwise.
   ⚠️ Colour is NOT set here: it inherits --text from .bt-description, which is
   the point — the emphasis is the face, and only the face. */
.bt-description strong {
  font-family: var(--font-strong);
  font-weight: normal;
  font-synthesis: none;
}

.bt-details { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-meta);
              border-top: 1px solid var(--panel-border); padding-top: 12px; }
.bt-detail-name { color: var(--text); overflow-wrap: anywhere; }
.bt-detail-loud { font-size: var(--text-fine); }   /* colour + tabular-nums: .u-figure */
.bt-notes { font-size: var(--text-fine); color: var(--text-dim); line-height: 1.5; }
.bt-status { font-size: var(--text-meta); color: var(--text-dim); min-height: 1em; }
.bt-error { color: var(--danger); }
.bt-player.bt-busy .bt-slots button, .bt-player.bt-busy .bt-actions button,
.bt-player.bt-busy .bt-switch { opacity: var(--disabled-opacity); }
@media (max-width: 600px) {
  .bt-actions button { flex: 1 1 auto; }
  /* ★★ THE TOKENS ARE RE-POINTED, NOT THE RULES. Narrower card, more wrapped
     lines, same 96px box — so the notice tightens to keep clear of the time
     readout. Rebinding on the component root means the declarations above stay
     the single description of how it looks, and there is no second copy of them
     here to fall out of step. */
  .bt-player {
    --bt-notice-size: 12px;
    --bt-notice-pad: 5px 8px;
  }
}

/* ============================= SEQUENCE ============================= */

/* max-width dropped for the same reason as .bt-player above — it was beating
   .card-frame's shared bound purely on stylesheet order. */
.pl-player { display: flex; flex-direction: column; gap: 14px; }
.pl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pl-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: var(--tracking);
            font-size: var(--text-title); overflow-wrap: anywhere; min-width: 0; }
.pl-total { font-size: var(--text-meta); color: var(--text-dim); font-variant-numeric: tabular-nums;
            white-space: nowrap; }
.pl-wave { position: relative; width: 100%; height: 96px; overflow: hidden;
           background: var(--input-bg); border: 1px solid transparent; }
/* Geometry (widths, gap, padding) comes from .u-equal-row — the same rule the
   blind test's A/B/C/D slots use, so the two rows are identical by construction
   rather than by two sets of numbers agreeing. Nothing local left to declare. */
/* ONE height for both control rows of the sequence card — the SEQ selectors and
   PLAY/EDIT/SAVE. They are different classes with different widths, so nothing
   kept their heights equal; the padlock inside a chip was already pushing the
   SEQ row half a pixel taller.
   Scoped to the sequence card rather than to .u-equal-row itself: that utility
   is shared with the blind test slots and the play card transport, and this
   build's remit is the sequence card. --btn-h is there for them later. */
.pl-seqs button,
.pl-actions button {
  min-height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* The padlock badge on a locked ordering's selector. Inherits the chip's text
   colour, so it reads on the solid-accent active chip and on the outlined
   inactive one alike. */
.pl-lock {
  width: 14px; height: 14px;
  margin-left: 5px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -2px;
}

/* SUPPRESSED ("hidden"): dimmed, NEVER removed — all four selectors always
   render. For the OWNER this is a status cue only and the button stays live,
   which is the only route back to its Hide toggle. For a RECIPIENT the button
   is also disabled, and :disabled already carries the same dimming. */
.pl-seqs button.is-hidden { opacity: var(--disabled-opacity); }

/* Row 2 on a locked ordering: Edit and Save stay put and dim, so the row never
   changes width and the recipient can see that reordering exists here and is
   not on offer. :disabled already dims; this keeps it dimmed on hover too. */
.pl-actions button.is-locked-off,
.pl-actions button.is-locked-off:hover {
  opacity: var(--disabled-opacity);
  cursor: default;
}

/* Inactive orderings read as outlines; the active one is the solid accent. The
   outline and its hover come from the shared `secondary` class. */
.pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-actions button { flex: 0 0 108px; }
/* Sizes to its own label rather than wrapping inside the 108px slot. */
.pl-actions button.danger { flex: 0 0 auto; white-space: nowrap; }
/* min-width: 0 down the whole chain. A flex item defaults to min-width:auto,
   which refuses to shrink below its own min-content width — so a long track
   name could hold .pl-row wider than the card and push the right-hand columns
   (duration, and now the recipient's include checkbox) off the screen on a
   narrow iPhone. .pl-name already had min-width:0; its ANCESTORS did not, and
   the constraint propagates from the outside in.
   max-width:100% is the belt to that braces: whatever the content, the row can
   never exceed the list. */
.pl-list { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--panel-border); }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; width: 100%;
          min-width: 0; max-width: 100%;
          background: transparent; border: none; border-bottom: 1px solid var(--panel-border);
          cursor: pointer; font-family: var(--font-body); font-size: var(--text-ui); text-transform: none;
          letter-spacing: 0; color: var(--text); text-align: left; }
.pl-row:hover { opacity: 1; }
.pl-row:hover .pl-name { color: var(--accent); }
/* Always occupies its slot: an empty span holds the space on rows that have no
   previous playable track, so every play indicator stays on one vertical line. */
/* The pre-roll cue is 26x16, not a 16-square like every other glyph in this
   row, so its column is wider than the others: 34px instead of 24px. The slot
   is a FIXED width and is always present (an empty span holds it on rows with
   no previous playable track), so every row's number and title still start at
   the same x — the whole column simply sits 10px wider than before.
   The icon keeps the bowtie's 16px HEIGHT, so the row's vertical rhythm and the
   include checkbox it was matched against are untouched. */
.pl-pre { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; }
.pl-pre .pl-icon-btn { width: 34px; height: 24px; }
.pl-pre .pl-icon-btn svg { width: 26px; height: 16px; }
.pl-num { flex: 0 0 22px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pl-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden;
           text-overflow: ellipsis; }
/* Fixed and never shrunk — the title is the one column that gives way. */
.pl-dur { flex: 0 0 auto; white-space: nowrap; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* On a phone the row's fixed columns (cue 34 + number 22 + duration + checkbox
   28) plus five 10px gaps leave the title very little; dropping the gap to 6px
   and the cue column to its icon width buys back 22px for the name without
   moving anything off-screen. */
@media (max-width: 600px) {
  .pl-row { gap: 6px; }
  .pl-pre { flex: 0 0 26px; }
  .pl-pre .pl-icon-btn { width: 26px; }
}

/* Edit mode: the row stops being a play button and grows move controls. */
.pl-list.pl-editing .pl-row { cursor: default; }
.pl-list.pl-editing .pl-row:hover .pl-name { color: var(--text); }
.pl-move { display: flex; gap: 4px; flex: 0 0 auto; }
/* Same exception as .picker-item: up/down are disabled at the first and last
   row, and this hover is :not(:disabled)-guarded where button.secondary:hover
   is not. Left un-routed rather than change what a disabled arrow looks like. */
.pl-move button {
  width: 30px; height: 30px; padding: 0; font-size: var(--text-ui); line-height: 1;
  background: transparent; color: var(--text); border: 1px solid var(--panel-border);
}
.pl-move button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); opacity: 1; }
.pl-move button:disabled { opacity: 0.3; }
/* Muted: still listed and un-mutable, just clearly out of the running order. */
/* Only the TEXT dims on a muted row. The include checkbox is deliberately not
   in this list: it is the control you need to see and press to bring the track
   back, so it stays full-strength yellow on a dimmed row. */
.pl-row.is-muted .pl-name, .pl-row.is-muted .pl-num, .pl-row.is-muted .pl-dur { opacity: 0.45; }
.pl-row.is-muted .pl-name { text-decoration: line-through; }
.pl-icon-btn {
  flex: 0 0 auto; width: 28px; height: 28px; padding: 0; display: flex;
  align-items: center; justify-content: center; background: transparent;
  border: none; color: var(--icon); cursor: pointer;
}
/* INCLUDE checkbox (owner view only) — ticked means the track is in the running
   order; unticked is the muted/skipped state.

   18px against the transition bowtie's 16px: a 2px outline encloses a hollow
   square, which reads optically smaller than a glyph of the same box, so the
   square is a shade larger and its stroke heavier to sit at the same weight.
   The 28px hit area around it is what makes it usable on a phone without the
   mark itself getting heavy. */
.pl-include {
  position: relative;
  flex: 0 0 auto;
  width: 28px; height: 28px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
}
.pl-include::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  box-sizing: border-box;
}
.pl-include svg {
  position: relative;
  width: 14px; height: 14px;
  display: block;
  color: var(--accent-text);
  opacity: 0;                       /* the tick only shows when included */
}
.pl-include[aria-checked="true"]::before { background: var(--accent); }
.pl-include[aria-checked="true"] svg { opacity: 1; }
.pl-include:hover { opacity: 1; }
.pl-include:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.pl-icon-btn svg { width: 16px; height: 16px; display: block; }
.pl-icon-btn:hover { color: var(--accent); opacity: 1; }
.pl-switches { display: flex; flex-direction: column; gap: 2px;
               border-top: 1px solid var(--panel-border); padding-top: 10px; }

/* Layered ABOVE the shared modal (z-index 50) so opening it never tears the
   player down — the picker is its own element on document.body. */
.pl-overlay {
  position: fixed; inset: 0; z-index: var(--z-popover); background: var(--scrim-backdrop);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pl-overlay[hidden] { display: none; }
.pl-sheet {
  width: 100%; max-width: 460px; max-height: 80vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--panel-border); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.pl-sheet-head { display: flex; align-items: center; gap: 12px; }
.pl-sheet-title { font-family: var(--font-title); text-transform: uppercase;
                  letter-spacing: var(--tracking); font-size: var(--text-body); flex: 1 1 auto; min-width: 0; }
.pl-sheet-close { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; font-size: var(--text-meta); }
.pl-search { width: 100%; }
.pl-picks { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; }
.pl-pick {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid var(--panel-border);
  cursor: pointer; font-family: var(--font-body); font-size: var(--text-ui); text-transform: none;
  letter-spacing: 0; color: var(--text); text-align: left;
}
/* Icon + label, laid out like the library's ⋯ menu (.row-menu button). */
.pl-pick-action { justify-content: flex-start; align-items: center; gap: 10px; }
.pl-pick-action svg { flex: 0 0 16px; width: 16px; height: 16px; display: block; }
.pl-pick:hover:not(:disabled) { color: var(--accent); opacity: 1; }
.pl-pick:disabled { opacity: var(--disabled-opacity); cursor: default; }
.pl-pick .pl-pick-hint { color: var(--text-dim); font-size: var(--text-fine); white-space: nowrap; }
.pl-info-line { font-size: var(--text-meta); }     /* colour + tabular-nums: .u-figure */
/* The loaded track, playing or paused. */
.pl-row.is-current .pl-name { color: var(--accent); }
.pl-row.is-current .pl-num { color: var(--accent); }
.pl-empty { font-size: var(--text-meta); color: var(--text-dim); }
/* Tuning harness — only rendered under ?tune=1. */
.pl-tune { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
           border-top: 1px dashed var(--panel-border); padding-top: 12px; }
.pl-tune label { display: flex; flex-direction: column; gap: 4px;
                 font-family: var(--font-body); font-size: var(--text-micro); letter-spacing: var(--tracking);
                 text-transform: uppercase; color: var(--text-dim); }
.pl-tune input { width: 92px; }
.pl-tune button { padding: 8px 14px; font-size: var(--text-fine); }
.pl-tune-hint { flex: 1 1 100%; font-family: var(--font-body); font-size: var(--text-micro);
                color: var(--text-dim); letter-spacing: 0; text-transform: none; }
/* Also a secondary button, but deliberately dimmer at rest. The selector is
   `button.pl-audition` so this colour outranks button.secondary's — a bare
   .pl-audition would be (0,1,0) and lose to (0,1,1) however late it appears. */
button.pl-audition { font-size: var(--text-micro); letter-spacing: var(--tracking); padding: 4px 8px;
                     color: var(--text-dim); flex: 0 0 auto; }
.pl-status { font-size: var(--text-meta); color: var(--text-dim); min-height: 1em; }
.pl-status.pl-error { color: var(--danger); }
@media (max-width: 600px) {
  .pl-actions button { flex: 1 1 auto; }
}

/* --- THE SCRUB BOX PINS TO THE TOP (v0.2.45) --------------------------------
   The third and fourth hosts for the pin that started on the play card
   (v0.2.43) and reached the library preview in v0.2.44. Same tokens, same
   opaque-background approach, same observer — nothing here is a fork.

   TRIVIAL in both of each player's contexts, and for a structural reason worth
   stating: the box is a DIRECT CHILD of .bt-player / .pl-player, and that root
   is the whole player — title through notes. A sticky box travels its parent's
   content box, so the pin covers the entire scroll of the player by itself.
   That is exactly what the library could NOT do in v0.2.44, where #dropzone's
   parent was a short sibling of the list and the sticky had to be promoted a
   level. Here nothing moves.

   ★ THE MODAL OFFSET IS ALREADY CORRECT AND COSTS NOTHING. Both players mount
   with .card-frame on their root (v0.2.17), and v0.2.43 declared
     .modal.is-card .card-frame { --wave-pin-top: calc(--card-side + --card-head-h) }
   which these two roots match the moment they open in the library modal. So the
   ✕ that floats at 12..46px is cleared here by the same rule that clears it for
   the play card, with no second copy and no per-player number. On
   blindtest.html and playlist.html there is no sticky chrome at all, so the
   :root default applies and the box pins at a true --card-side.

   SPECIFICITY, not source order: .pl-wave and .bt-scrub-wrap both declare
   position:relative above at (0,1,0). These are (0,2,0) and win wherever they
   sit in the file — the .filter-pill lesson from v0.2.30.

   BACKGROUND: .pl-wave already paints --input-bg; .bt-scrub-wrap does not (its
   canvas child does), so the shared declaration is what stops rows of controls
   showing through the blind test's 1px border while it floats. */
.bt-player .bt-scrub-wrap,
.pl-player .pl-wave {
  position: sticky;
  top: var(--wave-pin-top);
  z-index: 1;                     /* over the card-frame vignette (z 0) and later siblings */
  background: var(--input-bg);
  border-radius: var(--wave-pin-radius);
}

/* Elevation only while genuinely pinned — js/wavepin.js. Decorative: without it
   the box still pins, it just does not lift. */
.bt-player .bt-scrub-wrap.is-pinned,
.pl-player .pl-wave.is-pinned { box-shadow: var(--wave-pin-shadow); }

/* --- The standalone player pages' host (v0.2.17) ----------------------------
   blindtest.html and playlist.html wrap their player in <section class="panel"
   id="playerPanel">, and .panel is the app's boxed surface — background,
   1px border, 24px padding. That is precisely the "panel floating on a darker
   background" look card-v2 set out to remove, and it was the only thing still
   showing it once .card-frame reached both players.

   De-styled by ID, not by touching .panel: the same class wraps the gate panel
   directly above on both pages, the upload and library sections on index.html,
   and the login box. Only the PLAYER's panel stops being a panel. #playerPanel
   is (1,0,0) against .panel's (0,1,0), so this wins wherever it is declared.

   The top padding stays as page chrome — it separates the card from the masthead
   above it. The sides go to zero so the card's surface reaches the viewport edge;
   the reading gutter is .card-frame's job, and it already has it. */
#playerPanel {
  background: none;
  border: none;
  padding: 24px 0 0;
}

/* The vignette bleeds to the VIEWPORT here, exactly as it does for the standard
   card on listen.html (css/listen.css) and in the library modal (css/style.css).
   Without this the wash would stop at the card's own 560px column while the
   surface behind it ran edge to edge — the boxed-in look v0.2.11 removed from
   the standard card, reintroduced on these two pages.
   calc(50% - 50vw) is the same full-bleed idiom the other two hosts use: the
   card is a centred column, so half a viewport out from its centre lands exactly
   on each viewport edge whatever the column's width.
   INERT until Build 2 — neither the blind test nor the sequence has an
   art_colour yet, so --card-raw-tint is unset and every gradient stop resolves
   to --card-surface. This is the plumbing landing ahead of the colour. */
#playerPanel .card-frame::before {
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
}
