/* Custom styles for Lyusin - Modern Spotify Lite Web App */
:root {
  --primary-color: #1db954;
  --primary-hover: #1ed760;
  --bg-base: #121212;
  --bg-card: #181818;
  --bg-card-hover: #262626;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --player-height: 84px;
  --mobile-nav-height: 64px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Spotify */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: #3e3e3e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Horizontal Chip Filter Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Quick Card Spotify */
.quick-card {
  background-color: rgba(255, 255, 255, 0.07);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.quick-card:hover {
  background-color: rgba(255, 255, 255, 0.16);
  transform: scale(1.02);
}
.quick-card .quick-play-btn {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}
.quick-card:hover .quick-play-btn {
  opacity: 1;
  transform: scale(1);
}

/* Card hover animation with glassmorphism */
.spotify-card {
  background-color: var(--bg-card);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.spotify-card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: rgba(29, 185, 84, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}
.spotify-card .play-btn-overlay {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.spotify-card:hover .play-btn-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Active Nav Link */
.nav-link-custom {
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-radius: 8px;
}
.nav-link-custom:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}
.nav-link-custom.active {
  color: #fff;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.12);
}
.nav-link-custom.active i {
  color: var(--primary-color) !important;
}

/* Custom Seekbar Slider */
.seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #3e3e3e;
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}
.seek-slider:hover {
  height: 6px;
}
.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transition: transform 0.15s ease;
}
.seek-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Bottom Player Bar */
.bottom-player {
  background-color: #181818;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
  z-index: 100;
}

/* Mobile Player Slide Up */
.mobile-fullscreen-player {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: radial-gradient(circle at top, #143522 0%, #0c1815 40%, #05080b 100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
}
.mobile-fullscreen-player.open {
  transform: translateY(0);
}

/* Mini Player on Mobile */
@media (max-width: 768px) {
  .bottom-player {
    bottom: var(--mobile-nav-height);
    margin: 0 8px 6px 8px;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

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

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

/* Rotating Vinyl Effect saat playing */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow {
  animation: spinSlow 12s linear infinite;
}

/* YouTube Iframe Hidden Wrapper */
#youtube-player-container {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Tactile Button Feedback */
button:active {
  transform: scale(0.95);
}

/* Glow Play Button */
.btn-play-glow {
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}
.btn-play-glow:hover {
  box-shadow: 0 6px 26px rgba(29, 185, 84, 0.65);
}

/* Chart Ranking Badges */
.rank-badge-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  font-weight: 900;
}
.rank-badge-2 {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: #fff;
  font-weight: 800;
}
.rank-badge-3 {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
  font-weight: 800;
}
