.release-track-title {
  margin-bottom: 0.4rem;
}

.release-track-title-edit {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--release-ink);
  font: inherit;
  font-weight: inherit;
  line-height: 1.08;
  text-align: left;
  cursor: pointer;
}

.release-track-title-edit > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-track-title-edit:hover > span,
.release-track-title-edit:focus-visible > span {
  text-decoration: underline;
  text-decoration-color: var(--release-violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.release-track-title-edit:focus-visible {
  outline: 3px solid rgba(142, 96, 255, 0.35);
  outline-offset: 5px;
}

.release-track-title-edit.is-locked {
  cursor: help;
}

.release-track-edit-glyph {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
  color: #0c0b0f;
  transition: opacity 150ms ease, transform 150ms ease;
}

.release-track-edit-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.release-track-title-edit:hover .release-track-edit-glyph,
.release-track-title-edit:focus-visible .release-track-edit-glyph {
  transform: translate(1px, -1px);
}

.release-track-actions button.release-track-icon-button {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.release-track-actions button.release-track-play-button {
  border: 2px solid var(--release-ink);
  border-radius: 50%;
  background: var(--release-ink);
  color: var(--release-white);
  box-shadow: 0 7px 16px rgba(12, 11, 15, 0.14);
}

.release-track-actions button.release-track-play-button:hover:not(:disabled),
.release-track-actions button.release-track-play-button:focus-visible {
  border-color: var(--release-violet);
  background: var(--release-violet);
  transform: translateY(-1px);
}

.release-track-play-glyph {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.release-track-play-button.is-playing .release-track-play-glyph,
.release-track-play-button[data-state="pause"] .release-track-play-glyph {
  width: 13px;
  height: 15px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(to right, currentColor 0 4px, transparent 4px 9px, currentColor 9px 13px);
}

.release-track-play-button[data-state="loading"] .release-track-play-glyph {
  width: 17px;
  height: 17px;
  margin-left: 0;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: release-track-control-spin 700ms linear infinite;
}

.release-track-actions button.release-track-download-button {
  border: 1px solid #c9c4bd;
  border-radius: 13px;
  background: var(--release-white);
  color: var(--release-ink);
}

.release-track-actions button.release-track-download-button:hover:not(:disabled),
.release-track-actions button.release-track-download-button:focus-visible {
  border-color: var(--release-ink);
  background: #f2f0ec;
  transform: translateY(-1px);
}

.release-track-download-glyph {
  width: 22px;
  height: 22px;
  display: block;
}

.release-track-download-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.release-track-download-button[data-downloading="true"] .release-track-download-glyph {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(31, 29, 28, 0.24);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: release-track-control-spin 700ms linear infinite;
}

.release-track-download-button[data-downloading="true"] .release-track-download-glyph svg {
  display: none;
}

.release-track-control-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes release-track-control-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .release-track-actions button.release-track-icon-button {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
  }

  .release-track-actions .release-track-lyrics-button,
  .release-track-actions [data-track-regenerate] {
    flex: 1 1 calc(50% - 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-track-title-edit,
  .release-track-edit-glyph,
  .release-track-actions button.release-track-icon-button {
    transition: none;
  }
}
