/**
 * 📚 Library Zone - Inbox Style
 * Clean, functional, productive - like an email inbox
 * Items arrive here first, then get routed to Lab or Crates
 */

/* ==================== LIBRARY CONTAINER ==================== */

.library-inbox {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 150px);
}

/* ==================== INBOX HEADER ==================== */

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.inbox-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inbox-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
  margin: 0;
}

.inbox-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.inbox-actions {
  display: flex;
  gap: 8px;
}

.inbox-action-btn {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-action-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.inbox-action-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.inbox-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ==================== BULK SELECT BAR ==================== */

.bulk-select-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bulk-select-bar.hidden {
  display: none;
}

.bulk-select-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-select-count {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
}

.bulk-select-actions {
  display: flex;
  gap: 8px;
}

.bulk-action-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #f5f0e8;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bulk-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bulk-action-btn.lab {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.bulk-action-btn.crates {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.bulk-action-btn.delete {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==================== DATE GROUPS ==================== */

.inbox-group {
  margin-bottom: 24px;
}

.inbox-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inbox-group-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.inbox-group-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ==================== ITEM ROWS ==================== */

.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(58, 58, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.inbox-item:hover {
  background: rgba(70, 70, 70, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.inbox-item.selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.inbox-item.playing {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Checkbox */
.inbox-item-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.inbox-item-checkbox:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

.inbox-item-checkbox.checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.inbox-item-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: bold;
}

/* Status Indicator */
.inbox-item-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.inbox-item-status.new {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.inbox-item-status.in-lab {
  background: #a855f7;
  animation: pulse-lab 1.5s infinite;
}

@keyframes pulse-lab {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.inbox-item-status.ready {
  background: #22c55e;
}

.inbox-item-status.in-crates {
  background: rgba(255, 255, 255, 0.3);
}

/* Artwork */
.inbox-item-artwork {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.inbox-item-artwork-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Play overlay on artwork */
.inbox-item-artwork-wrap {
  position: relative;
  flex-shrink: 0;
}

.inbox-item-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.inbox-item:hover .inbox-item-play-overlay {
  opacity: 1;
}

.inbox-item-play-btn {
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info Section */
.inbox-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inbox-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #f5f0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.inbox-item-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Source Badges */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.source-badge.underground {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.source-badge.vault {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.source-badge.imported {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.source-badge.uploaded {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.source-badge.lab {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

/* Time Ago */
.inbox-item-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Quick Actions */
.inbox-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.inbox-item:hover .inbox-item-actions {
  opacity: 1;
}

.inbox-quick-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.inbox-quick-btn.lab {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.inbox-quick-btn.lab:hover {
  background: rgba(168, 85, 247, 0.4);
}

.inbox-quick-btn.crates {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.inbox-quick-btn.crates:hover {
  background: rgba(34, 197, 94, 0.4);
}

.inbox-quick-btn.delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.inbox-quick-btn.delete:hover {
  background: rgba(239, 68, 68, 0.3);
}

.inbox-quick-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==================== UPLOAD DROP ZONE ==================== */

.library-dropzone {
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.library-dropzone:hover,
.library-dropzone.dragover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.1);
}

.library-dropzone-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.library-dropzone-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.library-dropzone-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.library-dropzone-input {
  display: none;
}

/* ==================== EMPTY STATE ==================== */

.library-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  position: relative;
}

/* Subtle ambient glow */
.library-empty::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.library-empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: empty-icon-pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.2));
}

@keyframes empty-icon-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.library-empty-title {
  font-size: 26px;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.library-empty-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.library-empty-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.library-empty-btn {
  padding: 16px 28px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.library-empty-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.library-empty-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.4);
}

.library-empty-btn.primary:active {
  transform: translateY(-1px) scale(0.98);
}

.library-empty-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f0e8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.library-empty-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==================== MOVE TO CRATES MODAL ==================== */

.crates-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.crates-picker-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.crates-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.crates-picker-content {
  position: relative;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

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

.crates-picker-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
  margin: 0;
}

.crates-picker-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f5f0e8;
  font-size: 18px;
  cursor: pointer;
}

.crates-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crates-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.crates-picker-item:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.crates-picker-icon {
  font-size: 24px;
}

.crates-picker-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #f5f0e8;
}

.crates-picker-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== CONFIRM DELETE MODAL ==================== */

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.confirm-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.confirm-modal-content {
  position: relative;
  background: #2a2a2a;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.confirm-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 8px;
}

.confirm-modal-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-modal-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f0e8;
}

.confirm-modal-btn.confirm {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.confirm-modal-btn.confirm:hover {
  background: rgba(239, 68, 68, 1);
}

/* ==================== STATS BAR ==================== */

.library-stats-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 16px;
}

.library-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.library-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
}

.library-stat .stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ==================== INBOX ZERO CELEBRATION ==================== */

.inbox-zero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.inbox-zero-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: inbox-zero-bounce 0.6s ease;
}

@keyframes inbox-zero-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.inbox-zero-title {
  font-size: 24px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 12px;
}

.inbox-zero-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .library-inbox {
    padding: 12px;
  }
  
  .inbox-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .inbox-actions {
    flex-wrap: wrap;
  }
  
  .inbox-item {
    flex-wrap: wrap;
    padding: 12px;
  }
  
  .inbox-item-actions {
    opacity: 1;
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .inbox-item-time {
    display: none;
  }
  
  .bulk-select-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .bulk-select-actions {
    flex-wrap: wrap;
  }
}

/* ==================== TYPE FILTER TABS ==================== */

.library-type-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.type-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.type-tab.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tab-icon {
  font-size: 16px;
}

.tab-label {
  font-weight: 600;
}

.tab-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.type-tab.active .tab-count {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* ==================== STEM ITEM VARIANT ==================== */

.inbox-item.stem-item {
  border-left: 3px solid #22c55e;
}

.inbox-item.stem-item .inbox-item-artwork-placeholder {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stem-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
}

/* Mobile responsive for tabs */
@media (max-width: 640px) {
  .type-tab {
    padding: 10px 12px;
    flex-direction: column;
    gap: 4px;
  }
  
  .tab-label {
    font-size: 12px;
  }
  
  .tab-count {
    font-size: 11px;
    padding: 1px 6px;
  }
}

/* ==================== UNIFIED LIBRARY ==================== */

.unified-library {
  display: flex;
  width: 100%;
  height: calc(100vh - 160px);
  gap: 0;
}

/* Sidebar */
.library-sidebar {
  width: 260px;
  background: rgba(26, 20, 16, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f0e8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sidebar-add-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #d4af37;
}

/* Type filters */
.type-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.type-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.type-filter-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.filter-icon {
  font-size: 16px;
}

.filter-count {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
}

/* Folder list */
.folder-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-folder-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.sidebar-folder-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-folder-btn.set {
  border-left: 2px solid #d4af37;
}

.sidebar-folder-btn .folder-count {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.5;
}

.sidebar-empty {
  padding: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-style: italic;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.sidebar-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Main content */
.library-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.library-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 20, 16, 0.8);
}

.header-info h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #f5f0e8;
}

.header-info .item-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.library-search-input {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f5f0e8;
  font-size: 14px;
  width: 240px;
}

.library-search-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

/* Items */
.library-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.item-group {
  margin-bottom: 24px;
}

.group-header {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.unified-item {
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.unified-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.unified-item.stem {
  border-left: 3px solid #22c55e;
}

.item-artwork {
  position: relative;
  aspect-ratio: 1;
  background: #1a1a1a;
}

.item-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.unified-item:hover .item-play-overlay {
  opacity: 1;
}

.item-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.item-play-btn:hover {
  transform: scale(1.1);
}

.stem-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.9);
  border-radius: 4px;
  font-size: 12px;
}

.item-info {
  padding: 12px;
}

.item-title {
  font-weight: 600;
  color: #f5f0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.item-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.item-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
}

.item-meta .bpm, .item-meta .key {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.item-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.item-action:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: scale(1.1);
}

/* Empty state */
.library-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

.library-empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.library-empty-state h3 {
  color: #f5f0e8;
  margin: 0 0 8px 0;
}

.library-empty-state p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px 0;
}

.empty-actions {
  display: flex;
  gap: 12px;
}

.empty-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-btn.primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
  color: #1a1410;
}

.empty-btn:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f0e8;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .unified-library {
    flex-direction: column;
    height: auto;
  }
  
  .library-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
  }
  
  .type-filter-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }
  
  .type-filter-btn {
    flex-shrink: 0;
    padding: 8px 12px;
  }
  
  .sidebar-section:not(:first-child) {
    display: none;
  }
  
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ==================== DRAG & DROP STATES ==================== */

.unified-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.sidebar-folder-btn.drag-over {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.sidebar-folder-btn.set.drag-over {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.unified-item {
  cursor: grab;
}

.unified-item:active {
  cursor: grabbing;
}

/* ==================== LAB QUEUE INDICATOR ==================== */

.lab-queue-section {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.lab-queue-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-queue-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lab-queue-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-queue-count {
  font-weight: 600;
  color: #c084fc;
  font-size: 14px;
}

.lab-queue-status {
  font-size: 11px;
  color: rgba(192, 132, 252, 0.7);
}

.lab-queue-btn {
  padding: 6px 12px;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.4);
  border-radius: 6px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.lab-queue-btn:hover {
  background: rgba(147, 51, 234, 0.3);
}

/* ==================== PUBLISHABLE RIGHTS BADGES ==================== */
/* Visual indicator for what can be sold vs personal use only */

.publishable-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 5;
  opacity: 0.9;
  transition: all 0.2s;
}

.publishable-badge.publishable {
  background: rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.publishable-badge.personal-use {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.unified-item:hover .publishable-badge {
  opacity: 1;
  transform: scale(1.05);
}

/* Publishable items get a subtle green tint on hover */
.unified-item.is-publishable:hover {
  border-color: rgba(34, 197, 94, 0.3);
}

/* Personal use items get a subtle amber indicator */
.unified-item.is-personal {
  opacity: 0.9;
}

.unified-item.is-personal:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

/* Stem badge positioning adjustment when publishable badge is present */
.item-artwork .stem-badge {
  bottom: auto;
  top: 6px;
  right: 6px;
}

/* Pack Builder - show only publishable items */
.pack-builder-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pack-builder-filter button {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.pack-builder-filter button.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.pack-builder-filter button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

/* Warning banner for non-publishable selection */
.publish-warning {
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.publish-warning-icon {
  font-size: 18px;
}

.publish-warning-text {
  flex: 1;
}

/* ==================== CREATOR FLOW SECTION ==================== */
/* Guide first-time users through the upload ? lab ? sell flow */

.creator-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.creator-flow-hint {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.flow-step.current {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.flow-step.done {
  color: #4ade80;
}

.flow-step .step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.flow-step.current .step-icon {
  background: #a855f7;
  color: white;
}

.flow-step.done .step-icon {
  background: #22c55e;
  color: white;
}

.flow-step .step-text {
  flex: 1;
}

.flow-step .step-check {
  color: #22c55e;
  font-weight: 600;
}

.creator-cta-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.creator-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.creator-cta-btn.secondary {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.creator-cta-btn.secondary:hover {
  background: rgba(168, 85, 247, 0.3);
}

/* First-time empty state with creator focus */
.library-empty-creator {
  text-align: center;
  padding: 60px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.library-empty-creator .empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.library-empty-creator h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 12px;
}

.library-empty-creator p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 30px;
  line-height: 1.6;
}

.creator-path-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.path-card {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.path-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.path-card .path-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.path-card .path-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.path-card .path-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.path-card.creator {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.path-card.creator:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

/* ==================== AMBIENT AUDIO TOGGLE ==================== */

.ambient-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
  opacity: 0.7;
}

.ambient-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
  transform: scale(1.05);
}

.float-zone-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== TRACK DETAIL MODAL ==================== */

.track-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.track-detail-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.track-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.track-detail-content {
  position: relative;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.track-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #f5f0e8;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.track-detail-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Header */
.track-detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.track-detail-artwork {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-detail-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-detail-artwork .artwork-placeholder {
  font-size: 48px;
  opacity: 0.5;
}

.track-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #f5f0e8;
  margin: 0 0 6px;
  line-height: 1.2;
}

.track-detail-artist {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px;
}

.track-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Waveform */
.track-detail-waveform {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  min-height: 80px;
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 60px;
}

.waveform-bar-lg {
  flex: 1;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 2px;
  min-height: 4px;
  transition: background 0.2s;
}

.waveform-bar-lg:hover {
  background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
}

.waveform-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  padding: 20px;
}

/* Meta */
.track-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.detail-meta-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.detail-meta-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-meta-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #f5f0e8;
}

/* Tags */
.track-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-tag {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  font-size: 12px;
  color: #60a5fa;
}

/* Actions */
.track-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-action-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.detail-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.detail-action-btn.lab {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.detail-action-btn.lab:hover {
  background: rgba(168, 85, 247, 0.3);
}

.detail-action-btn.crates {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.detail-action-btn.crates:hover {
  background: rgba(34, 197, 94, 0.3);
}

.detail-action-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.detail-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.detail-action-btn.download {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.detail-action-btn.download:hover {
  background: rgba(34, 197, 94, 0.25);
}

/* ==================== TRACK CARD CHECKBOX ==================== */

.track-card {
  position: relative;
}

.track-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.track-card:hover .track-checkbox,
.track-checkbox.checked {
  opacity: 1;
}

.track-checkbox.checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.track-card.selected {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ==================== BULK SELECT BAR ENHANCEMENTS ==================== */

.bulk-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 6px;
  background: transparent;
  color: #60a5fa;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bulk-checkbox:hover {
  background: rgba(59, 130, 246, 0.2);
}

.bulk-checkbox.checked {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* ==================== CRATES PICKER ENHANCEMENTS ==================== */

.crates-picker-new {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px dashed rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  color: #4ade80;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.crates-picker-new:hover {
  background: rgba(34, 197, 94, 0.25);
  border-style: solid;
}

.crates-picker-loading,
.crates-picker-empty {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ==================== ENHANCED EMPTY STATE ==================== */

.library-empty-creator {
  text-align: center;
  padding: 60px 30px;
  max-width: 560px;
  margin: 0 auto;
}

.library-empty-creator .empty-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: bounce-gentle 3s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.library-empty-creator h3 {
  font-size: 28px;
  color: #f5f0e8;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.library-empty-creator p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 36px;
  line-height: 1.7;
  font-size: 15px;
}

.creator-path-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.path-card {
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.path-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.path-card .path-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.path-card .path-title {
  font-size: 17px;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 8px;
}

.path-card .path-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.empty-drop-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.empty-drop-hint span {
  font-size: 16px;
}

/* ==================== VAULT/SOURCE BADGE ON CARDS ==================== */

.track-artwork .source-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  padding: 3px 8px;
  z-index: 5;
}

.track-artwork .source-badge.vault {
  background: rgba(212, 175, 55, 0.85);
  color: #1a1410;
  font-weight: 600;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
  .track-detail-content {
    padding: 20px;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    width: 100%;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  .track-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .track-detail-artwork {
    width: 160px;
    height: 160px;
  }
  
  .track-detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .track-detail-actions {
    grid-template-columns: 1fr;
  }
  
  .creator-path-choice {
    grid-template-columns: 1fr;
  }
}
