* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Tahoma, 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 40px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* هدر */
header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  padding: 40px 0 30px;
  text-align: center;
  border-radius: 0 0 30px 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 1rem;
}

#searchInput {
  padding: 14px 20px;
  width: 100%;
  max-width: 450px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: 0.3s;
}

#searchInput:focus {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

/* دسته‌بندی */
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.cat-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.95rem;
}

.cat-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-color: transparent;
}

/* گرید آهنگ‌ها */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* کارت آهنگ */
.song {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  transition: 0.3s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.song:hover .song-cover img {
  transform: scale(1.1);
}

.song-cover {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}
.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.song h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.song .artist {
  color: #a0a0c0;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.song .category {
  display: inline-block;
  background: rgba(106, 17, 203, 0.3);
  color: #c9a2ff;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

/* دکمه‌ها */
.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.play-btn, .download-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.play-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.play-btn:hover {
  background: rgba(255,255,255,0.2);
}

.download-btn {
  background: linear-gradient(135deg, #1db954, #1ed760);
  color: #fff;
  font-weight: bold;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4);
}

/* پیام خالی */
.empty-msg {
  text-align: center;
  color: #a0a0c0;
  font-size: 1.2rem;
  padding: 40px;
}

/* فوتر */
footer {
  text-align: center;
  padding: 30px 20px 10px;
  color: #7070a0;
  font-size: 0.9rem;
}

/* موبایل */
@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; }
  .song-grid { grid-template-columns: 1fr; }
}