.release-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 66px;
  margin-top: 5px;
  border: 1px solid #272727;
  padding: 10px;
  background: #050505;
}

.preview-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: #0a0a0a;
  cursor: pointer;
  font-size: 1rem;
}

.preview-toggle:hover,
.preview-toggle:focus-visible {
  border-color: var(--red);
  outline: 2px solid rgba(223, 21, 29, .25);
  outline-offset: 2px;
}

.preview-toggle[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.preview-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.preview-waveform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1px;
  width: 100%;
  height: 32px;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.preview-waveform:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 3px;
}

.preview-waveform-bar {
  flex: 1 1 0;
  min-width: 1px;
  max-width: 4px;
  background: #696969;
  pointer-events: none;
}

.preview-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, .7);
  pointer-events: none;
  transform: translateX(-1px);
}

.preview-time {
  color: #9a958f;
  font: 600 .62rem Consolas, monospace;
  letter-spacing: .06em;
}

.release-preview audio {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

@media (max-width: 520px) {
  .release-preview {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .preview-toggle {
    width: 38px;
    height: 38px;
  }

  .preview-waveform {
    gap: 0;
  }
}
