.track-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.track-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 12px 12px 54px;
}

.track-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  text-decoration: none;
}

.track-action > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 900;
}

.track-action.dsp-action {
  width: 36px;
  min-height: 36px;
  justify-content: center;
  padding: 6px;
  color: var(--text);
}

.dsp-action svg,
.release-dsp-link svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.dsp-action .icon-cut,
.release-dsp-link .icon-cut {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.45;
  stroke-linecap: round;
}

.dsp-action .icon-cut-fill,
.release-dsp-link .icon-cut-fill {
  fill: var(--bg);
}

.action-spotify { color: #1ed760; }
.action-apple_music { color: #fa586a; }
.action-tidal { color: #fff; }
.action-bandcamp { color: #629aa9; }
.action-deezer { color: #a868ff; }

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.release-links > a:not(.release-dsp-link) {
  margin-right: 5px;
}

.release-dsp-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  text-decoration: none;
}

.release-dsp-link:hover,
.release-dsp-link:focus-visible {
  border-color: currentColor;
  outline: none;
}

.track-action:hover,
.track-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.action-buy {
  background: var(--text);
  color: var(--bg);
}

.action-buy > span {
  background: var(--bg);
  color: var(--text);
}

.now-actions {
  min-width: 0;
  max-width: 260px;
  overflow-x: auto;
}

.now-actions:empty { display: none; }

.player:has(.now-actions:empty) {
  grid-template-columns: auto auto auto minmax(120px, 1fr) minmax(100px, 2fr) auto minmax(90px, 120px) auto;
}

.now-actions .track-actions {
  display: flex;
  grid-column: auto;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 0;
}

.now-actions .track-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 7px;
}

.now-actions .track-action.dsp-action {
  width: 32px;
  padding: 4px;
}

.preview-link {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.preview-link:hover,
.preview-link:focus-visible {
  color: var(--accent);
}

@media (max-width: 720px) {
  .catalog { padding-bottom: 210px; }
  .track-actions {
    flex-wrap: nowrap;
    padding-left: 38px;
    overflow-x: auto;
  }
  .track-action { flex: 0 0 auto; }
  .player { padding-bottom: 8px; }
  .now-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
  }
  .player:has(.now-actions:empty) {
    grid-template-columns: auto auto auto 1fr auto auto;
  }
  .now-actions .track-actions { overflow-x: auto; }
  .publish-bar { align-items: flex-start; }
}
