/* SpotiPlay Mobile Dynamics & Tactile Styling */

@keyframes eqBounce {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

@keyframes pulseNeon {
  0%, 100% {
    box-shadow: 0 0 15px rgba(13, 240, 138, 0.25), inset 0 0 10px rgba(13, 240, 138, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(13, 240, 138, 0.45), inset 0 0 15px rgba(13, 240, 138, 0.3);
  }
}

/* Touch Active Tactile Feedback */
.touch-press {
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.touch-press:active {
  transform: scale(0.96) !important;
  filter: brightness(1.15);
}

/* Neon Glow Accents */
.neon-glow-card {
  animation: pulseNeon 3s infinite ease-in-out;
}

/* Smooth Touch Carousel on Mobile */
.carousel-touch {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.carousel-touch > * {
  scroll-snap-align: center;
}

/* Mobile Drawer: strictly hidden by default and on desktop */
#mobile-drawer {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Mobile Drawer open state on small screens only */
@media (max-width: 639px) {
  #mobile-drawer.drawer-open {
    display: flex !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* On screens 640px and wider, strictly hide all mobile-specific overlays */
@media (min-width: 640px) {
  #mobile-drawer,
  #mobile-hamburger-btn,
  #mobile-quick-dl,
  #mobile-floating-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Floating Bottom Bar for Mobile */
#mobile-floating-bar {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
#mobile-floating-bar.hidden-bar {
  transform: translateY(130%) scale(0.95);
  opacity: 0;
  pointer-events: none;
}
#mobile-floating-bar.visible-bar {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Waveform Equalizer Bar Responsive Flex */
.eq-bar {
  flex: 1 1 0;
  max-width: 4px;
  min-width: 2px;
  border-radius: 9999px;
  background: #0df08a;
  display: inline-block;
  margin: 0;
  transition: height 0.12s ease;
}

/* Interactive Mini Player */
.interactive-player {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.90) 0%, rgba(6, 4, 13, 0.98) 100%);
  border: 1px solid rgba(13, 240, 138, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Mobile Quick DL Pill */
#mobile-quick-dl {
  white-space: nowrap;
}
