/* ============================================================
   y&music - Player Bar & Full Screen Apple Music Experience
   ============================================================ */

/* Bottom Floating Spatial Audio Island */
.bottom-player {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 800px;
  height: 54px;
  background: rgba(28, 30, 38, 0.82);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 
    0 16px 44px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-player:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 20px 52px rgba(0, 0, 0, 0.78),
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mobile-player-progress-line {
  display: none;
}

/* ============================================================
   Left: Playback Controls (Apple Music style)
   ============================================================ */
.player-left-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.player-left-controls .control-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.player-left-controls .control-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.player-left-controls .control-btn.active {
  color: #fa243c;
  filter: drop-shadow(0 0 6px rgba(250, 36, 60, 0.6));
}

.player-left-controls .control-btn#repeatBtn,
.fs-control-btn#fsRepeatBtn {
  position: relative !important;
}

.repeat-one-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  font-weight: 900;
  background: var(--accent-primary, #fa2d48);
  color: #ffffff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(250, 45, 72, 0.6);
}

.player-right-tools .btn-icon#bottomQueueBtn.active {
  color: var(--accent-primary, #fa2d48) !important;
  background: rgba(250, 45, 72, 0.15) !important;
}

.player-left-controls .play-pause-btn.apple-play-btn,
.bottom-player .play-pause-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 32px;
  height: 32px;
  color: #ffffff !important;
  font-size: 17px !important;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.player-left-controls .play-pause-btn:hover,
.bottom-player .play-pause-btn:hover {
  transform: scale(1.12);
  color: #ffffff !important;
  background: none !important;
  box-shadow: none !important;
}

.player-left-controls .play-pause-btn:active,
.bottom-player .play-pause-btn:active {
  transform: scale(0.92);
}

/* ============================================================
   Center: Track Info Card + Inline Scrubber Bar
   ============================================================ */
.player-center-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  max-width: 440px;
  margin: 0 16px;
  min-width: 0;
  position: relative;
  height: 100%;
}

/* Floating Hover Time Row (0:02 and -1:39) */
.player-hover-time-row {
  position: absolute;
  bottom: 15px;
  left: 1px;
  right: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.player-hover-time-row .time-label {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  line-height: 1;
}

.player-track-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  cursor: pointer;
  min-width: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Track info stays crystal clear on hover; only dim slightly during active scrubber drag */
.player-center-card.is-seeking .player-track-meta {
  opacity: 0.45;
}

.player-center-card .playback-bar:hover ~ .player-hover-time-row,
.player-center-card.is-seeking .player-hover-time-row {
  opacity: 1;
  transform: translateY(0);
}

/* Dedicated Action Buttons on Bottom Bar (Like Heart & Add to Playlist) */
.player-track-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  position: relative !important;
  z-index: 10 !important;
}

.player-action-pill-btn {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.player-action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.player-action-pill-btn:active {
  transform: scale(0.92) !important;
}

/* Like Heart Button in Player Bar */
.player-action-pill-btn.btn-like-heart.liked,
.player-action-pill-btn.btn-like-heart.liked i {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(244, 63, 94, 0.38) !important;
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.45));
}

/* Playlist Button in Player Bar */
.player-action-pill-btn.btn-spotify-plus.saved,
.player-action-pill-btn.btn-spotify-plus.saved svg {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.player-center-card .player-cover-art {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease;
}

.player-center-card .player-cover-art:hover {
  transform: scale(1.04);
}

.player-center-card .player-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.player-center-card .player-track-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.player-track-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.apple-explicit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  padding: 1px 3.5px;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.player-artist-row {
  display: flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.player-track-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-top: 1px;
  width: fit-content;
  max-width: 100%;
  display: inline-block;
}

.player-artist-name-link,
.player-album-name-link {
  display: inline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.player-artist-name-link:hover,
.player-album-name-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.player-artist-sep {
  opacity: 0.6;
  pointer-events: none;
}

.player-more-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  padding: 3px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.player-more-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Inline Scrubber Bar */
.player-center-card .playback-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 8px;
  margin-top: 3px;
  position: relative;
}

.player-center-card .progress-track {
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  touch-action: none;
  transition: height 0.15s ease, background 0.15s ease;
}

.player-center-card .progress-track::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
  cursor: pointer;
  z-index: 5;
}

.player-center-card:hover .progress-track,
.player-center-card.is-seeking .progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
}

.player-center-card .progress-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  position: relative;
  background: #ffffff !important;
  transition: none;
}

.player-center-card .progress-handle {
  display: none;
}

.player-center-card:hover .progress-handle,
.player-center-card.is-seeking .progress-handle {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   Right: Lyrics, Queue, Volume & Tools
   ============================================================ */
.player-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.player-right-tools .btn-icon {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.player-right-tools .btn-icon:hover {
  color: #ffffff;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.06);
}

.apple-quote-bubble-icon {
  display: block;
  fill: currentColor;
}

.volume-control-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.volume-speaker-btn {
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.volume-slider {
  width: 0;
  opacity: 0;
  pointer-events: none;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  margin-left: 0;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-left 0.2s ease;
}

.volume-control-wrapper:hover .volume-slider,
.volume-control-wrapper:focus-within .volume-slider {
  width: 65px;
  opacity: 1;
  pointer-events: auto;
  margin-left: 8px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

/* Equalizer Bars Mini Animation */
.mini-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 18px;
  width: 22px;
  padding: 0;
}

.mini-eq-bar {
  width: 3px;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-glow);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.mini-eq-bar:nth-child(1) { height: 45%; animation-delay: 0.05s; }
.mini-eq-bar:nth-child(2) { height: 90%; animation-delay: 0.25s; }
.mini-eq-bar:nth-child(3) { height: 65%; animation-delay: 0.15s; }
.mini-eq-bar:nth-child(4) { height: 100%; animation-delay: 0.35s; }

.mini-eq.paused .mini-eq-bar {
  animation: none !important;
  height: 35% !important;
  opacity: 0.7;
}

@keyframes eqBounce {
  0% { height: 25%; }
  50% { height: 100%; }
  100% { height: 35%; }
}

/* ============================================================
   MOBILE (iPhone) Floating Mini-Player Optimization
   Like Apple Music on iOS: Sleek bar with cover, title, play & next
   ============================================================ */
@media (max-width: 768px) {
  /* Apple Music iOS 18 Floating Frosted-Glass Island Mini Player */
  .bottom-player {
    position: fixed !important;
    bottom: calc(58px + max(18px, calc(env(safe-area-inset-bottom, 0px) - 4px))) !important;
    left: max(12px, env(safe-area-inset-left, 12px)) !important;
    right: max(12px, env(safe-area-inset-right, 12px)) !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    transform: none !important;
    width: auto !important;
    height: 58px !important;
    padding: 0 12px 0 8px !important;
    background:
      linear-gradient(135deg, rgba(var(--accent-rgb, 230, 57, 86), 0.13) 0%, transparent 42%),
      radial-gradient(130% 160% at 100% 0%, rgba(var(--accent-rgb, 230, 57, 86), 0.1) 0%, transparent 62%),
      rgba(20, 20, 28, 0.84) !important;
    backdrop-filter: blur(36px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(210%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.7),
      0 0 26px -8px rgba(var(--accent-rgb, 230, 57, 86), 0.4),
      0 2px 10px rgba(0, 0, 0, 0.32),
      inset 0 1px 1px rgba(255, 255, 255, 0.24) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 45 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease !important;
    overflow: hidden !important;
  }

  /* Hide mini waveform on mobile to keep Apple Music clean mini player */
  .island-mini-visualizer {
    display: none !important;
  }

  /* Mobile Island Progress Line along bottom edge */
  .mobile-player-progress-line {
    display: block !important;
    position: absolute !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    overflow: visible !important;
    cursor: pointer !important;
    touch-action: none !important;
    pointer-events: auto !important;
    z-index: 25 !important;
    transition: height 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease !important;
  }

  .mobile-player-progress-line::before {
    content: "";
    position: absolute;
    top: -14px;
    bottom: -12px;
    left: 0;
    right: 0;
    cursor: pointer;
    z-index: 26;
    touch-action: none !important;
  }

  /* NOTE: never put `width: 0% !important` here — JS drives the width with
     element.style.width, and an !important rule silently overrides it
     (that made the phone bar stay frozen at 0% forever). */
  .mobile-player-progress-fill {
    height: 100% !important;
    background: var(--accent-gradient, linear-gradient(90deg, var(--accent-primary, #dfb76c), #f59e0b)) !important;
    box-shadow: 0 0 10px var(--accent-glow, rgba(var(--accent-rgb, 223, 183, 108), 0.75)) !important;
    transition: none !important;
    will-change: width;
    position: relative !important;
    border-radius: inherit !important;
  }

  /* Drag knob lives on the bottom bar (since the in-card bar is gone) */
  .bottom-player.is-scrubbing .mobile-player-progress-fill::after,
  .mobile-player-progress-line.is-scrubbing .mobile-player-progress-fill::after {
    content: "" !important;
    position: absolute !important;
    right: -5px !important;
    top: 50% !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 0 8px rgba(255, 255, 255, 0.8) !important;
  }

  .bottom-player.is-scrubbing .mobile-player-progress-line,
  .mobile-player-progress-line.is-scrubbing {
    height: 6px !important;
    background: rgba(255, 255, 255, 0.3) !important;
  }

  /* LEFT SIDE: Center Card (Cover + Title + Artist) moves to the left on mobile */
  .player-center-card {
    order: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
  }

  .player-track-info-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    cursor: pointer !important;
  }

  .player-center-card .player-cover-art {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-glow, rgba(255, 255, 255, 0.08)) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }

  .player-center-card .player-cover-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .player-center-card .player-track-meta {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  .player-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .player-track-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    letter-spacing: -0.1px !important;
  }

  .apple-explicit-badge {
    display: inline-flex !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    flex-shrink: 0 !important;
  }

  .player-artist-row {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .player-track-artist {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
  }

  .player-more-btn {
    display: none !important;
  }

  .playback-bar {
    display: none !important;
  }

  /* Only ONE seek bar on mobile: the hairline at the bottom edge of the
     capsule. The in-card playback-bar stays hidden (it used to pop up on
     top while scrubbing, so the phone showed two bars). */

  .player-center-card.is-seeking .player-hover-time-row,
  .bottom-player.is-scrubbing .player-hover-time-row {
    position: absolute !important;
    left: 54px !important;
    right: 8px !important;
    bottom: 27px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 15 !important;
  }

  .player-center-card.is-seeking .player-hover-time-row .time-label,
  .bottom-player.is-scrubbing .player-hover-time-row .time-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  }

  /* RIGHT SIDE: Controls (Play/Pause + Next) moves to the right on mobile */
  .player-left-controls {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }

  .player-left-controls #shuffleBtn,
  .player-left-controls #repeatBtn {
    display: none !important;
  }

  /* Phone mini player: just ◀ ▶ play/pause ▶ — clean and thumb-friendly */
  .player-track-actions {
    display: none !important;
  }

  .player-left-controls {
    gap: 10px !important;
    margin-left: 12px !important;
  }

  .player-left-controls .play-pause-btn.apple-play-btn,
  .play-pause-btn {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--accent-gradient, var(--accent-primary, #ffffff)) !important;
    color: #ffffff !important;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 6px 20px var(--accent-glow, rgba(var(--accent-rgb, 230, 57, 86), 0.42)),
      0 2px 8px rgba(0, 0, 0, 0.45) !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  .play-pause-btn:active {
    transform: scale(0.9) !important;
  }

  .play-pause-btn svg,
  .play-pause-btn i {
    width: 15px !important;
    height: 15px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .play-pause-btn .fa-play {
    margin-left: 2px !important;
  }

  .play-pause-btn .fa-pause {
    margin-left: 0 !important;
  }

  #nextTrackBtn,
  #prevTrackBtn {
    display: flex !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, color 0.15s ease !important;
    flex-shrink: 0 !important;
  }

  #nextTrackBtn:hover,
  #prevTrackBtn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
  }

  #nextTrackBtn:active,
  #prevTrackBtn:active {
    transform: scale(0.88) !important;
  }

  #nextTrackBtn svg,
  #nextTrackBtn i,
  #prevTrackBtn svg,
  #prevTrackBtn i {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .player-right-tools {
    display: none !important;
  }
}

/* (Phone bottom sheet for the ••• menu lives at the end of this file so it
   wins over the desktop dropdown definition above.) */

@media (max-width: 480px) {
  .bottom-player {
    left: max(10px, env(safe-area-inset-left, 10px)) !important;
    right: max(10px, env(safe-area-inset-right, 10px)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    height: 56px !important;
    padding: 0 10px 0 6px !important;
    border-radius: 18px !important;
  }

  .player-center-card .player-cover-art {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  .player-track-title {
    font-size: 13px !important;
  }

  .player-track-artist {
    font-size: 11px !important;
  }

  .play-pause-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .play-pause-btn svg,
  .play-pause-btn i {
    font-size: 13px !important;
  }

  #nextTrackBtn {
    width: 30px !important;
    height: 30px !important;
  }

  #nextTrackBtn svg,
  #nextTrackBtn i {
    font-size: 12px !important;
  }

  .mobile-player-progress-line {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
}

/* ============================================================
   Full Screen Apple Music Modal (iOS Sliding Sheet)
   ============================================================ */
.fullscreen-player-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
  z-index: 60000 !important;
  background: var(--aura-base, #07080c);
  backdrop-filter: blur(45px) saturate(180%);
  -webkit-backdrop-filter: blur(45px) saturate(180%);
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease, visibility 0.46s step-end;
  overflow: hidden;
  box-sizing: border-box;
}

.fs-grabber-pill {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  margin: 0 auto 12px auto;
  flex-shrink: 0;
  cursor: pointer;
  display: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fs-grabber-pill:hover,
.fs-grabber-pill:active {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.08);
}

.fullscreen-player-modal:not(.open) * {
  animation-play-state: paused !important;
}

.fullscreen-player-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0s step-start;
}

/* ============================================================
   Living Fluid Aura Background (Apple Music Dynamic Canvas)
   ============================================================ */
.living-aura-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: var(--aura-base, #06070a);
}

.aura-blur-image {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(45px) saturate(240%) brightness(0.9);
  opacity: 0.7;
  transform: scale(1.15);
  animation: auraImageDrift 8s ease-in-out infinite alternate;
  transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

@keyframes auraImageDrift {
  0% { transform: scale(1.15) translate(0, 0) rotate(0deg); }
  33% { transform: scale(1.3) translate(-5%, 4%) rotate(3deg); }
  66% { transform: scale(1.22) translate(4%, -3%) rotate(-2deg); }
  100% { transform: scale(1.28) translate(2%, 5%) rotate(2deg); }
}

.aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.9;
  will-change: transform;
}

.aura-orb-1 {
  width: clamp(320px, 95vw, 750px);
  height: clamp(320px, 95vw, 750px);
  top: -12%;
  left: -15%;
  background: radial-gradient(circle, var(--aura-c1, var(--accent-primary)) 0%, var(--aura-glow1, var(--accent-glass)) 45%, transparent 75%);
  animation: auraOrbit1 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.aura-orb-2 {
  width: clamp(340px, 100vw, 800px);
  height: clamp(340px, 100vw, 800px);
  top: -12%;
  right: -15%;
  background: radial-gradient(circle, var(--aura-c2, #a855f7) 0%, var(--aura-glow2, rgba(168, 85, 247, 0.9)) 45%, transparent 75%);
  animation: auraOrbit2 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.aura-orb-3 {
  width: clamp(320px, 95vw, 750px);
  height: clamp(320px, 95vw, 750px);
  bottom: -12%;
  left: -15%;
  background: radial-gradient(circle, var(--aura-c3, #3b82f6) 0%, var(--aura-glow3, rgba(59, 130, 246, 0.9)) 45%, transparent 75%);
  animation: auraOrbit3 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.aura-orb-4 {
  width: clamp(360px, 105vw, 850px);
  height: clamp(360px, 105vw, 850px);
  bottom: -15%;
  right: -15%;
  background: radial-gradient(circle, var(--aura-c4, #ec4899) 0%, var(--aura-glow4, rgba(236, 72, 153, 0.9)) 45%, transparent 75%);
  animation: auraOrbit4 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes auraOrbit1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  25% { transform: translate3d(20vw, 8vh, 0) scale(1.18) rotate(15deg); }
  50% { transform: translate3d(32vw, 18vh, 0) scale(1.3) rotate(30deg); }
  75% { transform: translate3d(14vw, 28vh, 0) scale(1.1) rotate(10deg); }
  100% { transform: translate3d(6vw, 15vh, 0) scale(0.92) rotate(-10deg); }
}

@keyframes auraOrbit2 {
  0% { transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg); }
  25% { transform: translate3d(-15vw, -8vh, 0) scale(0.9) rotate(-20deg); }
  50% { transform: translate3d(-30vw, -15vh, 0) scale(1.25) rotate(-40deg); }
  75% { transform: translate3d(-35vw, 12vh, 0) scale(1.35) rotate(-15deg); }
  100% { transform: translate3d(-10vw, 20vh, 0) scale(1.02) rotate(10deg); }
}

@keyframes auraOrbit3 {
  0% { transform: translate3d(0, 0, 0) scale(0.92) rotate(0deg); }
  25% { transform: translate3d(-18vw, 12vh, 0) scale(1.22) rotate(25deg); }
  50% { transform: translate3d(-22vw, 24vh, 0) scale(1.32) rotate(45deg); }
  75% { transform: translate3d(18vw, -8vh, 0) scale(1.12) rotate(15deg); }
  100% { transform: translate3d(25vw, -16vh, 0) scale(0.98) rotate(-15deg); }
}

@keyframes auraOrbit4 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  25% { transform: translate3d(22vw, -12vh, 0) scale(1.25) rotate(-20deg); }
  50% { transform: translate3d(30vw, -22vh, 0) scale(1.35) rotate(-45deg); }
  75% { transform: translate3d(-18vw, 15vh, 0) scale(1.15) rotate(-10deg); }
  100% { transform: translate3d(-28vw, 25vh, 0) scale(0.9) rotate(25deg); }
}

.aura-glass-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.12) 0%, rgba(4, 5, 10, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.fullscreen-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0 12px;
  min-height: 44px;
}

.fs-header-side.left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  z-index: 3;
}

.fs-header-side.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  z-index: 3;
}

.fullscreen-header .close-modal-btn,
.fullscreen-header .fs-header-lyrics-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.fullscreen-header .close-modal-btn:hover,
.fullscreen-header .fs-header-lyrics-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.1);
}

.fullscreen-header .close-modal-btn:active,
.fullscreen-header .fs-header-lyrics-btn:active {
  transform: scale(0.92);
}

.fullscreen-header .fs-header-lyrics-btn.active,
.fullscreen-player-modal.show-lyrics .fs-header-lyrics-btn {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 16px var(--accent-glow);
}

.fullscreen-title-heading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
  max-width: calc(100% - 110px);
  pointer-events: none;
  z-index: 2;
}

.fs-header-sub {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.fs-header-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 1px;
}



.fullscreen-content-grid {
  flex: 1;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Main Artwork Left */
.fullscreen-artwork-col {
  flex: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.fs-artwork-area {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.fs-controls-deck {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  position: relative !important;
  z-index: 5000 !important;}

.large-artwork-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.8),
    0 0 35px var(--accent-glow, rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.large-artwork-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen-track-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fullscreen-track-artist {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Synchronized Lyrics Column (Apple Music Luxury Frosted Panel) */
.fullscreen-lyrics-col {
  flex: 1;
  height: 80%;
  max-height: 490px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  padding: 32px 26px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
  position: relative;
}

.fullscreen-lyrics-col::-webkit-scrollbar {
  display: none;
  width: 0px;
  background: transparent;
}

.lyric-line {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.25s ease, font-size 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  padding: 4px 6px;
  line-height: 1.45;
}

.lyric-line.active {
  color: #ffffff !important;
  font-size: 25px !important;
  transform: scale(1.03);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.65), 0 0 40px var(--accent-glow) !important;
  opacity: 1 !important;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.6);
}

.lyric-line.lyrics-rtl,
[dir="rtl"].lyric-line {
  direction: rtl;
  text-align: right;
  font-size: 1.15em;
}

/* Luxury Editorial Empty Lyrics State */
.no-lyrics-container.luxury-empty-lyrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  margin: auto 0;
  width: 100%;
  box-sizing: border-box;
}

.empty-lyrics-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-primary, #ffffff);
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-lyrics-icon-wrapper:hover {
  transform: scale(1.08);
}

.empty-lyrics-title {
  font-size: 17px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.empty-lyrics-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 24px auto;
}

.empty-lyrics-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.empty-lyrics-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-lyrics-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.empty-lyrics-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.empty-lyrics-btn-secondary:active {
  transform: scale(0.96);
}

.empty-lyrics-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent-gradient, linear-gradient(135deg, #dfb76c 0%, #b8862d 100%));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px var(--accent-glow, rgba(223, 183, 108, 0.4));
  color: #0b0d14;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-lyrics-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--accent-glow, rgba(223, 183, 108, 0.5));
}

.empty-lyrics-btn-primary:active {
  transform: scale(0.96);
}

/* Audio Visualizer Canvas */
.visualizer-canvas {
  width: 100%;
  max-width: 380px;
  height: 38px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
}

.fullscreen-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin-bottom: 16px;
  gap: 14px;
}

.fullscreen-meta-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.fullscreen-track-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fullscreen-track-artist {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  display: block;
}

.fs-artist-name-link {
  display: inline-block;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fs-artist-name-link:hover {
  color: #fff;
  text-decoration: underline;
}

.fs-like-heart {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.fs-like-heart.liked {
  color: var(--accent-primary); background: var(--accent-glass); border-color: var(--glass-border-accent);
}

.fs-like-heart:hover {
  transform: scale(1.1);
  color: var(--accent-primary);
}

.fs-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fs-more-menu-wrapper {
  position: relative !important;
  z-index: 5002 !important;
}

.fs-meta-actions {
  position: relative !important;
  z-index: 5001 !important;
}

.fs-more-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
}

.fs-more-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

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

.fs-more-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  top: auto;
  right: 0;
  left: auto;
  width: 226px;
  max-width: calc(100vw - 32px);
  max-height: min(340px, calc(100vh - 100px));
  max-height: min(340px, calc(100dvh - 100px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  overscroll-behavior: contain;
  background: rgba(24, 26, 36, 0.88);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: bottom right;
  transform: translateY(6px) scale(0.93);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  z-index: 999999 !important;
  box-sizing: border-box;
}

.fs-more-dropdown::-webkit-scrollbar {
  width: 4px;
}
.fs-more-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.fs-more-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.fs-more-menu-wrapper.open .fs-more-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.fs-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
}

/* All icons are pure white with frosted circular lenses */
.fs-more-item i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: #ffffff !important;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-more-item:hover,
.fs-more-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.fs-more-item:hover i,
.fs-more-item:focus-visible i {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  transform: scale(1.06);
}

.fs-more-item:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.97);
}

.fs-more-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.fs-more-item.active i {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
}

.fs-more-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  margin: 3px 6px;
}

.fs-more-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ============================================================
   Fullscreen Playback Scrubbing Bar & Controls (Apple Music Ultra-Clean)
   ============================================================ */
.fs-playback-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 18px;
}

.fs-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* DJ analysis badges (BPM + Camelot key, shown when analyzed) */
.fs-dj-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.fs-dj-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--accent-primary, #dfb76c);
  background: var(--accent-glass);
  border: 1px solid var(--glass-border-accent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Center track title between elapsed / remaining (YouTube style) */
.fs-time-track {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

#fsCurrentTimeLabel,
#fsDurationLabel {
  flex-shrink: 0;
}

.fs-playback-bar .time-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.fs-playback-bar .progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  transition: height 0.2s ease, background 0.2s ease;
}

.fs-playback-bar .progress-track::before {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: 0;
  right: 0;
  cursor: pointer;
  z-index: 5;
}

.fs-playback-bar .progress-track.is-scrubbing .progress-fill,
.progress-track.is-scrubbing .progress-fill,
.progress-fill.is-scrubbing {
  transition: none !important;
}

.fs-playback-bar .progress-track.is-scrubbing .progress-handle,
.progress-track.is-scrubbing .progress-handle {
  transform: translateY(-50%) scale(1.45) !important;
  box-shadow: 0 0 0 6px var(--accent-glass), 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  transition: none !important;
}

.fs-playback-bar:hover .progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.fs-playback-bar .progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  position: relative;
  box-shadow: 0 0 12px var(--accent-glow);
}

.fs-playback-bar .progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.8);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  opacity: 1;
}

.fs-playback-bar:hover .progress-handle {
  transform: translateY(-50%) scale(1.3);
}

.fs-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin-top: 24px;
  padding: 0 8px;
}

.fs-control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0;
  outline: none;
}

.fs-control-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

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

.fs-control-btn.active {
  color: var(--accent-primary); filter: drop-shadow(0 0 10px var(--accent-glow));
}

.fs-sub-btn {
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
}

.fs-sub-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.fs-step-btn {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.fs-seek-btn {
  color: rgba(255, 255, 255, 0.8);
}

.fs-seek-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.fs-play-pause-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient, #dfb76c);
  color: var(--accent-contrast, #08080a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow, rgba(223, 183, 108, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 22px;
  flex-shrink: 0;
  outline: none;
}

.fs-play-pause-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px var(--accent-glow-strong, rgba(223, 183, 108, 0.6));
}

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

.fs-tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin-top: 14px;
}

.fs-volume-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 10px 18px;
  border-radius: 999px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.fs-volume-wrapper:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.fs-vol-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.fs-vol-icon:hover {
  color: #ffffff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.fs-vol-icon:active {
  transform: scale(0.9);
}

.fs-volume-slider,
.fs-volume-wrapper .volume-slider {
  /* .volume-slider is hidden by default (opacity 0, no pointer events) for the
     small bottom bar; the fullscreen slider must always be visible/clickable */
  opacity: 1 !important;
  pointer-events: auto !important;
  flex: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 6px !important;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--accent-primary, #dfb76c) var(--vol-fill, 85%), rgba(255, 255, 255, 0.2) var(--vol-fill, 85%)) !important;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-primary);
  transition: height 0.15s ease;
}

.fs-volume-slider:hover,
.fs-volume-wrapper .volume-slider:hover {
  height: 7px !important;
}

.fs-volume-slider::-webkit-slider-thumb,
.fs-volume-wrapper .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fs-volume-slider:hover::-webkit-slider-thumb,
.fs-volume-wrapper .volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.fs-volume-slider::-moz-range-thumb,
.fs-volume-wrapper .volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
}

/* ============================================================
   Responsive Fullscreen on Mobile (Apple Music iOS 18 Sheet Layout)
   ============================================================ */
@media (max-width: 768px) {
  .fullscreen-player-modal {
    position: fixed;
    z-index: 60000 !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    width: 100dvw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0px) + clamp(12px, 2.5vh, 24px)) clamp(16px, 4.5vw, 24px) env(safe-area-inset-bottom, 20px) clamp(16px, 4.5vw, 24px);
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    box-sizing: border-box;
    background: var(--aura-base, #07080c) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
    box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.85) !important;
    transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease, visibility 0.46s step-end !important;
    will-change: transform;
  }

  .fullscreen-player-modal.open {
    transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease, visibility 0s step-start !important;
  }

  .fs-grabber-pill {
    display: block !important;
  }

  /* Apple Music iOS 18 Background Sheet Scaling */
  .app-container {
    transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.46s cubic-bezier(0.32, 0.72, 0, 1), filter 0.35s ease !important;
    transform-origin: top center;
  }

  body.fs-player-open .app-container {
    transform: scale(0.92) translateY(-14px) !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    filter: brightness(0.65) contrast(1.05) !important;
  }

  body.fs-player-open {
    background: #000000 !important;
    overflow: hidden !important;
  }

  body.fs-player-open .bottom-player,
  body.fs-player-open .mobile-nav-dock-wrapper {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(24px) scale(0.92) !important;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease !important;
  }

  /* Tactile mini-player press animation */
  .bottom-player {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease !important;
  }

  .bottom-player:active:not(:has(button:active)) {
    transform: scale(0.96) !important;
  }

  /* Mobile Living Fluid Aura: Apple Music Dynamic Animated Canvas (when Boost is OFF) */
  html:not([data-rocket-boost="true"]) .aura-orb {
    display: block !important;
    filter: blur(36px) !important;
    opacity: 0.82 !important;
    will-change: transform !important;
    pointer-events: none !important;
  }

  html:not([data-rocket-boost="true"]) .aura-orb-1 {
    display: block !important;
    width: clamp(280px, 85vw, 480px) !important;
    height: clamp(280px, 85vw, 480px) !important;
    animation: auraOrbit1 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  }

  html:not([data-rocket-boost="true"]) .aura-orb-2 {
    display: block !important;
    width: clamp(260px, 80vw, 450px) !important;
    height: clamp(260px, 80vw, 450px) !important;
    animation: auraOrbit2 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  }

  html:not([data-rocket-boost="true"]) .aura-orb-3 {
    display: block !important;
    width: clamp(280px, 85vw, 480px) !important;
    height: clamp(280px, 85vw, 480px) !important;
    animation: auraOrbit3 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  }

  html:not([data-rocket-boost="true"]) .aura-orb-4 {
    display: block !important;
    width: clamp(260px, 80vw, 450px) !important;
    height: clamp(260px, 80vw, 450px) !important;
    animation: auraOrbit4 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  }

  html:not([data-rocket-boost="true"]) .aura-blur-image {
    display: block !important;
    filter: blur(35px) saturate(220%) brightness(0.85) !important;
    opacity: 0.72 !important;
    animation: auraImageDrift 12s ease-in-out infinite alternate !important;
    will-change: transform !important;
  }

  /* Turbo Rocket Boost: Static gradient fallback for battery saving */
  html[data-rocket-boost="true"] .aura-orb,
  html[data-rocket-boost="true"] .aura-blur-image {
    animation: none !important;
    will-change: auto !important;
  }

  html[data-rocket-boost="true"] .aura-orb-3,
  html[data-rocket-boost="true"] .aura-orb-4 {
    display: none !important;
  }

  .living-aura-backdrop {
    background: var(--aura-base, #07080c) !important;
    contain: paint !important;
  }

  .fullscreen-header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto clamp(8px, 1.5vh, 16px) auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 40px;
  }

  .fs-header-side.left,
  .fs-header-side.right {
    width: 36px;
    z-index: 3;
  }

  .fullscreen-header .close-modal-btn,
  .fullscreen-header .fs-header-lyrics-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  }

  .fullscreen-header .close-modal-btn:active,
  .fullscreen-header .fs-header-lyrics-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.18);
  }

  .fullscreen-title-heading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: calc(100% - 90px);
    padding: 0 4px;
    pointer-events: none;
    z-index: 2;
  }

  .fs-header-sub {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .fs-header-main {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
  }

  .fs-bottom-dock {
    max-width: 240px;
    margin-top: 12px;
    padding: 0 4px;
  }

  .fs-circle-btn,
  .fs-tool-pill-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
  }

  .fullscreen-content-grid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
  }

  /* Main Artwork View on Mobile */
  .fullscreen-artwork-col {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  /* Artwork Area: takes up available upper space and centers artwork */
  .fs-artwork-area {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: clamp(4px, 1.2vh, 14px) 0;
  }

  .large-artwork-wrapper {
    width: 100%;
    max-width: min(84vw, 360px);
    max-height: min(84vw, 360px, 44vh);
    aspect-ratio: 1 / 1;
    border-radius: clamp(18px, 5vw, 26px);
    margin: 0 auto;
    box-shadow: 0 20px 50px -8px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 1;
    min-height: 160px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  }

  .fullscreen-player-modal.is-paused .large-artwork-wrapper {
    transform: scale(0.88);
    box-shadow: none;
    opacity: 0.88;
  }

  /* Unified Controls Deck: tight, consistent, cohesive Apple Music spacing */
  .fs-controls-deck {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 18px);
    flex-shrink: 0;
    padding: 0 8px clamp(4px, 1vh, 8px) 8px;
    box-sizing: border-box;
    overflow: visible;
  
  position: relative !important;
  z-index: 5000 !important;}

  .fullscreen-meta-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    flex-shrink: 0;
    padding: 0 6px;
    gap: 14px;
    box-sizing: border-box;
  }

  .fullscreen-meta-text {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .fullscreen-track-title {
    font-size: clamp(20px, 5.2vw, 24px);
    font-weight: 750;
    color: #ffffff;
    line-height: 1.22;
    margin: 0 0 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  .fullscreen-track-artist {
    font-size: clamp(15px, 4vw, 17px);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fs-like-heart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .fs-like-heart:active {
    transform: scale(0.88);
  }

  .fs-like-heart.liked {
    color: var(--accent-primary); background: var(--accent-glass); border-color: var(--glass-border-accent); box-shadow: 0 0 14px var(--accent-glow);
  }

  .fs-playback-bar {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: visible;
  }

  .fs-playback-bar .progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
    transition: height 0.15s ease, background 0.15s ease;
  }

  .fs-playback-bar .progress-track::before {
    content: "";
    position: absolute;
    top: -24px;
    bottom: -24px;
    left: -10px;
    right: -10px;
    cursor: pointer;
    z-index: 10;
  }

  .fs-playback-bar:hover .progress-track,
  .fs-playback-bar:active .progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.38);
  }

  .fs-playback-bar .progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    position: relative;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: none !important;
  }

  .fs-playback-bar .progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.9);
    opacity: 1;
  }

  .fs-time-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
  }

  .fs-time-row .time-label {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
  }

  .fs-controls-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    flex-shrink: 0;
    padding: 0 6px;
    box-sizing: border-box;
  }



  .fs-play-pause-btn {
    width: clamp(62px, 16vw, 70px);
    height: clamp(62px, 16vw, 70px);
    font-size: clamp(22px, 5.8vw, 26px);
    background: var(--accent-gradient, #dfb76c);
    color: var(--accent-contrast, #08080a);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px var(--accent-glow, rgba(223, 183, 108, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  }

  .fs-play-pause-btn:active {
    transform: scale(0.92);
  }

  .fs-control-btn {
    width: clamp(38px, 9.8vw, 44px);
    height: clamp(38px, 9.8vw, 44px);
    font-size: clamp(15px, 4vw, 18px);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
  }

  .fs-control-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.16);
  }

  .fs-control-btn.active {
    color: var(--accent-primary); background: var(--accent-glass); border-color: var(--glass-border-accent); box-shadow: 0 0 6px var(--accent-glow);
  }

  .fs-seek-svg {
    width: clamp(22px, 5.8vw, 26px);
    height: clamp(22px, 5.8vw, 26px);
  }

  /* Hide volume slider row on mobile - phones control volume via physical hardware buttons */
  .fs-tools-row,
  .fs-volume-wrapper {
    display: none !important;
  }

  /* Fullscreen Lyrics Mode on Mobile */
  .fullscreen-lyrics-col {
    display: none;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    padding: 24px 18px;
    background: rgba(14, 16, 24, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 18px;
    box-sizing: border-box;
  }

  .fullscreen-lyrics-col::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
  }

  .fullscreen-player-modal.show-lyrics .fullscreen-artwork-col {
    display: none;
  }

  .fullscreen-player-modal.show-lyrics .fullscreen-lyrics-col {
    display: flex;
  }

  .lyric-line {
    font-size: 20px;
    line-height: 1.5;
  }

  .lyric-line.active {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 35px var(--accent-glow);
  }
}

/* Extra Compact Mobile Screens (e.g. iPhone SE, height <= 700px) */
@media (max-width: 768px) and (max-height: 700px) {
  .fullscreen-player-modal {
    padding: 10px 18px 14px 18px;
  }

  .fullscreen-header {
    margin-bottom: 4px;
  }

  .large-artwork-wrapper {
    max-height: 28vh;
    max-width: 200px;
    min-height: 120px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .fullscreen-track-title {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .fullscreen-track-artist {
    font-size: 13px;
  }

  .fs-playback-bar {
    margin-bottom: 6px;
    gap: 4px;
  }

  .fs-controls-wrapper {
    margin-bottom: 8px;
  }

  .fs-play-pause-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .fs-control-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .fs-seek-svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   Fullscreen progress bar — Beauty Pass (gloss + gold knob)
   ============================================================ */
.fs-playback-bar {
  gap: 8px;
}

.fs-playback-bar .time-label {
  font-size: 12.5px;
  font-weight: 700;
}

#fsCurrentTimeLabel {
  color: #ffffff;
}

#fsDurationLabel {
  color: rgba(255, 255, 255, 0.45);
}

.fs-playback-bar .progress-track {
  flex: none;
  height: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fs-playback-bar:hover .progress-track {
  height: 9px;
}

.fs-playback-bar .progress-fill {
  box-shadow: 0 0 14px var(--accent-glow-strong);
  overflow: visible;
}

/* Static top gloss on the fill (zero animation cost) */
.fs-playback-bar .progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.fs-playback-bar .progress-handle {
  width: 16px;
  height: 16px;
  right: -8px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9d9e3 70%);
  border: 2px solid var(--accent-primary, #dfb76c);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 14px var(--accent-glow);
}

/* Same (0,3,0) tie-breaker for the knob (beats design-system white) */
.fs-playback-bar .progress-track .progress-handle {
  width: 16px !important;
  height: 16px !important;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9d9e3 70%) !important;
  border: 2px solid var(--accent-primary, #dfb76c) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 14px var(--accent-glow) !important;
}

/* ============================================================
   Guaranteed visible elapsed fill (solid fallback under var).
   Specificity (0,3,0) + later file order beats the
   design-system [data-theme] rule, so the fill always paints.
   ============================================================ */
.fs-playback-bar .progress-track .progress-fill,
.playback-bar .progress-track .progress-fill {
  background: linear-gradient(135deg, var(--accent-primary, #dfb76c) 0%, var(--accent-secondary, #ecd094) 50%, var(--accent-hover, #b88636) 100%) !important;
  background: var(--accent-gradient) !important;
}

/* ============================================================
   Mobile fullscreen scrub bar — chunky premium edition
   ============================================================ */
@media (max-width: 768px) {
  .fs-playback-bar {
    gap: 9px;
    padding: 6px 4px;
  }
  .fs-playback-bar .progress-track {
    flex: none;
    height: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.13));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  .fs-playback-bar:hover .progress-track,
  .fs-playback-bar:active .progress-track {
    height: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18));
  }
  .fs-playback-bar .progress-fill {
    box-shadow: 0 0 16px var(--accent-glow-strong);
    overflow: visible;
  }
  .fs-playback-bar .progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
  }
  .fs-playback-bar .progress-handle {
    width: 19px;
    height: 19px;
    right: -9px;
    background: radial-gradient(circle at 35% 30%, #ffffff, #d5d5e2 70%);
    border: 2.5px solid var(--accent-primary, #dfb76c);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow);
  }
  .fs-playback-bar .progress-track .progress-handle {
    width: 19px !important;
    height: 19px !important;
    background: radial-gradient(circle at 35% 30%, #ffffff, #d5d5e2 70%) !important;
    border: 2.5px solid var(--accent-primary, #dfb76c) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow) !important;
  }
  .fs-playback-bar:active .progress-handle {
    transform: translateY(-50%) scale(1.25);
  }
  .fs-time-row .time-label {
    font-size: 12.5px;
    font-weight: 700;
  }
}



/* ============================================================
   Fullscreen ••• menu as bottom sheet on phones.
   (LAST in file on purpose: same-specificity desktop dropdown
   above would otherwise win and clip off narrow screens.)
   ============================================================ */
@media (max-width: 768px) {
  .fs-more-dropdown {
    position: absolute;
    bottom: calc(100% + 12px);
    top: auto;
    right: 0;
    left: auto;
    width: 226px;
    max-width: calc(100vw - 28px);
    max-height: min(320px, calc(100vh - 100px));
    max-height: min(320px, calc(100dvh - 100px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    padding: 6px;
    transform-origin: bottom right;
    transform: translateY(6px) scale(0.93);
    box-sizing: border-box;
  }
  .fs-more-menu-wrapper.open .fs-more-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
  .fs-more-item {
    padding: 8px 11px;
    font-size: 13.5px;
    min-height: 40px;
  }
}

/* Position floating controls cleanly above the home indicator in installed iOS PWAs. */
@media (max-width: 768px) {
  html.is-standalone .mobile-nav-dock-wrapper,
  html.is-ios.is-standalone .mobile-nav-dock-wrapper {
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) - 4px)) !important;
  }

  html.is-standalone .bottom-player,
  html.is-ios.is-standalone .bottom-player {
    bottom: calc(58px + max(18px, calc(env(safe-area-inset-bottom, 0px) - 4px))) !important;
  }
}



.fs-more-item {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

.fs-more-item * {
  pointer-events: none !important;
}

/* ============================================================
   Fullscreen Player Apple-Music Style Song Transitions
   ============================================================ */

.fs-artwork-area {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.aura-blur-image {
  transition: opacity 0.45s ease, filter 0.45s ease;
}

/* Artwork Exit Animations */
.large-artwork-wrapper.fs-slide-out-left {
  animation: fsArtworkSlideOutLeft 0.16s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  pointer-events: none;
}

.large-artwork-wrapper.fs-slide-out-right {
  animation: fsArtworkSlideOutRight 0.16s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  pointer-events: none;
}

.large-artwork-wrapper.fs-fade-out {
  animation: fsArtworkFadeOut 0.14s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  pointer-events: none;
}

/* Artwork Enter Animations */
.large-artwork-wrapper.fs-slide-in-right {
  animation: fsArtworkSlideInRight 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.large-artwork-wrapper.fs-slide-in-left {
  animation: fsArtworkSlideInLeft 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.large-artwork-wrapper.fs-fade-in {
  animation: fsArtworkFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Metadata Transitions */
.fullscreen-meta-text.fs-meta-out {
  animation: fsMetaSlideOut 0.14s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.fullscreen-meta-text.fs-meta-in {
  animation: fsMetaSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fsArtworkSlideOutLeft {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-38px, 0, 0) scale(0.92);
    opacity: 0;
  }
}

@keyframes fsArtworkSlideInRight {
  0% {
    transform: translate3d(42px, 0, 0) scale(0.91);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes fsArtworkSlideOutRight {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(38px, 0, 0) scale(0.92);
    opacity: 0;
  }
}

@keyframes fsArtworkSlideInLeft {
  0% {
    transform: translate3d(-42px, 0, 0) scale(0.91);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes fsArtworkFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.94);
    opacity: 0;
  }
}

@keyframes fsArtworkFadeIn {
  0% {
    transform: scale(0.93);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fsMetaSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0;
  }
}

@keyframes fsMetaSlideIn {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

