#search-section {
  padding: 16px 20px 12px;
  background: rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

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

#search-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

#search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  transition: border-color 0.2s;
}

#search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px var(--accent-glow);
}

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

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: bold;
}

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

.clear-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 12px;
  border-radius: 4px;
  display: none;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.1);
}

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

.clear-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

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

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

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
}

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

.action-btn:active {
  background: var(--surface-active);
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

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

.search-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  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(--surface-active);
}

.search-track-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #0f2b4a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}

.search-track-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

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

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

.search-track-name mark {
  background: rgba(26, 162, 255, 0.4);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 2px;
}

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

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

.track-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
}

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

.track-action-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.track-action-btn.remove {
  color: var(--danger);
}

.no-results, .catalog-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: bold;
}