* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #121212;
  color: #f0f0f0;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: #1DB954;
}

.subtitle {
  color: #aaa;
  margin-top: 0;
  font-size: 0.9rem;
}

.card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.error-card {
  border: 1px solid #e74c3c;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

select, input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #f0f0f0;
  font-size: 1rem;
}

.lift-section {
  border-top: 1px solid #333;
  padding-top: 16px;
  margin-bottom: 16px;
}

.lifter-search-row {
  display: flex;
  gap: 8px;
}

.lifter-search-row input {
  flex: 1;
}

.lift-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.selected-track {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 10px;
}

.selected-art {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

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

.selected-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-artist {
  color: #aaa;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results {
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.result-item img, .art-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #333;
  flex-shrink: 0;
}

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

.result-name {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-artist {
  font-size: 0.8rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-loading, .search-empty, .search-error {
  color: #aaa;
  font-size: 0.85rem;
  padding: 8px 0;
}

.search-error {
  color: #e74c3c;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: #1DB954;
  color: #000;
  font-weight: 600;
  width: 100%;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #333;
  color: #f0f0f0;
}

.btn-link {
  background: none;
  color: #1DB954;
  padding: 6px 0;
  text-decoration: underline;
}

.paste-block {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.paste-block input {
  flex: 1;
}

.status-message {
  margin-top: 12px;
  font-size: 0.9rem;
}

.status-message.success {
  color: #1DB954;
}

.status-message.error {
  color: #e74c3c;
}

.status-message.info {
  color: #aaa;
}
