:root {
  --npp-surface-1: rgba(8, 12, 24, 0.96);
  --npp-surface-2: rgba(12, 30, 44, 0.96);
  --npp-accent-1: #67e8f9;
  --npp-accent-2: #34d399;
  --npp-accent-3: #fb7185;
  --npp-border: rgba(103, 232, 249, 0.18);
  --npp-text-main: #f8fafc;
  --npp-text-dim: #94a3b8;
  --npp-radius: 18px;
  --npp-radius-sm: 12px;
  --npp-shadow: 0 22px 60px rgba(2, 6, 23, 0.3);
}

#npp-player-shell {
  width: 100%;
  margin-top: 28px;
  color: var(--npp-text-main);
  border: 1px solid var(--npp-border);
  border-radius: var(--npp-radius);
  background:
    radial-gradient(circle at 18% 28%, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(135deg, var(--npp-surface-1), var(--npp-surface-2));
  box-shadow: var(--npp-shadow);
  overflow: hidden;
}

#npp-player-shell.npp-player-shell--sticky {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: 20px;
  width: auto;
  z-index: 9999;
}

.npp-player-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(320px, 2fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  box-sizing: border-box;
}

.npp-player-left,
.npp-player-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.npp-player-right {
  justify-content: flex-end;
}

.npp-cover-shell {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.08),
    0 18px 30px rgba(15, 23, 42, 0.32);
}

.npp-cover-shell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.npp-current-cover,
.npp-cover-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.npp-current-cover {
  display: none;
  object-fit: cover;
}

.npp-cover-shell.has-cover .npp-current-cover {
  display: block;
}

.npp-cover-shell.has-cover .npp-cover-fallback {
  display: none;
}

.npp-cover-fallback {
  background:
    radial-gradient(circle at 28% 24%, rgba(34, 211, 238, 0.36), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(251, 113, 133, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
}

.npp-cover-shell.is-spinning {
  animation: npp-spin 8s linear infinite;
}

.npp-nowplaying {
  min-width: 0;
}

.npp-song-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--npp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npp-song-artist {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--npp-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npp-player-status {
  min-height: 1.2em;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.72);
}

.npp-player-status.is-error {
  color: #fca5a5;
}

.npp-player-status.is-success {
  color: #86efac;
}

.npp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.npp-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--npp-text-main);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.npp-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.npp-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
}

.npp-btn-icon span {
  font-size: 20px;
}

.npp-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  background: linear-gradient(135deg, var(--npp-accent-1), var(--npp-accent-2));
  color: #04111b;
  border: none;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}

.npp-btn-play:hover {
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.34);
}

#npp-shuffle-btn.is-active {
  color: var(--npp-accent-1);
  border-color: rgba(103, 232, 249, 0.4);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.15);
}

.npp-wave-wrap {
  width: 100%;
}

.npp-waveform {
  width: 100%;
}

.npp-time {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--npp-text-dim);
  text-align: center;
}

.npp-playlist-select {
  min-width: 144px;
  padding: 8px 12px;
  border-radius: var(--npp-radius-sm);
  border: 1px solid var(--npp-border);
  background: rgba(15, 23, 42, 0.84);
  color: var(--npp-text-main);
  font-family: inherit;
}

.npp-playlist-select option {
  background: #0f172a;
  color: var(--npp-text-main);
}

.npp-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.npp-volume-slider {
  width: 92px;
  accent-color: var(--npp-accent-1);
}

.npp-playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.npp-playlist-card {
  position: relative;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--npp-text-main);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--npp-radius);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 14, 30, 0.98));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.npp-playlist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

.npp-playlist-card.is-active {
  border-color: rgba(103, 232, 249, 0.56);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.28),
    0 18px 40px rgba(34, 211, 238, 0.14);
}

.npp-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.npp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.npp-playlist-card:hover .npp-card-media img,
.npp-playlist-card.is-active .npp-card-media img {
  transform: scale(1.05);
}

.npp-card-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 24%, rgba(34, 211, 238, 0.4), transparent 24%),
    radial-gradient(circle at 76% 70%, rgba(251, 113, 133, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
}

.npp-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 180ms ease;
}

.npp-playlist-card:hover .npp-card-overlay,
.npp-playlist-card.is-active .npp-card-overlay {
  opacity: 1;
}

.npp-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.44);
  color: var(--npp-accent-1);
  font-size: 34px;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}

.npp-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.npp-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.npp-card-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--npp-text-dim);
}

@keyframes npp-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .npp-player-inner {
    grid-template-columns: 1fr;
  }

  .npp-player-left,
  .npp-player-right {
    justify-content: center;
  }

  .npp-playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .npp-player-right {
    flex-wrap: wrap;
  }

  .npp-volume-slider {
    width: 120px;
  }

  .npp-playlist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .npp-player-inner {
    padding: 16px 14px;
    gap: 14px;
  }

  .npp-player-left {
    flex-direction: column;
    text-align: center;
  }
}
