        /* Base Styles */
/* =============== BASE STYLES =============== */
:root {
  --primary: #1db954;
  --primary-light: #1ed760;
  --primary-dark: #179c46;
  --secondary: #535353;
  --secondary-light: #b3b3b3;
  --secondary-dark: #282828;
  --accent: #ff5500;
  --accent-light: #ff7733;
  --accent-dark: #cc4400;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-darker: #000000;
  --bg-light: #181818;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-light: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.3);
  --error: #ff3333;
  --success: #1db954;
  --warning: #ffaa00;
  --info: #0099ff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-light);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

/* Layout */
.main-container {
  display: flex;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for player */
}

.sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 1rem 2rem;
}

/* Sidebar Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding: 0.5rem;
}

.logo i {
  color: var(--primary);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item.active {
  background: var(--glass-light);
}

.menu-item:hover:not(.active) {
  background: var(--glass);
}

.menu-item i {
  width: 24px;
  text-align: center;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.5rem 0 0.5rem 1rem;
  color: var(--text-secondary);
}

.playlist-item, .artist-item {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.playlist-item:hover, .artist-item:hover {
  background: var(--glass);
}

.install-app {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-top: auto;
  border-top: 1px solid var(--glass-light);
  cursor: pointer;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0 -2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.nav-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-dark);
  cursor: pointer;
}

.search-bar {
  flex: 0.6;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}

.search-bar input {
  background: transparent;
  border: none;
  width: 100%;
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-bar input:focus {
  outline: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.search-item:hover {
  background: var(--glass);
}

.search-item-image {
  width: 40px;
  height: 40px;
  border-radius: 0.25rem;
  background-size: cover;
  background-position: center;
}

.search-item-info {
  flex: 1;
}

.search-item-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.search-item-artist, .search-item-type {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 2rem;
  background: var(--glass-dark);
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  display: none;
  z-index: 10;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--glass);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.featured-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, var(--secondary-dark), var(--bg-darker));
}

.featured-image {
  width: 250px;
  height: 250px;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cd-rotation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sound-waves {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 20px;
}

.wave {
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  animation: wave 1.2s infinite ease-in-out;
}

.wave:nth-child(2) {
  animation-delay: 0.1s;
}

.wave:nth-child(3) {
  animation-delay: 0.2s;
}

.wave:nth-child(4) {
  animation-delay: 0.3s;
}

.wave:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.featured-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.featured-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}

.featured-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 80%;
}

.featured-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.featured-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-button {
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.play-button i {
  font-size: 1rem;
}

.like-button, .more-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-button:hover, .more-button:hover {
  background: var(--glass-light);
}


        /* Music Card Styles */
        .music-card {
            background: var(--light-dark);
            border-radius: 12px;
            padding: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .music-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
            background: #282828;
        }

        .card-image-container {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 15px;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .card-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .music-card:hover .card-image-container img {
            transform: scale(1.05);
        }

        .hover-play-button {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 50px;
            height: 50px;
            background-color: var(--success);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border: none;
            color: white;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 2;
        }

        .music-card:hover .hover-play-button {
            opacity: 1;
            transform: translateY(0);
        }

        .hover-play-button i {
            font-size: 1.2rem;
        }

        .card-content {
            position: relative;
            z-index: 2;
        }

        .card-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--light);
            transition: color 0.3s ease;
        }

        .card-subtitle {
            color: var(--gray);
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 10px;
            transition: color 0.3s ease;
        }

        .verified-badge {
            color: var(--modern-blue);
            font-size: 0.8rem;
            margin-left: 5px;
            vertical-align: middle;
        }

        .song-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 5px;
        }

        .song-duration {
            font-size: 0.8rem;
            color: var(--gray);
            transition: color 0.3s ease;
        }

        .listeners-count {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.7rem;
            color: var(--success);
            background: rgba(29, 185, 84, 0.1);
            padding: 3px 8px;
            border-radius: 10px;
        }

        .listeners-count i {
            font-size: 0.6rem;
        }

        .song-actions {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .music-card:hover .song-actions {
            opacity: 1;
        }

        .song-action-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            color: var(--gray);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .song-action-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }

        .song-action-btn.like:hover {
            background: var(--danger);
        }

        /* Advanced Filter Panel */
        .filter-panel {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            gap: 10px;
            margin: 20px 0;
            padding: 15px;
            background: var(--light-dark);
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            scrollbar-width: none;
            transition: all 0.3s ease;
        }

        .filter-panel::-webkit-scrollbar {
            display: none;
        }

        .filter-btn {
            padding: 8px 15px;
            border-radius: 20px;
            border: 1px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.05);
            color: var(--gray);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .filter-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }
       /* Advanced Filter Dropdown */
        .filter-dropdown {
            position: relative;
            display: inline-block;
        }

        .filter-dropdown-btn {
            padding: 8px 15px;
            border-radius: 20px;
            border: 1px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.05);
            color: var(--gray);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .filter-dropdown-content {
            display: none;
            position: absolute;
            background: var(--light-dark);
            min-width: 200px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1;
            border-radius: 10px;
            padding: 10px;
            top: 100%;
            left: 0;
            margin-top: 5px;
        }

        .filter-dropdown:hover .filter-dropdown-content {
            display: block;
        }

        .filter-dropdown-item {
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-dropdown-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

  /* For You Section - Auto-sliding Carousel */
        .for-you-section {
            margin: 30px 0;
        }

        .carousel-container {
            position: relative;
            margin: 20px 0;
        }

        .carousel {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 10px 0;
            scrollbar-width: none;
        }

        .carousel::-webkit-scrollbar {
            display: none;
        }

        .carousel-item {
            flex: 0 0 280px;
            scroll-snap-align: start;
            background: var(--light-dark);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .carousel-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .carousel-item-img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }

        .carousel-item-content {
            padding: 15px;
        }

        .carousel-item-title {
            font-weight: 600;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .carousel-item-subtitle {
            font-size: 0.8rem;
            color: var(--gray);
            transition: color 0.3s ease;
        }

        .carousel-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--gray);
            opacity: 0.5;
            cursor: pointer;
            transition: all 0.2s;
        }

        .carousel-dot.active {
            background: var(--primary);
            opacity: 1;
            transform: scale(1.2);
        }

        /* Trending Sliders */
        .trending-slider {
            position: relative;
            margin: 30px 0;
        }

        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .slider-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--light);
            transition: color 0.3s ease;
        }

        .slider-controls {
            display: flex;
            gap: 10px;
        }

        .slider-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-btn:hover {
            background: var(--primary);
            color: white;
        }

        .slider-container {
            position: relative;
            overflow: hidden;
        }

        .slider-track {
            display: flex;
            gap: 20px;
            transition: transform 0.5s ease;
        }

        .slider-item {
            flex: 0 0 calc(33.333% - 14px);
            background: var(--light-dark);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
        }

        .slider-item:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .slider-item-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--wine-red);
            color: white;
            font-size: 0.8rem;
            font-weight: bold;
            padding: 3px 8px;
            border-radius: 10px;
            z-index: 2;
        }

        .slider-item-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .slider-item:hover .slider-item-img {
            transform: scale(1.05);
        }

        .slider-item-content {
            padding: 15px;
        }

        .slider-item-title {
            font-weight: 600;
            margin-bottom: 5px;
            transition: color 0.3s ease;
        }

        .slider-item-subtitle {
            font-size: 0.8rem;
            color: var(--gray);
            transition: color 0.3s ease;
        }

/* Content Sections */
.content-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title-large {
  font-size: 1.5rem;
  font-weight: 700;
}

.view-all {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  background: var(--glass);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0.25rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.play-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.card:hover .play-icon {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.artist-card .card-image {
  border-radius: 50%;
}

/* YouTube Videos Section */
.youtube-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.youtube-card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.youtube-card:hover {
  transform: translateY(-5px);
}

.youtube-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-size: cover;
  background-position: center;
}

.youtube-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail::after {
  background: rgba(0, 0, 0, 0.1);
}

.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.youtube-info {
  padding: 1rem;
  background: var(--glass);
}

.youtube-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.youtube-dropdown, 
.install-app-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 10;
}

.song-info {
  flex: 0.3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.song-image {
  width: 56px;
  height: 56px;
  border-radius: 0.25rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.song-image .cd-rotation {
  width: 100%;
  height: 100%;
  animation-play-state: paused;
}

.song-details {
  flex: 1;
}

.song-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-like {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.song-like i {
  transition: all 0.3s ease;
}

.song-like:hover i {
  color: var(--primary);
}

.player-controls {
  flex: 0.4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.control-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-button:hover {
  color: var(--text-primary);
}

.play-button-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button-small:hover {
  transform: scale(1.1);
}

.progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-secondary);
  border-radius: 2px;
}

.progress-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: center;
}

.extra-controls {
  flex: 0.3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-bar {
  width: 80px;
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 70%;
  background: var(--text-secondary);
  border-radius: 2px;
}

.playback-speed {
  position: relative;
}

.playback-speed-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
}

.playback-speed-options {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--bg-light);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: none;
  z-index: 10;
}

.playback-speed-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.25rem;
}

.playback-speed-option:hover {
  background: var(--glass);
}

.playback-speed-option.active {
  color: var(--primary);
}

        /* Audio player styles */
        .hover-play-button {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease;
            border: none;
            z-index: 2;
        }
        
        .card:hover .hover-play-button {
            opacity: 1;
        }
        
        .music-player {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(30, 30, 30, 0.9);
            backdrop-filter: blur(10px);
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .progress-container {
            width: 100%;
            max-width: 500px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .progress-bar {
            flex-grow: 1;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            cursor: pointer;
        }
        
        .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            width: 0%;
        }
        
        .progress-time {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
        
      /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            border-top: 1px solid #333;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--gray);
            text-decoration: none;
            font-size: 12px;
            padding: 5px 0;
            transition: all 0.2s;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 22px;
            margin-bottom: 3px;
        }

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 0.5rem;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--glass-light);
  background: var(--glass-dark);
  color: var(--text-primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-light);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  position: relative;
  color: var(--text-secondary);
}

.tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.settings-content {
  display: none;
}

.settings-content.active {
  display: block;
}

.queue-list {
  max-height: 60vh;
  overflow-y: auto;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--glass);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animations */
.slide-up {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  
  .main-content {
    margin-left: 200px;
  }
  
  .featured-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .featured-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .featured-image {
    width: 200px;
    height: 200px;
  }
  
  .featured-description {
    max-width: 100%;
  }
  
  .featured-buttons {
    justify-content: center;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .youtube-videos {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 1rem;
  }
  
  .top-header {
    padding: 1rem;
  }
  
  .search-bar {
    display: none;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .featured-title {
    font-size: 1.5rem;
  }
  
  .music-player {
    padding: 0 0.5rem;
  }
  
  .song-info {
    flex: 0.5;
  }
  
  .player-controls {
    flex: 0.5;
  }
  
  .extra-controls {
    display: none;
  }
  
  .youtube-videos {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.show {
  display: flex !important;
}

.show-block {
  display: block !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }