.hfe-songlist-wrap {
  --hfe-bg-top: #f8fbff;
  --hfe-bg-bottom: #edf2ff;
  --hfe-border: #d6def1;
  --hfe-ink: #1f2937;
  --hfe-muted: #5c6b85;
  --hfe-primary: #0f4cd6;
  --hfe-success-bg: #ecf9f0;
  --hfe-success-border: #8ac5a0;
  --hfe-error-bg: #fff1f1;
  --hfe-error-border: #e3a0a0;
  --hfe-shadow: 0 18px 45px rgba(36, 54, 98, 0.08);
  max-width: 980px;
  margin: 1.2rem auto;
  color: var(--hfe-ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

.hfe-songlist-shell {
  border: 1px solid var(--hfe-border);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.25rem;
  background: linear-gradient(155deg, var(--hfe-bg-top), var(--hfe-bg-bottom));
  box-shadow: var(--hfe-shadow);
}

.hfe-songlist-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.hfe-songlist-header p {
  margin: 0 0 1rem;
  color: var(--hfe-muted);
}

.hfe-songlist-form {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.9rem;
  border: 1px solid #d5ddf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.hfe-songlist-label {
  font-weight: 700;
}

.hfe-songlist-file-input {
  border: 1px solid #bac6e6;
  border-radius: 10px;
  padding: 0.46rem 0.55rem;
  background: #fff;
}

.hfe-songlist-help {
  margin: 0;
  color: var(--hfe-muted);
  font-size: 0.93rem;
}

.hfe-songlist-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.1rem 0 0.2rem;
}

.hfe-songlist-option input {
  margin-top: 0.2rem;
}

.hfe-songlist-option span {
  color: var(--hfe-muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.hfe-songlist-option strong {
  color: #273856;
  margin-right: 0.2rem;
}

.hfe-songlist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem;
}

.hfe-songlist-submit {
  min-width: 170px;
}

.hfe-songlist-status {
  min-height: 1.2rem;
  color: #2f4f8f;
  font-size: 0.93rem;
}

.hfe-songlist-loading {
  opacity: 0.72;
}

.hfe-songlist-message {
  margin: 0 0 0.95rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
}

.hfe-songlist-success {
  border-color: var(--hfe-success-border);
  background: var(--hfe-success-bg);
}

.hfe-songlist-error {
  border-color: var(--hfe-error-border);
  background: var(--hfe-error-bg);
}

.hfe-songlist-result {
  padding: 0.95rem;
  border: 1px solid #d5ddf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.hfe-songlist-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.75rem;
}

.hfe-songlist-meta p {
  margin: 0;
}

.hfe-songlist-textarea {
  width: 100%;
  min-height: 220px;
  margin: 0.38rem 0 0.8rem;
  padding: 0.68rem 0.76rem;
  border: 1px solid #bfcbea;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-family: "Consolas", "Monaco", monospace;
  white-space: pre;
}

.hfe-songlist-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #cfdaef;
}

.hfe-songlist-table th,
.hfe-songlist-table td {
  padding: 0.52rem 0.62rem;
  border: 1px solid #e0e8f8;
  text-align: left;
}

.hfe-songlist-table th {
  background: #f2f6ff;
}

.hfe-songlist-hidden {
  display: none;
}

@media (max-width: 640px) {
  .hfe-songlist-shell {
    border-radius: 14px;
    padding: 0.8rem;
  }

  .hfe-songlist-form,
  .hfe-songlist-result {
    padding: 0.75rem;
  }

  .hfe-songlist-meta {
    grid-template-columns: 1fr;
  }
}
