/* =============================================
   Music Player - JioSaavn-Inspired Redesign
   ============================================= */

/* =============================================
   Global Accessibility - Touch Target Sizes
   ============================================= */
button:not(.play-btn-sm), 
a:not(.song-row-title):not(.song-row-artist):not(.song-row-details a):not(.card-subtitle a):not(.song-artist), 
.btn, 
.clickable, 
[role="button"],
.play-btn,
.action-btn,
.music-card,
.control-btn,
.player-btn {
    min-height: 44px;
    min-width: 44px;
}

/* Song row itself doesn't need min-width */
.song-row {
    min-height: 56px;
    min-width: auto;
}

/* Smaller inline text links - 22px height */
.card-subtitle a,
.song-artist,
.song-row-artist,
.song-row-title,
.song-row-details a,
.song-row .song-info a,
.breadcrumb a {
    min-height: 22px;
    min-width: auto;
}

/* Icon-only buttons should be square touch targets */
.icon-btn,
.player-control-btn,
.volume-btn,
.repeat-btn,
.shuffle-btn,
.like-btn,
.more-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---- JioSaavn-style Top Progress Line ---- */
.player-top-progress {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: rgba(255,255,255,0.06) !important;
  z-index: 10 !important;
  cursor: pointer !important;
  transition: height 0.15s ease !important;
}
.player-top-progress:hover {
  height: 5px !important;
}
.player-top-progress-fill {
  height: 100% !important;
  width: 0% !important;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color))) !important;
  border-radius: 0 2px 2px 0 !important;
  transition: width 0.2s linear !important;
  position: relative !important;
}
.player-top-progress:hover .player-top-progress-fill {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color))) !important;
  filter: brightness(1.15) !important;
}
.player-top-progress-fill::after {
  content: '' !important;
  position: absolute !important;
  right: -1px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(0) !important;
  width: 8px !important;
  height: 8px !important;
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-color) 50%, transparent) !important;
  transition: transform 0.15s ease !important;
}
.player-top-progress:hover .player-top-progress-fill::after {
  transform: translateY(-50%) scale(1) !important;
}

/* ---- Player Bar Container ---- */
.player,
#musicPlayer,
div.player {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0 !important;
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  background: linear-gradient(180deg, var(--bg-elevated, #1a1a2e) 0%, var(--bg-primary, #16161a) 100%) !important;
  border-top: none !important;
  z-index: 99999 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5) !important;
  overflow: visible !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Body padding for player */
body {
  padding-bottom: 100px !important;
}
.main-content, main, #main-content, .app-content {
  padding-bottom: 110px !important;
  margin-bottom: 0 !important;
}
.container {
  margin-bottom: 20px !important;
}

/* Hide decorative extras */
.player-glow,
.mobile-expand-handle,
.cover-shadow,
.track-tag {
  display: none !important;
}

/* ---- Player Content Flex ---- */
.player-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  gap: 20px !important;
  padding: 0 24px !important;
  position: relative !important;
}

/* ===== LEFT: Song Info ===== */
.player-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 220px !important;
  max-width: 320px !important;
  flex: 1 !important;
  padding: 0 !important;
}

.cover-stack {
  width: 54px !important;
  height: 54px !important;
  flex-shrink: 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35) !important;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1) !important;
  position: relative !important;
}
.cover-stack:hover {
  transform: scale(1.06) !important;
}
.cover-stack img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
}

.track-meta {
  min-width: 0 !important;
  flex: 1 !important;
}
.track-meta h4 {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
}
.track-meta h4:hover {
  color: var(--accent-color) !important;
  text-decoration: none !important;
}
.track-meta p {
  margin: 2px 0 0 !important;
  font-size: 11px !important;
  color: #8e8ea0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
}
.track-meta p:hover {
  color: #b8b8cc !important;
  text-decoration: none !important;
}

/* Heart / Like */
.track-actions {
  display: flex !important;
  margin-top: 4px !important;
  gap: 2px !important;
}
.track-like {
  background: none !important;
  border: none !important;
  color: #8e8ea0 !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  font-size: 15px !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}
.track-like:hover {
  color: #ff4757 !important;
  transform: scale(1.15) !important;
}
.track-like.liked, .track-like.active {
  color: #ff4757 !important;
}

/* ---- Visualizer ---- */
.player-visualizer {
  display: flex !important;
  align-items: flex-end !important;
  gap: 2px !important;
  height: 22px !important;
  margin-left: 10px !important;
}
.vbar {
  width: 3px !important;
  background: linear-gradient(to top, var(--accent-color), var(--accent-hover, var(--accent-color))) !important;
  border-radius: 2px !important;
  animation: vbounce 0.55s ease-in-out infinite !important;
}
.vbar:nth-child(1){animation-delay:0s;height:8px}
.vbar:nth-child(2){animation-delay:.08s;height:13px}
.vbar:nth-child(3){animation-delay:.16s;height:6px}
.vbar:nth-child(4){animation-delay:.12s;height:15px}
.vbar:nth-child(5){animation-delay:.2s;height:10px}
.vbar:nth-child(6){animation-delay:.04s;height:8px}
.vbar:nth-child(7){animation-delay:.24s;height:12px}
.vbar:nth-child(8){animation-delay:.1s;height:7px}
@keyframes vbounce {
  0%,100% { transform: scaleY(0.4) }
  50% { transform: scaleY(1.4) }
}
.player-visualizer.paused .vbar {
  animation: none !important;
  transform: scaleY(0.3) !important;
  opacity: 0.35 !important;
}

/* ===== CENTER: Transport + Progress ===== */
.player-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 2 !important;
  max-width: 620px !important;
  padding: 6px 0 !important;
}

.transport {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.transport-btn {
  background: transparent !important;
  border: none !important;
  color: #b3b3c6 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 50% !important;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
.transport-btn:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.07) !important;
  transform: scale(1.06) !important;
}
.transport-btn:active {
  transform: scale(0.93) !important;
}
.transport-btn.active {
  color: var(--accent-color) !important;
}
/* Dot indicator under active shuffle/repeat */
.transport-btn.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 1px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--accent-color) !important;
}

/* Play/Pause big button */
.transport-btn.play-toggle {
  background: #fff !important;
  color: #141425 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  font-size: 20px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1) !important;
  margin: 0 6px !important;
}
.transport-btn.play-toggle:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15) !important;
  background: #fff !important;
  color: #141425 !important;
}
.transport-btn.play-toggle:active {
  transform: scale(0.94) !important;
}
.transport-btn.play-toggle::after {
  display: none !important;
}

/* Small transport buttons (rewind/forward) */
.transport-btn.transport-btn-sm {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  font-size: 13px !important;
}
.skip-label {
  font-size: 7px !important;
  position: absolute !important;
  bottom: 5px !important;
  font-weight: 700 !important;
}

/* Hide crossfade */
#crossfadeBtn, #crossfadeMenu { display: none !important; }

/* ---- Progress Bar ---- */
.progress-area {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}
.progress-area > span, #currentTime, #totalTime {
  font-size: 11px !important;
  color: #7a7a90 !important;
  min-width: 40px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 500 !important;
}
.progress-track {
  flex: 1 !important;
  height: 3px !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: height 0.15s cubic-bezier(0.4,0,0.2,1) !important;
}
.progress-track:hover { height: 5px !important; }
.progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color))) !important;
  border-radius: 4px !important;
  position: absolute !important;
  left: 0; top: 0 !important;
  transition: width 0.1s linear !important;
}
.progress-track:hover .progress-fill {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color))) !important;
  filter: brightness(1.15) !important;
}
/* Thumb */
.progress-handle,
.progress-track::after {
  content: '' !important;
  position: absolute !important;
  width: 12px !important;
  height: 12px !important;
  background: #fff !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) scale(0) !important;
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.progress-track:hover::after,
.progress-track:hover .progress-handle {
  transform: translateY(-50%) scale(1) !important;
}

/* ===== RIGHT: Queue, Volume, Extras ===== */
.player-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  min-width: 220px !important;
  max-width: 340px !important;
  flex: 1 !important;
  padding: 0 !important;
}

.tray-group {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}
.tray-btn {
  background: transparent !important;
  border: none !important;
  color: #8e8ea0 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  padding: 7px !important;
  border-radius: 6px !important;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
}
.tray-btn:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.07) !important;
}
.tray-btn.active { color: var(--accent-color) !important; }

/* Queue badge */
#queueToggleBtn { position: relative !important; }
#queueToggleBadge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  background: var(--accent-color) !important;
  color: #000 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 10px !important;
  min-width: 16px !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* ---- Tray Modals (Volume, EQ, Sleep, Effects) ---- */
.tray-modal {
  position: absolute !important;
  bottom: 56px !important;
  right: 0 !important;
  background: var(--bg-elevated, #1a1a2e) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) !important;
  min-width: 280px !important;
  z-index: 100000 !important;
  display: none !important;
  animation: traySlideUp 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}
.tray-modal.active, .tray-modal.show { display: block !important; }
@keyframes traySlideUp {
  from { opacity: 0; transform: translateY(8px) }
  to { opacity: 1; transform: translateY(0) }
}

.tray-card { padding: 16px !important; }
.tray-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.tray-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #fff !important;
}
.tray-title span { font-size: 14px !important; font-weight: 600 !important; }
.tray-title small { font-size: 11px !important; color: #8e8ea0 !important; }
.tray-icon { font-size: 18px !important; color: var(--accent-color) !important; }
.tray-close {
  background: transparent !important;
  border: none !important;
  color: #8e8ea0 !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 6px !important;
  transition: all 0.15s !important;
}
.tray-close:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* Volume Slider */
.volume-slider, #volumeSlider {
  width: 90px !important;
  height: 3px !important;
  background: rgba(255,255,255,0.15) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.volume-slider::-webkit-slider-thumb, #volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 12px !important; height: 12px !important;
  background: #fff !important; border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}
.volume-slider::-moz-range-thumb, #volumeSlider::-moz-range-thumb {
  width: 12px !important; height: 12px !important;
  background: #fff !important; border-radius: 50% !important;
  border: none !important; cursor: pointer !important;
}

/* ===== DESKTOP STYLES (992px and above) ===== */
@media (min-width: 992px) {
  /* Hide all mobile-specific elements on desktop */
  .mobile-player-controls,
  .mobile-wave,
  .mobile-player-secondary,
  .mobile-volume-panel,
  .mobile-progress-bar,
  .mobile-time-display,
  .mobile-expand-handle {
    display: none !important;
  }
  
  /* Show desktop elements */
  .player-center,
  .player-right,
  .player-visualizer {
    display: flex !important;
  }
}

/* ===== TABLET STYLES (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .player,
  #musicPlayer,
  div.player {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }
  
  body {
    padding-bottom: 90px !important;
  }
  .main-content, main, #main-content, .app-content {
    padding-bottom: 95px !important;
  }
  
  .player-content {
    padding: 0 16px !important;
    gap: 0 !important;
  }
  
  /* Left section - tablet adjustments */
  .player-left {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 12px !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .cover-stack,
  .cover-stack img {
    width: 52px !important;
    height: 52px !important;
  }
  
  .track-meta {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 200px) !important;
  }
  
  .track-meta h4 {
    font-size: 0.9rem !important;
  }
  .track-meta p {
    font-size: 0.8rem !important;
  }
  .track-actions {
    display: none !important;
  }
  
  /* Hide desktop player sections on tablet - use mobile controls */
  .player-center,
  .player-right,
  .player-visualizer,
  .player-top-progress {
    display: none !important;
  }
  
  /* Show mobile progress bar */
  .mobile-progress-bar {
    display: block !important;
  }
  
  /* Show mobile controls on tablet */
  .mobile-player-controls {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  
  .mobile-player-controls .transport-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
  }
  
  .mobile-player-controls .transport-btn.play-toggle {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.4rem !important;
    margin: 0 6px !important;
  }
  
  /* Hide shuffle/repeat on tablet mini player */
  .mobile-player-controls .transport-btn.transport-btn-sm,
  #mobileShuffleBtn,
  #mobileRepeatBtn {
    display: none !important;
  }
  
  /* Hide other mobile-only elements */
  .mobile-wave,
  .mobile-player-secondary,
  .mobile-volume-panel,
  .mobile-time-display {
    display: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .player-right .tray-group[data-tray="effects"],
  .player-right .tray-group[data-tray="sleep"] { display: none !important; }
}
@media (max-width: 900px) {
  .player-right .tray-group { display: none !important; }
  #queueToggleBtn { display: flex !important; }
  .player-center { flex: 1 !important; }
  .player-left { min-width: 160px !important; max-width: 220px !important; }
  .player-visualizer { display: none !important; }
}

/* ===== MOBILE STYLES (767px and below) ===== */
@media (max-width: 767px) {

  /* ── Player Shell ── */
  .player,
  #musicPlayer,
  div.player {
    height: auto !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 0 !important;
    bottom: 0 !important;
    /* Glassmorphism background */
    background: linear-gradient(135deg,
      rgba(30, 30, 40, 0.97) 0%,
      rgba(18, 18, 24, 0.99) 100%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow:
      0 -2px 20px rgba(0,0,0,0.6),
      0 -1px 0 rgba(255,255,255,0.04) !important;
    overflow: hidden !important;
  }

  /* Safe area for iPhone X+ notch bottom */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .player, #musicPlayer, div.player {
      padding-bottom: env(safe-area-inset-bottom) !important;
      max-height: calc(72px + env(safe-area-inset-bottom)) !important;
    }
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
    .main-content, main, #main-content, .app-content {
      padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    }
  }

  body { padding-bottom: 80px !important; }
  .main-content, main, #main-content, .app-content {
    padding-bottom: 85px !important;
  }

  /* ── Progress bar — PROMINENT at the very top ── */
  .player-top-progress { display: none !important; }

  .mobile-progress-bar {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: rgba(255,255,255,0.08) !important;
    cursor: pointer !important;
    z-index: 20 !important;
    transition: height 0.15s ease !important;
  }
  .mobile-progress-bar:active { height: 5px !important; }

  .mobile-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg,
      var(--accent-color, #1DB954),
      var(--accent-hover, #1ed760)) !important;
    border-radius: 0 3px 3px 0 !important;
    width: 0% !important;
    transition: width 0.1s linear !important;
    position: relative !important;
  }

  /* Glowing dot at progress head */
  .mobile-progress-fill::after {
    content: '' !important;
    position: absolute !important;
    right: -3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 0 6px var(--accent-color, #1DB954) !important;
    opacity: 0 !important;
    transition: opacity 0.15s ease !important;
  }
  .mobile-progress-bar:active .mobile-progress-fill::after {
    opacity: 1 !important;
  }

  /* ── Player Content Layout ── */
  .player-content {
    flex-direction: row !important;
    padding: 0 10px 0 10px !important;
    padding-top: 5px !important;
    gap: 0 !important;
    align-items: center !important;
    height: 100% !important;
    min-height: 72px !important;
    position: relative !important;
  }

  /* ── Album Art ── */
  .cover-stack {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow:
      0 4px 14px rgba(0,0,0,0.5),
      0 0 0 1px rgba(255,255,255,0.08) !important;
    position: relative !important;
    transition: transform 0.2s ease !important;
  }
  .cover-stack:active { transform: scale(0.94) !important; }

  .cover-stack img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  /* Subtle vinyl pulse when playing */
  @keyframes vinylSpin {
    from { box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 2px rgba(29,185,84,0); }
    to   { box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 4px rgba(29,185,84,0.15); }
  }
  .mobile-player-controls .transport-btn.play-toggle:not([data-paused]) ~ * .cover-stack {
    animation: vinylSpin 1.6s ease-in-out infinite alternate !important;
  }

  /* ── Track Meta ── */
  .player-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
  }

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

  .track-meta h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
  }

  .track-meta p {
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }

  .track-meta .track-tag,
  .track-actions { display: none !important; }

  /* ── Hide desktop sections ── */
  .player-center,
  .player-right,
  .player-visualizer,
  .mobile-wave,
  .mobile-expand-handle,
  .mobile-player-secondary,
  .mobile-volume-panel,
  .mobile-time-display,
  .cover-shadow,
  .cover-hover-overlay { display: none !important; }

  /* ── Mobile Controls ── */
  .mobile-player-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important;
  }

  /* All control buttons */
  .mobile-player-controls .transport-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    transition: color 0.15s ease, transform 0.12s ease, background 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
  }

  .mobile-player-controls .transport-btn:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08) !important;
  }
  .mobile-player-controls .transport-btn:active {
    transform: scale(0.88) !important;
    opacity: 0.8 !important;
  }

  /* Hide shuffle/repeat on mini bar */
  .mobile-player-controls .transport-btn.transport-btn-sm,
  #mobileShuffleBtn,
  #mobileRepeatBtn { display: none !important; }

  /* ── Big Play/Pause button ── */
  .mobile-player-controls .transport-btn.play-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    background: var(--accent-color, #1DB954) !important;
    color: #000 !important;
    font-size: 1.3rem !important;
    margin: 0 2px !important;
    border-radius: 50% !important;
    box-shadow:
      0 2px 12px rgba(29,185,84,0.45),
      0 0 0 0 rgba(29,185,84,0) !important;
    transition: transform 0.15s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.15s cubic-bezier(0.4,0,0.2,1) !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
  }

  .mobile-player-controls .transport-btn.play-toggle:hover {
    background: var(--accent-color, #1DB954) !important;
    color: #000 !important;
    transform: scale(1.06) !important;
    box-shadow: 0 4px 18px rgba(29,185,84,0.55) !important;
  }

  .mobile-player-controls .transport-btn.play-toggle:active {
    transform: scale(0.92) !important;
    box-shadow: 0 1px 6px rgba(29,185,84,0.35) !important;
  }

  .mobile-player-controls .transport-btn.play-toggle i {
    pointer-events: none !important;
    margin-left: 1px !important; /* optical center for play icon */
  }

  /* ── Options (three-dots) button ── */
  #mobileOptionsBtn {
    color: rgba(255,255,255,0.5) !important;
    font-size: 1rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .player,
  #musicPlayer,
  div.player {
    min-height: 68px !important;
    max-height: 68px !important;
  }

  body { padding-bottom: 76px !important; }
  .main-content, main, #main-content, .app-content {
    padding-bottom: 80px !important;
  }

  .player-content {
    padding: 0 8px !important;
    padding-top: 4px !important;
    min-height: 68px !important;
  }

  .cover-stack,
  .cover-stack img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 7px !important;
  }

  .player-left { gap: 9px !important; }

  .track-meta h4 { font-size: 0.84rem !important; }
  .track-meta p  { font-size: 0.68rem !important; }

  .mobile-player-controls .transport-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.1rem !important;
  }

  .mobile-player-controls .transport-btn.play-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 1.2rem !important;
    margin: 0 1px !important;
  }

  #mobileOptionsBtn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.9rem !important;
  }
}

/* ===== EXTRA SMALL (360px and below) ===== */
@media (max-width: 360px) {
  .cover-stack,
  .cover-stack img {
    width: 40px !important;
    height: 40px !important;
  }

  .player-left { gap: 8px !important; }

  .track-meta h4 { font-size: 0.8rem !important; }
  .track-meta p  { font-size: 0.65rem !important; }

  .mobile-player-controls .transport-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1rem !important;
  }

  .mobile-player-controls .transport-btn.play-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.1rem !important;
  }

  #mobileOptionsBtn { display: none !important; }
}