/* [origin ref=asp-ucb req=REQ-PLAYER-019 c4=design_prototype/design_system]
   [intent]Mini player bar (playing/paused/loading/offline), Now Playing full-screen view with tabs, Queue and Up next drawers.[/intent] [/origin] */
/* [origin ref=asp-oui req=REQ-PLAYER-019 c4=design_prototype/design_system]
   [intent]Tab indicator width, transport button size and the switch track/thumb geometry come from tokens (the thumb offset is derived from --switch-thumb and --sp-1); computed values are unchanged.[/intent] [/origin] */
.minibar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface-1); border-top: var(--border-w) solid var(--line);
  box-shadow: var(--elev-3); height: var(--bar-h); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-2) 0 var(--sp-2); cursor: pointer;
}
.minibar__progress { position: absolute; left: 0; right: 0; top: calc(var(--progress-h) * -1); height: var(--progress-h); background: var(--rail); }
.minibar__progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width var(--dur) linear; }
.minibar--loading .minibar__progress i { width: 30%; background: var(--accent-2); animation: slide var(--dur-loop) var(--ease) infinite; }
@keyframes slide { from { margin-left: -30%; } to { margin-left: 100%; } }
.minibar__now { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.minibar__text { min-width: 0; }
.minibar__title { color: var(--text-strong); font-weight: var(--fw-semibold); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar__sub { font-size: var(--fs-xs); color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar__sub .status { color: var(--accent); }
.minibar--offline .minibar__sub .status { color: var(--danger); }
.minibar__controls { display: flex; align-items: center; }
.minibar__center, .minibar__right, .minibar__time { display: none; }
@media (min-width: 48rem) {
  .minibar { grid-template-columns: 1fr 1.4fr 1fr; padding: 0 var(--sp-5); }
  .minibar__center { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
  .minibar__center .minibar__controls { order: 0; }
  .minibar > .minibar__controls { display: none; }
  .minibar__time { display: flex; align-items: center; gap: var(--sp-3); width: 100%; font-size: var(--fs-xs); color: var(--text-soft); font-variant-numeric: tabular-nums; }
  .minibar__time .scrub { flex: 1; }
  .minibar__right { display: flex; justify-content: flex-end; align-items: center; }
  .minibar__progress { display: none; }
}
.scrub { position: relative; height: var(--scrub-h); border-radius: var(--radius-full); background: var(--rail); }
.scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: inherit; background: var(--accent); }
.scrub::after { content: ''; position: absolute; left: var(--p, 0%); top: 50%; width: var(--sp-4); height: var(--sp-4); margin: calc(var(--sp-2) * -1) 0 0 calc(var(--sp-2) * -1); border-radius: var(--radius-full); background: var(--accent); box-shadow: var(--elev-1); }
.vol { width: 6rem; }
.vol::after { display: none; }

/* Now Playing */
.np { min-height: 100vh; background: linear-gradient(var(--deck), var(--ink) 55%, var(--abyss)); padding-bottom: var(--sp-8); }
.np__top { display: flex; align-items: center; padding: var(--sp-2) var(--sp-2); position: sticky; top: 0; z-index: 3; background: linear-gradient(var(--deck), transparent); }
.np__top .eyebrow { margin: 0 auto; }
.np__hero { display: grid; gap: var(--sp-5); justify-items: center; padding: var(--sp-2) var(--gutter) var(--sp-5); max-width: var(--page-max); margin: 0 auto; }
.np__art { width: var(--cover-now); }
.np__art .cover { border-radius: var(--radius-xl); box-shadow: var(--elev-3); transition: box-shadow var(--dur-slow) var(--ease); }
.np__meta { text-align: center; width: 100%; }
.np__meta h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-1); }
.np__meta p { margin-inline: 0 !important; }
.np__meta a { text-decoration: none; }
.np__transport { width: 100%; max-width: 30rem; }
.np__transport .times { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-soft); margin-top: var(--sp-2); font-variant-numeric: tabular-nums; }
.np__buttons { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-2); }
.np__buttons .btn--icon { width: var(--btn-transport); height: var(--btn-transport); }
@media (min-width: 64rem) {
  .np__hero { grid-template-columns: auto 1fr; justify-items: start; gap: var(--sp-7); align-items: center; padding-top: var(--sp-5); }
  .np__meta { text-align: left; } .np__meta h1 { font-size: var(--fs-3xl); }
  .np__col { display: grid; gap: var(--sp-5); width: 100%; }
  .np__buttons { justify-content: flex-start; }
}

.tabs { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.tablist { display: flex; gap: var(--sp-1); overflow-x: auto; border-bottom: var(--border-w) solid var(--line); position: sticky; top: var(--touch); background: var(--ink); z-index: 2; }
.tab { flex: 0 0 auto; min-height: var(--touch); padding: 0 var(--sp-4); border: 0; background: transparent; color: var(--text-soft); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; border-bottom: var(--indicator-w) solid transparent; }
.tab:hover { background: var(--state-hover); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabpanel { padding: var(--sp-5) 0; display: none; }
.tabpanel[data-active="true"] { display: block; }
.story { padding: var(--sp-4) 0; border-bottom: var(--border-w) solid var(--line); }
.story:last-child { border-bottom: 0; }
.story > h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.artist-card { display: grid; gap: var(--sp-3); padding: var(--sp-5); background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--elev-1); }
.credits ul { margin: 0; padding-left: var(--sp-5); color: var(--text-soft); }

/* Queue / Up next drawers */
.queue-item { display: grid; grid-template-columns: var(--cover-md) 1fr auto; align-items: center; gap: var(--sp-3); min-height: var(--sp-8); border-bottom: var(--border-w) solid var(--line); }
.queue-item--now { background: var(--accent-wash); border-radius: var(--radius); padding: 0 var(--sp-2); }
.queue-h { display: flex; align-items: center; justify-content: space-between; margin: var(--sp-4) 0 var(--sp-2); }
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-size: var(--fs-sm); color: var(--text); background: none; border: 0; font-family: inherit; min-height: var(--touch); }
.switch__track { width: var(--switch-w); height: var(--switch-h); border-radius: var(--radius-full); background: var(--rail); border: var(--border-w) solid var(--mute); position: relative; transition: background var(--dur) var(--ease); }
.switch__track::after { content: ''; position: absolute; top: 50%; left: var(--sp-1); width: var(--switch-thumb); height: var(--switch-thumb); margin-top: calc(var(--switch-thumb) / -2); border-radius: var(--radius-full); background: var(--mute); transition: left var(--dur) var(--ease), background var(--dur) var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .switch__track::after { left: calc(100% - var(--switch-thumb) - var(--sp-1)); background: var(--accent-on); }
.reason { font-size: var(--fs-xs); color: var(--accent-2); }
