.floating-filters {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  min-width: 140px;
  max-width: 160px;
  max-height: 600px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.floating-filters.minimized .filter-content {
  display: none;
}

.floating-filters.minimized {
  min-width: 120px;
  max-height: 150px;
}

.filter-content {
  transition: opacity 0.2s ease;
}

.filter-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.filter-title {
  font-weight: bold;
  font-size: 12px;
  padding-right: 12px;
}

.filter-header-buttons {
  display: flex;
  gap: 4px;
}

.clear-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  transition: all 0.2s;
}

.clear-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff4757;
}

.clear-btn:active {
  background: rgba(255, 107, 107, 0.3);
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .clear-btn:hover {
    background: none;
    color: #ff6b6b;
  }
  
  .filter-header-buttons button:hover {
    background: none;
    color: inherit;
  }
  
  .minimize-btn:hover {
    background: none;
    color: #ccc;
  }
}

.filter-content {
  padding: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 12px;
}

.filter-section h4 {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #ccc;
  text-transform: uppercase;
}

.widget-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.widget-filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.widget-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.widget-filter-btn.active {
  background: #4CAF50;
  border-color: #4CAF50;
}

.widget-artist-filter-container {
  margin-bottom: 12px;
}

.widget-artist-filter-container h4 {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #ccc;
  text-transform: uppercase;
}

.widget-alphabet-categories {
  max-height: 200px;
  overflow-y: auto;
}

.widget-letter-section {
  margin-bottom: 3px;
}

.widget-letter-header {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
}

.widget-artist-list {
  max-height: 150px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.widget-artist-list.collapsed {
  max-height: 0;
  overflow: hidden;
}

.widget-artist-item {
  padding: 2px 8px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

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

.widget-artist-item.selected {
  background-color: #4CAF50;
  font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .floating-filters {
    right: 10px;
    bottom: 20px;
    min-width: 140px;
    max-width: 180px;
    position: fixed !important;
  }
  
  .filter-header {
    padding: 12px;
  }
  
  .clear-btn {
    padding: 6px 8px;
    font-size: 14px;
  }
  
  /* Disable hover effects on mobile */
  .clear-btn:hover {
    background: none;
    color: #ff6b6b;
  }
  
  .minimize-btn:hover {
    background: none;
    color: #ccc;
  }
}
