:root {
  --primary-color: #1587c9;
  --primary-dark: #5a67d8;
  --primary-light: #8c9eff;
  --background-dark: #0f1419;
  --background-card: #1a1f2e;
  --background-sidebar: #141a25;
  --text-primary: #ffffff;
  --text-secondary: #b0b7c3;
  --text-muted: #8a94a6;
  --accent-color: #ff6b6b;
  --success-color: #4ade80;
  --warning-color: #f59e0b;
  --sidebar-width: 280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Blurred Background */
#background-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(30px) brightness(0.3) saturate(1.5);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease, background-image 1s ease;
  pointer-events: none;
}

#background-cover.active {
  opacity: 1;
}

/* Glassmorphism Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-heavy {
  background: rgba(15, 20, 25, 0.8);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
}

/* Enhanced Glassmorphism for Content Areas */
#main-content,
#audio-player-bar {
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(15px);
}

.topbar {
  background: rgba(26, 31, 46, 0.5) !important;
  backdrop-filter: blur(20px);
}

#sidebar {
  background: rgba(20, 26, 37, 0.85) !important;
  backdrop-filter: blur(25px);
}

.music-card {
  background: rgba(26, 31, 46, 0.6) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-box {
  background: rgba(26, 31, 46, 0.95) !important;
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, var(--background-dark) 0%, #1a202c 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Enhanced Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--background-dark) 0%, #1a202c 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 10px rgba(21, 135, 201, 0.3));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(21, 135, 201, 0.6));
  }
}

/* Enhanced Wave Progress Bar */
.wave-progress-container {
  width: 300px;
  height: 20px;
  margin-top: 1.5rem;
}

.wave-progress-bar {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.wave-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    rgba(21, 135, 201, 0.8) 0%, 
    rgba(92, 107, 192, 0.8) 50%, 
    rgba(140, 158, 255, 0.8) 100%);
  border-radius: 10px;
  animation: wave-progress 2s ease-in-out infinite, fill-progress 3s ease-in-out forwards;
  z-index: 2;
}

.wave-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: wave-move 2s linear infinite;
  z-index: 1;
  opacity: 0.6;
}

@keyframes wave-progress {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes fill-progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes wave-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Enhanced Sidebar with Glassmorphism */
#sidebar {
  width: var(--sidebar-width);
  background: var(--background-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header .logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  margin: 0 0.5rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.sidebar-link:hover::before {
  left: 100%;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(5px);
}

.sidebar-link.active {
  background: rgba(103, 114, 229, 0.15);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  box-shadow: inset 0 0 20px rgba(103, 114, 229, 0.1);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: var(--transition);
}

.sidebar-link:hover svg {
  transform: scale(1.1);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main Content */
#main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

/* Enhanced Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(26, 31, 46, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(103, 114, 229, 0.1);
  box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.1);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sidebar-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.progress-bar.dragging {
  cursor: grabbing;
}

.progress-bar.dragging .progress-inner {
  transition: none;
}

/* Content Area */
#section-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.section-header {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Enhanced Music Cards with Hover Effects */
.music-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.music-card {
  background: var(--background-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 135, 201, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.music-card:hover::before {
  opacity: 1;
}

.music-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.music-card-cover {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.music-card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.music-card:hover .music-card-cover img {
  transform: scale(1.1);
}

.music-card-info {
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.music-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-card-artist {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-card-album {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.music-card-actions {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem 1rem;
  position: relative;
  z-index: 2;
}

.music-card-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.music-card-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.music-card-btn.download-btn:hover {
  color: var(--success-color);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.music-card-btn.favorite-btn.active {
  color: var(--accent-color);
}

.music-card-btn.favorite-btn:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Enhanced Audio Player */
#audio-player-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: var(--background-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}

.player-cover {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-right: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.player-cover:hover {
  transform: scale(1.05);
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.5rem;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1);
}

.player-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 4px 12px rgba(21, 135, 201, 0.3);
}

.player-btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(21, 135, 201, 0.4);
}

.player-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.5rem;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 40px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Enhanced YouTube Video Panel */
#youtube-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.video-container {
  background: var(--background-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: scaleIn 0.3s ease-out;
}

.video-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: scale(1.1);
}

.video-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#youtube-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.video-info {
  margin-top: 1rem;
  text-align: center;
}

.video-song-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.video-song-artist {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================================================== */
/* UPDATED SETTINGS AND CONTACTS PANELS - NEW DESIGN */
/* ========================================================================== */

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Enhanced Settings Panel */
#settings-panel,
#contacts-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.settings-box {
  background: rgba(30, 41, 59, 0.95);
  border-radius: 24px;
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  transform: rotate(90deg);
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings-row {
  margin-bottom: 1.5rem;
}

.settings-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}

.settings-select,
.settings-input {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-select:focus,
.settings-input:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.settings-btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.settings-btn.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.settings-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.settings-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Enhanced Social Buttons for Contacts */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-btn.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.social-btn.email { background: linear-gradient(135deg, #EA4335, #D14836); }
.social-btn.twitter { background: linear-gradient(135deg, #1DA1F2, #0d8bd9); }
.social-btn.instagram { background: linear-gradient(135deg, #E4405F, #C13584); }
.social-btn.facebook { background: linear-gradient(135deg, #1877F2, #166FE5); }
.social-btn.github { background: linear-gradient(135deg, #333, #24292e); }
.social-btn.youtube { background: linear-gradient(135deg, #FF0000, #CC0000); }
.social-btn.tiktok { background: linear-gradient(135deg, #000000, #69C9D0); }
.social-btn.discord { background: linear-gradient(135deg, #5865F2, #4752C4); }
.social-btn.threads { background: linear-gradient(135deg, #000000, #333333); }

/* ========================================================================== */
/* END OF UPDATED SETTINGS AND CONTACTS PANELS */
/* ========================================================================== */

/* New Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: var(--background-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--accent-color);
}

.notification.info {
  border-left: 4px solid var(--primary-color);
}

/* Enhanced Playlist Cards */
.playlist-card {
  background: linear-gradient(135deg, rgba(21, 135, 201, 0.1), rgba(140, 158, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(15px);
}

.playlist-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(21, 135, 201, 0.15), rgba(140, 158, 255, 0.1));
}

/* Genre Filter Chips */
.genre-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.genre-chip:hover,
.genre-chip.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 135, 201, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  #sidebar {
    transform: translateX(-100%);
  }

  #sidebar.active {
    transform: translateX(0);
  }

  #main-content {
    margin-left: 0;
  }

  #audio-player-bar {
    left: 0;
  }

  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .music-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 1rem;
  }

  #section-area {
    padding: 1rem;
  }

  .player-progress {
    display: none;
  }

  .music-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .settings-box {
    padding: 1.5rem;
  }
  
  .wave-progress-container {
    width: 250px;
  }
  
  /* Mobile player controls */
  .player-controls {
    margin: 0 0.5rem;
    gap: 0.5rem;
  }
  
  .player-btn {
    width: 32px;
    height: 32px;
  }
  
  .player-btn.primary {
    width: 36px;
    height: 36px;
  }
  
  .player-cover {
    width: 40px;
    height: 40px;
  }
  
  .player-info {
    min-width: 120px;
  }
  
  .player-title {
    font-size: 0.9rem;
  }
  
  .player-artist {
    font-size: 0.8rem;
  }
  
  .video-container {
    padding: 1rem;
    margin: 1rem;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  /* Updated responsive styles for settings/contacts */
  .social-buttons {
    grid-template-columns: 1fr;
  }

  .settings-btn-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .player-controls {
    margin: 0 0.25rem;
  }

  .player-volume {
    display: none;
  }

  .music-cards {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .wave-progress-container {
    width: 200px;
  }
  
  .player-btn#btn-video {
    display: none;
  }
  
  .video-container {
    padding: 0.5rem;
    margin: 0.5rem;
  }
  
  #youtube-player {
    aspect-ratio: 1/1;
  }

  /* Updated responsive styles for settings/contacts */
  .settings-box {
    padding: 1rem;
    margin: 0.5rem;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none;
}

/* Active states for player controls */
.player-btn.active {
  color: var(--primary-color);
}

/* Now Playing highlight */
.music-card.playing {
  box-shadow: 0 0 0 2px var(--primary-color), 0 8px 24px rgba(21, 135, 201, 0.3);
  transform: scale(1.02);
}

.error-message {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  font-size: 0.875rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* Touch-friendly elements */
.music-card,
.player-btn,
.progress-bar,
.sidebar-link,
.settings-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Swipe gestures for mobile */
.swipe-area {
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 10;
}

.swipe-left {
  left: 0;
}

.swipe-right {
  right: 0;
}

/* Mobile swipe indicator */
.swipe-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.swipe-indicator.show {
  opacity: 1;
}

/* Video indicator */
.video-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

/* Loading animation for cards */
.music-card.loading .music-card-cover {
  background: linear-gradient(90deg, #2a2f42 25%, #3a3f52 50%, #2a2f42 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Playlist dropdown styles */
.playlist-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--background-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 10;
  min-width: 150px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-option {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.playlist-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improved mobile menu */
@media (max-width: 1024px) {
  #sidebar {
    width: 100%;
    max-width: 300px;
  }
  
  .sidebar-header {
    justify-content: center;
  }
}

/* Better focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #audio-player-bar,
  #sidebar,
  .topbar {
    display: none !important;
  }
  
  #main-content {
    margin-left: 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --text-muted: #cccccc;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Audio context notice styles */
.audio-context-notice {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1587c9, #5a67d8);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(21, 135, 201, 0.4);
  animation: pulse 2s infinite;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-context-notice i {
  font-size: 16px;
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* Audio player improvements */
#audio-player-bar {
  background: rgba(26, 31, 46, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for mobile audio context */
@media (max-width: 768px) {
  .audio-context-notice {
    bottom: 80px;
    font-size: 13px;
    padding: 10px 20px;
  }
  
  /* Ensure audio continues playing when screen is locked */
  #audio {
    -webkit-playback-target: media;
  }
}

/* Fix for iOS audio */
@supports (-webkit-touch-callout: none) {
  #audio {
    -webkit-tap-highlight-color: transparent;
  }
  
  #audio-player-bar {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

/* Add smooth transitions for player states */
.music-card.playing {
  animation: playing-pulse 2s infinite;
}

@keyframes playing-pulse {
  0% {
    box-shadow: 0 0 0 2px var(--primary-color), 0 8px 24px rgba(21, 135, 201, 0.3);
  }
  50% {
    box-shadow: 0 0 0 3px var(--primary-color), 0 12px 32px rgba(21, 135, 201, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px var(--primary-color), 0 8px 24px rgba(21, 135, 201, 0.3);
  }
}

/* Improve volume slider */
.volume-slider {
  cursor: pointer;
  background: linear-gradient(to right, var(--primary-color) 80%, rgba(255, 255, 255, 0.1) 80%);
}

.volume-slider::-webkit-slider-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}