.flight-sound {
  position: fixed;
  z-index: 21;
  inset-block-start: var(--sound-page-center, 50%);
  inset-inline-end: env(safe-area-inset-right, 0px);
  transform: translateY(-50%);
  pointer-events: auto;
  transition: filter var(--solar-light-fade, 900ms) var(--voyager-dissolve-ease, cubic-bezier(.45, 0, .25, 1));
}

.flight-sound[data-solar-ui] { filter: brightness(var(--solar-ui-brightness)); }

.flight-sound[hidden] {
  display: none;
}

.flight-sound button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px 0 0 9px;
  background: #0b111be8;
  color: #bcccde;
  cursor: pointer;
}

.flight-sound button:hover { color: #edfaff; }

.flight-sound button:focus-visible {
  outline: 2px solid #b4e7ff;
  outline-offset: -4px;
}

.flight-sound svg {
  width: 22px;
  height: 22px;
}

.flight-sound button[aria-pressed="true"] { color: var(--voyager-accent, #00b3ff); }

.flight-sound button[aria-pressed="true"] .flight-sound-off,
.flight-sound button[aria-pressed="false"] .flight-sound-on { display: none; }

.flight-sound :is(.flight-sound-credit, .flight-sound-status) {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: calc(100% + 8px);
  transform: translateY(-50%);
  width: max-content;
  max-width: calc(100vw - 72px);
  padding: 6px 9px;
  border-radius: 6px;
  background: #0b111be8;
  color: #a7b7c9;
  font-size: 12px;
}

.flight-sound-credit a { color: #b4e7ff; }
.flight-sound-credit a:hover { color: #edfaff; }

.voyager-music-page {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080d15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1100ms var(--voyager-dissolve-ease, ease);
}

.voyager-music-page.is-current {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .flight-sound { transition: none; }
  .voyager-music-page { transition: none; }
}

@media (max-width: 750px) {
  .flight-sound :is(.flight-sound-credit, .flight-sound-status) {
    inset-block: auto calc(100% + 12px);
    inset-inline-end: 8px;
    transform: none;
    max-width: min(130px, 30vw);
    text-align: end;
  }
}


.mission-page[hidden] { display: none; }
