* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: "Circular Spotify Text", sans-serif;
}

body {
  height: 100vh;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-container {
  text-align: center;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.album-art-pulse {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(45deg, #5a5a5a, #3d3d3d);
  margin: 0 auto 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite ease-in-out;
}

.vinyl-disc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 30%, #111 100%);
  border: 2px solid #444;
  position: relative;
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.welcome-title {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 30px;
}

.wave-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 40px;
  align-items: flex-end;
}

.wave {
  width: 6px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  animation: wave 1.2s infinite ease-in-out;
}

.wave:nth-child(1) {
  animation-delay: 0s;
  height: 10px;
}
.wave:nth-child(2) {
  animation-delay: 0.2s;
  height: 20px;
}
.wave:nth-child(3) {
  animation-delay: 0.4s;
  height: 15px;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes wave {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 30px;
    background: #ffffff;
  }
}

.background-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  transition: background-image 1.5s ease-in-out;
  z-index: -2;
  background-repeat: no-repeat;
  animation: bgWave 25s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes bgWave {
  0%,
  100% {
    transform: scale(1.1) translate(0%, 0%);
  }
  25% {
    transform: scale(1.15) translate(2%, 1%);
  }
  50% {
    transform: scale(1.2) translate(-1%, 2%);
  }
  75% {
    transform: scale(1.12) translate(1%, -1%);
  }
}

@keyframes albumBgMove {
  0%,
  100% {
    transform: scale(1.3) translate(0%, 0%);
  }
  20% {
    transform: scale(1.35) translate(3%, 2%);
  }
  40% {
    transform: scale(1.4) translate(-2%, 4%);
  }
  60% {
    transform: scale(1.32) translate(4%, -2%);
  }
  80% {
    transform: scale(1.38) translate(-3%, 1%);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.music-player {
  padding: 40px;
  width: 450px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.music-player.lyrics-active {
  transform: translateX(200px);
}

.song-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.album-art {
  width: 100%;
  aspect-ratio: 1;
  max-width: 370px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  align-self: center;
}

.album-art.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.album-art:hover {
  transform: scale(1.02);
}

.song-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.song-details {
  text-align: left;
  flex: 1;
}

.song-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.artist-name {
  font-size: 0.95rem;
  opacity: 0.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.favorite-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
}

.favorite-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #ff4757;
}

.favorite-btn.active i {
  font-weight: 900;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

.control-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.control-btn.active:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

/* Click feedback pulse animation */
.control-btn.clicked {
  animation: buttonPulse 0.3s ease-out;
}

@keyframes buttonPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

.play-btn {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  background: #ffffff;
  border: none;
  color: #000000;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.play-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6);
}

/* Icon styling */
.control-btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.control-btn:hover i {
  transform: scale(1.1);
}

.play-btn i {
  font-size: 1.5rem;
  margin-left: 2px; /* Center play icon visually */
}

#shuffleBtn i,
#repeatBtn i {
  font-size: 1rem;
}

#prevBtn i,
#nextBtn i {
  font-size: 1.2rem;
}

/* Next Song Tooltip */
.next-btn-wrapper {
  position: relative;
  display: inline-flex;
}

.next-song-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.next-song-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.next-btn-wrapper:hover .next-song-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Previous Song Tooltip */
.prev-btn-wrapper {
  position: relative;
  display: inline-flex;
}

.prev-song-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.prev-song-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.prev-btn-wrapper:hover .prev-song-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 3px;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 8px;
  font-weight: 400;
}

.progress-tooltip {
  position: absolute;
  bottom: 25px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.progress-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.progress-container {
  position: relative;
}

.playlist {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 10px 0 0 10px;
  padding: 20px;
  color: white;
  width: 300px;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(calc(100% - 20px));
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  z-index: 10;
  scrollbar-width: none;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.playlist::-webkit-scrollbar {
  display: none;
}

.playlist-trigger {
  display: block;
  position: fixed;
  right: 0;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 5;
}

.playlist-trigger:hover + .playlist,
.playlist:hover {
  transform: translateX(0);
  opacity: 1;
}

.playlist h3 {
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 5px;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.3);
}

.playlist-item .album-art-small {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.playlist-item-title .fav-icon {
  color: #ff4757;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.playlist-item-artist {
  font-size: 0.7rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.favorite {
  border-left: 2px solid #ff4757;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.loading {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

.error {
  color: #ff4444;
  text-align: center;
  font-size: 0.9rem;
}

.playlist::-webkit-scrollbar {
  width: 6px;
}

.playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.playlist-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

#searchInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

#searchInput:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

#clearSearch {
  position: absolute;
  right: 5px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#searchInput:not(:placeholder-shown) + #clearSearch {
  opacity: 1;
}

#clearSearch:hover {
  color: white;
}

.mobile-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.mobile-warning i {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.mobile-warning h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.mobile-warning p {
  color: #ccc;
  font-size: 1.2rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Apple Music Style Lyrics Container */
.lyrics-container {
  position: fixed;
  left: 50%;
  top: 0;
  width: 400px;
  height: 100vh;
  background: transparent;
  z-index: 5;
  transform: translateX(calc(-50% - 300px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.4s ease;
  backface-visibility: hidden;
}

.lyrics-container.active {
  transform: translateX(calc(-50% - 300px));
  opacity: 1;
  pointer-events: auto;
}

.lyrics-container:not(.active) {
  transform: translateX(calc(-50% - 400px));
  opacity: 0;
}

.lyrics-box {
  background: transparent;
  padding: 0 20px;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  position: relative;
}

.lyrics-box::-webkit-scrollbar {
  display: none;
}

/* Apple Music Style Lyrics Content */
.lyrics-content {
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  padding: 50vh 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Apple Music Style Lyrics Lines */
.lyrics-line {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.35);
  transition:
    color 0.4s ease-out,
    filter 0.4s ease-out,
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  padding: 6px 0;
  line-height: 1.3;
  word-break: break-word;
  white-space: pre-line;
  backface-visibility: hidden;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.02em;
  filter: blur(2px);
  opacity: 0.4;
  will-change: opacity, filter, color, transform;
  transform: translateY(0);
  transform-origin: left center;
}

.lyrics-line:hover {
  color: rgba(255, 255, 255, 0.6);
  filter: blur(1px);
}

/* Active lyrics line - Fade Slide Up style */
.lyrics-line.active {
  color: #ffffff;
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0.5;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Previous line (just passed) */
.lyrics-line.active-prev {
  color: rgba(255, 255, 255, 0.55);
  filter: blur(0.3px);
  opacity: 0.85;
  transform: translateY(-4px);
}

/* Next line (coming up) */
.lyrics-line.active-next {
  color: rgba(255, 255, 255, 0.5);
  filter: blur(0.2px);
  opacity: 0.85;
  transform: translateY(4px);
}

/* Lines 2 positions away */
.lyrics-line.far-prev,
.lyrics-line.far-next {
  color: rgba(255, 255, 255, 0.35);
  filter: blur(0.6px);
  opacity: 0.65;
}

/* Lines 3 positions away */
.lyrics-line.very-far-prev,
.lyrics-line.very-far-next {
  color: rgba(255, 255, 255, 0.25);
  filter: blur(0.8px);
  opacity: 0.45;
}

/* Lines more than 3 positions away - invisible */
.lyrics-line.hidden-lyric {
  opacity: 0;
  filter: blur(1px);
  transform: translateY(8px);
}

/* When user is scrolling, show all lyrics without blur */
.user-scrolling .lyrics-line {
  filter: none !important;
  opacity: 0.7 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.user-scrolling .lyrics-line.active {
  opacity: 1 !important;
  color: #ffffff !important;
}

.user-scrolling .lyrics-line.hidden-lyric {
  opacity: 0.5 !important;
  filter: none !important;
}

/* No lyrics message - no blur */
.no-lyrics-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: left;
  padding: 6px 0;
  letter-spacing: -0.02em;
}

/* Animated dots for instrumental/empty lyrics */
.lyrics-line.dots-placeholder {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lyrics-line.dots-placeholder .dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.3s;
}

.lyrics-line.dots-placeholder.active {
  filter: none !important;
  opacity: 1 !important;
}

.lyrics-line.dots-placeholder.active .dot {
  background: #ffffff;
}

/* Only animate when music is playing */
body.is-playing .lyrics-line.dots-placeholder.active .dot:nth-child(1) {
  animation: dotBounce 0.8s ease-in-out infinite;
  animation-delay: 0s;
}

body.is-playing .lyrics-line.dots-placeholder.active .dot:nth-child(2) {
  animation: dotBounce 0.8s ease-in-out infinite;
  animation-delay: 0.15s;
}

body.is-playing .lyrics-line.dots-placeholder.active .dot:nth-child(3) {
  animation: dotBounce 0.8s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes dotBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Fade Direction Effect */
.lyrics-line {
  transform: translateY(15px);
  transition:
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.4s ease,
    filter 0.4s ease,
    color 0.4s ease;
}

.lyrics-line.active {
  transform: translateY(0);
}

.lyrics-line.active-prev {
  transform: translateY(-5px);
}

.lyrics-line.active-next {
  transform: translateY(10px);
}

.lyrics-line.far-prev,
.lyrics-line.very-far-prev {
  transform: translateY(-10px);
}

.lyrics-line.far-next,
.lyrics-line.very-far-next {
  transform: translateY(15px);
}

.lyrics-line.hidden-lyric {
  transform: translateY(20px);
}

/* ========== NEW FEATURES STYLES ========== */

/* Song Title Row with Favorite Button */
.song-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favorite-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover {
  color: #ff6b8a;
  transform: scale(1.15);
}

.favorite-btn.active {
  color: #ff4d6d;
}

.favorite-btn.active i {
  font-weight: 900;
}

/* Favorite pulse animation */
@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.favorite-btn.animating {
  animation: heartPulse 0.5s ease;
}

/* Bottom Left Controls Container */
/* FAB Menu */
.fab-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 50;
}

.fab-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.fab-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.fab-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hamburger Animation */
.hamburger input {
  display: none;
}

.hamburger svg {
  width: 28px;
  height: 28px;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .line {
  fill: none;
  stroke: black;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition:
    stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke 300ms ease;
}

.hamburger .line-top-bottom {
  stroke-dasharray: 12 63;
}

.fab-toggle.active .line {
  stroke: white;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.fab-container.open .fab-menu {
  pointer-events: auto;
}

.fab-item,
.fab-item-wrapper {
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.fab-container.open .fab-item,
.fab-container.open .fab-item-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered animation delays - closing (reverse order) */
.fab-menu > *:nth-child(1) {
  transition-delay: 0ms;
}
.fab-menu > *:nth-child(2) {
  transition-delay: 40ms;
}
.fab-menu > *:nth-child(3) {
  transition-delay: 80ms;
}
.fab-menu > *:nth-child(4) {
  transition-delay: 120ms;
}
.fab-menu > *:nth-child(5) {
  transition-delay: 160ms;
}
.fab-menu > *:nth-child(6) {
  transition-delay: 200ms;
}

/* Staggered animation delays - opening (from bottom up) */
.fab-container.open .fab-menu > *:nth-child(1) {
  transition-delay: 200ms;
}
.fab-container.open .fab-menu > *:nth-child(2) {
  transition-delay: 160ms;
}
.fab-container.open .fab-menu > *:nth-child(3) {
  transition-delay: 120ms;
}
.fab-container.open .fab-menu > *:nth-child(4) {
  transition-delay: 80ms;
}
.fab-container.open .fab-menu > *:nth-child(5) {
  transition-delay: 40ms;
}
.fab-container.open .fab-menu > *:nth-child(6) {
  transition-delay: 0ms;
}

.fab-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(60, 60, 60, 0.95);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.fab-item:hover {
  background: rgba(80, 80, 80, 0.95);
  color: white;
  transform: scale(1.15) !important;
}

.fab-item.active {
  background: rgba(255, 255, 255, 0.9);
  color: black;
}

.fab-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fab-item-wrapper .fab-item {
  opacity: 1;
  transform: none;
}

/* Background Switcher */

.bg-switcher-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bg-switcher-menu.active {
  opacity: 1;
  visibility: visible;
}

.bg-switcher-option {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bg-switcher-option i {
  width: 16px;
  text-align: center;
}

.bg-switcher-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bg-switcher-option.active {
  color: #ffffff;
}

.bg-switcher-option.active::after {
  content: "✓";
  margin-left: auto;
  font-size: 0.8rem;
}

/* Sleep Timer Wrapper */
.sleep-timer-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn.small {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.control-btn.small i {
  font-size: 0.9rem;
}

/* Sleep Timer Menu */
.sleep-timer-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sleep-timer-menu.active {
  opacity: 1;
  visibility: visible;
}

.sleep-timer-option {
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  text-align: center;
}

.sleep-timer-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sleep-timer-option.cancel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 100, 100, 0.8);
}

.sleep-timer-option.cancel:hover {
  color: #ff6b6b;
}

.sleep-timer-display {
  font-size: 0.7rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  top: -25px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 700;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.sleep-timer-display.active {
  opacity: 1;
}

/* Up Next Container */
.up-next-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.up-next-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  font-weight: 600;
}

.up-next-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.up-next-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.up-next-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.up-next-item .album-art-tiny {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.up-next-item-info {
  flex: 1;
  min-width: 0;
}

.up-next-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
}

.up-next-item-artist {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.up-next-item-number {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  min-width: 16px;
}

/* Recently Played Section in Playlist */
.recently-played-section {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recently-played-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  padding: 0 10px;
  font-weight: 600;
}

/* Favorites Section in Playlist */
.favorites-section {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.favorites-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  padding: 0 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.favorites-header i {
  color: #ff4d6d;
  font-size: 0.8rem;
}

/* Playlist item with favorite indicator */
.playlist-item .favorite-indicator {
  color: #ff4d6d;
  font-size: 0.7rem;
  margin-left: auto;
  padding-left: 8px;
}

/* Enhanced Progress Bar Tooltip */
.progress-tooltip {
  position: absolute;
  bottom: 30px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.progress-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

/* Crossfade indicator */
.crossfade-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.crossfade-indicator.active {
  opacity: 1;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 25px;
  left: 25px;
  transform: translateX(-120%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.2rem;
  color: #ffffff;
}

.toast-icon i {
  display: block;
}

.toast-message {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  white-space: nowrap;
}

/* Stats Modal */
.stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.stats-modal.show {
  opacity: 1;
  visibility: visible;
}

.stats-modal-content {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 20px;
  padding: 30px;
  min-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.stats-modal.show .stats-modal-content {
  transform: scale(1);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-header h3 {
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-header h3 i {
  color: #ffffff;
}

.stats-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.stats-close:hover {
  color: #fff;
}

.stats-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: background 0.2s;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .welcome-overlay {
    display: none !important;
  }

  .music-player {
    display: none;
  }

  .mobile-warning {
    display: flex;
  }
}

/* Onboarding Tooltips */
.onboarding-tooltip {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.onboarding-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.onboarding-tooltip[data-target="album"] {
  left: 50%;
  top: 35%;
  transform: translate(-50%, 0);
}

.onboarding-tooltip[data-target="album"].visible {
  transform: translate(-50%, 0);
}

.onboarding-tooltip[data-target="album"]::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent;
}

.onboarding-tooltip[data-target="playlist"] {
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
}

.onboarding-tooltip[data-target="playlist"].visible {
  transform: translateY(-50%);
}

.onboarding-tooltip[data-target="playlist"]::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
}

.onboarding-tooltip strong {
  color: #000;
}

.tooltip-dismiss {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tooltip-dismiss:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Equalizer Modal */
.eq-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.eq-modal.active {
  opacity: 1;
  visibility: visible;
}

.eq-modal-content {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  min-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.eq-header h3 {
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eq-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.eq-close:hover {
  color: white;
}

.eq-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.eq-preset {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.eq-preset:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.eq-preset.active {
  background: white;
  color: black;
  border-color: white;
}

.eq-sliders {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  padding: 20px 0;
}

.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eq-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  writing-mode: vertical-lr;
  direction: rtl;
}

.eq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}

.eq-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.eq-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.eq-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Queue Badge */
.queue-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.queue-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Queue Modal */
.queue-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.queue-modal.active {
  opacity: 1;
  visibility: visible;
}

.queue-modal-content {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  min-width: 350px;
  max-width: 450px;
  max-height: 70vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.queue-header h3 {
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-actions {
  display: flex;
  gap: 10px;
}

.queue-clear {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.queue-clear:hover {
  background: rgba(255, 71, 87, 0.3);
}

.queue-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.queue-close:hover {
  color: white;
}

.queue-list {
  max-height: 50vh;
  overflow-y: auto;
}

.queue-empty {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  transition: background 0.2s;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.queue-item-art {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-artist {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.queue-item-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.queue-item-remove:hover {
  color: #ff4757;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: rgba(40, 40, 40, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.15s ease;
}

.context-menu.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.context-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.context-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.context-item i {
  width: 16px;
  text-align: center;
  opacity: 0.7;
}
