/* Dynamic Song Fields Styling */

/* Fix spacing between label and dynamic songs container to match other form fields */
.dynamic-songs-label {
  color: #ffe066;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

/* Add spacing between song field groups to match other form sections */
.dynamic-songs-label[for="song1"] {
  margin-top: 1.8rem; /* Match desktop spacing for form groups */
}

.dynamic-songs-label[for="unwanted-song1"] {
  margin-top: 1.8rem; /* Match desktop spacing for form groups */
}

.dynamic-songs-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0;
  margin-top: 0; /* Remove any top margin */
}

.song-field-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.song-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.song-input {
  width: 100%;
  padding: 0.7rem 1.1rem;
  padding-right: 3.5rem; /* Space for add button */
  border: 2px solid #ffe066cc;
  border-radius: 10px;
  background: #232526;
  color: #ffe066;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
}

.song-input:focus {
  border: 2px solid #ffe066;
  box-shadow: 0 4px 18px #ffe06633;
}

.song-input-add-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #ffe066;
  color: rgba(40, 42, 48, 0.8);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.song-input-add-btn:hover {
  background: #fff;
  color: rgba(40, 42, 48, 1);
  transform: translateY(-50%) scale(1.05);
}

.song-input-add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #666;
  color: #333;
}

.song-input-add-btn:disabled:hover {
  transform: translateY(-50%);
  background: #666;
  color: #333;
}

.remove-song-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #e74c3c;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remove-song-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* Responsive spacing adjustments for dynamic songs labels */
@media (max-width: 768px) {
  .dynamic-songs-label[for="song1"],
  .dynamic-songs-label[for="unwanted-song1"] {
    margin-top: 1.2rem !important; /* Match mobile spacing */
  }
}

@media (max-width: 700px) {
  .dynamic-songs-label[for="song1"],
  .dynamic-songs-label[for="unwanted-song1"] {
    margin-top: 1rem !important; /* Match iPhone SE spacing */
  }
}

/* Responsive adjustments for dynamic songs */
@media (max-width: 768px) {
  .song-field-wrapper {
    gap: 0.4rem;
  }

  .remove-song-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .song-input {
    padding: 0.6rem 1rem;
    padding-right: 3rem;
    font-size: 1rem;
  }

  .song-input-add-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    right: 3px;
  }

  .dynamic-songs-container {
    gap: 0.6rem;
  }
}
