/* [origin ref=asp-7hw,asp-si6,asp-j44,asp-arj req=REQ-PLAYER-008,REQ-PLAYER-009,REQ-PLAYER-014,REQ-PLAYER-021,REQ-PLAYER-022 c4=player_app/app_shell]
   [intent]App-shell additions not in the prototype CSS, tokens only: screen-reader-only text, the back-guard notice,
   the overlay layer, the player bar slot, and what makes the prototype's mini bar operable without changing its
   look (the cover/title block as a reset button, 24 px pointer targets on the thin sliders); replaces the
   prototype's inline style attributes (CSP); Now Playing (asp-arj) additions: the top bar as the swipe-down handle,
   the volume row the compact phone bar leaves to Now Playing, story spacing, and an opaque sticky top bar with the
   sticky tabs right under it (scrolled stories never show through).[/intent]
   [/origin] */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { margin-inline: auto; }
.player-slot:empty { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + var(--sp-4)); z-index: 30; transform: translateX(-50%);
  max-width: calc(100vw - 2 * var(--gutter)); padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--text-strong); box-shadow: var(--elev-3); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.toast:empty { opacity: 0; padding: 0; box-shadow: none; }
.overlay { position: fixed; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain; }
.test-hooks { position: fixed; right: 0; bottom: 0; z-index: 15; padding: var(--sp-2); }
/* Mini player bar (asp-si6): the now-playing block is a button that looks like the prototype's plain block. */
.minibar__now { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.minibar__now .minibar__text, .minibar__now .minibar__title, .minibar__now .minibar__sub { display: block; }
.scrub[role="slider"] { cursor: pointer; touch-action: none; }
.scrub[role="slider"]::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--sp-6); transform: translateY(-50%); }
/* Playwright-only hooks (dist-test) move above the mini bar so they never cover its controls. */
.player-slot:has(.minibar) .test-hooks { bottom: calc(var(--bar-h) + var(--sp-2)); }
/* Queue / Up next panels (asp-j44): panel headings are h2 for a valid outline inside dialogs, sized like the
   prototype's h3; the queue item title is a reset button (plays that item). */
.queue-h h2 { font-size: var(--fs-lg); }
.queue-h h2:focus { outline: none; }
.queue-item__play { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; }
.queue-item .track__sub, .queue-item .reason { display: block; }
.up-next__off { margin-bottom: var(--sp-4); }
/* Now Playing (asp-arj): replaces the prototype's inline styles; the top bar is the swipe-down handle (the browser
   never claims a touch gesture that starts there); mute + volume sit under the transport buttons. */
.np__top { touch-action: none; background: var(--deck); }
.np .tablist { top: calc(var(--touch) + 2 * var(--sp-2)); }
.np__spacer { width: var(--touch); flex: 0 0 auto; }
.np__meta .muted { margin-top: 0; margin-bottom: var(--sp-1); }
.np__volume { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (min-width: 64rem) { .np__volume { justify-content: flex-start; } }
.artist-card__bio { margin: 0; }
.artist-card .eyebrow, .np__top .eyebrow { color: var(--text-soft); }
.artist-card h2 { margin: 0; }
/* [origin ref=asp-z1x req=REQ-PLAYER-011,REQ-PLAYER-014 c4=player_app/views]
   [intent]Playlists (asp-z1x), tokens only: the text field (prototype CSS has none) with the shared focus ring,
   the create/rename forms, the flat playlist head of the Local story (replaces its inline padding:0), unavailable
   rows of a shared preview, the Add to playlist picker, the copy-by-hand share field and the invalid-link notice
   (replaces the prototype's inline max-width/margin).[/intent]
   [/origin] */
.input {
  min-height: var(--touch); min-width: 0; flex: 1 1 12rem; padding: 0 var(--sp-4); border-radius: var(--radius-full);
  border: var(--border-w) solid var(--line); background: var(--surface-1); color: var(--text-strong); font: inherit;
  font-size: var(--fs-sm);
}
.input::placeholder { color: var(--text-soft); }
.pl-form { flex-wrap: wrap; max-width: var(--measure); }
.pl-error:empty { display: none; }
.pl-error { color: var(--text); font-size: var(--fs-sm); }
.album-head--flat { padding: 0; align-items: center; grid-template-columns: var(--cover-md) 1fr; }
@media (min-width: 48rem) { .album-head--flat { grid-template-columns: var(--cover-md) 1fr; } }
.album-head--flat h3 { overflow-wrap: anywhere; margin: 0; }
.album-head--flat h3:focus { outline: none; }
.pl-local + .pl-local { border-top: var(--border-w) solid var(--line); }
.track--unavailable .track__title { color: var(--text-soft); }
.pl-pick { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-2); max-width: var(--measure); }
.pl-pick__item { width: 100%; justify-content: space-between; white-space: normal; text-align: left; }
.pl-pick__item span { overflow-wrap: anywhere; }
.pl-dialog__h { overflow-wrap: anywhere; }
.pl-share { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); font-size: var(--fs-sm); max-width: var(--measure); }
.pl-invalid { max-width: var(--measure); margin: 0 auto var(--sp-5); }
.track__title { overflow-wrap: anywhere; }
