:root {
  /* Color Palette - Dreamy & Cinematic */
  --bg-dark: #05060f;
  --bg-deep: #0b0d1e;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --accent-primary: #00f2fe;
  --accent-secondary: #7000ff;
  --accent-glow: rgba(112, 0, 255, 0.5);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition-dreamy: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 50%, #161a3d 0%, #05060f 100%);
  min-height: 100vh;
}

/* Animated Dreamy Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(0, 242, 254, 0.15) 0%, transparent 40%);
  z-index: -1;
  animation: bgMove 20s infinite alternate ease-in-out;
}

@keyframes bgMove {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

/* Header & Navigation */
#head {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 6, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

#logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
  transition: var(--transition-dreamy);
}

#logo:hover {
  transform: rotate(360deg) scale(1.1);
}

#menu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

#menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition-dreamy);
}

#menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  transition: var(--transition-dreamy);
}

#menu a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-primary);
}

#menu a:hover::after {
  width: 100%;
}

/* Hero Section */
#home-banner {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  background: none;
}

.banner-c {
  max-width: 900px;
  animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.banner-c h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--accent-primary), #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.3));
}

.banner-c p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.banner-c a {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  transition: var(--transition-dreamy);
}

.banner-c a:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 40px var(--accent-primary);
  transform: translateY(-5px) scale(1.05);
}

/* Playlist Section */
.main {
  padding: 120px 5% 100px;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.playlist-header h3 {
  font-size: 2.5rem;
  margin-bottom: 0;
  font-weight: 900;
  letter-spacing: -1px;
}

/* Search Container */
.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

#track-search {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-dreamy);
}

#track-search:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.8rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: var(--transition-dreamy);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-3px);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-primary);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3.5rem;
}

.playlist-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-dreamy);
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.playlist-item:nth-child(2n) { animation-delay: 1s; }
.playlist-item:nth-child(3n) { animation-delay: 2s; }

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.2);
  transform: translateY(-10px) scale(1.02);
}

.album-poster {
  border-radius: 16px;
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
}

.album-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.playlist-item:hover .album-poster img {
  transform: scale(1.1);
}

.album-info {
  margin-top: 1.5rem;
  text-align: center;
}

.album-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.album-info p {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.playing-pulse {
  animation: pulseGlow 2s ease-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Music Player */
#aplayer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0 !important;
  background: rgba(11, 13, 30, 0.8) !important;
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--accent-secondary);
  box-shadow: 0 -10px 50px rgba(112, 0, 255, 0.3);
  transform: translateY(100%);
  transition: var(--transition-dreamy);
}

#aplayer.showPlayer {
  transform: translateY(0);
}

.aplayer .aplayer-info .aplayer-music .aplayer-title {
  color: #fff !important;
  font-weight: 700;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: var(--accent-primary) !important;
}

/* Footer */
footer {
  padding: 4rem 5%;
  background: transparent;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-c h1 { font-size: 3rem; }
  .row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
