/* THE BOTTOM PLAYER — js/player-bar.js's look, shared by the label inbox and
 * Foundry's artist inbox. Two byte-identical copies (platform/web/css is
 * canonical, foundry/css is the copy); tools/test_player_bar.mjs fails when
 * they differ. Where the bar sits (its left edge beside a rail) and how much
 * room the page leaves under it belong to each site's own stylesheet. */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: 72px;
  display: grid; grid-template-columns: 52px minmax(160px, 320px) 36px 44px 36px minmax(0, 1fr) 96px auto auto;
  align-items: center; gap: 14px; padding: 0 14px 0 44px;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}
.player-bar.hidden { display: none; }
.pb-art { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pb-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-art .ib-ava { width: 52px; height: 52px; border-radius: 8px; }
.pb-art .ib-ava-face img { border-radius: 8px; }
.pb-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; background: none; border: none; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.pb-id:hover .pb-title { text-decoration: underline; }
.pb-skip { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pb-skip:hover:not(:disabled) { background: var(--ico-hover, var(--surface-2)); }
.pb-skip:disabled { opacity: .3; cursor: default; }
/* The double skip is a column only while a playlist is playing; otherwise the
 * bar keeps its shape and the button is not drawn at all. */
.pb-leave { display: none; }
.player-bar.in-playlist { grid-template-columns: 52px minmax(160px, 320px) 36px 44px 36px 36px minmax(0, 1fr) 96px auto auto; }
.player-bar.in-playlist .pb-leave { display: inline-flex; }
.pb-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-toggle { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--text); color: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pb-track { height: 6px; border-radius: 3px; background: var(--surface-2); cursor: pointer; position: relative; }
.pb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--text); }
/* With a wave the whole strip is the seek target, so the drop can be clicked. */
.pb-track.has-wave { height: 44px; border-radius: 0; background: none; }
.pb-track.has-wave .pb-fill { display: none; }
.pb-wave { position: absolute; inset: 0; display: none; align-items: center; gap: 1.5px; }
.pb-track.has-wave .pb-wave { display: flex; }
.pb-wave i { flex: 1 1 0; min-width: 1px; background: var(--text-3, var(--muted)); opacity: 0.45; border-radius: 1px; }
.pb-wave i.on { background: var(--text); opacity: 1; }
.pb-track.has-wave:hover .pb-wave i:not(.on) { opacity: 0.7; }
.pb-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
/* The screen's own buttons for the record playing. An empty slot is no width. */
.pb-acts { display: inline-flex; align-items: center; gap: 2px; }
/* Shutting the bar is a V, not an X (Nikhil, 2026-11-12): the X beside it is a
 * pass. It keeps the far right corner; everything from the cover to the
 * download sits further in from both edges. */
.pb-close { width: 36px; height: 36px; margin-left: 30px; border-radius: 50%; border: none; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.pb-close:hover { background: var(--ico-hover, var(--surface-2)); color: var(--text); }
@media (max-width: 760px) {
  .player-bar { grid-template-columns: 44px minmax(0, 1fr) 40px 32px 36px; height: 64px; gap: 8px; padding: 0 12px; }
  .pb-close { margin-left: 0; }
  .player-bar.in-playlist { grid-template-columns: 44px minmax(0, 1fr) 40px 32px 32px 36px; }
  .pb-track, .pb-time, .pb-acts, [data-pb-prev] { display: none; }
}
