

.now-playing {
  --ap-progress: 0%;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--oracle-color-surface);
  border-top: var(--oracle-border-width) solid var(--oracle-border-color);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 220ms ease-out;   
}

.now-playing.is-shown { transform: translateY(0); }
.now-playing[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .now-playing { transition: none; }
}

body.has-now-playing { padding-bottom: 4.5rem; }

.np-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--oracle-space-s3);
  padding: var(--oracle-space-s2) var(--oracle-space-s4);
}

.np-seek { flex: 1 1 auto; min-width: 6rem; }

.now-playing-inline {
  max-width: var(--oracle-component-research-summary-spacing-max-width);
  margin-block: var(--oracle-space-s5) var(--oracle-space-s6);
}
.np-eyebrow {
  font-family: var(--oracle-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oracle-color-ink-muted);
  margin: 0 0 var(--oracle-space-s2);
}
.np-row {
  --ap-progress: 0%;
  display: flex;
  align-items: center;
  gap: var(--oracle-space-s3);
  padding: var(--oracle-space-s2) var(--oracle-space-s3);
  background: var(--oracle-color-surface);
  border: var(--oracle-border-width) solid var(--oracle-border-color);
  border-radius: var(--oracle-border-radius);
}

.np-title {
  flex: 0 1 auto;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--oracle-font-reading);
  font-size: 0.85rem;
  color: var(--oracle-color-ink);
  text-decoration: none;
}
.np-title:hover { color: var(--oracle-color-gold); text-decoration: underline; }

.np-close { color: var(--oracle-color-ink-muted); }
@media (max-width: 38rem) {
  .np-title { display: none; }   
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--oracle-color-ink);
  cursor: pointer;
  border-radius: var(--oracle-border-radius);
  -webkit-appearance: none;
          appearance: none;
}
.ap-btn svg { width: 1.4rem; height: 1.4rem; display: block; }
.ap-skip svg { width: 1.15rem; height: 1.15rem; }
.np-play { width: 2.4rem; height: 2.4rem; color: var(--oracle-color-gold); }
.np-close svg, .np-download svg { width: 1.2rem; height: 1.2rem; }

.ap-num {
  font-family: var(--oracle-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  color: var(--oracle-color-ink-muted);
}
.ap-btn:hover { color: var(--oracle-color-gold); }
.ap-btn:hover .ap-num { color: var(--oracle-color-gold); }
.ap-btn:focus-visible { outline: 2px solid var(--oracle-color-gold); outline-offset: 2px; }

.is-buffering .np-play { animation: ap-spin 0.8s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .is-buffering .np-play { animation: none; opacity: 0.55; }
}

.ap-time {
  flex: 0 0 auto;
  font-family: var(--oracle-font-mono);
  font-size: 0.8rem;
  color: var(--oracle-color-ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ap-seek {
  height: 1.4rem;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
.ap-seek:focus-visible { outline: none; }
.ap-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right,
    var(--oracle-color-gold) var(--ap-progress),
    var(--oracle-color-silver-pale) var(--ap-progress));
}
.ap-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; margin-top: -4.5px;
  border-radius: 50%;
  background: var(--oracle-color-gold);
  border: 2px solid var(--oracle-color-surface);
}
.ap-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--oracle-color-gold-ghost); }
.ap-seek::-moz-range-track { height: 4px; border-radius: 2px; background: var(--oracle-color-silver-pale); }
.ap-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--oracle-color-gold); }
.ap-seek::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--oracle-color-gold);
  border: 2px solid var(--oracle-color-surface);
}
.ap-seek:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--oracle-color-gold-ghost); }
