.song-now-playing-panel {
  --songmuse-soft-edge-rgb-a: var(--snp-song-a);
  --songmuse-soft-edge-rgb-b: var(--snp-song-b);
  --snp-song-a: 220, 74, 157;
  --snp-song-b: 57, 126, 231;
  --snp-default-record-art:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 9%, rgba(139, 92, 246, 0.48) 9.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(53, 61, 112, 0.08) 0 1px, transparent 1px 4px),
    conic-gradient(from 24deg, #ff8fb8, #b796ed 22%, #789cf0 46%, #63c8dc 68%, #a88de7 84%, #ff8fb8);
  --snp-title-height: 68px;
  --snp-carousel-height: 268px;
  --snp-carousel-margin-top: 4px;
  --snp-carousel-margin-bottom: 20px;
  --snp-lyrics-height: 195px;
  --snp-lyrics-min-height: 50%;
  --snp-lyric-row: 39px;
  --snp-lyric-font-size: 18px;
  --snp-lyrics-bottom-safe: 20px;
  --snp-panel-padding-block: 18px;
  --snp-panel-padding-inline: clamp(18px, 2vw, 26px);
  --snp-title-padding-top: 6px;
  --snp-title-padding-inline: 2px;
  --snp-title-padding-bottom: 7px;
  --snp-alignment-recovery-height: 50px;
  --snp-alignment-recovery-gap: var(--snp-lyric-row);
  --snp-lyrics-recovery-height:
    calc(
      var(--snp-lyrics-height)
      + var(--snp-alignment-recovery-gap)
      + var(--snp-alignment-recovery-height)
    );
  container-type: size;
  position: relative;
  isolation: isolate;
  display: block;
  gap: 0;
  overflow: hidden;
  padding: var(--snp-panel-padding-block) var(--snp-panel-padding-inline);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px);
}

.song-now-playing-panel[hidden] {
  display: none;
}

.history-layout.is-single:has(> .song-now-playing-panel) {
  grid-template-columns: minmax(0, min(760px, 100%));
  justify-content: center;
}

.song-now-playing-panel[data-snp-state="empty"] {
  background: rgba(255, 255, 255, 0.25);
}

.snp-panel-surface {
  display: grid;
  grid-template-rows:
    var(--snp-title-height)
    calc(
      var(--snp-carousel-height)
      + var(--snp-carousel-margin-top)
      + var(--snp-carousel-margin-bottom)
    )
    minmax(var(--snp-lyrics-min-height), 1fr);
  align-content: start;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.snp-panel-surface[hidden] {
  display: none;
}

.snp-song-switch-ghost {
  position: absolute;
  inset:
    var(--snp-panel-padding-block)
    var(--snp-panel-padding-inline);
  z-index: 8;
  pointer-events: none;
  will-change: opacity;
  contain: layout paint;
  animation: snp-song-switch-out 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.song-now-playing-panel.is-song-switching-in
  > .snp-panel-surface:not(.snp-song-switch-ghost) {
  will-change: opacity;
  animation: snp-song-switch-in 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes snp-song-switch-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes snp-song-switch-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.snp-titlebar {
  min-width: 0;
  height: var(--snp-title-height);
  min-height: var(--snp-title-height);
  padding:
    var(--snp-title-padding-top)
    var(--snp-title-padding-inline)
    var(--snp-title-padding-bottom);
  border-bottom: 1px solid rgba(71, 88, 122, 0.12);
}

.snp-title-row {
  --snp-title-size: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.snp-title-row h3 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #12182b;
  font-size: var(--snp-title-size);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snp-subtitle {
  margin: 5px 0 0;
  overflow: hidden;
  color: #657086;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.55;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snp-actions {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: clamp(4px, 0.8cqw, 7px);
  width: max-content;
  max-width: 60%;
  min-width: 0;
}

.snp-action {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.7cqw, 5px);
  height: calc(var(--snp-title-size) * 1.2);
  min-height: calc(var(--snp-title-size) * 1.2);
  max-height: calc(var(--snp-title-size) * 1.2);
  box-sizing: border-box;
  min-width: 0;
  padding: 0 clamp(7px, 1.5cqw, 12px);
  border: 1px solid rgba(77, 92, 129, 0.14);
  border-radius: 999px;
  color: #172039;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(26, 39, 74, 0.08);
  font-size: 12px;
  font-weight: 880;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.snp-action[hidden] {
  display: none;
}

.snp-action-primary {
  border-color: transparent;
  color: #fff;
  background: var(--grad-action, linear-gradient(135deg, #ec4899, #7c5cff 55%, #377dff));
  box-shadow: var(--brand-glow, 0 10px 28px rgba(114, 75, 220, 0.22));
}

.snp-action-share {
  border-color: rgba(210, 104, 125, 0.2);
  color: #fff;
  background: linear-gradient(135deg, #f39a73 0%, #e97b82 48%, #d76694 100%);
  box-shadow:
    0 10px 22px rgba(216, 103, 125, 0.18),
    0 4px 12px rgba(194, 82, 139, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.snp-action-save {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #13a8b5 48%, #3984ec 100%);
  box-shadow:
    0 10px 22px rgba(20, 151, 157, 0.22),
    0 4px 12px rgba(57, 132, 236, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.snp-action-save.is-saved {
  color: #17635f;
  background: rgba(221, 247, 241, 0.9);
  box-shadow: inset 0 0 0 1px rgba(25, 151, 139, 0.18);
}

.snp-action svg {
  flex: 0 0 auto;
  width: clamp(14px, 2.5cqw, 16px);
  height: clamp(14px, 2.5cqw, 16px);
}

.snp-action-save svg {
  width: 18px;
  height: 18px;
}

.snp-action em {
  position: absolute;
  top: -6px;
  right: -2px;
  padding: 1px 3px;
  border-radius: 999px;
  color: #fff;
  background: #8d4fc3;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.snp-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.48;
}

.snp-action.is-icon-only {
  gap: 0;
  padding-inline: clamp(8px, 1.7cqw, 11px);
}

.snp-action.is-icon-only span {
  display: none;
}

.snp-carousel {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: var(--snp-carousel-height);
  max-height: none;
  margin: var(--snp-carousel-margin-top) 0 var(--snp-carousel-margin-bottom);
  padding: 4px clamp(8px, 7cqw, 38px) 52px;
}

.snp-viewport {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.snp-viewport.is-dragging {
  cursor: grabbing;
}

.snp-track {
  display: flex;
  width: calc(var(--snp-track-items, 4) * 100%);
  height: 100%;
  transform: translate3d(calc(-100% / var(--snp-track-items, 4)), 0, 0);
  transition: transform 0.42s cubic-bezier(0.2, 0.75, 0.2, 1);
  will-change: transform;
}

.snp-slide {
  display: grid;
  flex: 0 0 calc(100% / var(--snp-track-items, 4));
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.snp-turntable {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--snp-turntable-size, 180px);
  height: var(--snp-turntable-size, 180px);
  padding: calc(var(--snp-turntable-size, 180px) * 0.11);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.66), transparent 31%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.13) 0 1px, rgba(61, 72, 88, 0.025) 1px 4px),
    linear-gradient(145deg, #edf0f3 0%, #cfd5dd 48%, #f7f8f9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 5px rgba(65, 76, 92, 0.12);
  justify-self: center;
  align-self: center;
}

.snp-turntable::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.42), transparent 34% 70%, rgba(82, 93, 110, 0.06)),
    radial-gradient(circle at 80% 18%, rgba(139, 92, 246, 0.055), transparent 28%);
  opacity: 0.82;
}

.snp-platter-shadow,
.snp-record-disc {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 69.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) rotate(0deg);
  transform-origin: 50% 50%;
  transform-box: border-box;
}

.snp-platter-shadow {
  z-index: 1;
  background:
    radial-gradient(circle, rgba(20, 23, 31, 0.16) 0 56%, rgba(31, 34, 44, 0.96) 57% 65%, rgba(10, 12, 18, 0.9) 66% 70%, transparent 71%);
  box-shadow:
    0 22px 38px rgba(20, 24, 34, 0.24),
    inset 0 0 0 7px rgba(14, 16, 23, 0.76),
    inset 0 0 28px rgba(0, 0, 0, 0.18);
}

.snp-record-disc {
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.18) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #090a0f, #242630, #11131a, #2b2d37, #0d0f15, #090a0f);
  box-shadow:
    0 18px 36px rgba(9, 11, 17, 0.3),
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 32px rgba(0, 0, 0, 0.22);
  transform: translate3d(-50%, -50%, 0) rotate(var(--songmuse-disc-angle, 0deg));
  will-change: transform;
  backface-visibility: hidden;
}

.song-now-playing-panel.is-playing .snp-record-disc {
  animation: songmuse-turntable-disc-spin 18s linear infinite;
  animation-delay: var(--songmuse-disc-animation-delay, 0s);
}

.songmuse-disc-resetting .snp-record-disc {
  animation: none !important;
  transition: none !important;
}

@keyframes songmuse-turntable-disc-spin {
  from {
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}

.snp-record-disc::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.1), transparent 24% 72%, rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.78);
}

.snp-record-art {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.snp-turntable.has-default-art .snp-record-art {
  background: var(--snp-default-record-art);
  box-shadow:
    0 0 0 3px rgba(7, 9, 14, 0.96),
    inset 0 0 0 1px rgba(8, 10, 16, 0.88),
    inset 0 0 0 9px rgba(7, 9, 14, 0.22);
}

.snp-record-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 34%, #a88de7 36% 64%, #587fdc 66% 100%);
  box-shadow: 0 4px 12px rgba(78, 70, 152, 0.22);
  transform: translate(-50%, -50%);
}

.snp-record-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(238, 241, 245, 0.98);
  box-shadow: 0 0 0 2px rgba(28, 33, 43, 0.2), inset 0 1px 2px rgba(28, 33, 43, 0.18);
  transform: translate(-50%, -50%);
}

.snp-tonearm {
  position: absolute;
  top: -2.56%;
  right: 2.56%;
  z-index: 4;
  width: 31.82%;
  height: 81.25%;
  transform-origin: 77.68% 14.69%;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.snp-tonearm-drawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.song-now-playing-panel.is-playing .snp-tonearm {
  transform: rotate(7deg);
}

.snp-prompt-card {
  align-self: center;
  width: min(520px, calc(100% - 28px));
  height: 100%;
  max-height: 100%;
  padding: 12px 16px 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 79, 139, 0.09), rgba(47, 111, 255, 0.08)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(41, 56, 91, 0.06);
}

.snp-prompt-card h4 {
  margin: 0 0 7px;
  color: #8b5cf6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.snp-prompt-card.is-empty h4 {
  display: none;
}

.snp-prompt-document {
  max-height: calc(100% - 24px);
  overflow: auto;
  color: #344057;
  scrollbar-width: thin;
}

.snp-prompt-document p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
}

.snp-prompt-document strong {
  color: #26324a;
  font-weight: 900;
}

.snp-remix-slide {
  padding: 8px 6px;
}

.snp-remix-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(210px, calc(100% - 24px));
  pointer-events: auto;
}

.snp-remix-actions-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(126, 137, 163, 0.18);
  border-top-color: #ec4ba4;
  border-right-color: #4f78f5;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.snp-remix-actions.is-loading .snp-remix-action-share,
.snp-remix-actions.is-loading .snp-remix-secondary-actions {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.snp-remix-actions.is-loading .snp-remix-actions-loader {
  opacity: 1;
  animation: snp-remix-actions-spin 0.76s linear infinite;
}

@keyframes snp-remix-actions-spin {
  to { transform: translate(-50%, -50%) rotate(1turn); }
}

.snp-remix-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 clamp(8px, 1.8cqw, 13px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  color: #fff;
  box-shadow:
    0 9px 20px rgba(51, 54, 105, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.snp-remix-action:hover {
  box-shadow:
    0 12px 24px rgba(51, 54, 105, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.snp-remix-action:active {
  transform: translateY(0);
}

.snp-remix-action-share {
  width: 100%;
  padding-inline: clamp(14px, 2.8cqw, 20px);
  background: linear-gradient(135deg, #f49a78, #e97c86 54%, #d86b9c);
}

.snp-remix-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.snp-remix-action-extend {
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 6px;
  background: linear-gradient(135deg, #ec4ba4, #9660f2 54%, #4f78f5);
}

.snp-remix-action-persona {
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 6px;
  background: linear-gradient(135deg, #36b8b0, #578fe5 54%, #756de5);
}

.snp-remix-action > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.snp-remix-action .snp-extend-icon {
  width: 19px;
  height: 19px;
}

.snp-remix-action span {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 880;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snp-remix-action-share span {
  font-size: 13px;
}

.snp-remix-action-extend span,
.snp-remix-action-persona span {
  max-width: 100%;
  font-size: 10px;
}

.snp-remix-action em {
  position: absolute;
  top: -5px;
  right: 3px;
  padding: 2px 4px;
  border-radius: 999px;
  color: #fff;
  background: rgba(80, 37, 147, 0.72);
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.snp-remix-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.5;
}

.snp-arrow {
  position: absolute;
  top: calc(50% - 19px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(76, 91, 124, 0.1);
  border-radius: 50%;
  color: #5b6a84;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(33, 46, 78, 0.07);
  transform: translateY(-50%);
}

.snp-arrow svg {
  width: 17px;
  height: 17px;
}

.snp-prev { left: 4px; }
.snp-next { right: 4px; }

.snp-tabs {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(80, 93, 123, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 24px rgba(38, 52, 86, 0.06);
  transform: translateX(-50%);
}

.snp-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #657086;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.snp-tabs button.active {
  color: #fff;
  background: var(--grad-action, linear-gradient(135deg, #ec4899, #7c5cff 55%, #377dff));
  box-shadow: var(--brand-glow, 0 8px 22px rgba(114, 75, 220, 0.2));
}

.snp-tabs svg {
  width: 13px;
  height: 13px;
}

.song-now-playing-panel:not(.has-prompt) [data-snp-slide="1"] {
  display: none;
}

.snp-lyrics,
.snp-lyrics-viewport {
  height: 100%;
  min-height: 0;
}

.snp-lyrics {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  box-sizing: border-box;
  padding: 0 2px var(--snp-lyrics-bottom-safe);
}

.snp-lyrics-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.snp-lyrics-list {
  --snp-row: var(--snp-lyric-row);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  padding:
    0
    0
    max(0px, calc(var(--snp-lyrics-height) - (var(--snp-row) * 3)));
  transform: translateY(calc(-1 * var(--snp-lyrics-offset, 0px)));
  transition: transform 0.42s cubic-bezier(0.2, 0.75, 0.2, 1);
  will-change: transform;
}

.snp-lyric-line {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: max-content;
  min-height: var(--snp-row);
  margin: 0;
  padding: 0 12px;
  overflow: visible;
  border: 0;
  color: rgba(55, 68, 96, 0.31);
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: var(--snp-lyric-font-size);
  font-weight: 760;
  line-height: var(--snp-row);
  letter-spacing: 0;
  background: transparent;
}

.snp-lyric-line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  z-index: -1;
  height: calc(100% - 6px);
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--snp-song-b), 0.3) 17%,
    rgba(var(--snp-song-a), 0.34) 83%,
    transparent
  );
  filter: blur(5px);
  opacity: 0;
  transform: translateY(-50%);
}

.snp-lyric-line.is-near {
  color: rgba(55, 68, 96, 0.56);
}

.snp-lyric-line.active {
  color: #11131a;
  font-weight: 900;
}

.snp-lyric-line.active::before {
  opacity: 0.92;
}

.snp-lyrics-viewport.is-static {
  overflow-y: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.snp-lyrics-viewport.is-static .snp-lyrics-list {
  position: static;
  padding: 0;
  transform: none;
}

.snp-lyrics-viewport.is-static .snp-lyric-line {
  color: #171b26;
  cursor: default;
}

.snp-no-lyrics {
  display: grid;
  min-height: 100%;
  margin: 0;
  place-items: center;
  color: rgba(55, 68, 96, 0.55);
  font-size: 15px;
  font-weight: 760;
}

.song-now-playing-panel.has-alignment-recovery .snp-lyrics {
  height: 100%;
  grid-template-rows: minmax(0, 1fr) var(--snp-alignment-recovery-height);
  gap: var(--snp-alignment-recovery-gap);
}

.song-now-playing-panel.has-alignment-recovery .snp-panel-surface {
  grid-template-rows:
    var(--snp-title-height)
    calc(
      var(--snp-carousel-height)
      + var(--snp-carousel-margin-top)
      + var(--snp-carousel-margin-bottom)
    )
    minmax(var(--snp-lyrics-min-height), 1fr);
}

.song-now-playing-panel.has-alignment-recovery .snp-lyrics-viewport {
  height: 100%;
}

.snp-alignment-recovery {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  min-height: var(--snp-alignment-recovery-height);
}

.snp-alignment-recovery[hidden] {
  display: none;
}

.snp-alignment-recovery p {
  margin: 0;
  color: #505a70;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.snp-alignment-recovery button {
  min-width: 112px;
  min-height: 29px;
  padding: 0 14px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 7px;
  color: #182038;
  background:
    linear-gradient(90deg, rgba(var(--snp-song-a), 0.2), rgba(var(--snp-song-b), 0.18)),
    rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.snp-alignment-recovery button:disabled {
  cursor: default;
  color: #687188;
  opacity: 0.78;
}

@container (max-width: 640px) {
  .snp-title-row {
    --snp-title-size: 28px;
  }

  .snp-action {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding-inline: 7px;
  }

}

@container (max-height: 520px) {
  .song-now-playing-panel.has-alignment-recovery .snp-lyrics {
    height: 100%;
    grid-template-rows: minmax(0, 1fr) var(--snp-alignment-recovery-height);
    gap: clamp(7px, 2cqh, var(--snp-alignment-recovery-gap));
  }

  .song-now-playing-panel.has-alignment-recovery .snp-lyrics-viewport {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .history-page:has(.song-now-playing-panel) {
    padding-inline: 12px;
  }

  .history-page .history-layout.content-shell:has(> .song-now-playing-panel),
  .library-page .library-dashboard.content-shell:has(> .song-now-playing-panel) {
    width: 100%;
    margin-inline: 0;
  }

  .song-now-playing-panel {
    --snp-title-height: 82px;
    --snp-carousel-margin-top: 12px;
    --snp-panel-padding-inline: 16px;
    --snp-title-padding-top: var(--songmuse-soft-edge-safe-block-start, 20px);
    --snp-title-padding-inline: var(--songmuse-soft-edge-safe-inline, 24px);
    --snp-title-padding-bottom: 12px;
  }

  .snp-title-row {
    gap: 7px;
  }

  .snp-actions {
    gap: 3px;
  }

  .snp-actions .snp-action {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    padding-inline: 0;
    gap: 0;
  }

  .snp-actions .snp-action span {
    display: none;
  }

  .snp-actions .snp-action-save {
    flex-basis: auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    padding-inline: 11px;
    gap: 5px;
  }

  .snp-actions .snp-action-save span {
    display: inline;
  }

  .snp-action em {
    top: -5px;
    font-size: 6px;
  }

  .snp-arrow {
    display: none;
  }

}

@media (max-width: 680px) {
  .song-now-playing-panel.snp-compact-layout {
    --snp-title-height: 68px;
    --snp-carousel-margin-top: 10px;
    --snp-carousel-margin-bottom: 14px;
    --snp-panel-padding-block: 12px;
  }

  .song-now-playing-panel.snp-compact-layout .snp-titlebar {
    height: var(--snp-title-height);
    min-height: var(--snp-title-height);
  }

  .song-now-playing-panel.snp-compact-layout .snp-title-row {
    --snp-title-size: 24px;
  }

  .song-now-playing-panel.snp-compact-layout .snp-action {
    height: 29px;
    min-height: 29px;
    max-height: 29px;
  }

  .song-now-playing-panel.snp-compact-layout .snp-actions .snp-action {
    flex-basis: 29px;
    width: 29px;
    min-width: 29px;
    max-width: 29px;
  }

  .song-now-playing-panel.snp-compact-layout .snp-actions .snp-action-save {
    flex-basis: auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    padding-inline: 9px;
  }

  .song-now-playing-panel.snp-compact-layout .snp-lyrics-list {
    --snp-row: var(--snp-lyric-row);
  }

  .song-now-playing-panel.snp-compact-layout .snp-carousel {
    padding: 4px 8px 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snp-track,
  .snp-lyrics-list,
  .snp-tonearm {
    transition: none;
  }

  .snp-record-disc,
  .snp-song-switch-ghost,
  .song-now-playing-panel.is-song-switching-in
    > .snp-panel-surface:not(.snp-song-switch-ghost) {
    animation: none;
  }
}

@media (min-width: 681px) {
  .song-now-playing-panel {
    --snp-title-height: 76px;
    --snp-title-padding-bottom: 15px;
    --songmuse-soft-edge-center-alpha: 1;
    z-index: 2;
  }

  .song-now-playing-panel .snp-titlebar {
    --snp-title-padding-inline: clamp(30px, 4.5cqw, 45px);
  }
}
