/* ==========================================================================
   URMIWaVe Modern Public Player Styles
   Inspired by Navidrome & Spotify: Rotating Vinyl Disc & Responsive Adaptive UI
   ========================================================================== */

:root {
  --player-primary: var(--color-primary, #10b981);
  --player-primary-hover: var(--color-primary-hover, #059669);
  --player-accent: var(--color-accent, #1ed760);
  --player-bg: var(--bg-player, rgba(14, 15, 20, 0.94));
  --player-card: var(--bg-surface, rgba(26, 27, 35, 0.7));
  --player-border: var(--border-color, rgba(255, 255, 255, 0.08));
  --player-text-main: var(--text-primary, #ffffff);
  --player-text-muted: var(--text-secondary, #a1a1aa);
  --player-height-desktop: 94px;
  --player-height-tablet: 88px;
  --player-progress: 0%;
  --volume-progress: 80%;
  --vinyl-speed: 24s; /* Default rotation speed: relaxed, smooth, and gentle (24 seconds per full revolution) */
}

/* Static Mode: Turn off rotation if admin set turntable speed to static / 0 */
html[data-vinyl-rpm="static"] .vinyl-disc,
body[data-vinyl-rpm="static"] .vinyl-disc,
html[data-vinyl-rpm="0"] .vinyl-disc,
body[data-vinyl-rpm="0"] .vinyl-disc,
html[data-vinyl-rpm="static"] .radio-player-art-wrap,
body[data-vinyl-rpm="static"] .radio-player-art-wrap,
html[data-vinyl-rpm="0"] .radio-player-art-wrap,
body[data-vinyl-rpm="0"] .radio-player-art-wrap {
  animation: none !important;
}

/* ==========================================================================
   1. NAVIDROME-STYLE ROTATING VINYL DISC
   ========================================================================== */

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

@keyframes vinylGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(16, 185, 129, 0.25);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.45);
  }
}

/* Vinyl Container Wrapper */
.vinyl-record-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
}

/* The Rotating Logo Disc */
.vinyl-disc {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #18181b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: navidromeRotate var(--vinyl-speed, 26s) linear infinite;
  animation-duration: var(--vinyl-speed, 26s);
  animation-play-state: paused; /* Paused by default */
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* When playing: spinning starts / resumes smoothly */
.vinyl-disc.is-playing {
  animation-play-state: running;
  animation-name: navidromeRotate;
  animation-duration: var(--vinyl-speed, 26s);
}

/* Micro vinyl disc in Desktop Player Bar (Enlarged) */
.vinyl-disc-desktop {
  width: 68px;
  height: 68px;
}
.vinyl-disc-desktop:hover {
  transform: scale(1.05);
}

/* Mini vinyl disc in Mobile Player Bar (Enlarged) */
.vinyl-disc-mobile {
  width: 52px;
  height: 52px;
}

/* Large vinyl disc in Fullscreen Now Playing (Enlarged) */
.vinyl-disc-large {
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.vinyl-disc-large.is-playing {
  animation: navidromeRotate var(--vinyl-speed, 26s) linear infinite, vinylGlowPulse 4s ease-in-out infinite;
  animation-duration: var(--vinyl-speed, 26s), 4s;
  animation-play-state: running;
}

/* RPM Turntable Selector Pill Badge */
.rpm-speed-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rpm-speed-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--player-primary);
  transform: scale(1.05);
}

/* Removed Outer Vinyl Disc Grooves */
.vinyl-grooves {
  display: none !important;
}

/* Specular Reflection Sheen */
.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 66%,
    rgba(255, 255, 255, 0.10) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Full Round Song Artwork / Logo (Fills entire rotating circle) */
.vinyl-cover {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  box-shadow: none !important;
  background-color: #18181b;
  display: block;
}

/* Removed Spindle Hole so full round logo is completely visible */
.vinyl-spindle {
  display: none !important;
}

/* Animated Equalizer Wave Bars */
.audio-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}
.audio-equalizer .bar {
  width: 2.5px;
  height: 4px;
  background-color: var(--player-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.audio-equalizer.is-playing .bar:nth-child(1) {
  animation: barBounce 0.9s ease-in-out infinite alternate;
}
.audio-equalizer.is-playing .bar:nth-child(2) {
  animation: barBounce 1.2s ease-in-out infinite 0.2s alternate;
}
.audio-equalizer.is-playing .bar:nth-child(3) {
  animation: barBounce 0.8s ease-in-out infinite 0.4s alternate;
}
.audio-equalizer.is-playing .bar:nth-child(4) {
  animation: barBounce 1.1s ease-in-out infinite 0.1s alternate;
}

@keyframes barBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   2. PUBLIC PLAYER CONTAINER (GLASSMORPHISM & ADAPTIVE)
   ========================================================================== */

.public-player-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--player-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid var(--player-border);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
  padding: 10px 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

@media (min-width: 768px) {
  .public-player-footer {
    padding: 12px 24px;
    height: var(--player-height-desktop);
  }
}

.player-main-grid {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* Left Zone: Song Info */
.player-left-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
  max-width: 360px;
  flex: 1;
}

.player-song-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.3;
}

.player-song-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--player-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.player-meta-btn,
.player-song-artist,
.player-song-album {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 2.5px 9px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  line-height: 1.35;
  user-select: none;
  backdrop-filter: blur(8px);
}
.player-meta-btn:hover,
.player-song-artist:hover,
.player-song-album:hover {
  background: rgba(29, 185, 84, 0.18);
  border-color: rgba(29, 185, 84, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(29, 185, 84, 0.25);
}
.player-meta-btn:hover i,
.player-song-artist:hover i,
.player-song-album:hover i {
  color: var(--player-primary);
}
.player-meta-btn:active,
.player-song-artist:active,
.player-song-album:active {
  transform: translateY(0) scale(0.97);
  background: rgba(29, 185, 84, 0.3);
}
.player-meta-btn.hidden,
.player-song-album.hidden {
  display: none !important;
}

/* Center Zone: Playback Controls & Scrubber */
.player-center-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 2;
  max-width: 620px;
  width: 100%;
}

.player-control-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .player-control-cluster {
    gap: 22px;
  }
}

/* Control Buttons */
.player-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.player-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}
.player-btn:active {
  transform: scale(0.94);
}

/* Toggle Active State (Shuffle / Repeat) */
.player-btn.active-toggle {
  color: var(--player-primary);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.player-btn.active-toggle::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--player-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--player-primary);
}

/* Repeat One Badge */
.repeat-badge {
  position: absolute;
  top: 1px;
  right: -2px;
  font-size: 9px;
  font-weight: 800;
  background: var(--player-primary);
  color: black;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Prominent Play/Pause Button */
.player-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-gradient, linear-gradient(135deg, #10b981 0%, #1ed760 100%));
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px var(--color-glow, rgba(16, 185, 129, 0.4));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.player-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
  color: #000000;
}
.player-play-btn:active {
  transform: scale(0.96);
}

/* Scrubber Timeline Row */
.player-timeline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.725rem;
  color: var(--player-text-muted);
}

.timeline-time {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Custom Interactive Range Sliders */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    var(--player-primary) 0%,
    var(--player-primary) var(--player-progress, 0%),
    rgba(255, 255, 255, 0.15) var(--player-progress, 0%),
    rgba(255, 255, 255, 0.15) 100%
  );
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.custom-range-slider:hover {
  height: 7px;
}

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

.custom-range-slider:hover::-webkit-slider-thumb,
.custom-range-slider:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1.2);
  background: #ffffff;
}

.custom-range-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  opacity: 0;
}
.custom-range-slider:hover::-moz-range-thumb {
  opacity: 1;
}

/* Volume Slider Progress Fill */
.volume-range-slider {
  background: linear-gradient(
    to right,
    var(--player-primary) 0%,
    var(--player-primary) var(--volume-progress, 80%),
    rgba(255, 255, 255, 0.15) var(--volume-progress, 80%),
    rgba(255, 255, 255, 0.15) 100%
  );
}

/* Right Zone: Volume & Utilities */
.player-right-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 180px;
  max-width: 320px;
  flex: 1;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-slider-wrap {
  width: 90px;
}

/* Player Action Buttons (Share, etc.) */
.player-action-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-action-btn:hover {
  color: var(--color-primary, #6366f1);
  transform: scale(1.15);
}


/* ==========================================================================
   3. MOBILE DOCKED FLOATING MINI PLAYER
   ========================================================================== */

.mobile-mini-player {
  position: fixed;
  bottom: 64px; /* Docked right above the mobile bottom nav bar */
  left: 12px;
  right: 12px;
  z-index: 55;
  background: rgba(18, 19, 25, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

/* Top Progress Line on Mini Player */
.mobile-mini-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.1);
}
.mobile-mini-progress-fill {
  height: 100%;
  width: var(--player-progress, 0%);
  background: var(--theme-gradient, linear-gradient(90deg, #10b981, #1ed760));
  box-shadow: 0 0 8px var(--color-glow, rgba(16, 185, 129, 0.8));
  transition: width 0.1s linear;
}

.mobile-mini-info {
  flex: 1;
  overflow: hidden;
  line-height: 1.25;
}

.mobile-mini-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-meta-btn,
.mobile-mini-artist,
.mobile-mini-album {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 1.5px 7px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  line-height: 1.3;
  user-select: none;
}
.mobile-meta-btn:hover,
.mobile-mini-artist:hover,
.mobile-mini-album:hover,
.mobile-meta-btn:active,
.mobile-mini-artist:active,
.mobile-mini-album:active {
  background: rgba(29, 185, 84, 0.22);
  border-color: rgba(29, 185, 84, 0.6);
  color: #ffffff;
  transform: scale(0.97);
}
.mobile-meta-btn:hover i,
.mobile-mini-artist:hover i,
.mobile-mini-album:hover i {
  color: var(--player-primary);
}
.mobile-meta-btn.hidden,
.mobile-mini-album.hidden {
  display: none !important;
}

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

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(10, 11, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  padding: 0 4px;
}

.mobile-nav-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #71717a;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 4px 2px;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.15s ease;
  user-select: none;
  text-align: center;
}
.mobile-nav-link i {
  font-size: 1.1rem;
}
.mobile-nav-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--player-primary);
}
.mobile-nav-link:active {
  transform: scale(0.92);
}

/* ==========================================================================
   4. FULLSCREEN "NOW PLAYING" VINYL MODAL (NAVIDROME STYLE)
   ========================================================================== */

.now-playing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #181920 0%, #0d0e12 60%, #060709 100%);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow-y: auto;
}

.now-playing-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Ambient glow backdrop based on album artwork */
.now-playing-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.modal-inner-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-bottom: 24px;
}

/* Top Modal Bar */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-down-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal-down-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(2px);
}

.modal-header-title {
  text-align: center;
}
.modal-header-title h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--player-primary);
  font-weight: 800;
}
.modal-header-title p {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e4e4e7;
}

/* Center Disc Showcase */
.modal-disc-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

/* Song Info in Modal */
.modal-track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-track-meta {
  overflow: hidden;
  line-height: 1.3;
}
.modal-track-meta h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}
.modal-meta-btn,
.modal-track-artist,
.modal-track-album {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  backdrop-filter: blur(12px);
  user-select: none;
}
.modal-meta-btn:hover,
.modal-track-artist:hover,
.modal-track-album:hover {
  background: rgba(29, 185, 84, 0.24);
  border-color: rgba(29, 185, 84, 0.65);
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.32);
}
.modal-meta-btn:hover i,
.modal-track-artist:hover i,
.modal-track-album:hover i {
  color: var(--player-primary);
}
.modal-meta-btn:active,
.modal-track-artist:active,
.modal-track-album:active {
  transform: translateY(0) scale(0.98);
  background: rgba(29, 185, 84, 0.35);
}
.modal-meta-btn.hidden,
.modal-track-album.hidden {
  display: none !important;
}

/* Modal Controls Cluster */
.modal-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 20px 0;
}

.modal-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--theme-gradient, linear-gradient(135deg, #10b981 0%, #1ed760 100%));
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px var(--color-glow, rgba(16, 185, 129, 0.5));
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.modal-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
}
.modal-play-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   5. QUEUE DRAWER MODAL
   ========================================================================== */

.queue-drawer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .queue-drawer-modal {
    align-items: center;
  }
}
.queue-drawer-modal.is-open {
  display: flex;
}

.queue-drawer-content {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .queue-drawer-content {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.queue-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.queue-list {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.875rem;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.queue-item.is-current {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--player-primary);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINT TUNING
   ========================================================================== */

/* Mobile view (< 768px) */
@media (max-width: 767px) {
  .desktop-player-bar {
    display: none !important;
  }
  .mobile-mini-player {
    display: flex !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
}

/* Tablet & Desktop view (>= 768px) */
@media (min-width: 768px) {
  .mobile-mini-player {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
  .desktop-player-bar {
    display: block !important;
  }
}

/* Tablet view (768px - 1023px) specifics */
@media (min-width: 768px) and (max-width: 1023px) {
  .player-main-grid {
    gap: 10px;
  }
  .player-left-zone {
    min-width: 160px;
    max-width: 260px;
  }
  .vinyl-disc-desktop {
    width: 58px;
    height: 58px;
  }
  .volume-slider-wrap {
    width: 60px;
  }
  .player-control-cluster {
    gap: 14px;
  }
}

/* ==========================================================================
   7. MODAL STACKING & OVERLAY ELEVATION
   Ensure Share Modal, Settings, and Detail Modals always show on top of
   the playing vinyl screen, queue drawer, and player bars.
   ========================================================================== */

.detail-modal {
  z-index: 100010 !important;
}

#shareModal,
.share-modal {
  z-index: 100050 !important;
}

#settingsModal {
  z-index: 100060 !important;
}

#shareToastNotification {
  z-index: 1000000 !important;
}