/*
 * H&S Music Artist Panel – Release Wizard Track Modal
 *
 * Darstellung für Track-Informationen, Beteiligte, Audio/Dolby und Songtext.
 * Fachliche Save-, Upload- und Validierungslogik bleibt in app.js.
 */

body:has(.wizard-track-modal-backdrop) {
  overflow: hidden;
}

.wizard-track-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .84);
}

.wizard-track-modal-shell {
  width: min(1160px, 100%);
  max-height: calc(100vh - 48px);
  min-height: min(700px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  background: var(--hs-surface-1);
}

.wizard-track-modal-header {
  flex: 0 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-track-modal-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wizard-track-modal-heading span {
  min-width: 0;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: var(--hs-weight-regular);
  overflow-wrap: anywhere;
}

.wizard-track-modal-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--hs-text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: -.012em;
}

.wizard-track-modal-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
}

.wizard-track-modal-nav {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 22px 16px 28px;
  border-right: 1px solid var(--hs-line-subtle);
}

.wizard-track-modal-tab {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 12px 9px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--hs-text-subtle);
  box-shadow: none;
  font-family: var(--hs-font-ui);
  font-size: 13px;
  line-height: 1.35;
  font-weight: var(--hs-weight-medium);
  text-align: left;
  cursor: pointer;
}

.wizard-track-modal-tab:hover {
  background: rgba(255,255,255,.025);
  color: var(--hs-text);
}

.wizard-track-modal-tab:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: -2px;
}

.wizard-track-modal-tab.is-active,
.wizard-track-modal-tab[aria-selected="true"] {
  border-left-color: var(--hs-brand-500);
  color: var(--hs-text);
  font-weight: var(--hs-weight-semibold);
}

.wizard-track-modal-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px 32px 34px;
}

.wizard-track-modal-content > h3 {
  margin: 0;
  color: var(--hs-text);
  font-size: 22px;
  line-height: 1.3;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: -.012em;
}

.wizard-track-modal-content > .small-muted {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--hs-text-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: var(--hs-weight-regular);
}

.wizard-track-modal-form,
.wizardTrackModalMetadataForm,
.wizardTrackModalContributorsForm,
.wizardTrackModalLyricsForm {
  width: 100%;
  max-width: 860px;
  margin: 22px 0 0;
}

.wizardTrackModalMetadataForm {
  display: grid;
  gap: 20px;
}

.wizardTrackModalMetadataForm > label,
.track-info-grid > label,
.track-info-readonly {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--hs-text-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--hs-weight-medium);
}

.track-info-grid {
  width: 100%;
  max-width: 860px;
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.wizard-track-modal-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.wizard-track-modal-shell select,
.wizard-track-modal-shell textarea,
.wizard-track-modal-shell .artist-chip-inputbox {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-2);
  color: var(--hs-text);
  box-shadow: none;
  font-family: var(--hs-font-ui);
  font-size: 15px;
  line-height: 1.4;
  font-weight: var(--hs-weight-regular);
}

.wizard-track-modal-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.wizard-track-modal-shell select,
.wizard-track-modal-shell textarea {
  padding: 11px 13px;
}

.wizard-track-modal-shell input:focus,
.wizard-track-modal-shell select:focus,
.wizard-track-modal-shell textarea:focus,
.wizard-track-modal-shell .artist-chip-inputbox:focus-within {
  border-color: var(--hs-brand-line);
  outline: 2px solid rgba(243, 143, 177, .20);
  outline-offset: 1px;
}

.wizard-track-modal-shell input:disabled {
  background: var(--hs-surface-1);
  color: var(--hs-text-muted);
  opacity: 1;
  cursor: default;
}

.track-info-label-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--hs-text-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--hs-weight-medium);
}

.track-info-tooltip {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-round);
  background: transparent;
  color: var(--hs-text-subtle);
  font-size: 11px;
  line-height: 1;
  font-weight: var(--hs-weight-semibold);
  cursor: help;
}

.track-info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 280px;
  padding: 9px 10px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-3);
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--hs-weight-regular);
  opacity: 0;
  transform: translate(-50%, 3px);
  pointer-events: none;
  transition: opacity var(--hs-duration-fast) var(--hs-ease-standard), transform var(--hs-duration-fast) var(--hs-ease-standard);
}

.track-info-tooltip:hover::after,
.track-info-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.track-readonly-artist-chip-row,
.wizard-track-release-artist-field .artist-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.track-readonly-artist-chip,
.wizard-track-release-artist-field .artist-chip-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: transparent;
  color: var(--hs-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: var(--hs-weight-medium);
}

.track-readonly-artist-chip.is-empty,
.wizard-track-release-artist-field .artist-chip-pill.is-empty {
  color: var(--hs-text-subtle);
  border-style: dashed;
}

.track-readonly-inherited-note {
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.wizard-track-release-artist-field > span:first-child {
  color: var(--hs-text-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--hs-weight-medium);
}

.wizard-track-release-artist-field .artist-chip-editor {
  margin: 0;
}

.wizard-track-release-artist-field .artist-chip-inputbox {
  padding: 8px 10px;
  cursor: default;
}

.wizard-track-release-artist-field .artist-chip-pill,
.wizard-track-release-artist-field .artist-chip-inputbox {
  cursor: default;
}

.wizard-track-artist-editor-field .artist-chip-editor {
  margin: 0;
}

.wizard-track-artist-note {
  margin-top: -2px;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.wizard-track-modal-shell .artist-chip-pill.is-protected {
  cursor: default;
}

.wizard-track-field-block {
  display: grid;
  gap: 8px;
}

.track-info-segment {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.track-info-segment button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: transparent;
  color: var(--hs-text-muted);
  box-shadow: none;
  font-family: var(--hs-font-ui);
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--hs-weight-medium);
  cursor: pointer;
}

.track-info-segment button:hover {
  border-color: var(--hs-line-strong);
  background: var(--hs-surface-2);
  color: var(--hs-text);
  box-shadow: none;
}

.track-info-segment button.is-selected,
.track-info-segment button[aria-pressed="true"] {
  border-color: var(--hs-brand-line);
  background: var(--hs-brand-soft);
  color: var(--hs-text);
}

.track-timecode-control {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-2);
  user-select: none;
}

.track-timecode-part {
  width: 40px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--hs-radius-xs);
  background: transparent;
  color: var(--hs-text);
  box-shadow: none;
  font-family: var(--hs-font-ui);
  font-size: 16px;
  line-height: 1;
  font-weight: var(--hs-weight-semibold);
  font-variant-numeric: tabular-nums;
  cursor: ns-resize;
}

.track-timecode-part:hover,
.track-timecode-part.is-active {
  border-color: transparent;
  background: var(--hs-brand-soft);
  color: var(--hs-text);
  box-shadow: none;
}

.track-timecode-colon {
  color: var(--hs-text-subtle);
  font-weight: var(--hs-weight-semibold);
}

.track-timecode-hint,
.wizardTrackModalAutosaveHint {
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--hs-weight-regular);
}

.wizardTrackModalAutosaveHint {
  margin-top: -2px;
}

/* Contributors
 * Funktionale Rollen-/Autosave-Logik bleibt in app.js.
 * Darstellung bewusst flach: Navigation, Formularzeilen und Rollenliste
 * statt verschachtelter Karten.
 */
.wizardTrackModalContributorsForm {
  width: 100%;
  max-width: 1080px;
}

.track-contributors-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}

.track-contributors-switch {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  gap: 24px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.track-contributors-switch button {
  position: relative;
  min-height: 44px;
  padding: 8px 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hs-text-muted);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--hs-duration-fast) var(--hs-ease-standard);
}

.track-contributors-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.track-contributors-switch button:hover {
  color: var(--hs-text);
}

.track-contributors-switch button.is-selected {
  color: var(--hs-text);
}

.track-contributors-switch button.is-selected::after {
  background: var(--hs-brand-500);
}

.track-contributors-switch button:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: 3px;
}

.track-contributors-panel {
  width: 100%;
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.track-contributors-panel.is-active {
  display: block;
}

.track-contributors-panel-header {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.track-contributors-panel-title {
  color: var(--hs-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
}

.track-contributors-required-note {
  max-width: 820px;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: var(--hs-weight-regular);
}

.track-contributor-table-head {
  display: grid;
  grid-template-columns:
    minmax(220px, .82fr)
    minmax(340px, 1.35fr)
    38px;
  gap: 16px;
  padding: 0 0 8px;
  color: var(--hs-text-subtle);
  font-size: 11px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.track-contributor-person-row {
  display: grid;
  grid-template-columns:
    minmax(220px, .82fr)
    minmax(340px, 1.35fr)
    38px;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--hs-line-subtle);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.track-contributor-person-row:last-child {
  border-bottom: 1px solid var(--hs-line-subtle);
}

.track-contributor-person-row label {
  margin: 0;
}

.track-contributor-person-row .track-info-label-row {
  display: none;
}

.track-contributor-person-name-field,
.track-contributor-role-picker {
  min-width: 0;
}

.track-contributor-role-picker {
  position: relative;
}

.track-contributor-role-picker > summary {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 42px 10px 13px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-2);
  color: var(--hs-text);
  box-shadow: none;
  font-size: 14px;
  line-height: 1.35;
  font-weight: var(--hs-weight-medium);
  list-style: none;
  user-select: none;
  cursor: pointer;
  transition:
    border-color var(--hs-duration-fast) var(--hs-ease-standard),
    background-color var(--hs-duration-fast) var(--hs-ease-standard);
}

.track-contributor-role-picker > summary:hover {
  border-color: var(--hs-line-strong);
  background: var(--hs-surface-hover);
}

.track-contributor-role-picker[open] > summary {
  border-color: var(--hs-brand-line);
}

.track-contributor-role-picker > summary:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: 2px;
}

.track-contributor-role-picker > summary::-webkit-details-marker {
  display: none;
}

.track-contributor-role-picker-chevron {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hs-text-muted);
  border-bottom: 2px solid var(--hs-text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--hs-duration-fast) var(--hs-ease-standard);
  pointer-events: none;
}

.track-contributor-role-picker[open]
  .track-contributor-role-picker-chevron {
  transform: translateY(-35%) rotate(225deg);
}

.track-contributor-role-picker-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 12px 14px 6px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-1);
  box-shadow: none;
}

.track-contributor-role-group {
  display: grid;
  gap: 6px;
}

.wizardTrackModalContributorsForm[
  data-active-contributor-category="writer"
] .track-contributor-role-group[
  data-contributor-role-group="credit"
] {
  display: none;
}

.wizardTrackModalContributorsForm[
  data-active-contributor-category="credit"
] .track-contributor-role-group[
  data-contributor-role-group="writer"
] {
  display: none;
}

.track-contributor-role-group-title {
  padding: 2px 0 5px;
  color: var(--hs-text-subtle);
  font-size: 11px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.track-contributor-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}

.track-contributor-role-option {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--hs-line-subtle);
  border-radius: 0;
  background: transparent;
  color: var(--hs-text-muted);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.35;
  font-weight: var(--hs-weight-regular);
  cursor: pointer;
  transition:
    color var(--hs-duration-fast) var(--hs-ease-standard);
}

.track-contributor-role-option:hover,
.track-contributor-role-option:has(input:checked) {
  color: var(--hs-text);
}

.track-contributor-role-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hs-brand-500);
}

.track-contributor-role-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-contributor-remove-button {
  align-self: start;
  color: var(--hs-text-muted);
}

.track-contributor-remove-button:hover {
  color: var(--hs-danger);
}

.track-contributor-add-button {
  width: max-content;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .track-contributors-switch {
    width: 100%;
    gap: 18px;
  }

  .track-contributors-switch button {
    white-space: normal;
  }

  .track-contributor-table-head {
    display: none;
  }

  .track-contributor-person-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .track-contributor-person-row
    .track-info-label-row {
    display: flex;
  }

  .track-contributor-role-grid {
    grid-template-columns: 1fr;
  }

  .track-contributor-remove-button {
    justify-self: start;
  }
}

/* Audio */
.wizard-audio-card {
  width: 100%;
  max-width: 920px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-audio-card-head {
  margin-bottom: 14px;
}

.wizard-audio-card-title {
  display: grid;
  gap: 4px;
}

.wizard-audio-card-title strong {
  color: var(--hs-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
}

.wizard-audio-card-title span {
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--hs-weight-regular);
}

.wizard-audio-player {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-2);
}

.wizard-audio-play-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hs-brand-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-soft);
  color: var(--hs-text);
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.wizard-audio-play-button:hover {
  border-color: var(--hs-brand-400);
  background: var(--hs-brand-soft);
  box-shadow: none;
}

.wizard-audio-time {
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--hs-weight-medium);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.wizard-audio-native {
  display: none;
}

.wizard-audio-player-loading,
.wizard-audio-player-empty {
  min-height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-2);
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.wizard-audio-timeline {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  user-select: none;
  touch-action: none;
}

.wizard-audio-timeline-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: var(--hs-radius-round);
  background: var(--hs-line);
}

.wizard-audio-timeline-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--hs-brand-500);
}

.wizard-audio-timeline-thumb {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: var(--hs-radius-round);
  background: var(--hs-text);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wizard-audio-replace-form {
  width: 100%;
  max-width: none;
  margin: 14px 0 0;
}

.wizard-audio-replace-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-audio-replace-input,
.wizard-dolby-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wizard-audio-replace-status,
.wizard-dolby-upload-status {
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.4;
}

.wizard-audio-replace-progress,
.wizard-dolby-upload-progress {
  display: none;
  margin-top: 12px;
}

.wizard-audio-replace-progress.is-visible,
.wizard-dolby-upload-progress.is-visible {
  display: block;
}

.wizard-audio-replace-result,
.wizard-dolby-upload-result {
  margin-top: 10px;
}

.wizard-audio-options-card {
  width: 100%;
  max-width: 920px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-audio-options-head {
  margin-bottom: 16px;
}

.wizard-audio-options-head.is-secondary {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-audio-options-head h4 {
  margin: 0;
  color: var(--hs-text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
}

.wizard-audio-options-head p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--hs-weight-regular);
}

.wizard-audio-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-audio-option-button {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: transparent;
  color: var(--hs-text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.wizard-audio-option-button:hover {
  border-color: var(--hs-line-strong);
  background: var(--hs-surface-2);
  box-shadow: none;
}

.wizard-audio-option-button.is-selected,
.wizard-audio-option-button[aria-pressed="true"] {
  border-color: var(--hs-brand-line);
  background: var(--hs-brand-soft);
}

.wizard-audio-option-button strong {
  color: var(--hs-text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: var(--hs-weight-semibold);
}

.wizard-audio-option-button span {
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--hs-weight-regular);
}

.wizard-audio-options-message {
  margin-top: 10px;
}

.wizard-audio-options-message:empty {
  display: none;
}

.wizard-dolby-upload-card {
  width: 100%;
  max-width: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-dolby-upload-card h5 {
  margin: 0;
  color: var(--hs-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
}

.wizard-dolby-upload-card p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.wizard-dolby-upload-row {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.wizardDolbyMasterUploadForm,
.wizardDolbyStemUploadForm {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.wizard-track-danger-action {
  color: #ffb0b0;
}

.wizard-track-modal-content:has(.wizardTrackModalLyricsForm) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.wizard-track-lyrics-form {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin-top: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.wizard-track-lyrics-textarea {
  width: 100%;
  height: 100%;
  min-height: 420px;
  resize: none;
  padding: 16px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-2);
  color: var(--hs-text);
  font-family: var(--hs-font-ui);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .wizard-track-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }

  .wizard-track-modal-nav {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hs-line-subtle);
    scrollbar-width: none;
  }

  .wizard-track-modal-nav::-webkit-scrollbar {
    display: none;
  }

  .wizard-track-modal-tab {
    width: auto;
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 9px 10px;
  }

  .wizard-track-modal-tab.is-active,
  .wizard-track-modal-tab[aria-selected="true"] {
    border-bottom-color: var(--hs-brand-500);
  }

  .track-contributor-table-head {
    display: none;
  }

  .track-contributor-person-row {
    grid-template-columns: 1fr;
  }

  .track-contributor-person-row .track-info-label-row {
    display: flex;
  }

  .track-contributor-remove-button {
    width: fit-content;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .wizard-track-modal-backdrop {
    padding: 0;
  }

  .wizard-track-modal-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .wizard-track-modal-header {
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 10px 14px;
  }

  .wizard-track-modal-heading h2 {
    font-size: 18px;
  }

  #wizardTrackModalCloseButton {
    min-height: 42px;
    margin: 0;
  }

  .wizard-track-modal-nav {
    min-height: 0;
    padding: 0 10px;
  }

  .wizard-track-modal-tab {
    min-height: 50px;
    padding: 13px 9px 11px;
    font-size: 13px;
  }

  .wizard-track-modal-content {
    padding: 20px 14px calc(26px + env(safe-area-inset-bottom));
  }

  .wizard-track-modal-content > h3 {
    font-size: 20px;
  }

  .wizard-track-modal-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .wizard-track-modal-shell select,
  .wizard-track-modal-shell textarea,
  .wizard-track-modal-shell .artist-chip-input {
    font-size: 16px;
  }

  .track-info-segment {
    width: 100%;
  }

  .track-contributors-switch {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    scrollbar-width: none;
  }

  .track-contributors-switch::-webkit-scrollbar {
    display: none;
  }

  .track-contributors-switch button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .track-contributor-role-grid,
  .wizard-audio-options-grid {
    grid-template-columns: 1fr;
  }

  .track-contributor-role-option {
    min-height: 46px;
  }

  .wizard-audio-player {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .wizard-audio-current-time,
  .wizard-audio-duration {
    display: none;
  }

  .wizard-track-lyrics-textarea {
    min-height: min(56dvh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-track-modal-tab,
  .track-info-tooltip::after,
  .track-contributor-role-picker-chevron {
    transition: none;
  }
}

/* NOW: Vorschläge nur für Tracks, die keinen aktuellen Release-Hauptkünstler enthalten. */
.wizard-track-artist-suggestions {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.wizard-track-artist-suggestions[hidden] {
  display: none;
}

.wizard-track-artist-suggestions > span {
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--hs-weight-medium);
}

.wizard-track-artist-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wizard-track-modal-shell .artist-chip-suggestion {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--hs-brand-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-soft);
  color: var(--hs-text);
  font-family: var(--hs-font-ui);
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--hs-weight-medium);
  cursor: pointer;
}

.wizard-track-modal-shell .artist-chip-suggestion:hover,
.wizard-track-modal-shell .artist-chip-suggestion:focus-visible {
  border-color: var(--hs-brand-400);
  outline: none;
}


/* Track-spezifische Genre-/Sprachfelder. */
.wizard-track-modal-shell .wizard-track-search-field {
  display: grid;
  gap: 8px;
}

.wizard-track-modal-shell .wizard-track-field-note {
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wizard-track-modal-shell .wizard-track-language-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
