/* Поиск и скачивание музыки по названию трека. Подключается после style.css. */

/* нейтральный статус («Ищем треки…») — тот же блок #status, но не красный */
.status.status--info {
  background: var(--surface-muted);
  color: var(--ink-soft);
  border-color: var(--border);
}

/* ---------------- список найденных треков ---------------- */

.track-results {
  margin-top: 24px;
  text-align: left;
}

.track-results-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--ink);
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.track-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-main { flex: 1 1 auto; min-width: 0; }

.track-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-duration {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.track-btn {
  flex: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  background: var(--grad-accent);
  padding: 9px 16px;
  border-radius: 999px;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.track-btn:hover { filter: brightness(1.06); }
.track-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.track-btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------- аудио-карточка результата ---------------- */

.audio-block {
  margin-bottom: 12px;
}

.audio-block audio {
  display: block;
  width: 100%;
}

/* ---------------- блок о музыке на странице ---------------- */

.music-section {
  margin-bottom: 56px;
  text-align: center;
}

.music-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 14px;
}

.music-section-text {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.music-points {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.music-points li {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink);
}

@media (max-width: 560px) {
  .track-item { flex-wrap: wrap; }
  .track-duration { order: 3; }
  .track-btn { margin-left: auto; }
}
