/* New homepage bottom player. Keeps the original React player DOM hidden but intact. */
.fixed.bottom-0.left-0.right-0.z-50.bg-\[\#1a1a1a\]\/95 {
  display: none !important;
}

body {
  padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
}

.nbp-shell,
.nbp-shell * {
  box-sizing: border-box;
}

.nbp-shell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 8px max(10px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  color: #fff;
  pointer-events: none;
}

.nbp-mini {
  width: min(760px, 100%);
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 32, 35, 0.84), rgba(7, 7, 9, 0.92));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  overflow: hidden;
}

.nbp-cover {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.nbp-cover img,
.nbp-full-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nbp-meta {
  min-width: 0;
  border: 0;
  padding: 4px 0;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.nbp-title,
.nbp-artist {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbp-title {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.96);
}

.nbp-artist {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.52);
}

.nbp-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.nbp-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.nbp-icon:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.08);
}

.nbp-play {
  width: 42px;
  height: 42px;
  color: #060608;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.26);
}

.nbp-progress-mini {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
}

.nbp-progress-mini span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.92);
}

html.nbp-lock-scroll,
body.nbp-lock-scroll {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  overscroll-behavior: none;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.nbp-lock-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nbp-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  z-index: 90;
  display: none;
  color: #fff;
  background:
    radial-gradient(circle at top, #26143d 0%, #08080d 55%, #050509 100%) !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  pointer-events: none;
  touch-action: none;
  padding-top: max(18px, env(safe-area-inset-top)) !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}

.nbp-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  pointer-events: none;
}

.nbp-overlay.nbp-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  padding-top: max(18px, env(safe-area-inset-top)) !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}

.nbp-full {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  max-width: 430px;
  height: auto;
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  margin: 0 auto;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(34, 32, 40, 0.88), rgba(8, 8, 12, 0.92));
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 14px 34px rgba(80, 40, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: none;
  touch-action: pan-y;
}

.nbp-full::-webkit-scrollbar {
  display: none;
}

.nbp-full-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  flex-shrink: 0;
}

.nbp-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 100;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.nbp-close:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.16);
}

.nbp-full-cover {
  width: min(70vw, 290px);
  aspect-ratio: 1;
  margin: 2px auto 4px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 10px 28px rgba(124, 58, 237, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nbp-full-meta {
  text-align: center;
  min-width: 0;
  flex-shrink: 0;
}

.nbp-full-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbp-full-artist {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbp-full-album {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbp-lyrics {
  flex: 1;
  min-height: 126px;
  max-height: 28vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-align: center;
  padding: 4px 12px;
  margin: 2px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 82%, transparent 100%);
  touch-action: pan-y;
}

.nbp-lyrics::-webkit-scrollbar {
  display: none;
}

.nbp-lyrics::-webkit-scrollbar {
  display: none;
}

.nbp-line {
  margin: 0;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.nbp-line.nbp-active {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
  transform: scale(1.045);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

.nbp-seek {
  width: 100%;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}

.nbp-range {
  width: 100%;
  accent-color: #fff;
  pointer-events: auto;
  cursor: pointer;
}

.nbp-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
  font-variant-numeric: tabular-nums;
}

.nbp-full-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 2px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  flex-shrink: 0;
}

.nbp-full-controls .nbp-icon {
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: auto;
}

.nbp-full-controls .nbp-play {
  width: 70px;
  height: 70px;
  color: #fff;
  background: linear-gradient(135deg, #9b5cff, #6d3bff);
  box-shadow: 0 14px 38px rgba(124, 58, 237, 0.38), 0 10px 28px rgba(0, 0, 0, 0.32);
}

@media (max-width: 430px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .nbp-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .nbp-mini {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 60px;
    gap: 8px;
    border-radius: 17px;
    padding: 8px;
  }

  .nbp-cover {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nbp-controls {
    gap: 1px;
  }

  .nbp-icon {
    width: 32px;
    height: 36px;
  }

  .nbp-play {
    width: 40px;
    height: 40px;
  }

  .nbp-playlist {
    display: none;
  }

  .nbp-full {
    width: calc(100vw - 18px);
    height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
    top: max(9px, env(safe-area-inset-top));
    padding: 12px 14px max(16px, env(safe-area-inset-bottom));
    gap: 11px;
    border-radius: 30px;
  }

  .nbp-full-cover {
    width: min(70vw, 280px);
    border-radius: 24px;
  }

  .nbp-lyrics {
    min-height: 116px;
    max-height: 26vh;
  }

  .nbp-full-title {
    font-size: 20px;
  }

  .nbp-full-controls {
    gap: 18px;
  }

  .nbp-full-controls .nbp-icon {
    width: 48px;
    height: 48px;
  }

  .nbp-full-controls .nbp-play {
    width: 66px;
    height: 66px;
  }
}

/* Expanded card player, reference-style controls */
.nbp-overlay {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

/* PWA standalone / full‑screen deep background */
html, body {
  background: #12051f !important;
  min-height: 100%;
  overflow-x: hidden;
}

html.pwa-standalone,
body.pwa-standalone {
  background: #12051f !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
}

body.pwa-standalone {
  padding-top: env(safe-area-inset-top) !important;
}

body.pwa-standalone header,
body.pwa-standalone .header,
body.pwa-standalone nav,
body.pwa-standalone [class*="header"],
body.pwa-standalone [class*="nav"] {
  padding-top: max(12px, env(safe-area-inset-top)) !important;
}

body.pwa-standalone .nbp-mini,
body.pwa-standalone [class*="nbp-mini"] {
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

body.pwa-standalone .nbp-overlay,
body.pwa-standalone .nbp-overlay.nbp-open {
  position: fixed !important;
  inset: 0 !important;
  min-height: 100dvh !important;
  background: radial-gradient(circle at top, #2a1240 0%, #10051b 48%, #050509 100%) !important;
  padding-top: max(18px, env(safe-area-inset-top)) !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

body.pwa-standalone .nbp-full {
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom))) !important;
  max-width: 390px !important;
  overflow: hidden !important;
}

body.pwa-standalone .nbp-close,
body.pwa-standalone .nbp-full-close {
  top: max(18px, env(safe-area-inset-top)) !important;
  right: max(18px, env(safe-area-inset-right)) !important;
}

html,
body,
#root,
#app {
  background-color: #12051f !important;
}



.nbp-full-head {
  min-height: 36px !important;
}

.nbp-close {
  margin-left: auto;
  color: #fff !important;
  background: rgba(18, 18, 22, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.nbp-full-cover {
  width: clamp(180px, 52vw, 240px) !important;
  max-width: 240px !important;
  min-width: 180px !important;
  border-radius: 18px !important;
  margin: 0 auto 4px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.46), 0 8px 22px rgba(124, 58, 237, 0.12) !important;
}

.nbp-full-title {
  font-size: clamp(20px, 5vw, 24px) !important;
  font-weight: 760 !important;
}

.nbp-full-artist {
  color: rgba(255, 255, 255, 0.70) !important;
  font-size: 14px !important;
}

.nbp-full-album {
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 12px !important;
}

.nbp-lyrics {
  flex: 0 1 auto !important;
  min-height: 118px !important;
  max-height: 158px !important;
  padding: 8px 12px !important;
  margin: 2px 0 0 !important;
  background: rgba(255, 255, 255, 0.028) !important;
}

.nbp-line {
  padding: 5px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

.nbp-line.nbp-active {
  color: #fff !important;
}

.nbp-seek {
  gap: 6px !important;
  margin-top: 2px !important;
}

.nbp-range {
  height: 22px;
  accent-color: #8b5cf6 !important;
}

.nbp-time {
  color: rgba(255, 255, 255, 0.52) !important;
}

.nbp-full-controls {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(50px, 1fr) 48px 68px 48px minmax(50px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 8px !important;
  padding: 4px 0 0 !important;
  position: relative;
  z-index: 2;
}

.nbp-mode {
  min-width: 50px;
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.nbp-mode:active,
.nbp-full-controls .nbp-icon:active {
  transform: scale(0.96);
}

.nbp-full-controls .nbp-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.90) !important;
}

.nbp-full-controls .nbp-play {
  width: 68px !important;
  height: 68px !important;
  background: linear-gradient(135deg, #a855f7, #6d28d9) !important;
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.38), 0 8px 24px rgba(0, 0, 0, 0.34) !important;
}

.nbp-full-controls .nbp-full-list.nbp-active {
  background: rgba(168, 85, 247, 0.22);
  color: #fff !important;
}

.nbp-full-playlist {
  display: none;
  flex: 0 0 auto;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: auto;
  touch-action: pan-y;
}

.nbp-full-playlist::-webkit-scrollbar {
  display: none;
}

.nbp-full-playlist::-webkit-scrollbar {
  display: none;
}

.nbp-full-playlist.nbp-open {
  display: grid;
  gap: 6px;
}

.nbp-list-item {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  text-align: left;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  min-height: 60px;
  align-content: center;
}

.nbp-list-item span,
.nbp-list-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbp-list-item small {
  color: rgba(255, 255, 255, 0.44);
}

.nbp-list-item.nbp-active {
  background: rgba(168, 85, 247, 0.18);
  color: #fff;
}

@media (max-width: 430px) {
  .nbp-overlay.nbp-open {
    padding-left: 0;
    padding-right: 0;
  }

  .nbp-full {
    width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - max(22px, env(safe-area-inset-top)) - max(22px, env(safe-area-inset-bottom))) !important;
    padding: 12px 14px 16px !important;
    gap: 10px !important;
  }

  .nbp-full-cover {
    width: clamp(180px, 52vw, 240px) !important;
  }

  .nbp-lyrics {
    max-height: 150px !important;
    min-height: 106px !important;
  }

  .nbp-full-controls {
    grid-template-columns: minmax(48px, 1fr) 44px 64px 44px minmax(48px, 1fr);
    gap: 5px !important;
  }

  .nbp-full-controls .nbp-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .nbp-full-controls .nbp-play {
    width: 64px !important;
    height: 64px !important;
  }

  .nbp-mode {
    min-width: 48px;
    font-size: 12px;
  }
}
