.fp-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.fp-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.fp-toggle:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: scale(1.08);
}

.fp-toggle.playing {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  animation: fp-pulse 3s ease-in-out infinite;
}

@keyframes fp-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 6px rgba(255,255,255,0.04); }
}

.fp-toggle svg {
  width: 18px;
  height: 18px;
}

.fp-mini {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  max-width: 300px;
}

.fp-container.expanded .fp-mini {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.fp-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fp-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 50px;
  max-width: 110px;
}

.fp-btn-playlist {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.fp-btn-playlist:hover {
  opacity: 1;
}

.fp-btn-playlist svg {
  width: 14px;
  height: 14px;
}

.fp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fp-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 50%;
}

.fp-btn:hover {
  color: #fff;
}

.fp-btn svg {
  width: 16px;
  height: 16px;
}

.fp-btn-play {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  padding: 6px;
}

.fp-btn-play:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.fp-btn-play svg {
  width: 14px;
  height: 14px;
}

.fp-play-icon,
.fp-pause-icon {
  display: none;
}

/* ===== Playlist Panel ===== */

.fp-playlist {
  position: absolute;
  bottom: 52px;
  left: 0;
  width: 260px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-container.playlist-open .fp-playlist {
  max-height: 380px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fp-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fp-playlist-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fp-btn-playlist-close {
  flex-shrink: 0;
}

.fp-btn-playlist-close svg {
  width: 14px;
  height: 14px;
}

.fp-playlist-list {
  overflow-y: auto;
  max-height: 320px;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.fp-playlist-list::-webkit-scrollbar {
  width: 4px;
}

.fp-playlist-list::-webkit-scrollbar-track {
  background: transparent;
}

.fp-playlist-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.fp-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

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

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

.fp-playlist-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.fp-playlist-item.active .fp-playlist-num {
  color: #fff;
}

.fp-eq-icon {
  width: 16px;
  height: 16px;
}

.fp-playlist-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-playlist-item.active .fp-playlist-name {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 480px) {
  .fp-container {
    bottom: 16px;
    left: 16px;
  }
  .fp-mini {
    max-width: 240px;
  }
  .fp-title {
    max-width: 70px;
  }
  .fp-playlist {
    width: 240px;
  }
}
