﻿/* nihilus.dev - NDR-9000 visual language for the web.
 Tokens ported from products/ndr-9000/crates/ndr-app/src/theme.rs */

:root {
  --void: #070607;
  --iron: #110e0f;
  --steel: #211b1d;
  --raised: #2b2326;
  --edge: #30282b;
  --edge-soft: #1e191b;
  --bone: #e9e5d8;
  --ash: #928986;
  --dim: #605857;
  --blood: #6c0616;
  --blood-lit: #980c21;
  --hot: #eb1e32;
  --amber: #d57a3c;
  --signal: #a8bd89;
  --cyan: #b6bfbb;

  --font-display: "Chakra Petch", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono:
    "IBM Plex Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;

  --maxw: 1080px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 148px;
}

html.is-scrolled {
  scroll-padding-top: 56px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Layered atmosphere: blood horizon glow + faint grid + vignette. Not a flat fill. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      1200px 500px at 50% -8%,
      rgba(152, 12, 33, 0.28),
      rgba(108, 6, 22, 0.1) 45%,
      transparent 70%
    ),
    radial-gradient(
      900px 600px at 85% 110%,
      rgba(108, 6, 22, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0809 0%, var(--void) 30%, var(--void) 100%);
  animation: horizon-breathe 14s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(233, 229, 216, 0.022) 0 1px,
      transparent 1px 56px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(233, 229, 216, 0.016) 0 1px,
      transparent 1px 56px
    );
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 78%);
}

@keyframes horizon-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

::selection {
  background: var(--blood-lit);
  color: var(--bone);
}

a {
  color: var(--bone);
  text-decoration: none;
}
a:hover {
  color: var(--hot);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  margin: 0;
}

code,
.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--ash);
}
.dim {
  color: var(--dim);
}
.hot {
  color: var(--hot);
}
.small {
  font-size: 13px;
}

/* ---------- shell ---------- */

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

html.nav-open .nmp-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-head-slot {
  min-height: 0;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 6, 7, 0.94);
  border-bottom: 1px solid var(--edge-soft);
  overflow-anchor: none;
  transition: box-shadow 180ms ease, background 180ms ease;
}

html.is-scrolled .site-head {
  background: rgba(7, 6, 7, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  position: relative;
  z-index: 2;
}

html.is-scrolled .topbar {
  padding: 4px 20px;
}

.beta-strip {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ash);
  padding: 8px 28px 10px;
  border-top: 1px solid var(--edge-soft);
  background: rgba(108, 6, 22, 0.16);
}

html.is-scrolled .beta-strip {
  display: none;
}

.beta-strip strong {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  margin-right: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: block;
  height: 24px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (min-width: 1081px) {
  .topbar {
    padding: 12px 28px;
  }

  .brand-mark {
    height: 112px;
    max-width: 180px;
  }

  html.is-scrolled .brand-mark {
    height: 28px;
    max-width: 48px;
  }
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

html.is-scrolled .brand-sub {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(17, 14, 15, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 160ms ease;
}

.topbar.is-open .nav-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.topbar.is-open .nav-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    padding 180ms ease,
    font-size 180ms ease;
}

html.is-scrolled .nav a {
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav a:hover {
  color: var(--bone);
  border-color: var(--edge);
  background: rgba(43, 35, 38, 0.5);
}

.nav a.active {
  color: var(--hot);
  border-color: var(--blood);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  flex: 1;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 168px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-shadow: 0 0 42px rgba(235, 30, 50, 0.16);
  margin: 0 0 8px;
}

.hero-brand .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: ch-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes ch-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--blood-lit),
    var(--edge) 55%,
    transparent
  );
  margin: 22px 0;
  position: relative;
  overflow: hidden;
}

.hero-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
  animation: scan 5.5s linear infinite;
}

@keyframes scan {
  to {
    left: 110%;
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--bone);
  max-width: 720px;
  margin: 0 0 14px;
}

.hero-sub {
  color: var(--ash);
  max-width: 620px;
  margin: 0 0 30px;
  font-size: 17px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-total {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--edge-soft);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
}

.hero-total .amount {
  font-size: 26px;
  color: var(--bone);
  letter-spacing: 0.04em;
}

.hero-total .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--blood-lit);
  background: linear-gradient(180deg, var(--blood-lit), var(--blood));
  color: var(--bone);
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.btn:hover {
  color: var(--bone);
  box-shadow:
    0 0 0 1px var(--hot),
    0 6px 24px rgba(235, 30, 50, 0.25);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn[hidden] {
  display: none !important;
}

.btn.secondary {
  background: transparent;
  border-color: var(--edge);
  color: var(--ash);
}

.btn.secondary:hover {
  border-color: var(--blood-lit);
  color: var(--bone);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ash);
  padding: 8px 10px;
}

.btn.ghost:hover {
  color: var(--hot);
  box-shadow: none;
}

/* ---------- sections ---------- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--edge-soft);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* Software product cards: version sits next to the title, not on the
   far right where the NMP dock covers it. */
#software-root {
  padding-bottom: 200px;
}
.product-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 100%;
}
.product-title-row .section-title {
  margin: 0;
}
.product-tagline {
  color: var(--ash);
  max-width: 640px;
}

.simple-pedal svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

.simple-pedal-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      color-mix(in srgb, var(--enamel, var(--hot)) 26%, transparent),
      transparent 64%
    ),
    var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}
.simple-pedal-tile:hover,
.simple-pedal-tile.is-on {
  border-color: color-mix(in srgb, var(--enamel, var(--hot)) 72%, var(--hot));
  transform: translateY(-3px);
}
.simple-pedal-tile.is-on {
  box-shadow:
    0 0 0 1px var(--hot),
    0 16px 28px rgba(0, 0, 0, 0.42);
}
.simple-pedal-tile-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
}
.simple-pedal-tile--remote {
  border-color: color-mix(in srgb, var(--hot) 48%, var(--edge));
}
.simple-pedal-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--hot);
  padding: 3px 6px;
  border-radius: 1px;
}

.simple-shop {
  margin: 8px 0 48px;
  padding: 22px 22px 24px;
  background:
    radial-gradient(
      900px 280px at 12% -20%,
      color-mix(in srgb, var(--hot) 16%, transparent),
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--iron);
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.simple-shop-head {
  margin-bottom: 18px;
}
.simple-shop-kicker,
.simple-cat-label,
.studio-rack-kicker,
.studio-strip-kicker,
.simple-stage-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 6px;
}
.simple-shop-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.05;
}
.simple-shop-copy,
.studio-rack-copy {
  color: var(--ash);
  max-width: 560px;
  margin: 0;
  font-size: 14px;
}
.simple-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px 28px;
  align-items: start;
}
.simple-shop-cats {
  min-width: 0;
}
.simple-shop--home .simple-shop-layout,
.simple-shop--home .simple-shop-cats {
  display: block;
}
.simple-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.simple-cat {
  padding: 12px 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--edge-soft);
  border-radius: 8px;
}
.simple-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.simple-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.simple-shop--home .simple-cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
}

.simple-pedal-tile {
  content-visibility: auto;
  contain-intrinsic-size: 160px 240px;
}
.simple-pedal-tile--remote {
  contain-intrinsic-size: 148px 280px;
}
.simple-pedal-tile .simple-pedal {
  width: 100%;
  max-width: 148px;
}
.simple-pedal-tile .simple-pedal--xwide {
  max-width: 236px;
}
.simple-pedal-tile .simple-pedal--xtall {
  max-width: 128px;
}
.simple-stage {
  --stage-room: calc(100dvh - 108px);
  position: sticky;
  top: 84px;
  max-height: var(--stage-room);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--hot) 62%, var(--edge)) transparent;
}
.simple-stage::-webkit-scrollbar {
  width: 8px;
}
.simple-stage::-webkit-scrollbar-track {
  background: transparent;
}
.simple-stage.is-extreme {
  overflow-y: scroll;
}
html.is-scrolled .simple-stage {
  --stage-room: calc(100dvh - 72px);
  top: 56px;
  max-height: var(--stage-room);
}
.simple-stage-card {
  padding: 14px;
  background: var(--steel);
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.simple-stage-pedal {
  display: flex;
  justify-content: center;
}
.simple-stage-card .simple-pedal {
  width: min(188px, 72%);
  margin: 0 auto 12px;
}
.simple-stage-card .simple-pedal--xwide {
  width: min(280px, 88%);
}
.simple-stage-card .simple-pedal--xtall,
.simple-stage-card--extreme .simple-pedal--xwide {
  width: min(
    164px,
    58%,
    max(118px, calc((var(--stage-room, 72dvh) - 168px) * 268 / 496))
  );
  margin: 0 auto 10px;
}
.simple-stage-card h2 {
  font-size: 18px;
  margin: 0;
}
.simple-stage-card .product-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 4px 0 6px;
}
.simple-stage-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
.simple-stage-card .dl-row {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
}
.simple-stage-card .dl-row-copy {
  width: 100%;
  min-width: 0;
}
.simple-stage-card .dl-row .title {
  font-size: 13px;
  line-height: 1.35;
}
.simple-stage-card .dl-row-actions {
  align-items: stretch;
  max-width: none;
  width: 100%;
}
.simple-stage-card .dl-agree {
  max-width: none;
}
.simple-stage-card .dl-row-actions .btn {
  width: 100%;
}
.hash-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.simple-stage-card .suggest-board {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--edge-soft);
}

.xtrm-remote-cta {
  margin: 16px 0 4px;
  padding: 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--hot) 52%, var(--edge));
  background:
    radial-gradient(
      90% 140% at 0% 0%,
      color-mix(in srgb, var(--hot) 20%, transparent),
      transparent 72%
    ),
    var(--steel);
  border-radius: var(--radius);
}
.xtrm-remote-cta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.xtrm-remote-cta p {
  margin: 0;
  max-width: 52ch;
}
.xtrm-remote-cta .cta-row {
  margin: 12px 0 10px;
}
.xtrm-remote-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.xtrm-remote-link:hover,
.xtrm-remote-link:focus-visible {
  color: var(--hot);
}
.xtrm-remote-cta .muted {
  margin: 6px 0 0;
  max-width: 52ch;
}
.simple-stage-card .xtrm-remote-cta {
  margin: 12px 0 0;
  padding: 10px 12px 10px;
}
.simple-stage-card .xtrm-remote-cta h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.simple-stage-card .xtrm-remote-cta .cta-row {
  margin: 8px 0 6px;
}

.simple-peek[hidden] {
  display: none !important;
}
.simple-peek {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}
.simple-peek-dim {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 7, 0.82);
}
.simple-peek-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: 100%;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.simple-peek-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: color-mix(in srgb, var(--void) 72%, transparent);
  color: var(--bone);
  cursor: pointer;
}
.simple-peek-x:hover,
.simple-peek-x:focus-visible {
  border-color: var(--hot);
  color: var(--hot);
  outline: none;
}
.simple-peek-x svg {
  width: 18px;
  height: 18px;
  display: block;
}
.simple-peek-x path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.simple-peek-zoom {
  flex: 0 0 auto;
  height: min(48dvh, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(
      80% 70% at 50% 20%,
      color-mix(in srgb, var(--hot) 18%, transparent),
      transparent 70%
    ),
    var(--steel);
}
.simple-peek-zoom .simple-pedal {
  width: min(220px, 62vw);
  transform-origin: center center;
}
.simple-peek-zoom .simple-pedal--xwide {
  width: min(280px, 72vw);
}
.simple-peek-zoom .simple-pedal--xtall {
  width: min(148px, 42vw);
  max-height: min(48dvh, 360px);
}
.simple-peek-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 20px;
}
.simple-peek-body .simple-stage-kicker {
  padding-right: 48px;
}
html.simple-peek-open,
html.simple-peek-open body {
  overflow: hidden;
}

.studio-rack {
  margin-top: 8px;
  padding-top: 8px;
  opacity: 0.94;
}
.studio-rack-head {
  margin-bottom: 10px;
}
.studio-tool {
  padding: 12px 0 14px;
  border-top: 1px solid var(--edge-soft);
}
.studio-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.studio-tool h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.studio-tool p {
  font-size: 12px;
  color: var(--ash);
  margin: 4px 0 0;
  max-width: 680px;
  line-height: 1.4;
}
.studio-tool .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.studio-tool .dl-row {
  margin-top: 6px;
  padding: 8px 12px;
}
.studio-tool .dl-row .title {
  font-size: 13px;
}
.studio-tool .suggest-board {
  margin-top: 8px;
}
.studio-tool .ub-title {
  font-size: 11px;
}
.studio-suggest {
  margin-top: 8px;
}
.studio-suggest summary {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  cursor: pointer;
  list-style: none;
}
.studio-suggest summary::-webkit-details-marker {
  display: none;
}
.studio-suggest[open] summary {
  color: var(--hot);
  margin-bottom: 6px;
}

.studio-strip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
}
.studio-strip-kicker {
  margin-bottom: 8px;
}
.studio-strip .dl-row {
  padding: 9px 12px;
  margin-top: 6px;
}
.studio-strip .title {
  font-size: 13px;
  font-weight: 500;
}
.studio-strip .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
}

.dl-row-copy {
  flex: 1;
  min-width: 0;
}
.ver-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 3px 9px;
  border: 1px solid var(--blood-lit);
  border-radius: var(--radius);
  color: var(--hot);
  white-space: nowrap;
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--ash);
  max-width: 640px;
  margin: 0 0 28px;
}

/* ---------- rows / interaction containers ---------- */

.panel {
  background: linear-gradient(180deg, var(--iron), rgba(17, 14, 15, 0.6));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px;
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  margin-top: 10px;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.dl-row:hover {
  border-color: var(--blood);
  background: var(--steel);
}

.dl-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dl-row .title {
  font-weight: 600;
  font-size: 15px;
}

.dl-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 280px;
  flex: 0 0 auto;
}

.dl-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ash);
  text-align: left;
  cursor: pointer;
}

.dl-agree input {
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--hot);
}

.dl-agree a {
  color: var(--hot);
}

.hash {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- forms ---------- */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}

.field input:not([type="range"]):not([type="checkbox"]),
.field select {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.field input:not([type="range"]):not([type="checkbox"]):focus,
.field select:focus {
  border-color: var(--blood-lit);
  box-shadow: 0 0 0 1px var(--blood);
}

.field .hint {
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px;
}

.amount-input {
  font-size: 28px !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.04em;
}

.amount-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.amount-presets button {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--ash);
  cursor: pointer;
  transition: all 120ms ease;
}

.amount-presets button:hover,
.amount-presets button.on {
  border-color: var(--blood-lit);
  color: var(--bone);
  background: rgba(108, 6, 22, 0.25);
}

/* Donate form only: each input group is a separate panel so amount, token,
   album, and username cannot visually merge. Other pages keep .field as-is. */
#donate-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: donate-step;
}

#donate-form > .field {
  margin-bottom: 0;
  padding: 0 16px 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--raised);
  border-radius: var(--radius);
}

#donate-form > .field:not([hidden]) {
  counter-increment: donate-step;
}

#donate-form > .field.donate-amount {
  border-left-color: var(--blood-lit);
}

#donate-form > .field:not(.donate-amount) {
  border-left-color: var(--ash);
}

#donate-form > .field:focus-within {
  border-color: color-mix(in srgb, var(--hot) 38%, var(--edge));
  border-left-color: var(--hot);
  box-shadow: 0 0 0 1px rgba(108, 6, 22, 0.4);
}

#donate-form .field label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--bone);
  font-size: 12px;
  margin: 0 -16px 14px;
  padding: 12px 16px;
  background: var(--steel);
  border-bottom: 1px solid var(--edge);
}

#donate-form > .field.donate-amount label {
  background: rgba(108, 6, 22, 0.42);
  border-bottom-color: var(--blood);
}

#donate-form .field label::before {
  content: counter(donate-step, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--hot);
  border: 1px solid var(--blood);
  background: rgba(108, 6, 22, 0.38);
  padding: 2px 6px;
  border-radius: var(--radius);
}

#donate-form .field .hint {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--edge-soft);
}

#donate-form .notice {
  margin: 0;
}

#donate-form .unlock-board {
  margin-top: 4px;
}

@media (max-width: 640px) {
  #donate-form {
    gap: 20px;
  }

  #donate-form > .field {
    padding: 0 12px 14px;
  }

  #donate-form .field label {
    margin: 0 -12px 12px;
    padding: 11px 12px;
  }
}

/* ---------- notices ---------- */

.notice {
  border: 1px solid var(--edge);
  border-left: 2px solid var(--ash);
  background: var(--iron);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--ash);
}

.notice.warn {
  border-left-color: var(--amber);
}
.notice.error {
  border-left-color: var(--hot);
  color: var(--bone);
}
.notice.ok {
  border-left-color: var(--signal);
}
.notice.legal {
  border-left-color: var(--blood-lit);
}

.notice .n-title {
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 4px;
}

/* ---------- token display ---------- */

.token-display {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: 0.12em;
  background: var(--void);
  border: 1px solid var(--blood-lit);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--bone);
  word-break: break-all;
  text-align: center;
  margin: 16px 0;
  box-shadow: 0 0 32px rgba(152, 12, 33, 0.18);
}

/* ---------- album grid ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.album,
a.album {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.album:hover,
a.album:hover {
  border-color: var(--blood-lit);
  transform: translateY(-2px);
}

.album-art {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(152, 12, 33, 0.5), transparent 55%),
    linear-gradient(160deg, var(--steel), var(--void));
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-art:not(:has(img)) {
  padding: 14px;
}

.album-body {
  padding: 16px;
}
.album-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.album-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
.album-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.album-cover {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--edge-soft);
  flex: 0 0 160px;
}

.album-heading .nh-links {
  margin-top: 10px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  margin-top: 8px;
  background: var(--iron);
}

.track-row .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  width: 26px;
}

.track-row .t-title {
  flex: 1;
  font-size: 14px;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--steel);
  color: var(--bone);
  cursor: pointer;
  font-size: 12px;
  flex: none;
  transition: all 120ms ease;
}

.play-btn:hover {
  border-color: var(--hot);
  color: var(--hot);
}

/* ---------- donor board ---------- */

.total-banner {
  border-top: 1px solid var(--edge-soft);
  border-bottom: 1px solid var(--edge-soft);
  padding: 36px 0;
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.total-banner .grand {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.03em;
}

.total-banner .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.donor-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--edge-soft);
  font-size: 15px;
  animation: row-in 400ms ease both;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donor-row .who {
  color: var(--bone);
  font-weight: 600;
}
.donor-row .who.anon {
  color: var(--dim);
  font-style: italic;
  font-weight: 400;
}
.donor-row .amt {
  font-family: var(--font-mono);
  color: var(--bone);
}
.donor-row .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- tier badge ---------- */

.tier-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--ash);
}

.tier-badge.album {
  border-color: var(--blood-lit);
  color: var(--hot);
}
.tier-badge.lifetime,
.tier-badge.catalog {
  border-color: var(--signal);
  color: var(--signal);
}

.unlock-board {
  margin-top: 22px;
  border-top: 1px solid var(--edge-soft);
  padding-top: 22px;
}

.unlock-board .ub-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 12px;
}

.unlock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--edge-soft);
  font-size: 14px;
}

.unlock-row .amt {
  font-family: var(--font-mono);
  color: var(--hot);
  white-space: nowrap;
}

.unlock-row .desc {
  color: var(--bone);
}

.album-avail {
  margin-top: 16px;
}

.album-avail .count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--edge-soft);
  padding: 28px;
  margin-top: 48px;
}

.footer-mark {
  display: block;
  height: 22px;
  width: auto;
  flex: 0 0 auto;
  opacity: 0.8;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.footer a {
  color: var(--ash);
}
.footer a:hover {
  color: var(--hot);
}

.footer-links {
  max-width: var(--maxw);
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nh-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.nh-links-lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  flex: 0 0 auto;
}

.nh-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--edge);
  background: var(--void);
  color: var(--ash);
  text-decoration: none;
}

.nh-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.nh-link-txt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nh-link:hover,
.nh-link:focus-visible {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-listen {
  margin: 8px 0 4px;
}

.nmp-listen .nh-links {
  justify-content: center;
}

.nmp-now-card.is-min .nmp-listen,
html.nmp-detached .nmp-listen {
  display: none;
}

@media (max-width: 800px) {
  .nmp-now-card .nmp-listen {
    display: none;
  }
}

/* ---------- legal ---------- */

.legal-body h2 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--bone);
}

.legal-body p,
.legal-body li {
  color: var(--ash);
  max-width: 720px;
}
.legal-body ul {
  padding-left: 20px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  html,
  html.is-scrolled {
    scroll-padding-top: 52px;
  }
  .nav-toggle,
  .brand {
    position: relative;
    z-index: 3;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .topbar {
    flex-wrap: nowrap;
    padding: 8px 16px;
    background: rgba(7, 6, 7, 0.96);
  }
  html.is-scrolled .topbar {
    padding: 7px 16px;
  }
  .brand-mark {
    height: 24px;
    max-width: 56px;
  }
  html.is-scrolled .brand-mark {
    height: 24px;
    max-width: 56px;
  }
  .brand-sub,
  .beta-strip {
    display: none;
  }
  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 56px 18px 40px;
    background: rgba(7, 6, 7, 0.985);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      visibility 180ms ease;
  }
  html.nav-open .nav,
  .topbar.is-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a {
    padding: 16px 6px;
    font-size: 13px;
    letter-spacing: 0.18em;
    border: none;
    border-bottom: 1px solid var(--edge-soft);
    border-radius: 0;
    background: transparent;
  }
  html.is-scrolled .nav a {
    padding: 16px 6px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .simple-shop-layout {
    display: block;
  }
  .simple-stage {
    display: none;
  }
}

@media (min-width: 861px) {
  .simple-peek {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    min-height: 78vh;
    padding: 48px 0 32px;
  }
  .dl-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dl-row-actions {
    align-items: stretch;
    max-width: none;
    width: 100%;
  }
  .simple-shop {
    padding: 16px 14px 18px;
  }
  .simple-cat-head {
    display: block;
  }
  .studio-tool-head {
    flex-direction: column;
  }
  .track-row {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-brand .ch {
    opacity: 1;
    transform: none;
  }
  .simple-pedal-tile,
  .simple-pedal-tile:hover,
  .simple-pedal-tile.is-on {
    transform: none !important;
  }
}

.field label.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ash);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.check-label input {
  width: auto;
  margin-top: 3px;
}

.field textarea {
  width: 100%;
  min-height: 90px;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
}

.field textarea:focus {
  border-color: var(--blood-lit);
  box-shadow: 0 0 0 1px var(--blood);
}

.suggest-board {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
}

.suggest-board .ub-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 10px;
}

.suggest-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge-soft);
}

.suggest-row.fulfilled {
  opacity: 0.7;
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vote-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--ash);
  cursor: pointer;
}

.vote-btn.on,
.vote-btn:hover {
  border-color: var(--blood-lit);
  color: var(--bone);
}

.vote-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone);
}

.suggest-body {
  color: var(--bone);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.suggest-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.suggest-form {
  margin-top: 14px;
}

/* NMP-080826 floating bar: rounded rectangle, circle when minimized */
.nmp-dock {
  --nmp-art: 132px;
  --nmp-orb: var(--nmp-art);
  position: fixed;
  z-index: 80;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  width: min(520px, calc(100vw - 24px));
  height: auto;
  min-height: calc(var(--nmp-art) + 8px);
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(43, 35, 38, 0.98) 0%, rgba(17, 14, 15, 0.98) 42%, rgba(12, 9, 10, 0.98) 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) {
  pointer-events: auto;
}

#nmp-root {
  position: relative;
  z-index: 80;
}

body:has(.app-container > main.nmp-app) #nmp-root {
  display: none !important;
  pointer-events: none !important;
}

.nmp-dock.nmp-collapsed {
  --nmp-art: 120px;
  width: calc(var(--nmp-art) + 26px);
  min-height: var(--nmp-art);
  height: var(--nmp-art);
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
}

.nmp-orb {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--nmp-art);
  width: var(--nmp-art);
  height: var(--nmp-art);
  margin: 4px 8px 4px 4px;
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
  background: var(--void);
  transition: box-shadow 160ms ease;
  align-self: center;
}

.nmp-dock.nmp-collapsed .nmp-orb {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  cursor: default;
}

.nmp-dock.nmp-collapsed .nmp-orb-play,
.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) .nmp-orb-play {
  width: calc(var(--nmp-art) * 0.36);
  height: calc(var(--nmp-art) * 0.36);
  font-size: 18px;
}

.nmp-orb.is-grab-hover,
.nmp-orb-lg.is-grab-hover {
  cursor: grab;
  box-shadow:
    0 0 0 1px rgba(235, 30, 50, 0.4),
    0 0 22px rgba(235, 30, 50, 0.55),
    0 0 6px rgba(233, 229, 216, 0.25);
}

.nmp-orb.is-time-hover,
.nmp-orb-lg.is-time-hover {
  cursor: ew-resize;
  box-shadow:
    0 0 0 1px rgba(233, 229, 216, 0.28),
    0 0 12px rgba(233, 229, 216, 0.12);
}

.nmp-orb.is-grabbing,
.nmp-orb-lg.is-grabbing {
  cursor: grabbing;
}

.nmp-dock.nmp-collapsed .nmp-deck {
  display: none;
}

.nmp-orb canvas,
.nmp-orb-lg canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nmp-orb-play {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: calc(var(--nmp-art) * 0.5);
  height: calc(var(--nmp-art) * 0.5);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(152, 12, 33, 0.7);
  background: rgba(7, 6, 7, 0.88);
  color: var(--bone);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  pointer-events: auto;
}

.nmp-orb-play:hover {
  border-color: var(--hot);
  color: var(--hot);
}

.nmp-deck {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  pointer-events: auto;
  min-width: 0;
  padding: 8px 38px 8px 6px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nmp-restore-fab {
  display: none;
  position: absolute;
  z-index: 4;
  left: calc(var(--nmp-art) - 4px);
  top: 2px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(152, 12, 33, 0.55);
  background: var(--void);
  cursor: pointer;
  pointer-events: auto;
}

.nmp-dock.nmp-collapsed .nmp-restore-fab,
.nmp-dock.nmp-collapsed .nmp-park-fab,
.nmp-dock.nmp-collapsed .nmp-grab-fab {
  display: flex;
}

.nmp-dock.nmp-collapsed .nmp-grab-fab {
  width: 22px;
  height: 56px;
  margin: -28px 0 0;
  border-radius: 11px;
}

.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) > .nmp-min-quiet,
.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) > .nmp-close-quiet {
  display: flex;
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(152, 12, 33, 0.55);
  background: var(--void);
  opacity: 0.85;
  pointer-events: auto;
  cursor: pointer;
  top: 8px;
  bottom: auto;
}

.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) > .nmp-min-quiet {
  right: 30px;
  left: auto;
}

.nmp-dock:not(.nmp-collapsed):not(.nmp-parked) > .nmp-close-quiet {
  right: 6px;
  left: auto;
}

.nmp-dock.nmp-collapsed > .nmp-min-quiet,
.nmp-dock.nmp-collapsed > .nmp-close-quiet {
  display: none;
}

.nmp-grab-fab {
  display: none;
  position: absolute;
  z-index: 6;
  left: calc(var(--nmp-art) - 1px);
  top: 50%;
  width: 18px;
  height: 42px;
  margin: -21px 0 0;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(233, 229, 216, 0.28);
  background:
    linear-gradient(180deg, rgba(62, 52, 54, 0.98) 0%, rgba(24, 18, 19, 0.98) 55%, rgba(14, 11, 12, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    2px 2px 8px rgba(0, 0, 0, 0.4);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.nmp-grab-fab::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(233, 229, 216, 0.82) 0 3px,
    rgba(8, 6, 7, 0.55) 3px 5px,
    transparent 5px 8px
  );
}

.nmp-grab-fab::after {
  content: none;
  display: none;
}

.nmp-grab-fab:hover,
.nmp-dock.is-grabbing .nmp-grab-fab {
  border-color: var(--hot);
  cursor: grabbing;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 10px rgba(235, 30, 50, 0.28);
}

.nmp-grab-fab:hover::before,
.nmp-dock.is-grabbing .nmp-grab-fab::before {
  background: repeating-linear-gradient(
    to bottom,
    var(--hot) 0 2px,
    transparent 2px 7px
  );
}

.nmp-park-fab {
  display: none;
  position: absolute;
  z-index: 4;
  left: calc(var(--nmp-art) - 4px);
  bottom: 2px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(152, 12, 33, 0.55);
  background: var(--void);
  cursor: pointer;
  pointer-events: auto;
}

.nmp-park-fab::before,
.nmp-park-fab::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 1px;
  background: var(--hot);
}

.nmp-park-fab::before {
  transform: rotate(45deg);
}

.nmp-park-fab::after {
  transform: rotate(-45deg);
}

.nmp-restore-fab .nmp-sat-mark {
  background: var(--hot);
  position: relative;
  width: 10px;
  height: 2px;
}

.nmp-restore-fab .nmp-sat-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -4px;
  width: 2px;
  height: 10px;
  background: var(--hot);
}

.nmp-min-quiet {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.4;
  cursor: pointer;
  flex: 0 0 14px;
}

.nmp-min-quiet::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: var(--ash);
}

.nmp-min-quiet:hover,
.nmp-close-quiet:hover {
  opacity: 1;
}

.nmp-close-quiet {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.4;
  cursor: pointer;
  flex: 0 0 14px;
}

.nmp-close-quiet::before,
.nmp-close-quiet::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: var(--ash);
}

.nmp-close-quiet::before {
  transform: rotate(45deg);
}

.nmp-close-quiet::after {
  transform: rotate(-45deg);
}

.nmp-park-play,
.nmp-park-skip,
.nmp-park-restore {
  display: none;
}

.nmp-dock.nmp-parked .nmp-park-restore {
  margin-left: auto;
}

.nmp-dock.nmp-parked {
  --nmp-art: 0px;
  display: block;
  pointer-events: auto;
  width: min(256px, calc(100vw - 24px));
  height: 38px;
  min-height: 38px;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
}

.nmp-dock.nmp-parked .nmp-orb,
.nmp-dock.nmp-parked .nmp-orb-play,
.nmp-dock.nmp-parked .nmp-restore-fab,
.nmp-dock.nmp-parked .nmp-park-fab,
.nmp-dock.nmp-parked .nmp-grab-fab,
.nmp-dock.nmp-parked .nmp-min-quiet,
.nmp-dock.nmp-parked .nmp-close-quiet,
.nmp-dock.nmp-parked .nmp-album,
.nmp-dock.nmp-parked .nmp-artist,
.nmp-dock.nmp-parked .nmp-dock-byline,
.nmp-dock.nmp-parked .nmp-seek-bar,
.nmp-dock.nmp-parked .nmp-transport {
  display: none !important;
}

.nmp-dock.nmp-parked .nmp-deck {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  min-height: 38px;
  padding: 2px 6px 2px 3px;
  clip-path: none;
  -webkit-clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  cursor: default;
}

.nmp-dock.nmp-parked .nmp-badge {
  margin: 0;
  flex: 0 0 auto;
}

.nmp-dock.nmp-parked .nmp-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  text-align: left;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmp-dock.nmp-parked .nmp-dock-stack {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  align-items: stretch;
}

.nmp-dock.nmp-parked .nmp-park-play,
.nmp-dock.nmp-parked .nmp-park-skip,
.nmp-dock.nmp-parked .nmp-park-restore {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  pointer-events: auto;
}

.nmp-park-play,
.nmp-park-skip {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  line-height: 1;
}

.nmp-park-play svg,
.nmp-park-skip svg {
  width: 11px;
  height: 11px;
  display: block;
}

.nmp-park-play:hover,
.nmp-park-skip:hover {
  color: var(--hot);
  background: rgba(152, 12, 33, 0.18);
}

.nmp-park-restore {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(152, 12, 33, 0.55);
  background: var(--void);
  cursor: pointer;
}

.nmp-park-restore .nmp-sat-mark {
  background: var(--hot);
  position: relative;
  width: 8px;
  height: 2px;
}

.nmp-park-restore .nmp-sat-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 2px;
  height: 8px;
  background: var(--hot);
}

.nmp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  position: relative;
  z-index: 5;
}

.nmp-dock:not(.nmp-parked) .nmp-badge {
  display: none;
}

.nmp-quiet-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ash);
  opacity: 0.45;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 16px;
}

.nmp-quiet-ico svg {
  width: 12px;
  height: 12px;
  display: block;
}

.nmp-quiet-ico:hover {
  opacity: 1;
  color: var(--hot);
}

.nmp-now-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 10px;
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(
    0 8px,
    14px 0,
    calc(100% - 14px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 8px)
  );
  -webkit-clip-path: polygon(
    0 8px,
    14px 0,
    calc(100% - 14px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 8px)
  );
}

.nmp-now-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--edge);
  background: var(--void);
}

.nmp-plate {
  margin: 0 0 6px;
  padding: 2px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.2;
  color: var(--dim);
  white-space: nowrap;
  text-indent: 0.34em;
  text-shadow:
    0 1px 0 rgba(236, 228, 214, 0.08),
    0 -1px 0 rgba(0, 0, 0, 0.72);
}

.nmp-pop-row {
  position: relative;
  top: auto;
  right: auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  flex-wrap: nowrap;
}

.nmp-pop-tools,
.nmp-pop-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nmp-pop-row .nmp-chrome-tool {
  width: 22px;
  height: 22px;
  color: var(--ash);
  background: transparent;
  border-color: var(--edge);
}

.nmp-pop-row .nmp-chrome-tool svg {
  width: 12px;
  height: 12px;
}

.nmp-pop-row .nmp-chrome-tool:hover,
.nmp-pop-row .nmp-chrome-tool.on {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-plate-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  min-height: 22px;
}

.nmp-plate-row .nmp-plate {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.nmp-plate .nmp-beta {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 0 5px;
  border: 1px solid var(--edge);
  background: transparent;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 14px;
  text-indent: 0;
  text-transform: uppercase;
  vertical-align: 1px;
  color: var(--ash);
  text-shadow: none;
}

.nmp-plate-row .nmp-now-min {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 7;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--ash);
  background: transparent;
  border-color: var(--edge);
  cursor: pointer;
}

.nmp-plate-row .nmp-now-min svg {
  width: 12px;
  height: 12px;
}

.nmp-plate-row .nmp-now-min:hover,
.nmp-plate-row .nmp-now-min.on {
  color: var(--hot);
  border-color: var(--hot);
}

/* Legacy text min (popout / older markup).
   MUST stay button-scoped: html/body must never match these selectors. */
button.nmp-now-min:not(.nmp-chrome-tool) {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button.nmp-now-min:not(.nmp-chrome-tool):hover {
  color: var(--hot);
}

.nmp-now-card.is-min {
  padding-top: 8px;
  padding-bottom: 6px;
}

.nmp-now-card.is-min .nmp-plate {
  margin-bottom: 4px;
}

.nmp-now-card.is-min .nmp-orb-lg {
  width: 36px;
  max-width: 36px;
  height: 36px;
}

.nmp-now-card.is-min .nmp-orb-play {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.nmp-now-card.is-min .nmp-vis-row,
.nmp-now-card.is-min .nmp-vis-check,
.nmp-now-card.is-min .nmp-stage-art,
.nmp-now-card.is-min .nmp-now-cover,
.nmp-now-card.is-min .nmp-now-line,
.nmp-now-card.is-min .nmp-play-err {
  display: none !important;
}

.nmp-now-card.is-min .nmp-stage {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 2px;
}

.nmp-now-card.is-min .nmp-stage-meta {
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 0;
}

.nmp-now-card.is-min .nmp-title {
  font-size: 14px;
}

.nmp-now-card.is-min .nmp-album {
  font-size: 11px;
}

.nmp-now-card.is-min .nmp-seek-bar {
  padding: 0 0 2px;
}

.nmp-now-card.is-min .nmp-transport-app {
  margin: 0;
}

.nmp-now-card.is-min .nmp-vol-bar {
  padding: 0 0 2px;
}

.nmp-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 148px) minmax(0, 1fr) minmax(72px, 148px);
  justify-items: stretch;
  align-items: center;
  column-gap: clamp(10px, 2vw, 22px);
  margin-bottom: 8px;
  min-width: 0;
}

.nmp-orb-lg {
  position: relative;
  justify-self: start;
  width: 100%;
  max-width: 168px;
  min-width: 0;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: var(--void);
  transition: box-shadow 160ms ease;
  box-shadow:
    0 0 0 1px rgba(48, 40, 43, 0.9);
}

.nmp-stage-art {
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 148px;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
}

.nmp-now-card .nmp-orb-play {
  width: 32%;
  height: 32%;
  min-width: 26px;
  min-height: 26px;
  font-size: clamp(11px, 2.4vw, 16px);
}

.nmp-vis-check {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nmp-vis-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nmp-vis-box {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ash);
  background: transparent;
  box-sizing: border-box;
}

.nmp-vis-check input:checked + .nmp-vis-box {
  border-color: var(--hot);
  background: var(--hot);
  box-shadow: inset 0 0 0 2px var(--void);
}

.nmp-vis-check-lab {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.nmp-vis-check:hover .nmp-vis-check-lab,
.nmp-vis-check:hover .nmp-vis-box {
  border-color: var(--hot);
  color: var(--hot);
}

.nmp-vis-check input:focus-visible + .nmp-vis-box {
  outline: 1px solid var(--hot);
  outline-offset: 2px;
}

.nmp-pop-row .nmp-vis-check {
  position: static;
}

.nmp-stage-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 0;
  writing-mode: horizontal-tb;
}

html.nmp-vis-off .nmp-vis-row {
  display: none;
}

.nmp-strip {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  height: 58px;
  margin: 0;
}

.nmp-vis-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0 0 6px;
  min-width: 0;
  overflow: visible;
}

.nmp-bands-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  max-width: 100%;
  position: relative;
  z-index: 3;
}

.nmp-bands-lab {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
  background: var(--iron);
  border: 1px solid var(--edge);
  transition: opacity 0.16s ease;
}

.nmp-bands-pop.is-open .nmp-bands-lab {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nmp-bands-pop.is-open #nmp-bands-toggle {
  color: var(--hot);
}

.nmp-bands-lab input[type="range"] {
  width: 118px;
  max-width: 118px;
  padding: 0;
  margin: 0;
}

.nmp-bands-lab span {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  text-align: center;
  min-width: 1.6em;
}

.nmp-now-card .nmp-title,
.nmp-now-card .nmp-album,
.nmp-now-card .nmp-now-line {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: normal;
  overflow-wrap: break-word;
}

.nmp-now-card .nmp-title {
  font-family: var(--font-display);
  color: var(--bone);
  font-size: clamp(18px, 3.4vw, 34px);
  line-height: 1.12;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-now-card .nmp-album {
  font-size: clamp(12px, 1.7vw, 18px);
  line-height: 1.3;
  color: var(--ash);
  margin-top: 4px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.nmp-now-card .nmp-now-line {
  font-size: clamp(10px, 1.2vw, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-title {
  display: block;
  font-family: var(--font-display);
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-dock .nmp-title,
.nmp-dock .nmp-album,
.nmp-dock .nmp-artist {
  font-size: 14px;
  line-height: 1.15;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: grab;
  touch-action: none;
}

.nmp-dock .nmp-title {
  margin: 0 0 2px;
}

.nmp-dock-byline {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0 0 8px;
}

.nmp-dock-byline[hidden] {
  display: none;
}

.nmp-dock .nmp-artist,
.nmp-dock .nmp-album {
  display: block;
  width: auto;
  max-width: 48%;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmp-dock .nmp-artist {
  color: var(--bone);
  opacity: 0.88;
}

.nmp-dock .nmp-album {
  color: var(--ash);
}

.nmp-dock .nmp-artist[hidden],
.nmp-dock .nmp-album[hidden] {
  display: none;
}

.nmp-byline-dot {
  color: var(--dim);
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

.nmp-dock-byline.is-artist-only .nmp-byline-dot,
.nmp-dock-byline.is-album-only .nmp-byline-dot {
  display: none;
}

.nmp-dock-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  min-width: 0;
  flex: 1 1 auto;
}

.nmp-dock .nmp-transport {
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  gap: 6px;
  touch-action: manipulation;
}

.nmp-dock .nmp-transport .nmp-quiet-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: 0.85;
  color: var(--bone);
}

.nmp-dock .nmp-transport .nmp-quiet-ico svg {
  width: 13px;
  height: 13px;
}

.nmp-dock .nmp-badge,
.nmp-dock .nmp-transport,
.nmp-dock .nmp-seek-bar {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.nmp-dock .nmp-seek-bar {
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding: 0 0 2px;
}

.nmp-dock .nmp-seek-bar-row {
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  height: 24px;
  column-gap: 6px;
}

.nmp-dock .nmp-seek-track {
  height: 10px;
}

.nmp-dock .nmp-seek-step {
  width: 16px;
  height: 16px;
  font-size: 11px;
  color: var(--signal);
  border-radius: 99px;
}

.nmp-dock .nmp-seek-bar,
.nmp-dock .nmp-seek-track,
.nmp-dock .nmp-seek-thumb {
  cursor: ew-resize;
}

.nmp-dock .nmp-seek-thumb {
  width: 54px;
  height: 22px;
  margin-top: -11px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: #141011;
  border: 1px solid rgba(233, 229, 216, 0.28);
  box-shadow: 0 0 0 3px rgba(12, 9, 10, 0.95);
}

.nmp-dock .nmp-seek-thumb.is-drag {
  cursor: ew-resize;
}

.nmp-album {
  display: block;
  font-size: 12px;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-deck .nmp-title,
.nmp-deck .nmp-album,
.nmp-deck .nmp-artist,
.nmp-deck .nmp-badge,
.nmp-deck .nmp-t {
  cursor: grab;
  -webkit-user-drag: none;
}

.nmp-deck button,
.nmp-deck input,
.nmp-deck .nmp-link {
  cursor: pointer;
  touch-action: auto;
}

.nmp-dock.is-grabbing,
.nmp-dock.is-grabbing .nmp-deck,
.nmp-dock.is-grabbing .nmp-title,
.nmp-dock.is-grabbing .nmp-album,
.nmp-dock.is-grabbing .nmp-artist {
  cursor: grabbing;
}

.nmp-t {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}

.nmp-dock input[type="range"],
.nmp-app input[type="range"],
.nmp-vol input[type="range"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  accent-color: var(--hot);
}

.nmp-app .nmp-bands-lab input[type="range"] {
  width: 118px;
  max-width: 118px;
  padding: 0;
}

.nmp-transport {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
}

.nmp-skip,
.nmp-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 26px;
  min-width: 28px;
  padding: 0;
  cursor: pointer;
  color: var(--ash);
  background: transparent;
  border: none;
  touch-action: manipulation;
  z-index: 6;
}

.nmp-skip {
  width: 28px;
  min-width: 28px;
  color: var(--bone);
  background: var(--steel);
  border: 1px solid var(--edge);
}

.nmp-skip svg,
.nmp-mode svg {
  width: 12px;
  height: 12px;
  display: block;
  pointer-events: none;
}

.nmp-mode.on {
  color: var(--hot);
}

.nmp-repeat-one {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  color: var(--hot);
}

.nmp-transport-app {
  gap: 8px;
  margin: 2px 0 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nmp-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
  min-width: 0;
}

.nmp-bar-lab {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nmp-bar-lab-time {
  color: var(--signal);
}

.nmp-bar-lab-vol {
  color: var(--hot);
}

.nmp-seek-bar,
.nmp-vol-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 2px 0 4px;
}

.nmp-seek-bar-row,
.nmp-vol-bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-width: 0;
}

.nmp-seek-bar-row {
  height: 28px;
}

.nmp-vol-bar-row {
  height: 30px;
}

.nmp-seek-step,
.nmp-vol-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  color: var(--bone);
  background: var(--iron);
  border: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.nmp-seek-step {
  border-radius: 99px;
  color: var(--signal);
}

.nmp-vol-step {
  border-radius: 0;
}

.nmp-seek-step:hover {
  color: var(--bone);
  border-color: var(--signal);
}

.nmp-vol-step:hover {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-seek-step:focus-visible,
.nmp-vol-step:focus-visible {
  outline: 1px solid var(--hot);
  border-color: var(--hot);
}

.nmp-seek-step:focus-visible {
  outline-color: var(--signal);
  border-color: var(--signal);
}

.nmp-vol-step {
  height: 28px;
}

.nmp-seek-track,
.nmp-vol-track {
  position: relative;
  min-width: 0;
  overflow: visible;
  cursor: default;
  touch-action: none;
}

.nmp-vol-track {
  height: 10px;
  background: var(--steel);
  border: 1px solid var(--edge);
  border-radius: 0;
  touch-action: none;
}

.nmp-seek-track {
  height: 6px;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: 99px;
}

.nmp-seek-fill,
.nmp-vol-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
}

.nmp-vol-fill {
  background: linear-gradient(90deg, var(--blood-lit), var(--hot));
}

.nmp-seek-fill {
  background: var(--signal);
  border-radius: 99px;
}

.nmp-seek-thumb,
.nmp-vol-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  background: var(--iron);
  border: 1px solid var(--edge);
  color: var(--bone);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.nmp-vol-thumb {
  width: 48px;
  height: 24px;
  margin-top: -12px;
  padding: 0 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 0;
}

.nmp-seek-thumb {
  width: 62px;
  height: 22px;
  margin-top: -11px;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 99px;
}

.nmp-vol-thumb:hover,
.nmp-vol-thumb:focus-visible,
.nmp-vol-thumb.is-drag,
.nmp-vol-thumb.is-edit {
  border-color: var(--hot);
  outline: none;
}

.nmp-seek-thumb:hover,
.nmp-seek-thumb:focus-visible,
.nmp-seek-thumb.is-drag,
.nmp-seek-thumb.is-edit {
  border-color: var(--signal);
  outline: none;
}

.nmp-seek-thumb.is-drag,
.nmp-vol-thumb.is-drag {
  cursor: grabbing;
}

.nmp-seek-thumb.is-edit,
.nmp-vol-thumb.is-edit {
  user-select: text;
  -webkit-user-select: text;
}

.nmp-seek-read,
.nmp-vol-read {
  pointer-events: none;
}

.nmp-seek-edit,
.nmp-vol-edit {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  letter-spacing: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.nmp-vol-edit {
  caret-color: var(--hot);
}

.nmp-seek-edit {
  caret-color: var(--signal);
}

.nmp-transport-app .nmp-skip,
.nmp-transport-app .nmp-mode {
  width: 36px;
  height: 32px;
  min-width: 36px;
}

.nmp-transport-app .nmp-play-main {
  width: 36px;
  height: 32px;
  font-size: 13px;
  color: var(--bone);
  background: var(--steel);
  border-color: var(--edge);
}

.nmp-transport-app .nmp-play-main:hover {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-transport-app .nmp-stop {
  width: 28px;
  height: 26px;
}

.nmp-transport-app .nmp-stop svg {
  width: 10px;
  height: 10px;
}

.nmp-transport-app svg {
  width: 14px;
  height: 14px;
}

.nmp-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nmp-link:hover {
  color: var(--hot);
}

.nmp-list {
  margin-top: 10px;
}

.nmp-qrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--edge-soft);
  color: var(--bone);
  padding: 8px 0;
  cursor: pointer;
}

.nmp-qrow.on {
  color: var(--hot);
}

.nmp-qrow-track.on {
  color: var(--signal);
  background: rgba(168, 189, 137, 0.1);
  box-shadow: inset 3px 0 0 var(--signal);
}

.nmp-qrow-track {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, 34%);
  align-items: baseline;
  gap: 8px;
}

.nmp-qnum {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}

.nmp-qtitle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

  white-space: nowrap;
  text-align: right;
  text-decoration: none;
}

.nmp-qrow-track.on .nmp-qnum,
.nmp-qrow-track.on .nmp-qmeta {
  color: var(--signal);
}

.nmp-app .ub-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

.nmp-play-err {
  color: var(--hot);
  margin: 2px 0 0;
}

.nmp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--ash);
}

.nmp-conv-br-lab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.nmp-conv-br-lab label {
  margin-bottom: 0;
}

#nmp-conv-br-val {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--hot);
}

.field input[type="range"] {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  accent-color: var(--hot);
}

.field input[type="range"]:focus {
  border: none;
  box-shadow: none;
}

.nmp-conv-meter {
  height: 4px;
  margin-top: 12px;
  background: var(--edge-soft);
  overflow: hidden;
}

.nmp-conv-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--hot);
}

.nmp-app select {
  width: 100%;
  max-width: 100%;
  background: var(--iron);
  color: var(--bone);
  border: 1px solid var(--edge-soft);
  padding: 8px 10px;
}

body.nmp-detached .site-head,
body.nmp-detached .topbar,
body.nmp-detached .footer,
body.nmp-detached .beta-strip,
html.nmp-detached .site-head,
html.nmp-detached .topbar,
html.nmp-detached .footer,
html.nmp-detached .beta-strip,
html.nmp-detached #nmp-root {
  display: none;
}

html.nmp-detached,
html.nmp-detached body {
  height: 100%;
  overflow: hidden;
  background: var(--void);
}

html.nmp-detached .app-container {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

html.nmp-detached .container.nmp-app {
  max-width: none;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

html.nmp-detached .nmp-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
}

html.nmp-detached #nmp-install {
  display: none !important;
}

html.nmp-detached .nmp-desk {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.nmp-detached .nmp-now-card {
  flex: 0 0 auto;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  clip-path: none;
  -webkit-clip-path: none;
  padding: 0 10px 8px;
  background: var(--iron);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--edge);
}

html.nmp-detached .nmp-plate-row {
  order: -2;
  margin: 0 -10px 0;
  padding: 8px 10px 2px;
  background: var(--void);
  justify-content: center;
}

html.nmp-detached .nmp-plate {
  order: unset;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--dim);
}

html.nmp-detached .nmp-plate-row .nmp-now-min {
  top: 8px;
  right: 10px;
}

html.nmp-detached .nmp-now-card > * {
  flex-shrink: 0;
}

html.nmp-detached .nmp-now-card.is-min {
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 6px;
}

html.nmp-detached .nmp-now-card.is-min .nmp-vis-row {
  display: flex !important;
  margin: 0 0 4px;
}

html.nmp-detached .nmp-now-card.is-min .nmp-vis-check,
html.nmp-detached .nmp-now-card.is-min .nmp-bands-pop {
  display: none !important;
}

html.nmp-detached .nmp-now-card.is-min .nmp-strip {
  height: 32px;
}

html.nmp-detached .nmp-pop-row {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  order: -1;
  margin: 0 -10px 8px;
  padding: 2px 10px 6px;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--edge-soft);
  background: var(--void);
}

#nmp-retract {
  display: none;
}

html.nmp-can-retract #nmp-retract {
  display: inline !important;
}

html.nmp-detached .nmp-pop-row .btn {
  padding: 0;
  min-height: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

html.nmp-detached .nmp-pop-row .btn:hover {
  color: var(--hot);
  box-shadow: none;
}

html.nmp-detached .nmp-plate-row .nmp-now-min {
  color: var(--ash);
  border-color: var(--edge);
}

html.nmp-detached .nmp-plate-row .nmp-now-min:hover {
  color: var(--hot);
  border-color: var(--hot);
}

html.nmp-detached #nmp-pop-app {
  display: none !important;
}

html.nmp-detached .nmp-stage {
  margin-bottom: 4px;
  grid-template-columns: minmax(64px, 120px) minmax(0, 1fr) minmax(64px, 120px);
}

html.nmp-detached .nmp-stage-art,
html.nmp-detached .nmp-orb-lg {
  width: 100%;
  min-width: 0;
  max-width: 120px;
}

html.nmp-detached .nmp-now-cover {
  width: 100%;
  height: 100%;
}

html.nmp-detached .nmp-orb-play {
  width: 36%;
  height: 36%;
  font-size: clamp(12px, 2.6vw, 16px);
}

html.nmp-detached .nmp-now-card.is-min .nmp-orb-lg {
  width: 36px;
  max-width: 36px;
  height: 36px;
}

html.nmp-detached .nmp-now-card.is-min .nmp-stage {
  grid-template-columns: 36px minmax(0, 1fr);
}

html.nmp-detached .nmp-now-card.is-min .nmp-orb-play {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

html.nmp-detached .nmp-strip {
  display: block;
  height: 40px;
}

html.nmp-detached .nmp-vis-row {
  margin: 2px 0 4px;
}

html.nmp-detached .nmp-bands-lab input[type="range"],
html.nmp-detached .nmp-app .nmp-bands-lab input[type="range"] {
  width: 96px;
  max-width: 96px;
}

html.nmp-detached .nmp-now-card .nmp-title {
  font-size: clamp(16px, 4vw, 28px);
}

html.nmp-detached .nmp-now-card .nmp-album {
  font-size: clamp(11px, 2vw, 15px);
}

html.nmp-detached .nmp-seek-bar {
  padding: 2px 0;
}

html.nmp-detached .nmp-transport-app {
  margin: 0 0 2px;
  justify-content: center;
}

html.nmp-detached .nmp-vol-bar {
  padding: 4px 0 10px;
  overflow: visible;
}

html.nmp-detached .nmp-vol-thumb {
  width: 44px;
  height: 22px;
  margin-top: -11px;
  font-size: 10px;
}

html.nmp-detached .nmp-seek-thumb {
  width: 56px;
  height: 20px;
  margin-top: -10px;
  font-size: 10px;
}

html.nmp-detached .nmp-vol-step {
  height: 26px;
}

html.nmp-detached .nmp-playlist {
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background: var(--void);
}

html.nmp-detached .nmp-playlist .ub-title {
  margin: 0;
  padding: 8px 10px 4px;
  letter-spacing: 0.22em;
  color: var(--hot);
  border-bottom: 1px solid var(--edge-soft);
}

html.nmp-detached .nmp-playlist .nmp-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
}

html.nmp-detached .nmp-qrow-track {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.25;
}

html.nmp-detached .nmp-qrow-track:hover {
  background: rgba(235, 30, 50, 0.08);
}

html.nmp-detached .nmp-qrow-track.on,
html.nmp-detached .nmp-qrow-track.on:hover {
  background: rgba(168, 189, 137, 0.12);
}

.nmp-app .nmp-page {
  padding: 20px 0 32px;
  overflow-x: hidden;
}

.nmp-app .section-sub {
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .nmp-dock {
    --nmp-art: 112px;
    width: min(420px, calc(100vw - 16px));
    min-height: calc(var(--nmp-art) + 8px);
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: auto;
    border-radius: 16px;
  }
  .nmp-dock.nmp-collapsed {
    --nmp-art: 140px;
    width: calc(var(--nmp-art) + 36px);
    height: var(--nmp-art);
    min-height: var(--nmp-art);
  }
  .nmp-dock.nmp-collapsed .nmp-restore-fab,
  .nmp-dock.nmp-collapsed .nmp-park-fab {
    width: 28px;
    height: 28px;
    left: calc(var(--nmp-art) - 2px);
  }
  .nmp-dock.nmp-collapsed .nmp-restore-fab {
    top: 2px;
  }
  .nmp-dock.nmp-collapsed .nmp-park-fab {
    bottom: 2px;
  }
  .nmp-dock.nmp-collapsed .nmp-park-fab::before,
  .nmp-dock.nmp-collapsed .nmp-park-fab::after {
    left: 7px;
    right: 7px;
  }
  .nmp-dock.nmp-collapsed .nmp-grab-fab {
    width: 24px;
    height: 58px;
    margin: -29px 0 0;
    left: calc(var(--nmp-art) - 1px);
  }
  .nmp-dock.nmp-collapsed .nmp-orb-play {
    font-size: 20px;
  }
  .nmp-orb {
    margin: 4px 8px 4px 4px;
  }
  .nmp-deck {
    padding: 6px 34px 8px 6px;
  }
  .nmp-dock.nmp-parked {
    --nmp-art: 0px;
    width: min(256px, calc(100vw - 16px));
    height: 38px;
    min-height: 38px;
  }
  .nmp-dock .nmp-title {
    font-size: 13px;
  }
  .nmp-dock .nmp-skip,
  .nmp-dock .nmp-mode {
    width: 32px;
    height: 30px;
    min-width: 32px;
  }
  .nmp-dock .nmp-transport {
    margin-top: 4px;
    gap: 4px;
  }
  .nmp-dock .nmp-transport .nmp-quiet-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .nmp-dock .nmp-seek-bar-row {
    height: 20px;
  }
  .nmp-dock .nmp-seek-track {
    height: 8px;
  }
  .nmp-dock .nmp-seek-thumb {
    width: 42px;
    height: 16px;
    margin-top: -8px;
    padding: 0 5px;
    font-size: 9px;
  }
  .nmp-dock .nmp-orb-play {
    width: calc(var(--nmp-art) * 0.42);
    height: calc(var(--nmp-art) * 0.42);
    font-size: 13px;
  }
  .nmp-now-card .nmp-stage {
    grid-template-columns: minmax(72px, 140px) minmax(0, 1fr) minmax(64px, 120px);
  }
}

@media (max-width: 720px) {
  .nmp-dock.nmp-mobile-bar {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    top: auto;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .nmp-dock {
    --nmp-art: 104px;
    width: min(calc(100vw - 12px), 400px);
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  .nmp-dock.nmp-collapsed {
    --nmp-art: 140px;
    width: calc(var(--nmp-art) + 36px);
  }
  .nmp-deck {
    padding: 6px 32px 8px 4px;
  }
  .nmp-dock .nmp-transport {
    margin-top: 2px;
    gap: 3px;
  }
  .nmp-dock .nmp-seek-thumb {
    width: 36px;
    height: 14px;
    margin-top: -7px;
    padding: 0 3px;
    font-size: 8px;
  }
  .nmp-dock.nmp-parked {
    --nmp-art: 0px;
    width: min(240px, calc(100vw - 12px));
    height: 38px;
    min-height: 38px;
  }
  .nmp-dock .nmp-orb-play {
    width: calc(var(--nmp-art) * 0.44);
    height: calc(var(--nmp-art) * 0.44);
    font-size: 10px;
  }
  html.nmp-detached .nmp-stage-art,
  html.nmp-detached .nmp-orb-lg {
    width: 100%;
    max-width: 112px;
  }
  .nmp-restore-fab {
    width: 20px;
    height: 20px;
    left: calc(var(--nmp-art) - 4px);
  }
  .nmp-dock.nmp-collapsed .nmp-restore-fab,
  .nmp-dock.nmp-collapsed .nmp-park-fab {
    width: 28px;
    height: 28px;
    left: calc(var(--nmp-art) - 2px);
  }
  .nmp-grab-fab {
    width: 14px;
    height: 30px;
    margin: -15px 0 0;
  }
  .nmp-dock.nmp-collapsed .nmp-grab-fab {
    width: 24px;
    height: 56px;
    margin: -28px 0 0;
  }
}

@media (pointer: coarse) and (max-width: 900px) {
  .nmp-dock.nmp-collapsed {
    --nmp-art: 140px;
    width: calc(var(--nmp-art) + 36px);
    height: var(--nmp-art);
    min-height: var(--nmp-art);
  }
  .nmp-dock.nmp-collapsed .nmp-restore-fab,
  .nmp-dock.nmp-collapsed .nmp-park-fab {
    width: 28px;
    height: 28px;
    left: calc(var(--nmp-art) - 2px);
  }
  .nmp-dock.nmp-collapsed .nmp-grab-fab {
    width: 24px;
    height: 58px;
    margin: -29px 0 0;
  }
  .nmp-dock .nmp-skip,
  .nmp-dock .nmp-mode {
    width: 32px;
    height: 30px;
    min-width: 32px;
  }
}

.nmp-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--edge);
  padding: 1px 6px;
  white-space: nowrap;
}

.nmp-chip.on {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-now-line {
  margin: 4px 0 0;
}

.nmp-shelf {
  margin-bottom: 28px;
}

.nmp-smart {
  margin-bottom: 8px;
}

.nmp-smart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.nmp-smart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--edge-soft);
}

.nmp-smart-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}

.nmp-smart-tab:hover {
  color: var(--bone);
}

.nmp-smart-tab.on {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.nmp-smart-sel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.nmp-smart-sel::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  font-size: 8px;
  color: var(--ash);
  pointer-events: none;
}

.nmp-smart-sel select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0 12px 0 0;
  min-width: 0;
  cursor: pointer;
  color-scheme: dark;
}

.nmp-smart-sel select:focus {
  outline: none;
  border-bottom-color: var(--hot);
}

.nmp-smart-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nmp-smart-cap {
  padding: 8px 14px 4px;
  white-space: nowrap;
}

.nmp-smart-more {
  position: relative;
  flex: 0 0 auto;
}

.nmp-smart-toggle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nmp-smart-toggle:hover,
.nmp-smart-toggle[aria-expanded="true"] {
  color: var(--hot);
}

.nmp-smart-menu {
  position: fixed;
  z-index: 60;
  min-width: 208px;
  background: var(--void);
  border: 1px solid var(--edge);
  padding: 6px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.nmp-smart-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
}

.nmp-smart-item:hover {
  color: var(--hot);
  background: rgba(235, 30, 50, 0.08);
}

.nmp-smart-rule {
  height: 1px;
  margin: 6px 0;
  background: var(--edge-soft);
}

.nmp-smart-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone);
  cursor: pointer;
}

.nmp-smart-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

.nmp-smart-albums:empty {
  display: none;
  margin: 0;
}

.nmp-smart-album {
  background: none;
  border: none;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.nmp-smart-album:hover {
  color: var(--bone);
}

.nmp-smart-album.on {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.nmp-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.nmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nmp-table th,
.nmp-table td {
  text-align: left;
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid var(--edge-soft);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  cursor: pointer;
  user-select: none;
}

.nmp-table th[data-sort="playlists"] {
  cursor: pointer;
}

.nmp-table td:has(.nmp-pl-ico) {
  overflow: visible;
  max-width: none;
}

.nmp-table tr.sel {
  background: rgba(235, 30, 50, 0.06);
}

.nmp-table tr.sel td {
  color: var(--hot);
}

.nmp-table tr.on {
  background: rgba(168, 189, 137, 0.1);
  box-shadow: inset 3px 0 0 var(--signal);
}

.nmp-table tr.on td {
  color: var(--signal);
}

.nmp-table tr.on.sel {
  background: rgba(168, 189, 137, 0.1);
  box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px rgba(235, 30, 50, 0.4);
}

.nmp-table tr.on.sel td {
  color: var(--signal);
}

.nmp-table tr.missing td {
  opacity: 0.55;
}

.nmp-table tr.hidden-row td {
  opacity: 0.6;
}

.nmp-qrow-mix {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 78px;
  align-items: baseline;
  gap: 8px;
}

.nmp-qmeta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmp-qrow.sel {
  color: var(--hot);
  background: rgba(235, 30, 50, 0.06);
}

.nmp-qrow-track.on.sel {
  color: var(--signal);
  background: rgba(168, 189, 137, 0.1);
  box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px rgba(235, 30, 50, 0.4);
}

.nmp-pl-row.on {
  color: var(--hot);
}

.nmp-tag-edit {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--edge-soft);
}

.nmp-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 8px 0;
}

.nmp-tag-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.nmp-tag-grid input {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}

.nmp-tag-grid input:focus {
  border-color: var(--hot);
}

.nmp-desk {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nmp-tabs-wrap {
  position: relative;
  margin-top: 14px;
  min-width: 0;
  overflow: hidden;
}

.nmp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--edge);
}

.nmp-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 8px;
  cursor: pointer;
}

.nmp-tab[aria-selected="true"] {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.nmp-tab-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.nmp-tab-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.28s ease;
  will-change: transform;
}

.nmp-tab-panel {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px 28px 0;
  max-height: min(72vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--raised) var(--void);
}

.nmp-tab-panel::-webkit-scrollbar {
  width: 10px;
}

.nmp-tab-panel::-webkit-scrollbar-track {
  background: var(--void);
}

.nmp-tab-panel::-webkit-scrollbar-thumb {
  background: var(--raised);
  border: 2px solid var(--void);
}

.nmp-tab-panel .field,
.nmp-tab-panel .cta-row,
.nmp-tab-panel .nmp-conv-meter,
.nmp-tab-panel select,
.nmp-tab-panel input,
.nmp-tab-panel .nmp-table-wrap {
  max-width: 100%;
  min-width: 0;
}

.nmp-tab-panel input[type="text"] {
  overflow-x: auto;
}

.nmp-play-title {
  cursor: pointer;
  user-select: none;
}

.nmp-play-title:hover {
  color: var(--hot);
}

.nmp-pl-ico {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--ash);
  width: auto;
  min-height: 22px;
  padding: 2px 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nmp-pl-ico.on {
  color: var(--hot);
  border-color: var(--hot);
}

.nmp-pl-pop {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: 280px;
  max-height: min(70vh, 360px);
  overflow: auto;
  background: var(--void);
  border: 1px solid var(--edge);
  padding: 8px 10px;
}

.nmp-pl-pop-sec {
  margin: 8px 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.nmp-pl-pop-sec:first-child {
  margin-top: 0;
}

.nmp-pl-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 5px 2px;
  cursor: pointer;
}

.nmp-pl-opt:hover,
.nmp-pl-opt.on,
.nmp-pl-opt.in {
  color: var(--hot);
}

.nmp-pl-opt:disabled {
  color: var(--dim);
  cursor: default;
}

.nmp-pl-pop label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--bone);
  cursor: pointer;
}

.nmp-drag {
  cursor: grab;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: -1px;
  user-select: none;
  padding: 0 4px;
}

.nmp-drag:active {
  cursor: grabbing;
}

.nmp-qrow-pl {
  display: grid;
  grid-template-columns: 18px 22px minmax(0, 1.3fr) minmax(0, 0.8fr) 78px;
  align-items: center;
  gap: 8px;
}

html.nmp-detached .nmp-tabs-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  overflow: hidden;
}

html.nmp-detached .nmp-tab-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.nmp-detached .nmp-tab-track {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: none !important;
}

html.nmp-detached .nmp-tab-panel {
  display: none !important;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: none;
  overflow: hidden;
  padding: 10px 12px 12px;
}

html.nmp-detached .nmp-tab-panel:not([aria-hidden="true"]) {
  display: flex !important;
  flex-direction: column;
}

html.nmp-detached .nmp-tab-panel .nmp-shelf {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

html.nmp-detached .nmp-smart {
  flex: 0 0 auto;
}

html.nmp-detached .nmp-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--void);
}

html.nmp-detached .nmp-tab-panel .nmp-table-wrap,
html.nmp-detached .nmp-tab-panel .nmp-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

html.nmp-detached [data-tab="convert"],
html.nmp-detached [data-panel="convert"] {
  display: none !important;
}

@media (max-width: 800px) {
  .nmp-tab {
    letter-spacing: 0.08em;
    font-size: 10px;
    padding: 10px 4px;
  }
  .nmp-tab-panel {
    max-height: min(62vh, 640px);
    padding-right: 14px;
  }
}

@keyframes nav-guide-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(235, 30, 50, 0.28), 0 0 10px rgba(235, 30, 50, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px var(--hot), 0 0 16px rgba(235, 30, 50, 0.42);
  }
}

.nav a.guide-glow,
.btn.guide-glow {
  color: var(--hot);
  border-color: var(--blood-lit);
  animation: nav-guide-glow 2.8s ease-in-out infinite;
}

.guide-list {
  margin: 0 0 1.2rem;
  padding: 0 0 0 1.1rem;
  color: var(--ash);
  max-width: 42rem;
}

.guide-list li {
  margin: 0.45rem 0;
}

.guide-list strong {
  color: var(--bone);
}


/* nihilus.app software shell: no website header/footer chrome + viewport lock */
html.nmp-software .site-head,
html.nmp-software .site-head-slot,
html.nmp-software .topbar,
html.nmp-software .footer,
html.nmp-software .beta-strip,
html.nmp-soft-shell .site-head,
html.nmp-soft-shell .site-head-slot,
html.nmp-soft-shell .topbar,
html.nmp-soft-shell .footer,
html.nmp-soft-shell .beta-strip,
body.nmp-software .site-head,
body.nmp-software .site-head-slot,
body.nmp-software .topbar,
body.nmp-software .footer,
body.nmp-software .beta-strip,
body.nmp-soft-shell .site-head,
body.nmp-soft-shell .site-head-slot,
body.nmp-soft-shell .topbar,
body.nmp-soft-shell .footer,
body.nmp-soft-shell .beta-strip {
  display: none !important;
}

/* Mirror html.nmp-detached lock: document never scrolls; tab lists do. */
html.nmp-software,
html.nmp-soft-shell,
html.nmp-software body,
html.nmp-soft-shell body,
body.nmp-software,
body.nmp-soft-shell {
  height: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100%;
  max-height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--void);
}

html.nmp-software,
html.nmp-soft-shell {
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}

html.nmp-software .app-container,
html.nmp-soft-shell .app-container {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.nmp-software .container.nmp-app,
html.nmp-soft-shell .container.nmp-app {
  max-width: 1120px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

html.nmp-software .nmp-page,
html.nmp-soft-shell .nmp-page,
html.nmp-software .nmp-app .nmp-page,
html.nmp-soft-shell .nmp-app .nmp-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-top: none;
  overflow: hidden;
}

html.nmp-software .nmp-desk,
html.nmp-soft-shell .nmp-desk {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.nmp-software .nmp-now-card,
html.nmp-soft-shell .nmp-now-card {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

html.nmp-software .nmp-tabs-wrap,
html.nmp-soft-shell .nmp-tabs-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  overflow: hidden;
}

html.nmp-software .nmp-tabs,
html.nmp-soft-shell .nmp-tabs {
  flex: 0 0 auto;
}

html.nmp-software .nmp-tab-viewport,
html.nmp-soft-shell .nmp-tab-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Active panel fills remaining height; list scrolls (same idea as detached). */
html.nmp-software .nmp-tab-track,
html.nmp-soft-shell .nmp-tab-track {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: none !important;
}

html.nmp-software .nmp-tab-panel,
html.nmp-soft-shell .nmp-tab-panel {
  display: none !important;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: none;
  overflow: hidden;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

html.nmp-software .nmp-tab-panel:not([aria-hidden="true"]),
html.nmp-soft-shell .nmp-tab-panel:not([aria-hidden="true"]) {
  display: flex !important;
  flex-direction: column;
}

html.nmp-software .nmp-tab-panel .nmp-shelf,
html.nmp-soft-shell .nmp-tab-panel .nmp-shelf {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

html.nmp-software .nmp-smart,
html.nmp-soft-shell .nmp-smart {
  flex: 0 0 auto;
}

/* tabs1: trailing cols after Type (Source/Playlists) must scroll-x, not clip */
html.nmp-software .nmp-tab-panel .nmp-table-wrap,
html.nmp-soft-shell .nmp-tab-panel .nmp-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.nmp-software .nmp-tab-panel .nmp-list,
html.nmp-soft-shell .nmp-tab-panel .nmp-list,
html.nmp-software .nmp-playlist .nmp-list,
html.nmp-soft-shell .nmp-playlist .nmp-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.nmp-software .nmp-table th,
html.nmp-soft-shell .nmp-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--void);
}

html.nmp-software .nmp-table,
html.nmp-soft-shell .nmp-table {
  width: max-content;
  min-width: 100%;
}

/* Soft shell: minimize collapses viz, listen, seek, and vol.
   minbar1 keeps .nmp-stage (cover + circular play) on screen. */
html.nmp-software .nmp-now-card.is-min .nmp-vis-row,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-vis-row,
html.nmp-software .nmp-now-card.is-min .nmp-listen,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-listen,
html.nmp-software .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-software .nmp-now-card.is-min .nmp-vol-bar,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-vol-bar {
  display: none !important;
}

/* hdr1: pin the header tool row. Expanded card padding-top is 10px and
   plate-row margin-bottom is 6px. Shrinking those (plus the generic
   is-min plate margin) is what translated .nmp-pop-row up toward the
   NMP-080826 plate. Collapse stage, viz, seek, and vol only. */
html.nmp-software .nmp-now-card.is-min,
html.nmp-soft-shell .nmp-now-card.is-min {
  padding-top: 10px;
  padding-bottom: 2px;
}

html.nmp-software .nmp-now-card.is-min .nmp-plate-row,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-plate-row {
  margin: 0 0 6px;
  min-height: 22px;
}

html.nmp-software .nmp-now-card.is-min .nmp-plate,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-plate {
  margin: 0;
}

html.nmp-software .nmp-now-card.is-min .nmp-pop-row,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-pop-row {
  margin-top: 0;
  margin-bottom: 2px;
  position: relative;
  top: auto;
  transform: none;
}

/* Keep a thin transport strip so play/pause still works while minimized */
html.nmp-software .nmp-now-card.is-min .nmp-transport-app,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app {
  margin: 0 0 4px;
  gap: 6px;
}

/* min2: hidden chrome must not capture hits; library/tabs stay clickable.
   minbar1: the stage stays hit-testable so the circular play button works. */
html.nmp-software .nmp-now-card.is-min .nmp-vis-row,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-vis-row,
html.nmp-software .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-software .nmp-now-card.is-min .nmp-vol-bar,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-vol-bar {
  pointer-events: none !important;
}

html.nmp-software .nmp-now-card.is-min ~ .nmp-tabs-wrap,
html.nmp-soft-shell .nmp-now-card.is-min ~ .nmp-tabs-wrap,
html.nmp-software.nmp-layout-min .nmp-tabs-wrap,
html.nmp-soft-shell.nmp-layout-min .nmp-tabs-wrap,
body.nmp-layout-min .nmp-tabs-wrap {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}


.nmp-site-more {
  position: relative;
  flex: 0 0 auto;
}

.nmp-site-menu a.nmp-smart-item {
  text-decoration: none;
  color: var(--bone);
  box-sizing: border-box;
}

.nmp-site-menu a.nmp-smart-item:hover {
  color: var(--hot);
}


/* minbar1: minimized player keeps a big circular play, a small cover,
   track identity, then the existing transport in a row underneath.
   Expanded stage is unchanged. Header pin (padding-top 10px, plate-row
   margin 0 0 6px) is not touched. */
html.nmp-software .nmp-now-card.is-min,
html.nmp-soft-shell .nmp-now-card.is-min {
  padding-bottom: 8px;
}

html.nmp-software .nmp-now-card.is-min .nmp-stage,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "orb meta";
  align-items: center;
  column-gap: 12px;
  margin: 2px 0 8px;
  min-width: 0;
  pointer-events: auto !important;
}

html.nmp-software .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])),
html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) {
  grid-template-columns: 104px 52px minmax(0, 1fr);
  grid-template-areas: "orb art meta";
}

html.nmp-software .nmp-now-card.is-min .nmp-orb-lg,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-orb-lg {
  grid-area: orb;
  justify-self: center;
  width: 104px;
  max-width: 104px;
  height: 104px;
  aspect-ratio: 1;
  box-shadow:
    inset 0 0 18px rgba(235, 30, 50, 0.28),
    0 0 0 1px rgba(235, 30, 50, 0.72),
    0 0 16px rgba(235, 30, 50, 0.42);
  animation: nmp-minbar-shine 2.8s ease-in-out infinite;
}

html.nmp-software .nmp-now-card.is-min .nmp-orb-play,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-orb-play {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  font-size: 17px;
  border-color: rgba(235, 30, 50, 0.9);
  box-shadow:
    0 0 0 1px rgba(7, 6, 7, 0.92),
    0 0 12px rgba(235, 30, 50, 0.55);
}

html.nmp-software .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) .nmp-stage-art,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) .nmp-stage-art {
  display: block !important;
  grid-area: art;
  justify-self: center;
  align-self: center;
  width: 52px;
  max-width: 52px;
  height: 52px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(233, 229, 216, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.45);
}

html.nmp-software .nmp-now-card.is-min .nmp-now-cover:not([hidden]),
html.nmp-soft-shell .nmp-now-card.is-min .nmp-now-cover:not([hidden]) {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.nmp-software .nmp-now-card.is-min .nmp-stage-meta,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage-meta {
  grid-area: meta;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  min-width: 0;
  padding: 0;
}

html.nmp-software .nmp-now-card.is-min .nmp-title,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-title {
  font-size: 16px;
  line-height: 1.15;
  text-align: left;
}

html.nmp-software .nmp-now-card.is-min .nmp-album,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-album {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

html.nmp-software .nmp-now-card.is-min .nmp-transport-app,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 2px;
  padding: 0;
}

html.nmp-software .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
html.nmp-software .nmp-now-card.is-min .nmp-transport-app .nmp-mode,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app .nmp-mode,
html.nmp-software .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
  width: 30px;
  height: 28px;
  min-width: 30px;
}

html.nmp-software .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
  font-size: 12px;
}

html.nmp-software .nmp-now-card.is-min .nmp-transport-app .nmp-stop,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app .nmp-stop {
  width: 26px;
  height: 24px;
  min-width: 26px;
}

html.nmp-software .nmp-now-card.is-min .nmp-transport-app svg,
html.nmp-soft-shell .nmp-now-card.is-min .nmp-transport-app svg {
  width: 12px;
  height: 12px;
}

@keyframes nmp-minbar-shine {
  0%,
  100% {
    box-shadow:
      inset 0 0 14px rgba(235, 30, 50, 0.22),
      0 0 0 1px rgba(235, 30, 50, 0.55),
      0 0 12px rgba(235, 30, 50, 0.28);
  }
  50% {
    box-shadow:
      inset 0 0 22px rgba(235, 30, 50, 0.4),
      0 0 0 1px rgba(235, 30, 50, 0.95),
      0 0 22px rgba(235, 30, 50, 0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.nmp-software .nmp-now-card.is-min .nmp-orb-lg,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-orb-lg {
    animation: none;
  }
}

@media (max-width: 480px) {
  html.nmp-software .nmp-now-card.is-min .nmp-stage,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 10px;
  }

  html.nmp-software .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])),
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) {
    grid-template-columns: 84px 44px minmax(0, 1fr);
  }

  html.nmp-software .nmp-now-card.is-min .nmp-orb-lg,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-orb-lg {
    width: 84px;
    max-width: 84px;
    height: 84px;
  }

  html.nmp-software .nmp-now-card.is-min .nmp-orb-play,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-orb-play {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 15px;
  }

  html.nmp-software .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) .nmp-stage-art,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-stage:has(img.nmp-now-cover:not([hidden])) .nmp-stage-art {
    width: 44px;
    max-width: 44px;
    height: 44px;
  }

  html.nmp-software .nmp-now-card.is-min .nmp-title,
  html.nmp-soft-shell .nmp-now-card.is-min .nmp-title {
    font-size: 14px;
  }
}


/* min3 (20261008): header keeps only download and menu, pushed to the
   top right next to Vis. Popout and copy-URL buttons are gone from the
   markup; their JS lookups are null-guarded. */
.nmp-pop-row .nmp-pop-tools {
  margin-left: auto;
}

/* min3: the min-only artist line and progress line stay hidden in the
   expanded view. */
.nmp-min-artist,
.nmp-min-prog {
  display: none;
}

/* min3: minimized player is one slim row. Cover, title and artist,
   prev / play / next, download, menu, expand. No orb, no big circular
   play. A thin progress line runs along the bottom edge. The rules are
   scoped to html.nmp-layout-min so the expanded view is untouched. */
html.nmp-software.nmp-layout-min .nmp-now-card.is-min,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto;
  grid-template-areas: "art meta ctl tools tog";
  align-items: center;
  column-gap: 12px;
  position: relative;
  min-height: 0;
  padding: 8px 12px 10px !important;
  overflow: hidden;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-plate-row,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-plate-row,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-row,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-row,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage {
  display: contents !important;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-plate,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-plate,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-chrome,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-chrome,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-orb-lg,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-orb-lg,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-orb-play,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-orb-play,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-album,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-album,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-now-line,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-now-line,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-play-err,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-play-err,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-listen,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-listen,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-vis-row,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-vis-row,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-seek-bar,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-vol-bar,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-vol-bar,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min #nmp-app-shuffle,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min #nmp-app-shuffle,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min #nmp-app-stop,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min #nmp-app-stop,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min #nmp-app-repeat,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min #nmp-app-repeat {
  display: none !important;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art {
  display: block !important;
  grid-area: art;
  width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--steel);
  box-shadow: 0 0 0 1px rgba(233, 229, 216, 0.16);
  animation: none;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-now-cover:not([hidden]),
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-now-cover:not([hidden]) {
  display: block !important;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-meta,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-meta {
  grid-area: meta;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-title,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-title,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist {
  display: block !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-title,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-title {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist {
  font-size: 12px;
  line-height: 1.25;
  color: var(--ash);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app {
  grid-area: ctl;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  font-size: 12px;
  color: var(--bone);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: none;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
  color: var(--hot);
  border-color: var(--edge);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:hover,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:hover,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:hover,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:hover {
  color: var(--hot);
  border-color: var(--hot);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app svg,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app svg {
  width: 12px;
  height: 12px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools {
  grid-area: tools;
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-now-min,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-now-min {
  grid-area: tog;
  position: static;
  margin: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog {
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  cursor: pointer;
  z-index: 8;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog::before,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(233, 229, 216, 0.1);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog-fill,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-prog-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--hot);
  pointer-events: none;
}

@media (max-width: 480px) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min {
    grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
    column-gap: 8px;
    padding: 6px 8px 10px !important;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art {
    width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
    width: 28px;
    min-width: 28px;
    height: 30px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools {
    gap: 4px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-title,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-title {
    font-size: 13px;
  }
}


/* ===================================================================
   min4 (20261009), revised in min5
   Expanded: no NMP-080826 title row and no Vis checkbox. The orb and
   strip visualizer stay (min5). The tool buttons stack beside the
   cover instead of taking a row (min6).
   Minimized: bigger prev / play / next, shuffle and repeat shown.
   Phones get two tiers: identity + tools, then the transport.
   =================================================================== */

/* Repeat and shuffle state marks (both views). A small dot under an
   active mode; repeat one adds a filled "1" badge. */
.nmp-transport-app .nmp-mode.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--hot);
}
.nmp-transport-app #nmp-app-repeat .nmp-repeat-one {
  top: 1px;
  right: 1px;
  bottom: auto;
  min-width: 11px;
  height: 11px;
  padding: 0 2px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  line-height: 11px;
  text-align: center;
  color: var(--void);
  background: var(--hot);
}
.nmp-transport-app #nmp-app-repeat .nmp-repeat-one[hidden] {
  display: none;
}

/* ---------- expanded (min6) ----------
   The orb and strip visualizer stay (min5). The tool buttons (download,
   menu, minimize) no longer take a row of their own: they stack down
   the card's right edge, beside the cover, and the stage reserves that
   column so the cover and title are never covered. Each button is a
   36 px touch target with a small icon. */
.nmp-now-card:not(.is-min) {
  --nmp-x-tool: 36px;
  --nmp-x-tool-gap: 8px;
}
.nmp-now-card:not(.is-min) .nmp-pop-row {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  margin: 0;
  min-height: 0;
  z-index: 7;
}
.nmp-now-card:not(.is-min) .nmp-pop-row .nmp-pop-tools {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.nmp-now-card:not(.is-min) .nmp-pop-row .nmp-chrome-tool {
  width: var(--nmp-x-tool);
  min-width: var(--nmp-x-tool);
  height: var(--nmp-x-tool);
  padding: 0;
  color: var(--ash);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.nmp-now-card:not(.is-min) .nmp-pop-row .nmp-chrome-tool svg {
  width: 14px;
  height: 14px;
}
.nmp-now-card:not(.is-min) .nmp-pop-row .nmp-chrome-tool.on {
  color: var(--hot);
}
@media (hover: hover) {
  .nmp-now-card:not(.is-min) .nmp-pop-row .nmp-chrome-tool:hover {
    color: var(--hot);
    background: rgba(233, 229, 216, 0.06);
  }
}
.nmp-now-card:not(.is-min) .nmp-pop-chrome:not(:has(> :not([hidden]))) {
  display: none;
}
.nmp-now-card:not(.is-min) .nmp-stage {
  padding-right: calc(var(--nmp-x-tool) + var(--nmp-x-tool-gap));
  min-height: calc(var(--nmp-x-tool) * 3 + 4px);
}
.nmp-now-card:not(.is-min) .nmp-stage-art > img[hidden] {
  display: none !important;
}
/* Michael's nit: an empty cover slot still shows its frame. */
.nmp-now-card:not(.is-min) .nmp-stage-art:has(img[hidden]) {
  border: 1px solid var(--edge);
  background: var(--void);
}
/* The Bands toggle sits in the strip's top right corner instead of on
   its own row above it. Its slider panel opens below, right-aligned. */
.nmp-now-card:not(.is-min) .nmp-vis-row {
  position: relative;
  gap: 0;
}
.nmp-now-card:not(.is-min) .nmp-bands-pop {
  position: absolute;
  top: 2px;
  right: 2px;
  align-self: auto;
}
.nmp-now-card:not(.is-min) #nmp-bands-toggle {
  width: 28px;
  height: 24px;
  min-width: 28px;
  border-radius: 3px;
  background: rgba(7, 6, 7, 0.55);
}
.nmp-now-card:not(.is-min) .nmp-bands-lab {
  left: auto;
  right: 0;
  transform: none;
}
/* Phones: the title column is already tight, so the tools do not get a
   column of their own. They run across the top of the cover column and
   the cover sits under them, a little smaller. The orb and title keep
   their width (the title column is wider than in min5). */
@media (max-width: 640px) {
  .nmp-now-card:not(.is-min) {
    --nmp-x-cover: 108px;
  }
  .nmp-now-card:not(.is-min) .nmp-pop-row {
    top: 10px;
    right: 16px;
  }
  .nmp-now-card:not(.is-min) .nmp-pop-row .nmp-pop-tools {
    flex-direction: row;
    gap: 0;
  }
  .nmp-now-card:not(.is-min) .nmp-stage {
    grid-template-columns: minmax(72px, 140px) minmax(0, 1fr) var(--nmp-x-cover);
    padding-right: 0;
    min-height: 0;
  }
  .nmp-now-card:not(.is-min) .nmp-stage-art {
    align-self: start;
    justify-self: end;
    width: var(--nmp-x-cover);
    max-width: none;
    margin-top: calc(var(--nmp-x-tool) + 4px);
  }
}
/* min6b (Michael B1): two-line title on phones, and a slightly smaller
   orb column at 400 px and under so the title has room. */
@media (max-width: 640px) { .nmp-now-card:not(.is-min) #nmp-now-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; } }
@media (max-width: 400px) { .nmp-now-card:not(.is-min) .nmp-stage { grid-template-columns: 112px minmax(0, 1fr) var(--nmp-x-cover); column-gap: 8px; } }
/* min6b nit: the popout keeps the cover under the tool buttons too. */
html.nmp-detached .nmp-now-card:not(.is-min) .nmp-stage-art { margin-top: calc(var(--nmp-x-tool) + 12px); }
/* min6b (Michael N1): the links menu never runs off screen; it scrolls. */
.nmp-site-menu { max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
/* min6b nit: menu headings line up with their items. */
.nmp-site-menu-kicker {
  padding: 8px 14px 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- minimized ---------- */
html.nmp-software.nmp-layout-min .nmp-now-card.is-min,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min {
  /* The empty 48px track mirrors the cover so the transport is centred. */
  grid-template-columns: 48px minmax(0, 1fr) auto minmax(0, 1fr) 48px;
  grid-template-areas: "art meta ctl tools tools";
  column-gap: 14px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art {
  width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min #nmp-app-shuffle,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min #nmp-app-shuffle,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min #nmp-app-repeat,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min #nmp-app-repeat {
  display: inline-flex !important;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app {
  justify-content: center;
  gap: 6px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode,
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode {
  width: 40px;
  min-width: 40px;
  height: 40px;
  color: var(--ash);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode.on,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode.on {
  color: var(--hot);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode.on::after,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode.on::after {
  bottom: 4px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app #nmp-app-repeat .nmp-repeat-one,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app #nmp-app-repeat .nmp-repeat-one {
  top: 6px;
  right: 6px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0 2px;
  font-size: 16px;
  color: #fff;
  background: var(--hot);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(235, 30, 50, 0.32);
  transition: transform 140ms ease, background-color 140ms ease;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app svg,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app svg {
  width: 16px;
  height: 16px;
}
@media (hover: hover) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:hover,
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode:hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode:hover {
    color: var(--hot);
    background: rgba(233, 229, 216, 0.06);
  }
}
@media (hover: hover) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:hover {
    color: #fff;
    background: #ff2f45;
    transform: scale(1.04);
  }
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:active,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main:active {
  transform: scale(0.96);
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools {
  justify-self: end;
  gap: 0;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool {
  width: 40px;
  min-width: 40px;
  height: 40px;
  color: var(--ash);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool svg,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool svg {
  width: 16px;
  height: 16px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool.on,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool.on {
  color: var(--hot);
}
/* Hover tints only where a real pointer hovers, so a tap on a phone
   does not leave a grey disc behind. */
@media (hover: hover) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool:hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-pop-tools .nmp-chrome-tool:hover {
    color: var(--hot);
    background: rgba(233, 229, 216, 0.06);
  }
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-title,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-title {
  font-size: 15px;
}
html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist,
html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-min-artist {
  font-size: 13px;
}

/* Phones and narrow windows: two tiers. Top: cover, title and artist,
   download, menu, expand. Bottom: shuffle, prev, play, next, repeat.
   Card padding (Michael's 6px 8px 10px notch fix at 480px) is kept. */
@media (max-width: 640px) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "art meta tools"
      "ctl ctl ctl";
    column-gap: 10px;
    row-gap: 2px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art {
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app {
    justify-content: space-evenly;
    gap: 0;
    max-width: 340px;
    width: 100%;
    justify-self: center;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
    width: 52px;
    min-width: 52px;
    height: 52px;
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-stage-art {
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-title,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-title {
    font-size: 14px;
  }
}

/* Touch screens keep the min3 hover colour after a tap. Reset it so a
   tapped prev or next does not stay red. Active shuffle and repeat stay red. */
@media (hover: none) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:not(.nmp-play-main):hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-skip:not(.nmp-play-main):hover {
    color: var(--bone);
  }
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode:not(.on):hover,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-mode:not(.on):hover {
    color: var(--ash);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.nmp-software.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main,
  html.nmp-soft-shell.nmp-layout-min .nmp-now-card.is-min .nmp-transport-app .nmp-play-main {
    transition: none;
    transform: none;
  }
}

/* min6d: the Library rails scroll sideways only. overflow-x:auto made each rail a tiny vertical
   scroller too (its cards' negative margin makes it a few px taller than its box), so vertical
   touch drags that started on a rail were eaten instead of scrolling the Library (min5 too). */
.lx-root .lx-rail { overflow-y: hidden; }

/* min6e: phones only. All tracks and Queue scroll as one page: the header, album chips and the
   table (or queue list) move together, so the list is never squeezed to a sliver. The table still
   swipes sideways for its trailing columns (overflow-y hidden, rails rule). Album chips sit on one row that swipes sideways and never
   scrolls vertically (same rule as the rails). Desktop keeps the inner list scrollers. */
@media (max-width: 640px) {
  html.nmp-software .nmp-tab-panel.lx-on-tracks:not([aria-hidden="true"]),
  html.nmp-soft-shell .nmp-tab-panel.lx-on-tracks:not([aria-hidden="true"]),
  html.nmp-software .nmp-tab-panel[data-panel="queue"]:not([aria-hidden="true"]),
  html.nmp-soft-shell .nmp-tab-panel[data-panel="queue"]:not([aria-hidden="true"]) {
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  html.nmp-software .nmp-tab-panel.lx-on-tracks .nmp-shelf,
  html.nmp-soft-shell .nmp-tab-panel.lx-on-tracks .nmp-shelf { display: block; }
  html.nmp-software .nmp-tab-panel.lx-on-tracks .nmp-table-wrap,
  html.nmp-soft-shell .nmp-tab-panel.lx-on-tracks .nmp-table-wrap { overflow-x: auto; overflow-y: hidden; overscroll-behavior: auto; overscroll-behavior-x: contain; min-height: 0; }
  html.nmp-software .nmp-tab-panel[data-panel="queue"] .nmp-list,
  html.nmp-soft-shell .nmp-tab-panel[data-panel="queue"] .nmp-list { overflow: visible; min-height: 0; }
  html.nmp-software .nmp-smart-albums,
  html.nmp-soft-shell .nmp-smart-albums {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  html.nmp-software .nmp-smart-albums::-webkit-scrollbar,
  html.nmp-soft-shell .nmp-smart-albums::-webkit-scrollbar { display: none; }
  html.nmp-software .nmp-smart-album,
  html.nmp-soft-shell .nmp-smart-album { flex: 0 0 auto; white-space: nowrap; }
}

/* the now-playing cover opens the song page */
.nmp-now-card .nmp-stage-art:has(img:not([hidden])) { cursor: pointer; }

/* song2: now-playing sheet (#/track/<release>/<track>). Slides up over the player and IS the
   player for that song. Fixed to the viewport, so it carries its own safe-area padding (the
   soft-shell padding on <html> does not apply to fixed boxes, so nothing doubles). */
.nmp-sheet {
  --lx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lx-hover: rgba(255, 255, 255, 0.045);
  --lx-hot2: #ff3346;
  --nsh-red: #d9142b;
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
  color: var(--bone);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(217, 20, 43, 0.22), rgba(217, 20, 43, 0) 60%),
    linear-gradient(180deg, #1a1012 0%, var(--void) 55%);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.34s;
  visibility: hidden;
}
.nmp-sheet[hidden] { display: none; }
.nmp-sheet.is-open { transform: none; visibility: visible; transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.nmp-sheet.no-anim { transition: none; }
html.nmp-sheet-covered .nmp-page,
html.nmp-sheet-covered .nmp-desk { visibility: hidden; }
.nsh-in { max-width: 560px; margin: 0 auto; padding: 0 20px 28px; }
.nsh-top {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px;
  padding: 8px 0; margin: 0 -20px; padding-left: 12px; padding-right: 12px;
  background: linear-gradient(180deg, rgba(20, 12, 14, 0.96), rgba(20, 12, 14, 0.82));
  backdrop-filter: blur(8px);
}
.nsh-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bone); cursor: pointer; transition: color 0.15s, background-color 0.15s, transform 0.15s;
}
.nsh-icon svg { width: 24px; height: 24px; }
.nsh-icon:hover { background: rgba(255, 255, 255, 0.06); }
.nsh-icon:active { transform: scale(0.94); }
.nsh-icon:disabled { opacity: 0.35; cursor: default; transform: none; }
.nsh-icon.on, .nsh-icon.is-done { color: var(--nsh-red); }
.nsh-icon:focus-visible, .nsh-play:focus-visible, .nsh-bar:focus-visible, .nsh-from:focus-visible { outline: 2px solid var(--nsh-red); outline-offset: 2px; }
.nsh-from { display: grid; justify-items: center; min-width: 0; text-align: center; color: inherit; text-decoration: none; }
.nsh-from-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.nsh-from-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
a.nsh-from:hover .nsh-from-t { color: var(--nsh-red); }
.nsh-more-wrap { position: relative; }
.nsh-menu {
  position: absolute; right: 0; top: 46px; z-index: 3; min-width: 196px; padding: 6px 0; border: 1px solid var(--edge); border-radius: 12px;
  background: var(--iron); box-shadow: 0 18px 40px -12px #000;
}
.nsh-menu[hidden] { display: none; }
.nsh-mi {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; background: none;
  color: var(--bone); font: 600 13px/1 var(--font-body); text-align: left; text-decoration: none; cursor: pointer;
}
.nsh-mi svg { width: 18px; height: 18px; color: var(--ash); }
.nsh-mi:hover, .nsh-mi:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; }
.nsh-mi.is-done { color: var(--signal); }
.nsh-main { display: grid; gap: 18px; padding-top: 8px; }
.nsh-art {
  width: min(100%, 46vh, 520px); aspect-ratio: 1; justify-self: center; border-radius: 10px; overflow: hidden; background: var(--steel);
  box-shadow: 0 30px 60px -24px #000, 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.nsh-art img, .nsh-art .lx-ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.nsh-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.nsh-tt { min-width: 0; }
.nsh-title {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.12; color: var(--bone);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.nsh-title:focus { outline: none; }
.nsh-artist { display: inline-block; margin-top: 4px; color: var(--ash); font-size: 15px; text-decoration: none; }
.nsh-artist:hover { color: var(--bone); }
.nsh-seek { display: grid; gap: 6px; }
.nsh-bar { position: relative; height: 28px; cursor: pointer; touch-action: none; --p: 0; }
.nsh-bar.is-off { cursor: default; opacity: 0.5; }
.nsh-rail { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: rgba(233, 229, 216, 0.18); overflow: hidden; }
.nsh-fill { height: 100%; width: 100%; background: var(--bone); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.nsh-thumb {
  position: absolute; top: 8px; left: calc(var(--p) * 100%); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bone);
  box-shadow: 0 0 0 4px rgba(217, 20, 43, 0.0); transition: box-shadow 0.15s;
}
.nsh-bar:active .nsh-thumb, .nsh-bar:focus-visible .nsh-thumb { box-shadow: 0 0 0 6px rgba(217, 20, 43, 0.35); }
.nsh-times { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.nsh-ctrls { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center; justify-items: center; }
.nsh-ctrls .nsh-icon svg { width: 26px; height: 26px; }
.nsh-ctrls .nsh-skip svg { width: 30px; height: 30px; }
.nsh-mode { position: relative; }
.nsh-one { position: absolute; top: 8px; right: 6px; font: 700 9px/1 var(--font-mono); color: var(--nsh-red); }
.nsh-one[hidden] { display: none; }
.nsh-play {
  display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: var(--nsh-red); color: #fff;
  cursor: pointer; box-shadow: 0 14px 30px -10px rgba(217, 20, 43, 0.65); transition: transform 0.15s, background-color 0.2s;
}
.nsh-play svg { width: 30px; height: 30px; }
.nsh-play .nsh-i-play svg { margin-left: 3px; }
.nsh-play:hover { background: var(--lx-hot2); }
.nsh-play:active { transform: scale(0.95); }
.nsh-i-pause { display: none; }
.nsh-play.is-playing .nsh-i-play { display: none; }
.nsh-play.is-playing .nsh-i-pause { display: contents; }
.nsh-sec { display: flex; justify-content: space-between; margin: -4px -10px 0; }
.nsh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nsh-below { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.nsh-card { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lx-line, rgba(255, 255, 255, 0.06)); }
.nsh-card-h { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--bone); }
.nsh-notes { margin: 0 0 10px; color: var(--ash); font-size: 14px; line-height: 1.5; }
.nsh-dl { display: grid; gap: 8px; margin: 0; }
.nsh-dl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
.nsh-dl dt { color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.nsh-dl dd { margin: 0; color: var(--bone); overflow-wrap: anywhere; }
.nsh-sect { margin: 0; }
.nmp-sheet .lx-rail { overflow-y: hidden; }
.nmp-sheet .lx-row-btn { min-height: 52px; }
.nmp-sheet[data-playing="1"] .is-now .lx-eq i { animation: lx-eq 0.9s ease-in-out infinite alternate; }
.nmp-sheet[data-playing="1"] .is-now .lx-eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.nmp-sheet[data-playing="1"] .is-now .lx-eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
.nsh-empty { display: grid; justify-items: center; gap: 10px; padding: 60px 16px; color: var(--ash); text-align: center; }
.nsh-empty svg { width: 34px; height: 34px; }
.nsh-top-pad { width: 44px; }
@media (min-width: 900px) {
  .nsh-in { max-width: 1100px; padding: 0 40px 48px; }
  .nsh-top { margin: 0 -40px; padding-left: 28px; padding-right: 28px; }
  .nsh-main { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 24px; }
  .nsh-art { width: 100%; }
  .nsh-side { display: grid; gap: 20px; max-width: 560px; }
  .nsh-title { font-size: 40px; -webkit-line-clamp: 3; }
  .nsh-below { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 32px; margin-top: 40px; }
  .nsh-below > .nsh-sect:last-child:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .nsh-side { display: grid; gap: 14px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .nsh-art { width: min(100%, 40vh); }
  .nsh-play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .nmp-sheet, .nmp-sheet.is-open { transition: none; }
  .nmp-sheet .lx-row, .nmp-sheet .lx-card { animation: none; }
}

/* song3: meta under the title opens the song sheet */
.nmp-now-card #nmp-min-artist,
.nmp-now-card #nmp-now-extra { cursor: pointer; }
.nmp-now-card #nmp-min-artist:focus-visible,
.nmp-now-card #nmp-now-extra:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
