.root {
  min-height: 100vh;
  min-height: 100dvh;
  background: #120820;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  padding-top: 3.5rem;
  box-sizing: border-box;
}

.backBtn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.backBtn:hover {
  border-color: #d946ef;
  color: #f0abfc;
}

.title {
  letter-spacing: 0.3em;
  font-size: 28px;
  margin: 0 0 0.25rem;
  text-align: center;
}

.subtitle {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  font-size: 13px;
  margin: 0 0 1.5rem;
  text-align: center;
}

.dropZone {
  width: min(600px, 100%);
  min-height: 180px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.dropZone:hover,
.dropZoneDragOver {
  border-color: #d946ef;
  background: rgba(217, 70, 239, 0.08);
}

.dropIcon {
  font-size: 40px;
  opacity: 0.5;
}

.dropLabelDesktop {
  font-size: 16px;
  letter-spacing: 0.1em;
}

.dropLabelMobile {
  display: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f0abfc;
}

.dropRequirements {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.dropRequired {
  color: #d946ef;
  font-weight: 700;
}

.dropHint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.dropHintDesktop {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.fileInput {
  display: none;
}

.songList {
  width: min(600px, 100%);
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.songCard {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.songHeader {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.songBanner {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.songInfo {
  flex: 1;
  min-width: 0;
}

.songTitle {
  font-size: 18px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songArtist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 2px 0 0;
  letter-spacing: 0.08em;
}

.songMeta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

.songRemoveBtn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.songRemoveBtn:hover {
  color: #ff4444;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.optionWithHelp {
  composes: option;
  position: relative;
  cursor: help;
}

.optionWithHelp::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 280px;
  padding: 8px 10px;
  background: #1a0f2e;
  border: 1px solid rgba(217, 70, 239, 0.4);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 10;
}

.optionWithHelp:hover::after {
  opacity: 1;
}

.option select {
  background: #1a0f2e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
}

.option input[type="checkbox"] {
  accent-color: #d946ef;
  width: 18px;
  height: 18px;
}

.actions {
  width: min(600px, 100%);
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.addBtn {
  background: #d946ef;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: filter 0.15s;
}

.addBtn:hover {
  filter: brightness(1.15);
}

.addBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.error {
  width: min(600px, 100%);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: #ff8888;
}

.loading {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
  .root {
    padding: 1rem 0.75rem;
    padding-top: 3.5rem;
  }

  .title {
    font-size: 22px;
    letter-spacing: 0.2em;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  .dropZone {
    min-height: 140px;
    padding: 1.25rem 0.75rem;
    gap: 0.5rem;
  }

  .dropIcon {
    font-size: 32px;
  }

  .dropLabelDesktop {
    display: none;
  }

  .dropLabelMobile {
    display: block;
  }

  .dropHintDesktop {
    display: none;
  }

  .dropRequirements {
    font-size: 11px;
  }

  .dropHint {
    font-size: 11px;
  }

  .songHeader {
    gap: 0.65rem;
  }

  .songBanner {
    width: 56px;
    height: 36px;
  }

  .songTitle {
    font-size: 15px;
  }

  .songArtist {
    font-size: 11px;
  }

  .songMeta {
    font-size: 11px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .optionWithHelp::after {
    left: auto;
    right: 0;
    width: min(280px, 80vw);
  }

  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .addBtn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }
}
