* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #1db954;
  --dark: #191414;
  --light: #ffffff;
  --gray: #f2f2f2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
  background: linear-gradient(135deg, #191414 0%, #121212 100%);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#mood-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 1s ease;
}

header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #1db954, #1ed760);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

header p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.mood-selector {
  text-align: center;
  margin-bottom: 3rem;
}

.mood-selector h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mood-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mood-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  backdrop-filter: blur(10px);
}

.mood-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.mood-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(29, 185, 84, 0.5);
  border-color: var(--primary);
}

.happy {
  color: #ffd166;
}
.sad {
  color: #6c8dfa;
}
.chill {
  color: #06d6a0;
}
.energetic {
  color: #ef476f;
}
.focused {
  color: #7b2cbf;
}
.romantic {
  color: #ff70a6;
}

.playlist-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.playlist-placeholder {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
}

.spotify-embed {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-element {
  position: fixed;
  z-index: -1;
  animation: floatDown linear forwards;
  pointer-events: none;
  font-size: 1.8rem;
  opacity: 0.7;
}

@keyframes floatDown {
  from {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0.8;
  }
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .mood-buttons {
    gap: 1rem;
  }

  .mood-btn {
    padding: 1rem 2rem;
  }

  .playlist-container {
    padding: 2rem 1.5rem;
  }
}