/* Élia core (functional subsystems kept from v3 unchanged):
   video player sandbox, Dynamic Island, expanded/video Now Playing overlay, mobile video sheet. */

/* ---------------- Media Mode Toggle (Song | Video) ---------------- */
.media-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.media-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-toggle-btn svg {
  transition: transform 0.2s ease;
}

.media-toggle-btn.active {
  background: #ffffff;
  color: #07090e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.media-toggle-btn:not(.active):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-media-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 4px auto 14px;
}

/* ---------------- Web Player Sandbox & Video Theater ---------------- */
.web-player-sandbox {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -9999;
  overflow: hidden;
  clip-path: inset(100%);
  border-radius: 16px;
  transition: opacity 0.3s ease;
}

.video-overlay-header {
  display: none;
}

.video-frame-container {
  width: 100%;
  height: 100%;
}

.video-frame-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* Desktop Video PIP Active */
.web-player-sandbox.desktop-video-active {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  bottom: calc(var(--player-dock-h) + 24px) !important;
  right: 28px !important;
  width: 480px !important;
  height: 300px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1005 !important;
  clip-path: none !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(252, 60, 68, 0.25) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(14, 18, 28, 0.96) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.web-player-sandbox.desktop-video-active .video-overlay-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.video-overlay-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fc3c44;
  box-shadow: 0 0 8px #fc3c44;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.video-overlay-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-btn-action {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.video-btn-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.web-player-sandbox.desktop-video-active .video-frame-container {
  flex: 1 !important;
  width: 100% !important;
  height: calc(100% - 38px) !important;
  background: #000000 !important;
}

/* Desktop Theater Mode */
.web-player-sandbox.desktop-theater {
  width: min(840px, 85vw) !important;
  height: min(510px, 60vh) !important;
  bottom: 50% !important;
  right: 50% !important;
  transform: translate(50%, 50%) !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(252, 60, 68, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Mobile Video Mode Active */
@media (max-width: 768px) {
  .web-player-sandbox.mobile-video-active,
  .web-player-sandbox.in-sheet {
    position: fixed !important;
    clip-path: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2900 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(252, 60, 68, 0.35) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    background: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .web-player-sandbox.mobile-video-active:not(.in-sheet) {
    top: auto !important;
    bottom: calc(var(--player-dock-h) + 16px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(340px, 94vw) !important;
    height: 200px !important;
  }

  .web-player-sandbox.in-sheet,
  .web-player-sandbox.mobile-video-active.in-sheet {
    top: 156px;
    left: calc(50% - 140px);
    width: min(290px, 72vw);
    aspect-ratio: 1;
    height: auto;
    max-height: 290px;
    transform: none;
  }

  .web-player-sandbox.mobile-video-active .video-overlay-header,
  .web-player-sandbox.in-sheet .video-overlay-header {
    display: none !important;
  }

  .web-player-sandbox.mobile-video-active .video-frame-container,
  .web-player-sandbox.in-sheet .video-frame-container {
    width: 100% !important;
    height: 100% !important;
  }

  .web-player-sandbox.mobile-video-active iframe,
  .web-player-sandbox.in-sheet iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 24px !important;
  }
}



/* ==========================================================================
   Apple Dynamic Island Floating Music Island
   Pitch-black obsidian liquid glass, spring physics, notch adaptation
   ========================================================================== */
.dynamic-island-container {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  pointer-events: none;
}

.dynamic-island {
  position: relative;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  transition: width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  width: 220px;
  height: 40px;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

/* Compact Pill State */
.island-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.island-compact-left {
  display: flex;
  align-items: center;
}

.island-compact-art {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  animation: islandSpin 8s linear infinite;
  animation-play-state: paused;
}

.island-compact-art.playing {
  animation-play-state: running;
}

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

.island-compact-notch-spacer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.island-notch-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1c2333 0%, #05070c 80%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.island-compact-right {
  display: flex;
  align-items: center;
}

/* Sound Wave Equalizer */
.island-sound-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}

.island-sound-wave .bar {
  width: 3px;
  height: 4px;
  background: linear-gradient(180deg, #fc3c44, #ff6b7b);
  border-radius: 9999px;
  transition: height 0.2s ease;
}

.island-sound-wave.active .bar-1 { animation: soundWave 0.7s ease-in-out infinite alternate; }
.island-sound-wave.active .bar-2 { animation: soundWave 0.9s ease-in-out 0.2s infinite alternate; }
.island-sound-wave.active .bar-3 { animation: soundWave 0.6s ease-in-out 0.4s infinite alternate; }
.island-sound-wave.active .bar-4 { animation: soundWave 0.8s ease-in-out 0.1s infinite alternate; }

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Expanded Island Card State */
.island-expanded {
  display: none;
  opacity: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 20px 16px 20px;
  flex-direction: column;
  gap: 14px;
  cursor: default;
  transition: opacity 0.3s ease 0.1s;
}

.dynamic-island.expanded {
  width: min(420px, calc(100vw - 28px));
  height: auto;
  min-height: 200px;
  border-radius: 38px;
  background: rgba(8, 8, 11, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(252, 60, 68, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dynamic-island.expanded .island-compact {
  display: none;
  opacity: 0;
}

.dynamic-island.expanded .island-expanded {
  display: flex;
  opacity: 1;
}

/* Expanded Header Row */
.island-exp-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.island-exp-art-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.island-exp-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.island-exp-info {
  flex: 1;
  min-width: 0;
}

.island-exp-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.island-exp-artist {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.island-exp-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.island-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
}

.island-badge-lossless {
  background: rgba(252, 60, 68, 0.18);
  color: #ff525b;
  border: 1px solid rgba(252, 60, 68, 0.35);
}

.island-badge-mode {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.island-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.island-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Expanded Scrubber Row */
.island-exp-scrubber {
  display: flex;
  align-items: center;
  gap: 10px;
}

.island-time {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  min-width: 30px;
}

.island-scrubber-track {
  flex: 1;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.island-scrubber-fill {
  height: 100%;
  background: linear-gradient(90deg, #fc3c44, #ff717b);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

/* Controls & Volume Row */
.island-exp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.island-transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.island-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s, opacity 0.2s;
}

.island-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.island-btn:active {
  transform: scale(0.92);
}

.island-btn-play {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.island-btn-play:hover {
  background: #f0f0f0;
}

.island-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  max-width: 130px;
}

.island-volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.island-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}


/* ==========================================================================
   Platform Strict Separation:
   - PC Desktop: NO Dynamic Island (Uses Liquid Glass Dock)
   - Mobile Website: NO Dynamic Island (Uses Mobile Tab Bar & Sheet)
   - Android APK: ONLY APK displays the Dynamic Island
   ========================================================================== */
.dynamic-island-container {
  display: none !important;
}

body.platform-apk .dynamic-island-container {
  display: block !important;
}



/* Mobile Center Video Player Replacement */
.mobile-art-wrapper {
  position: relative !important;
}

.mobile-art-wrapper .web-player-sandbox.in-art-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  transform: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  clip-path: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 15 !important;
  background: #000000 !important;
}

.mobile-art-wrapper .web-player-sandbox.in-art-wrapper .video-overlay-header {
  display: none !important;
}

.mobile-art-wrapper .web-player-sandbox.in-art-wrapper .video-frame-container {
  width: 100% !important;
  height: 100% !important;
}

.mobile-art-wrapper .web-player-sandbox.in-art-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px !important;
  border: none !important;
}

@media (max-width: 768px) {
  .player-dock .dock-center {
    display: none !important;
  }
  .player-dock .dock-right {
    display: none !important;
  }
  .player-dock .desktop-media-toggle {
    display: none !important;
  }
  .player-dock .dock-mobile-controls {
    display: flex !important;
  }
}


/* ==========================================================================
   LIQUID GLASS EXPANDED NOW PLAYING SCREEN (PC & MOBILE)
   ========================================================================== */

.dock-expand-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 4px;
}

.dock-expand-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dock-expand-btn:active {
  transform: scale(0.94);
}

/* Universal Expanded Now Playing Screen */
.expanded-np-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  overflow: hidden;
  user-select: none;
}

.expanded-np-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Ambient Fluid Background */
.enp-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(240%) brightness(0.48);
  opacity: 0.92;
  transform: scale(1.18);
  transition: background-image 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  animation: enpAmbientFloat 22s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes enpAmbientFloat {
  0% { transform: scale(1.15) translate(0, 0); }
  50% { transform: scale(1.26) translate(25px, -20px); }
  100% { transform: scale(1.18) translate(-20px, 15px); }
}

.enp-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 10, 18, 0.35) 0%, rgba(5, 7, 14, 0.78) 60%, rgba(2, 3, 7, 0.95) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1;
}

/* Top Floating Glass Capsule */
.enp-top-bar {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  padding: 4px 8px;
}

.enp-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.enp-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.enp-close-btn:active {
  transform: scale(0.92);
}

.enp-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enp-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.enp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red, #ff375f);
  box-shadow: 0 0 10px var(--accent-red, #ff375f);
  animation: enpPulseDot 1.8s infinite ease-in-out;
}

@keyframes enpPulseDot {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.enp-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enp-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.enp-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: scale(1.06);
}

/* Centerpiece Swipeable Artwork Deck (Stacked Cards) */
.enp-art-stage,
.enp-deck-container,
.enp-deck-card {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.enp-art-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  margin: auto 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.enp-art-stage:active {
  cursor: grabbing;
}

.enp-art-halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 55, 95, 0.3) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  transition: background 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

/* 3D Stacked Deck Container */
.enp-deck-container {
  position: relative;
  width: 370px;
  height: 370px;
  max-width: 40vh;
  max-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Base Deck Card */
.enp-deck-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #05070d;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease, filter 0.38s ease;
  user-select: none;
  -webkit-user-select: none;
}

.enp-deck-img,
.enp-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #111420;
}

.enp-deck-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.enp-deck-tag {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-tag-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-tag-icon {
  font-size: 0.8rem;
}

/* Previous Song Card (Stacked behind to the left) */
.enp-deck-card-prev {
  transform: translate3d(-105px, -8px, -60px) scale(0.86) rotate(-7deg);
  opacity: 0.72;
  filter: brightness(0.72) saturate(88%);
  z-index: 2;
  cursor: pointer;
}

.enp-deck-card-prev:hover {
  opacity: 0.95;
  transform: translate3d(-125px, -10px, -40px) scale(0.89) rotate(-8deg);
  filter: brightness(0.88) saturate(100%);
}

/* Next Song Card (Stacked behind to the right) */
.enp-deck-card-next {
  transform: translate3d(105px, -8px, -60px) scale(0.86) rotate(7deg);
  opacity: 0.72;
  filter: brightness(0.72) saturate(88%);
  z-index: 3;
  cursor: pointer;
}

.enp-deck-card-next:hover {
  opacity: 0.95;
  transform: translate3d(125px, -10px, -40px) scale(0.89) rotate(8deg);
  filter: brightness(0.88) saturate(100%);
}

/* Active Song Card (Center Front) */
.enp-deck-card-current {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 10;
  filter: brightness(1);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 55, 95, 0.26), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Song / Video Toggle */
.enp-media-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 12px;
  position: relative;
  z-index: 6;
}

/* Track Metadata */
.enp-track-meta {
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 6;
  margin-bottom: 8px;
}

.enp-track-info {
  flex: 1;
  min-width: 0;
}

.enp-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.enp-artist {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enp-like-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.enp-like-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.08);
}

.enp-like-btn.active {
  color: var(--accent-red, #ff375f);
  background: rgba(255, 55, 95, 0.15);
  border-color: rgba(255, 55, 95, 0.35);
  box-shadow: 0 0 16px rgba(255, 55, 95, 0.4);
}

.enp-like-btn.active svg {
  fill: currentColor;
}

/* Scrubber Section */
.enp-scrubber-section {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 6;
  margin-bottom: 12px;
}

.enp-scrubber {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.enp-scrubber .scrubber-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff375f 0%, #a855f7 60%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(255, 55, 95, 0.65);
  position: relative;
}

.enp-scrubber .scrubber-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: -7px;
  top: -4px;
  transition: transform 0.15s ease;
}

.enp-scrubber:hover .scrubber-handle {
  transform: scale(1.25);
}

.enp-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
}

.enp-hires-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.85);
}

/* Transport Row */
.enp-transport-row {
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  z-index: 6;
  margin-bottom: 12px;
}

.enp-aux-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.enp-aux-btn:hover {
  color: #ffffff;
  transform: scale(1.12);
}

.enp-aux-btn.active {
  color: var(--accent-red, #ff375f);
  filter: drop-shadow(0 0 8px rgba(255, 55, 95, 0.6));
}

.enp-skip-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.enp-skip-btn:hover {
  color: #ffffff;
  transform: scale(1.14);
}

.enp-skip-btn:active {
  transform: scale(0.92);
}

.enp-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff375f 0%, #e11d48 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 32px rgba(255, 55, 95, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.enp-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(255, 55, 95, 0.65);
}

.enp-play-btn:active {
  transform: scale(0.95);
}

/* Volume Row */
.enp-volume-row {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 6;
}

.enp-volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.enp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .expanded-np-overlay {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .enp-art-wrapper {
    width: 290px;
    height: 290px;
    max-width: 68vw;
    max-height: 68vw;
    border-radius: 22px;
  }

  .enp-title {
    font-size: 1.25rem;
  }

  .enp-play-btn {
    width: 62px;
    height: 62px;
  }

  .enp-volume-row {
    display: none; /* Mobile uses hardware buttons */
  }
}



/* ==========================================================================
   LIQUID GLASS EXPANDED NOW PLAYING — DOCK, 16:9 VIDEO & AMBIENT THEMES
   ========================================================================== */

/* Top Floating Bar */
.enp-top-bar {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  padding: 4px 8px;
}

.enp-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enp-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ambient Theme Selector Dropdown */
.enp-ambient-wrap {
  position: relative;
}

.enp-ambient-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.enp-ambient-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.enp-ambient-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.enp-ambient-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  border-radius: 20px;
  background: rgba(14, 18, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  animation: enpMenuFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.enp-ambient-menu.show {
  display: flex;
}

@keyframes enpMenuFade {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.enp-ambient-header {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 10px 4px;
}

.enp-ambient-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.enp-ambient-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.enp-ambient-opt.active {
  background: linear-gradient(135deg, rgba(255, 55, 95, 0.22) 0%, rgba(168, 85, 247, 0.22) 100%);
  color: #ffffff;
  border-color: rgba(255, 55, 95, 0.45);
}

/* ==========================================================================
   AMBIENT THEMES (Blurry, Strong, Light, 3D, Party, Off)
   ========================================================================== */

/* 1. Blurry (Fluid Glass - Default) */
.expanded-np-overlay.ambient-blurry .enp-bg {
  filter: blur(80px) saturate(240%) brightness(0.48);
  opacity: 0.92;
}

/* 2. Strong (Vivid High Glow) */
.expanded-np-overlay.ambient-strong .enp-bg {
  filter: blur(50px) saturate(340%) brightness(0.68);
  opacity: 1;
  animation: enpAmbientFloat 12s ease-in-out infinite alternate;
}
.expanded-np-overlay.ambient-strong .enp-art-halo {
  opacity: 0.75;
  filter: blur(65px);
}

/* 3. Light (Subtle Mood) */
.expanded-np-overlay.ambient-light .enp-bg {
  filter: blur(100px) saturate(120%) brightness(0.28);
  opacity: 0.6;
}
.expanded-np-overlay.ambient-light .enp-art-halo {
  opacity: 0.15;
}

/* 4. 3D Spatial Theme */
.expanded-np-overlay.ambient-3d .enp-bg {
  filter: blur(90px) saturate(160%) brightness(0.25);
  opacity: 0.45;
}
.expanded-np-overlay.ambient-3d .enp-3d-scene {
  display: block;
}
.enp-3d-scene {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  perspective: 1200px;
  overflow: hidden;
}
.enp-3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  mix-blend-mode: screen;
}
.enp-3d-orb.orb-cyan {
  width: 480px;
  height: 480px;
  top: 10%;
  left: 8%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, transparent 70%);
  animation: orbRotate3D1 18s ease-in-out infinite alternate;
}
.enp-3d-orb.orb-magenta {
  width: 520px;
  height: 520px;
  bottom: 12%;
  right: 8%;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.5) 0%, transparent 70%);
  animation: orbRotate3D2 22s ease-in-out infinite alternate;
}
.enp-3d-orb.orb-violet {
  width: 400px;
  height: 400px;
  top: 35%;
  left: 45%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
  animation: orbRotate3D3 15s ease-in-out infinite alternate;
}
@keyframes orbRotate3D1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(70px, -45px, 140px) scale(1.18); }
  100% { transform: translate3d(-50px, 60px, -70px) scale(0.9); }
}
@keyframes orbRotate3D2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-80px, 55px, -110px) scale(1.22); }
  100% { transform: translate3d(60px, -70px, 90px) scale(0.95); }
}
@keyframes orbRotate3D3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(45px, 70px, 160px) scale(1.28); }
  100% { transform: translate3d(-60px, -50px, -60px) scale(1); }
}
.enp-3d-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(65deg) scale(2);
  transform-origin: center bottom;
  opacity: 0.55;
}

/* 5. Party / Rave Mode (Supercharged Electric Festival Lighting) */
.expanded-np-overlay.ambient-party .enp-bg {
  display: block !important;
  filter: blur(50px) saturate(400%) brightness(0.72) !important;
  opacity: 0.95 !important;
  animation: partyBgColorShift 5s ease-in-out infinite alternate !important;
}

@keyframes partyBgColorShift {
  0% { filter: blur(50px) saturate(400%) brightness(0.72) hue-rotate(0deg); }
  50% { filter: blur(40px) saturate(460%) brightness(0.86) hue-rotate(180deg); }
  100% { filter: blur(50px) saturate(400%) brightness(0.72) hue-rotate(360deg); }
}

.expanded-np-overlay.ambient-party .enp-party-scene {
  display: block !important;
}

.enp-party-scene {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 360-Degree Rotating Conic Laser Sweep */
.party-laser-sweep {
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 0, 85, 0.45) 0deg,
    rgba(0, 240, 255, 0.42) 60deg,
    rgba(122, 0, 255, 0.5) 120deg,
    rgba(255, 230, 0, 0.38) 180deg,
    rgba(0, 255, 136, 0.45) 240deg,
    rgba(255, 0, 200, 0.44) 300deg,
    rgba(255, 0, 85, 0.45) 360deg
  );
  filter: blur(65px);
  mix-blend-mode: screen;
  animation: partyLaserSpin 6.5s linear infinite;
  opacity: 0.92;
}

@keyframes partyLaserSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dynamic Orbiting Rave Orbs */
.party-rave-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  mix-blend-mode: screen;
}

.orb-rave-1 {
  width: 520px;
  height: 520px;
  top: 12%;
  left: 12%;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.65) 0%, transparent 70%);
  animation: partyRaveOrb1 3.2s ease-in-out infinite alternate;
}

.orb-rave-2 {
  width: 560px;
  height: 560px;
  bottom: 12%;
  right: 12%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.65) 0%, transparent 70%);
  animation: partyRaveOrb2 3.8s ease-in-out infinite alternate;
}

@keyframes partyRaveOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(140px, 90px, 0) scale(1.35); }
  100% { transform: translate3d(-90px, -70px, 0) scale(0.88); }
}

@keyframes partyRaveOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1.15); }
  50% { transform: translate3d(-120px, -100px, 0) scale(0.82); }
  100% { transform: translate3d(100px, 80px, 0) scale(1.3); }
}

/* Strobe Beat Flash */
.party-strobe-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  mix-blend-mode: overlay;
  animation: partyStrobeBeat 0.72s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes partyStrobeBeat {
  0% { opacity: 0.12; }
  100% { opacity: 0.6; }
}

/* Pulsing Multi-Color Halo in Party Mode */
.expanded-np-overlay.ambient-party .enp-art-halo {
  opacity: 1 !important;
  width: 450px !important;
  height: 450px !important;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.6) 0%, rgba(0, 229, 255, 0.5) 45%, rgba(122, 0, 255, 0.4) 70%, transparent 80%) !important;
  filter: blur(45px) !important;
  animation: partyHaloPulse 0.72s ease-in-out infinite alternate !important;
}

@keyframes partyHaloPulse {
  0% { transform: scale(0.92); filter: blur(50px) hue-rotate(0deg); }
  100% { transform: scale(1.25); filter: blur(35px) hue-rotate(180deg); }
}

/* Scrubber Molten Rainbow in Party Mode */
.expanded-np-overlay.ambient-party .scrubber-fill {
  background: linear-gradient(90deg, #ff0055, #ff00c8, #7a00ff, #00e5ff, #00ff88) !important;
  background-size: 200% 100% !important;
  animation: partyScrubberRainbow 2s linear infinite !important;
}

@keyframes partyScrubberRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 6. Off / Pure Dark Mode */
.expanded-np-overlay.ambient-off .enp-bg {
  display: none;
}
.expanded-np-overlay.ambient-off .enp-art-halo {
  display: none;
}
.expanded-np-overlay.ambient-off .enp-bg-overlay {
  background: radial-gradient(circle at center, #0a0e1c 0%, #05070f 50%, #020306 100%) !important;
}

/* ==========================================================================
   VIDEO MODE — EXACT 16:9 RATIO CENTERED STAGE
   ========================================================================== */

/* When Video Mode is Active in Expanded Overlay */
.expanded-np-overlay.video-active .enp-art-stage {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.web-player-sandbox.in-expanded-overlay {
  position: fixed !important;
  top: 48% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(780px, 88vw) !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: 50vh !important;
  z-index: 3400 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  clip-path: none !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 55, 95, 0.35) !important;
  background: #000000 !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.web-player-sandbox.in-expanded-overlay .video-overlay-header {
  display: none !important;
}

.web-player-sandbox.in-expanded-overlay .video-frame-container {
  width: 100% !important;
  height: 100% !important;
  background: #000000 !important;
}

.web-player-sandbox.in-expanded-overlay iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px !important;
  border: none !important;
}


/* mobile video sheet */

@media (max-width: 768px) {
  .desktop-media-toggle {
    display: none !important;
  }
  /* Show Mobile Mini Player Controls */
  .dock-mobile-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }
  /* 6. Apple Music Full-Screen Now Playing Sheet (iOS Native Fluid Glass) */
  .mobile-player-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
  }
  .mobile-player-sheet.open {
    display: flex;
  }
  .mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 7, 0.82);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .mobile-player-sheet.open .mobile-sheet-backdrop {
    opacity: 1;
  }
  .mobile-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95vh;
    max-height: 860px;
    background: rgba(10, 12, 22, 0.78);
    backdrop-filter: blur(65px) saturate(230%);
    -webkit-backdrop-filter: blur(65px) saturate(230%);
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.92), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .mobile-player-sheet.open .mobile-sheet-content {
    transform: translateY(0);
  }
  /* Dynamic Apple Music Mobile Fluid Ambient Backdrop */
  .mobile-ambient-stage {
    position: absolute;
    inset: 0;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
  }
  .mobile-ambient-art {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(260%) brightness(0.68);
    opacity: 0.88;
    transform: scale(1.18);
    transition: background-image 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    animation: mobileAmbientFloat 20s ease-in-out infinite alternate;
  }
  .mobile-ambient-stage .mobile-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
  }
  .mobile-ambient-stage .orb-a {
    width: 280px;
    height: 280px;
    top: 6%;
    left: -40px;
    background: radial-gradient(circle, var(--orb1-color) 0%, transparent 70%);
    animation: floatOrb1 16s ease-in-out infinite alternate;
    transition: background 0.8s ease;
  }
  .mobile-ambient-stage .orb-b {
    width: 320px;
    height: 320px;
    bottom: 16%;
    right: -50px;
    background: radial-gradient(circle, var(--orb2-color) 0%, transparent 70%);
    animation: floatOrb2 20s ease-in-out infinite alternate;
    transition: background 0.8s ease;
  }
  .mobile-ambient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(6, 8, 14, 0.18) 0%,
      rgba(8, 10, 18, 0.45) 35%,
      rgba(6, 7, 12, 0.82) 75%,
      rgba(4, 5, 8, 0.96) 100%
    );
    z-index: 1;
  }
  /* Sheet Header & Tactile Grabber */
  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 4px 0 10px;
    z-index: 2;
  }
  .mobile-sheet-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-sheet-close-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.18);
  }
  .mobile-sheet-grabber-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: grab;
    touch-action: none;
    padding: 0 10px;
  }
  .mobile-ambient-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .mobile-ambient-toggle-pill.active {
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: var(--accent-border);
    color: #ffffff;
    box-shadow: 0 0 14px var(--accent-glow);
  }
  .mobile-ambient-toggle-pill svg {
    color: var(--accent-red);
    transition: transform 0.3s ease;
  }
  .mobile-ambient-toggle-pill.active svg {
    transform: rotate(18deg) scale(1.12);
    filter: drop-shadow(0 0 6px var(--accent-red));
  }
  /* Segmented Media Toggle */
  .mobile-media-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
    z-index: 2;
  }
  /* Hero Artwork Stage */
  .mobile-art-stage {
    position: relative;
    width: min(290px, 72vw);
    aspect-ratio: 1;
    margin: 4px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .mobile-art-ambient-halo {
    position: absolute;
    inset: -16px;
    border-radius: 36px;
    background-size: cover;
    background-position: center;
    filter: blur(36px) saturate(280%) brightness(1.28);
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-image 0.8s ease;
  }
  .mobile-art-ambient-halo.playing {
    transform: scale(1.08);
    opacity: 0.95;
    animation: ambientHaloPulse 3.8s ease-in-out infinite alternate;
  }
  .mobile-art-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    background: #0d101a;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  }
  .mobile-sheet-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
  }
  .mobile-sheet-art.playing {
    transform: scale(1.03);
  }
  .mobile-sheet-title {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-sheet-artist {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-like-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-like-btn:active {
    transform: scale(0.88);
  }
  .mobile-like-btn.liked {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-red);
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .mobile-like-btn.liked .mobile-heart-svg {
    fill: var(--accent-red);
    stroke: var(--accent-red);
    animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  /* Interactive Touch Scrubber */
  .mobile-scrubber-section {
    width: 100%;
    margin-bottom: 20px;
    z-index: 2;
  }
  .mobile-scrubber {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
    touch-action: none;
  }
  .mobile-scrubber:active,
  .mobile-scrubber.seeking {
    height: 9px;
  }
  .mobile-scrubber .scrubber-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 12px var(--accent-glow);
    pointer-events: none;
  }
  .mobile-scrubber .scrubber-handle {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 8px var(--accent-glow);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s ease;
  }
  .mobile-scrubber:hover .scrubber-handle,
  .mobile-scrubber:active .scrubber-handle,
  .mobile-scrubber.seeking .scrubber-handle {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
  }
  .mobile-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    margin-top: 7px;
    letter-spacing: 0.02em;
  }
  .mobile-aux-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-aux-btn:active {
    transform: scale(0.9);
  }
  .mobile-aux-btn.active {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-red);
    box-shadow: 0 0 14px var(--accent-glow);
  }
  .mobile-skip-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-skip-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.18);
  }
  .mobile-play-master {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #07090e !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.45), 0 0 24px var(--accent-glow) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  }
  .mobile-play-master:active {
    transform: scale(0.92) !important;
  }
}

/* toasts stay hidden (user request) */

#toastContainer, .toast-container, .glass-toast { display: none !important; visibility: hidden !important; pointer-events: none !important; opacity: 0 !important; }
