* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.topbar h1 {
  font-size: 1.4rem;
  margin: 0;
}

.btn-link {
  background: #4c1d95;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.song-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.song-title {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 1.05rem;
}

.song-sub {
  background: #e5e7eb;
  color: #4b5563;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.song-box audio {
  display: block;
  width: 100%;
  padding: 10px 12px;
}

.empty, .count {
  text-align: center;
  color: #6b7280;
}

.upload-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.file-label {
  display: block;
  background: #4c1d95;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.upload-box input[type=file] {
  display: none;
}

.summary {
  text-align: center;
  margin-bottom: 12px;
  color: #374151;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.85rem;
  word-break: break-all;
}

.file-list li.uploading { background: #eff6ff; }
.file-list li.done { background: #ecfdf5; }
.file-list li.error { background: #fef2f2; }

@media (max-width: 480px) {
  .topbar h1 { font-size: 1.15rem; }
  .song-title { font-size: 0.95rem; padding: 10px 12px; }
  .song-sub { font-size: 0.78rem; }
}
