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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f1a;
  color: #eee;
  min-height: 100vh;
}

/* Nav */
header {
  background: #1a1a2e;
  border-bottom: 1px solid #2a2a4a;
  padding: 1rem 2rem;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  color: #e94560;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-title {
  color: #aaa;
  font-size: 0.95rem;
}

/* Search */
.search-section {
  max-width: 700px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  text-align: center;
}

.search-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e94560, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-section p {
  color: #888;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #2a2a4a;
  background: #1a1a2e;
  color: #eee;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #e94560;
}

.search-box input::placeholder {
  color: #555;
}

.search-box button {
  padding: 0.85rem 1.5rem;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #c73652;
}

/* Genre tags */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid #2a2a4a;
  background: transparent;
  color: #aaa;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover,
.tag.active {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
}

/* Results */
.results-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.result-title {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 1.5rem;
  text-align: center;
}

.result-title span {
  color: #e94560;
  font-weight: 700;
}

/* Song grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.song-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.song-card:hover {
  transform: translateY(-4px);
  border-color: #a855f7;
}

.song-genre-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: #2a2a4a;
  color: #a855f7;
  width: fit-content;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.song-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #eee;
  margin-top: 0.25rem;
}

.song-artist {
  font-size: 0.9rem;
  color: #888;
}

.song-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-top: 0.25rem;
}


/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #555;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1rem;
}

.empty-state.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .search-section h1 {
    font-size: 1.5rem;
  }

  .search-box {
    flex-direction: column;
  }
}
