/* 添加在消息框样式中 */
.ps-message {
  contain: layout paint;
  backface-visibility: hidden;
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
}

@media screen and (max-width: 600px) {
  .ps-message {
    transition-duration: 0.5s !important;
    animation-fill-mode: both !important;
  }
}

.music-player-wrapper.neon-mode {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
  transition: box-shadow 0.1s ease;
}

.neon-light {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(15px);
  pointer-events: none;
  z-index: -1;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.neon-pink {
  background: radial-gradient(circle, #ff00ff, transparent 70%);
}
.neon-blue {
  background: radial-gradient(circle, #00ffff, transparent 70%);
}
.neon-green {
  background: radial-gradient(circle, #00ff00, transparent 70%);
}

.music-player__image {
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.music-player__pointer {
  position: absolute;
  top: -15px;
  right: 50%;
  transform-origin: right bottom;
  transform: rotate(-30deg);
  transition: transform 0.5s ease;
  z-index: 2;
}

.music-player-wrapper.is-playing .music-player__pointer {
  transform: rotate(10deg);
}

.music-player-wrapper {
  position: relative;
}

.music-player-wrapper .player-main {
  right: 50px;
  bottom: 128px;
  z-index: 10;

  box-shadow: 0 12px 22px rgba(50,70,94,.10),inset 0 1px 0 rgba(255,255,255,.75);
  background: linear-gradient(hsl(213, 40%, 97%) calc(100% - 2em), hsl(213, 40%, 93%));
  padding: 10px 8px 10px;
  border-radius: 12px;
}

.music-player__disc {
  float: right;
  width: 40px;
  height: 90px;
  right: 15px;
  background: url(../../assets/imgs/disc.png) center no-repeat;
  background-size: 100%;
  position: relative;
}

.music-player-wrapper .music-player__image {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  position: absolute;
  overflow: hidden;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #e9eef6;
}

.music-player-wrapper .music-player__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-player__pointer {
  width: 18px;
  position: absolute;
  right: -8px;
  top: 0;
  transform-origin: right top;
  transform: rotate(-15deg);
  transition: all 0.3s;
}

.music-player-wrapper .player {
  position: relative;
  margin-bottom: 8px;
  min-height: 90px;
}

.music__info {
  width: 60%;
  min-height: 49px;
  padding: 5px 0 0 10px;
  line-height: 1.6;
}

.music__info .music__info--singer,
.music__info .music__info--title {
  width: 160px;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  color: #6d7c8d;
}

.music__info .music__info--title {
  font-size: 15px;
}

.music__info .music__info--singer {
  color: #99a9bf;
  font-size: 13px;
}

.music-player-wrapper .play-list {
  padding: 0;
  transition: 0.25s;
  margin: 0;
}

.music-player-wrapper .play-list li {
  color: #8492a6;
  list-style: none;
  padding: 6px 6px 6px 3px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.25s;
  position: relative;
}

.music-player-wrapper .play-list li:hover {
  background: rgba(32, 160, 255, 0.1);
}

.music-player-wrapper .play-list li .index {
  color: #99a9bf;
  display: inline-block;
  width: 15px;
  text-align: center;
  vertical-align: middle;
  margin-right: 3px;
  position: relative;
  z-index: 1;
}

.music-player-wrapper .play-list li .title {
  display: inline-block;
  width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.music-player-wrapper .play-list li .author {
  display: inline-block;
  width: 30%;
  white-space: nowrap;
  overflow: hidden;
  float: right;
  text-align: right;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.music-player-wrapper .play-list li.is-current {
  color: #fff;
  background: linear-gradient(90deg, #20a0ff, #59ccff);
  position: relative;
}

.music-player-wrapper .play-list li.is-playing {
  position: relative;
}
.music-player-wrapper .play-list li.is-playing .index {
  color: transparent;
  background: url(../../assets/imgs/music_line.gif) 50% no-repeat;
}

.music-player-wrapper .play-list li.is-playing .music-progress {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: rgba(31, 45, 61, 0.2);
  border-radius: 4px;
}

.music-player-wrapper .play-list li.is-error {
  color: #ff4949;
}

.music-player-wrapper .play-list li.is-error .index {
  color: transparent;
  background: url(../../assets/imgs/music_error.png) 50% no-repeat;
}

.music-player-wrapper.is-playing .music-player__image {
  animation-play-state: running;
}

.nmp-controls {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  gap: 8px;
}

.nmp-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(#f0f2f7, #fff);
  box-shadow: 0 6px 8px rgba(31, 45, 61, 0.18), 0 0 0 1px rgba(166, 172, 182, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  color: #364f6b;
  cursor: pointer;
  line-height: 28px;
  text-align: center;
  padding: 0;
}

.nmp-ic {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.nmp-ic-pause {
  display: none;
}

.music-player-wrapper.is-playing .nmp-ic-play {
  display: none;
}

.music-player-wrapper.is-playing .nmp-ic-pause {
  display: inline-block;
}

.nmp-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 6px rgba(31, 45, 61, 0.2), 0 0 0 1px rgba(166, 172, 182, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.nmp-toolbar {
  display: flex;
  gap: 8px;
  padding: 8px 8px 8px;
}

.nmp-progress {
  margin: 6px 10px 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 60%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 0 0 rgba(255,255,255,.6), 0 4px 8px rgba(15,23,42,.25);
}

.nmp-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--nirvana-progress-color, rgba(32,160,255,1)),
    var(--nirvana-progress-color2, rgba(61,195,255,1))
  );
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset;
}

.nmp-tool {
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #6d7c8d;
  background: linear-gradient(#f0f2f7, #fff);
  box-shadow: 0 6px 8px rgba(31, 45, 61, 0.14), 0 0 0 1px rgba(166, 172, 182, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.nmp-tool:hover {
  color: #364f6b;
}

.play-list-cloumn {
  max-height: 260px;
  overflow: auto;
}

.music-player-wrapper.has-scroll .play-list-cloumn {
  max-height: 210px;
}

.nmp-lyrics {
  margin: 8px 8px 0;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(32, 160, 255, 0.06);
  color: #6d7c8d;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 12px;
}

.nmp-search {
  margin: 8px 8px 0;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(32, 160, 255, 0.06);
}

.nmp-search-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(166, 172, 182, 0.6);
  background: #fff;
  padding: 8px 10px;
  outline: none;
  color: #364f6b;
}

.nmp-search-results {
  margin-top: 8px;
  max-height: 180px;
  overflow: auto;
}

.nmp-result {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(166, 172, 182, 0.35);
  cursor: pointer;
  margin-bottom: 8px;
  color: #6d7c8d;
}

.nmp-result:hover {
  background: rgba(255, 255, 255, 0.9);
}

.nmp-result .title {
  font-size: 13px;
  color: #364f6b;
}

.nmp-result .artist {
  margin-top: 2px;
  font-size: 12px;
  color: #99a9bf;
}

.nmp-needle {
  display: block;
  width: 18px;
  height: 44px;
  position: absolute;
  right: -2px;
  top: 6px;
}

.nmp-needle::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(#cad1db, #eff2f7);
  box-shadow: 0 2px 3px rgba(31, 45, 61, 0.25), 0 0 0 1px rgba(166, 172, 182, 0.45);
}

.nmp-needle::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 5px;
  width: 2px;
  height: 36px;
  background: linear-gradient(#cad1db, #eff2f7);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(31, 45, 61, 0.25);
}

.nmp-dropdown {
  margin: 0 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(166, 172, 182, 0.35);
  box-shadow: 0 10px 14px rgba(31, 45, 61, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

.nmp-dropdown-head {
  padding: 8px 10px;
  color: #99a9bf;
  font-size: 12px;
}

.nmp-dropdown .play-list-cloumn {
  max-height: 220px;
}

.music-player-wrapper.has-scroll .nmp-dropdown .play-list-cloumn {
  max-height: 190px;
}

.nirvana-music-player-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
}

.nirvana-music-player-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.nirvana-music-player-dock .nirvana-music-player-float {
  position: static;
  left: auto;
  bottom: auto;
}

.nirvana-music-player-float .nmp-float-capsule {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(166, 172, 182, 0.35);
  box-shadow: 0 15px 20px rgba(31, 45, 61, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.nirvana-music-player-float .nmp-float-capsule__img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(233, 238, 246, 0.9);
  box-shadow: 0 6px 10px rgba(31, 45, 61, 0.18);
}

.nirvana-music-player-float .nmp-float-capsule__dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(166, 172, 182, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.nirvana-music-player-float .nmp-float-capsule__dot.is-playing {
  background: #20a0ff;
}

.nirvana-music-player-panel {
  position: relative;
  width: 320px;
  z-index: 99999;
  transform: translateX(-14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
}

.nirvana-music-player-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nirvana-music-player-panel .nmp-panel-inner {
  position: relative;
  width: 100%;
}

.nirvana-music-player-panel .music-player-wrapper {
  width: 100%;
}

.nirvana-music-player-panel .player-main {
  width: 100%;
}

.nirvana-music-player-panel .nmp-panel-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(166, 172, 182, 0.35);
  box-shadow: 0 10px 14px rgba(31, 45, 61, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  cursor: pointer;
  z-index: 20;
}

.nirvana-music-player-panel .nmp-panel-close::before,
.nirvana-music-player-panel .nmp-panel-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin-left: -6px;
  margin-top: -1px;
  background: rgba(54, 79, 107, 0.7);
  border-radius: 2px;
}

.nirvana-music-player-panel .nmp-panel-close::before {
  transform: rotate(45deg);
}

.nirvana-music-player-panel .nmp-panel-close::after {
  transform: rotate(-45deg);
}

body.night .nmp-btn,
body.night .nmp-tool {
  background: linear-gradient(#3c4a5d, #263445);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: rgba(153, 169, 191, 0.96);
}

body.night .nirvana-music-player-panel .nmp-panel-close {
  background: rgba(31, 45, 61, 0.6);
  border: 1px solid rgba(52, 66, 90, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body.night .nirvana-music-player-panel .nmp-panel-close::before,
body.night .nirvana-music-player-panel .nmp-panel-close::after {
  background: rgba(153, 169, 191, 0.7);
}

body.night .nirvana-music-player-float .nmp-float-capsule {
  background: rgba(31, 45, 61, 0.7);
  border: 1px solid rgba(52, 66, 90, 0.9);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body.night .nirvana-music-player-float .nmp-float-capsule__dot {
  box-shadow: 0 0 0 2px rgba(31, 45, 61, 0.85);
}


body.night .music-player-wrapper .player-main {
  background: linear-gradient(#34425a, #28374a);
  box-shadow: 0 10px 20px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
}

body.night .music__info .music__info--title,
body.night .music__info .music__info--singer,
body.night .music-player-wrapper .play-list li,
body.night .nmp-tool,
body.night .nmp-lyrics,
body.night .nmp-result {
  color: #99a9bf;
}

body.night .nmp-search-input {
  background: rgba(31, 45, 61, 0.35);
  color: #99a9bf;
  border-color: rgba(52, 66, 90, 0.9);
}

.nmp-lyrics-overlay {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 99999;
  max-width: min(680px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(166, 172, 182, 0.35);
  box-shadow: 0 15px 20px rgba(31, 45, 61, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.nmp-lyrics-overlay.is-hidden {
  display: none;
}

.nmp-lyrics-overlay[data-style="karaoke"] {
  padding: 12px 14px;
}

.nmp-lyrics-overlay .nmp-lyrics-default {
  display: block;
}

.nmp-lyrics-overlay .nmp-lyrics-karaoke {
  display: none;
}

.nmp-lyrics-overlay .nmp-lyrics-ktv {
  display: none;
}

.nmp-lyrics-overlay[data-style="karaoke"] .nmp-lyrics-default {
  display: none;
}

.nmp-lyrics-overlay[data-style="karaoke"] .nmp-lyrics-karaoke {
  display: block;
}

.nmp-lyrics-overlay[data-style="ktv"] {
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.nmp-lyrics-overlay[data-style="ktv"] .nmp-lyrics-default,
.nmp-lyrics-overlay[data-style="ktv"] .nmp-lyrics-karaoke {
  display: none;
}

.nmp-lyrics-overlay[data-style="ktv"] .nmp-lyrics-ktv {
  display: block;
}

.nmp-lyrics-line {
  color: #364f6b;
  font-size: var(--nmp-lyrics-font-size, 14px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-lyrics-karaoke .nmp-kline {
  position: relative;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-lyrics-karaoke .nmp-kline--current {
  font-size: calc(var(--nmp-lyrics-font-size, 14px) + 2px);
  font-weight: 600;
  color: rgba(54, 79, 107, 0.92);
  padding-bottom: 4px;
}

.nmp-lyrics-karaoke .nmp-kline--next {
  font-size: calc(var(--nmp-lyrics-font-size, 14px) - 1px);
  color: rgba(109, 124, 141, 0.9);
}

.nmp-lyrics-karaoke .nmp-kline__text {
  position: relative;
  z-index: 1;
}

.nmp-lyrics-karaoke .nmp-kline__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  color: #20a0ff;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  pointer-events: none;
  transition: width 80ms linear;
}

.nmp-lyrics-ktv .nmp-ktv-line {
  position: fixed;
  max-width: calc(50vw - 44px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nmp-lyrics-ktv .nmp-ktv-line--left {
  left: 22px;
  bottom: 142px;
  text-align: left;
  font-size: var(--nmp-ktv-font-size, 20px);
  color: rgba(255, 255, 255, 0.92);
}

.nmp-lyrics-ktv .nmp-ktv-line--right {
  right: 22px;
  bottom: 102px;
  text-align: right;
  font-size: calc(var(--nmp-ktv-font-size, 20px) - 2px);
  color: rgba(255, 255, 255, 0.85);
}

.nmp-lyrics-ktv .nmp-ktv-text {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-lyrics-ktv .nmp-ktv-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  color: #ffd54a;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 80ms linear;
}

.nmp-lyrics-ktv .nmp-ktv-line--right .nmp-ktv-fill,
.nmp-lyrics-ktv .nmp-ktv-line--right .nmp-ktv-text {
  text-align: right;
}

body.night .nmp-lyrics-overlay {
  background: rgba(31, 45, 61, 0.7);
  border: 1px solid rgba(52, 66, 90, 0.9);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body.night .nmp-lyrics-line {
  color: rgba(153, 169, 191, 0.96);
}

body.night .nmp-lyrics-karaoke .nmp-kline--current {
  color: rgba(153, 169, 191, 0.96);
}

body.night .nmp-lyrics-karaoke .nmp-kline--next {
  color: rgba(153, 169, 191, 0.7);
}

body.night .nmp-lyrics-karaoke .nmp-kline__fill {
  color: #59ccff;
}

body.night .nmp-lyrics-overlay[data-style="ktv"] {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.night .nmp-lyrics-ktv .nmp-ktv-line--left {
  color: rgba(255, 255, 255, 0.92);
}

body.night .nmp-lyrics-ktv .nmp-ktv-line--right {
  color: rgba(255, 255, 255, 0.85);
}

body.night .nmp-lyrics-ktv .nmp-ktv-fill {
  color: #ffd54a;
}
