*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a12;
  --surface: #14141f;
  --surface-light: #1e1e2e;
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #ec4899;
  --text: #f3f3f8;
  --text-muted: #9999b0;
  --radius: 14px;
  --transition: 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(20, 20, 31, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 400; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 3rem;
  min-height: 70vh;
  background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.15), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.12), transparent 60%);
}

.hero-content { max-width: 500px; }
.hero-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4); }

.btn-secondary {
  padding: 0.7rem 1.8rem;
  background: var(--surface-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--primary); }

.hero-visual { position: relative; width: 300px; height: 300px; }
.floating-note { position: absolute; font-size: 3rem; animation: float 4s ease-in-out infinite; }
.floating-note:nth-child(1) { top: 0; left: 40%; animation-delay: 0s; }
.floating-note:nth-child(2) { top: 30%; left: 0; animation-delay: 0.5s; }
.floating-note:nth-child(3) { top: 55%; left: 60%; animation-delay: 1s; }
.floating-note:nth-child(4) { top: 75%; left: 20%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.upload-section { padding: 4rem 3rem; text-align: center; }
.upload-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.drop-zone {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.drop-zone.dragover { border-color: var(--primary-light); background: rgba(124, 58, 237, 0.1); }
.drop-icon { font-size: 3rem; margin-bottom: 1rem; }
.drop-zone p { font-size: 1.1rem; margin-bottom: 0.5rem; }
.drop-zone span { display: block; color: var(--text-muted); margin-bottom: 1rem; }

.upload-status { max-width: 600px; margin: 1.5rem auto 0; }
.upload-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-light);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  animation: fadeIn 0.4s ease;
}
.upload-item .file-icon { font-size: 1.5rem; }
.upload-item .file-name { flex: 1; text-align: left; font-size: 0.9rem; }
.upload-item .file-size { color: var(--text-muted); font-size: 0.8rem; }
.upload-item .file-status { color: var(--primary-light); font-size: 0.85rem; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-section { padding: 4rem 3rem; }
.player-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }

.player-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
}

.album-art {
  width: 70px; height: 70px;
  border-radius: 12px;
  background: var(--surface-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}

.track-info { text-align: left; }
.track-info h3 { font-size: 1.1rem; font-weight: 600; }
.track-info p { font-size: 0.9rem; color: var(--text-muted); }

.audio-controls { padding: 0 2rem; }
.audio-controls audio { width: 100%; height: 44px; border-radius: 10px; }

.playlist { padding: 1rem 2rem 2rem; max-height: 400px; overflow-y: auto; }
.playlist-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }

.track {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}
.track:hover { background: var(--surface-light); }
.track.active { background: rgba(124, 58, 237, 0.2); }
.track .track-number { width: 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.track .track-name { flex: 1; font-size: 0.95rem; }
.track .track-duration { color: var(--text-muted); font-size: 0.85rem; }
.track .track-delete {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; transition: color var(--transition);
}
.track .track-delete:hover { color: var(--accent); }

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .upload-section, .player-section { padding: 3rem 1.5rem; }
}
