.track-list-container {
  max-width: 980px;
  margin: 0 auto;
}

.track-list-container > h2 {
  margin: 0 0 4px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.track-list-container > .lead { margin-top: 12px; }
.refresh-link { margin: 18px 0 12px; }

.track-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
}

.track-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(25, 33, 42, 0.06);
}

.track-image {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.track-center {
  min-width: 0;
}

.track-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.track-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.track-actions a,
.track-action-button,
.track-action-icon,
.playback-circle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
}

.track-actions a:hover,
.track-action-button:hover,
.playback-circle:hover {
  background: var(--surface-soft);
}

.track-action-icon { cursor: default; }
.track-actions .is-disabled { opacity: 0.4; pointer-events: none; }
.player-error { color: #a82424; font-size: 0.82rem; font-weight: 700; }

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 32, 0.62);
}

.share-modal[aria-hidden="false"],
.share-modal.active {
  display: grid;
}

.share-modal__dialog {
  width: min(560px, 100%);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.share-modal__header h3 {
  margin: 0;
}

.share-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 1.4rem;
}

.share-modal__body {
  padding: 18px;
}

.share-modal__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.share-btn--primary {
  width: 100%;
}

.share-btn--secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}

.share-hint,
.share-modal__link {
  margin-top: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.share-hint--hidden { display: none; }

@media (max-width: 640px) {
  .track-item {
    grid-template-columns: 76px 1fr;
  }

  .track-image {
    width: 76px;
  }
}
