#search-section {
  padding: 20px;
  background: var(--bg);
  flex: 1;
}

#search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#search-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

#search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  caret-color: var(--accent-light);
}

#search-input::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  border-radius: 4px;
  display: none;
  transition: color 0.15s;
}

.clear-btn.visible {
  display: block;
}

.clear-btn:hover {
  color: var(--text);
}

#search-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 32px;
}

#search-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

#search-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

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

.action-btn:active {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(0.96);
}

#search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid transparent;
  transition: all 0.15s;
  animation: slide-in 0.2s ease forwards;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-track-item:active {
  background: var(--surface2);
}

.search-track-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-track-icon svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.8);
}

.search-track-info {
  flex: 1;
  min-width: 0;
}

.search-track-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-track-name mark {
  background: rgba(168, 85, 247, 0.3);
  color: var(--accent-light);
  border-radius: 2px;
  padding: 0 1px;
}

.search-track-hash {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-track-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.track-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.track-action-btn svg {
  width: 15px;
  height: 15px;
}

.track-action-btn:active {
  transform: scale(0.88);
}

.track-action-btn.remove {
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.3);
}

.track-action-btn.remove:active {
  background: rgba(220, 38, 38, 0.15);
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.catalog-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}