* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #ffd6e7 0%, #ffb3d1 50%, #f9a8d4 100%);
  min-height: 100vh;
  padding: 24px 16px;
  color: #4a2040;
}

body::before {
  content: "🌸 💕 🌷 💗 🌸 💕 🌷";
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 2rem;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  background: #fff9fb;
  border-radius: 28px;
  box-shadow:
    0 20px 60px rgba(236, 72, 153, 0.18),
    0 4px 16px rgba(236, 72, 153, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

header {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
  color: white;
  padding: 40px 40px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: #fff9fb;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.header-deco {
  font-size: 1.8rem;
  margin-bottom: 10px;
  letter-spacing: 0.5rem;
  opacity: 0.9;
}

header h1 {
  font-family: "Pacifico", cursive;
  font-size: 2.6rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header p {
  font-size: 1rem;
  opacity: 0.92;
  font-weight: 600;
}

main {
  padding: 44px 40px 36px;
}

.input-section {
  margin-bottom: 28px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #be185d;
}

input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2.5px solid #fbcfe8;
  border-radius: 14px;
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  background: #fff;
  color: #4a2040;
  transition: border-color 0.25s, box-shadow 0.25s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}

input[type="text"]::placeholder {
  color: #f0abcc;
}

button {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  margin-top: 14px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  letter-spacing: 0.02em;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.45);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.manual-entry-toggle {
  margin-top: 14px;
  text-align: center;
}

#toggle-manual-btn {
  background: transparent;
  color: #ec4899;
  border: 2px solid #f9a8d4;
  padding: 10px 22px;
  font-size: 0.9rem;
  box-shadow: none;
}

#toggle-manual-btn:hover {
  background: #fdf2f8;
  border-color: #ec4899;
  box-shadow: none;
  transform: translateY(-2px);
}

.manual-entry-section {
  margin-top: 18px;
  padding: 22px;
  background: #fdf2f8;
  border-radius: 18px;
  border: 2px solid #fbcfe8;
}

.manual-entry-section label {
  font-size: 0.95rem;
}

.manual-entry-section textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #fbcfe8;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: "Nunito", sans-serif;
  resize: vertical;
  background: #fff;
  color: #4a2040;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.manual-entry-section textarea:focus {
  outline: none;
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}

#convert-manual-btn {
  width: 100%;
}

.status {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.status.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
}

.status.success {
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #bbf7d0;
}

.status.info {
  background: #fdf2f8;
  color: #9d174d;
  border: 1.5px solid #fbcfe8;
}

.hidden {
  display: none !important;
}

.playlist-info {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  padding: 20px 24px;
  border-radius: 18px;
  margin-bottom: 22px;
  border: 2px solid #fbcfe8;
}

.playlist-info h2 {
  font-family: "Pacifico", cursive;
  color: #db2777;
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.playlist-info p {
  color: #be185d;
  font-weight: 600;
}

.progress-section {
  margin: 28px 0;
}

.progress-bar {
  width: 100%;
  height: 18px;
  background: #fce7f3;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1.5px solid #fbcfe8;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f9a8d4 0%, #ec4899 60%, #db2777 100%);
  transition: width 0.3s ease;
  width: 0%;
  border-radius: 50px;
}

#progress-text {
  text-align: center;
  font-weight: 700;
  color: #db2777;
  font-size: 0.95rem;
}

.results {
  margin-top: 28px;
}

.results h3 {
  font-family: "Pacifico", cursive;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #db2777;
  text-align: center;
}

.track-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1.5px solid #fce7f3;
  border-radius: 10px;
  transition: background 0.18s;
  gap: 12px;
}

.track-item:hover {
  background: #fdf2f8;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-weight: 700;
  margin-bottom: 3px;
  color: #4a2040;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: #be185d;
  font-size: 0.88rem;
  font-weight: 600;
}

.track-status {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.track-status.found {
  background: #dcfce7;
  color: #166534;
}

.track-status.not-found {
  background: #fef2f2;
  color: #991b1b;
}

.track-link {
  margin-left: 8px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.track-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.45);
}

.export-section {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.export-section button {
  margin-top: 0;
  flex: 1;
  min-width: 160px;
}

footer {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  padding: 20px 40px;
  text-align: center;
  color: #be185d;
  font-size: 0.88rem;
  font-weight: 600;
  border-top: 2px solid #fbcfe8;
}

footer p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  header {
    padding: 30px 20px 44px;
  }

  header h1 {
    font-size: 1.9rem;
  }

  main {
    padding: 30px 20px 24px;
  }

  footer {
    padding: 16px 20px;
  }

  .track-item {
    flex-wrap: wrap;
  }

  .track-link {
    margin-left: 0;
  }

  .export-section {
    flex-direction: column;
  }

  .export-section button {
    width: 100%;
  }
}
