/* The full-screen player shares the smoked glass of the collection.
 * Audio visualisation stays available behind a restrained scrim; the
 * separately opened light show keeps its own expressive presentation. */
.now-playing {
  --bg: #06070c;
  --bg2: #10121b;
  --bg3: #191d2a;
  --text: #eef0fa;
  --text2: #afb6cd;
  --acc2: #bdc8f4;
  --focus: #bdc8f4;
  --line: rgba(220, 227, 255, .14);
  background: var(--bg);
  color: var(--text);
}

/* Keep colour and the reactive filaments subordinate to artwork and type.
 * This scrim sits above the visual layers and below all interactive UI. */
.now-playing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(6, 7, 12, .68);
  pointer-events: none;
}

.now-playing .np-head {
  padding: 20px 28px;
  gap: 16px;
}
.now-playing .np-head .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.now-playing .np-head-tools { justify-self: end; gap: 8px; }
.now-playing .np-head > .round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(25, 29, 42, .7);
  border: 1px solid var(--line);
}
.now-playing .np-showbtn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius, 16px);
  border-color: var(--line);
  background: rgba(25, 29, 42, .54);
  color: var(--text2);
  font-size: 11px;
  letter-spacing: .03em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.now-playing .np-showbtn:hover,
.now-playing .np-showbtn[aria-pressed='true'] {
  background: rgba(70, 77, 100, .45);
  color: var(--text);
  border-color: rgba(220, 227, 255, .3);
}

.now-playing .np-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 100px);
  padding: 24px clamp(40px, 7vw, 120px) 100px;
}
.now-playing .np-cover-tilt {
  animation: none;
  transform: none;
  will-change: auto;
}
.now-playing .np-cover {
  width: min(470px, 38vw, 58vh);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 1px solid rgba(230, 234, 255, .18);
  /* syncNowPlaying sets an inline chromatic shadow for the legacy 3D view. */
  box-shadow: 0 20px 64px rgba(0, 0, 0, .4) !important;
  scale: 1;
  background: var(--bg2);
}
.now-playing .np-cover-fallback { border-radius: inherit; }
.now-playing[data-artwork='flat'] .np-cover { scale: 1; }
.now-playing[data-artwork='flat'] .np-cover-three { display: none; }
.now-playing .np-detail { min-width: 0; gap: 26px; }
.now-playing .np-title {
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.now-playing .np-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text2);
  overflow-wrap: anywhere;
}
.now-playing .np-mood {
  background: rgba(25, 29, 42, .65);
  border-color: var(--line);
  color: var(--text2);
  border-radius: var(--radius, 16px);
  font-weight: 500;
}
.now-playing .np-scrub { gap: 12px; }
.now-playing .np-scrub .bar,
.now-playing .np-vol .bar { min-width: 0; height: 44px; }
.now-playing .np-scrub .time { color: var(--text2); font-size: 12px; }
.now-playing .bar::-webkit-slider-runnable-track {
  background-color: #596176;
  background-image: linear-gradient(var(--acc2), var(--acc2));
  box-shadow: none;
}
.now-playing .bar::-moz-range-track {
  background-color: #596176;
  background-image: linear-gradient(var(--acc2), var(--acc2));
  box-shadow: none;
}
.now-playing .bar::-webkit-slider-thumb { opacity: 1; }
.now-playing .bar::-moz-range-thumb { opacity: 1; }
.now-playing .np-transport { gap: clamp(12px, 2vw, 28px); }
.now-playing .np-transport > button,
.now-playing .np-vol > button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(25, 29, 42, .6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
}
.now-playing .np-transport > .play-btn {
  width: 72px;
  height: 72px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
.now-playing .np-transport > button:hover:not(:disabled) {
  border-color: rgba(220, 227, 255, .5);
}
.now-playing .np-transport > button:disabled { opacity: .4; cursor: default; }
.now-playing .np-vol { bottom: calc(24px + var(--safe-b)); gap: 10px; width: 210px; }
.now-playing .np-vol > button { width: 44px; height: 44px; }
.now-playing button:focus-visible,
.now-playing input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.now-playing .np-tuner {
  background: rgba(16, 18, 27, .95);
  border-color: var(--line);
  border-radius: var(--radius, 16px);
}
.now-playing .np-tune-section { background: #10121b; color: var(--text); }

@media (max-width: 1180px) {
  .now-playing .np-body { gap: 28px; padding: 20px 24px 28px; }
  .now-playing .np-cover { width: min(350px, 64vw, 38vh); }
  .now-playing .np-detail { width: min(520px, 100%); }
  .now-playing .np-title { font-size: clamp(27px, 5vw, 38px); }
  /* Volume scrolls with the content so it never covers transport controls
   * on short screens or when a long title needs several lines. */
  .now-playing .np-vol { position: static; width: min(220px, 100%); flex-shrink: 0; margin-top: 4px; }
  .now-playing .np-lyrics { width: min(600px, 100%); }
}

@media (max-width: 600px) {
  .now-playing .np-head { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 16px; }
  .now-playing .np-head .label { display: none; }
  .now-playing .np-head-tools { gap: 6px; }
  .now-playing .np-showbtn { padding: 10px; font-size: 10px; letter-spacing: 0; }
  .now-playing .np-body { padding: 16px 20px 24px; gap: 24px; }
  .now-playing .np-detail { gap: 18px; }
  .now-playing .np-cover { width: min(300px, 68vw, 34vh); }
  .now-playing .np-title { font-size: 27px; }
  .now-playing .np-sub { font-size: 14px; margin-top: 8px; }
  .now-playing .np-transport { gap: 12px; }
  .now-playing .np-transport > button { width: 44px; height: 44px; }
  .now-playing .np-transport > .play-btn { width: 64px; height: 64px; }
  .now-playing .np-scrub { gap: 8px; }
}

@media (max-width: 360px) {
  .now-playing .np-head { padding-inline: 12px; gap: 8px; }
  .now-playing .np-head-tools { gap: 4px; }
  .now-playing .np-showbtn { padding-inline: 8px; }
  .now-playing .np-body { padding-inline: 16px; }
  .now-playing .np-transport { gap: 8px; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .now-playing .np-showbtn,
  .now-playing .np-head > .round-btn,
  .now-playing .np-transport > button:not(.play-btn),
  .now-playing .np-vol > button,
  .now-playing .np-mood { background: #191d2a; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .now-playing .np-tuner { background: #10121b; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
