/* PROXIMA // Soundtrack: "Now playing" bar and the SOUND panel (js/music.js). */
.np-slot:empty {
  display: none;
}
.np-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 3px 12px;
  border-bottom: 1px solid #ffffff1c;
  background: #070b11e6;
  font-size: 0.8rem;
  min-width: 0;
}
.np-ico svg {
  width: 16px;
  height: 16px;
  display: block;
  color: var(--blue, #5aa8ff);
}
.np-bar.on .np-ico svg {
  animation: np-pulse 1.6s ease-in-out infinite;
}
@keyframes np-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .np-bar.on .np-ico svg {
    animation: none;
  }
}
.np-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blue, #5aa8ff);
  white-space: nowrap;
}
.np-bar:not(.on) .np-kicker {
  color: #8a96a6;
}
.np-what {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}
.np-title {
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.np-by {
  color: #9aa7b6;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.np-progress {
  flex: 0 0 90px;
  height: 3px;
  background: #ffffff1c;
}
.np-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue, #5aa8ff);
}
.np-ctl {
  display: flex;
  align-items: center;
  gap: 2px;
}
.np-ctl button {
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: #cfd6df;
  cursor: pointer;
}
.np-ctl button:hover {
  border-color: #ffffff2a;
  color: #fff;
}
.np-ctl svg {
  width: 15px;
  height: 15px;
}
.np-ctl input[type='range'] {
  width: 74px !important;
  min-width: 0 !important;
  height: 6px !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  accent-color: var(--blue, #5aa8ff);
}
.np-open {
  padding: 4px 9px;
  border: 1px solid #ffffff2a;
  background: none;
  color: #cfd6df;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.np-open:hover {
  border-color: var(--blue, #5aa8ff);
  color: #fff;
}
.np-gate {
  position: relative;
  z-index: 21;
}
@media (max-width: 700px) {
  .np-progress,
  .np-ctl input[type='range'],
  .np-kicker {
    display: none;
  }
  .np-by {
    display: none;
  }
  .np-bar {
    gap: 6px;
    padding: 3px 8px;
  }
}

/* SOUND panel */
#px-music {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}
.mu-box {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #ffffff1c;
  background: #0b111a;
  box-shadow: 0 20px 60px #000a;
}
.mu-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff1c;
  background: linear-gradient(90deg, #5aa8ff14, transparent);
}
.mu-head small {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  color: var(--blue, #5aa8ff);
  font-size: 0.72rem;
}
.mu-head h3 {
  margin: 2px 0;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.4rem;
}
.mu-head p {
  margin: 0;
  color: #9aa7b6;
  font-size: 0.85rem;
}
.mu-x {
  align-self: start;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff2a;
  background: none;
  color: #cfd6df;
  cursor: pointer;
}
.mu-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #ffffff12;
}
.mu-sec h4 {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.mu-sec h4 span {
  margin-left: 6px;
  color: #8a96a6;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: none;
}
.mu-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.mu-opts > button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #ffffff2a;
  background: none;
  color: #9aa7b6;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.mu-opts > button.on {
  border-color: var(--blue, #5aa8ff);
  color: #fff;
  background: #5aa8ff1f;
}
.mu-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8a96a6;
}
.mu-vol input {
  width: 120px !important;
  accent-color: var(--blue, #5aa8ff);
}
.mu-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 46vh;
  overflow: auto;
}
.mu-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #ffffff12;
}
.mu-row.cur {
  border-color: var(--blue, #5aa8ff);
  background: #5aa8ff12;
}
.mu-play {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff2a;
  background: none;
  color: #cfd6df;
  cursor: pointer;
}
.mu-play svg {
  width: 14px;
  height: 14px;
}
.mu-info {
  display: grid;
  min-width: 0;
}
.mu-info b,
.mu-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-info small,
.mu-muted {
  color: #8a96a6;
  font-size: 0.8rem;
}
.mu-sws {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 6px;
}
.mu-sw {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #ffffff1c;
  background: none;
  color: #cfd6df;
  cursor: pointer;
}
.mu-sw small {
  color: #8a96a6;
  font-size: 0.75rem;
}
.mu-sw span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8a96a6;
}
.mu-sw.sel {
  border-color: var(--blue, #5aa8ff);
  background: #5aa8ff14;
}
.mu-sw.sel span {
  color: #57d38c;
}
@media (max-width: 520px) {
  .mu-vol {
    margin-left: 0;
    width: 100%;
  }
  .mu-vol input {
    flex: 1;
  }
}
/* the bar stays at the top with the header */
.main > .np-slot:not(:empty) {
  position: sticky;
  top: 0;
  z-index: 41;
}
.main > .np-slot:not(:empty) + .topbar {
  top: 32px;
}
.np-bar {
  height: 32px;
  box-sizing: border-box;
}
