/**
 * ===================================================================
 * Modern Dark Glassmorphism & Music Streaming Design System
 * Inspired by Spotify, Apple Music & Modern Web3 Streaming
 * ===================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Core Color Palette */
  --bg-base: #08090f;
  --bg-surface: #0f111a;
  --bg-surface-elevated: #161926;
  --bg-glass: rgba(18, 21, 34, 0.72);
  --bg-glass-card: rgba(255, 255, 255, 0.035);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --bg-glass-active: rgba(255, 255, 255, 0.12);

  /* Borders & Dividers */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.14);
  --border-glass-focus: rgba(139, 92, 246, 0.5);

  /* Brand Accents */
  --accent-primary: #8b5cf6;       /* Violet */
  --accent-primary-hover: #7c3aed;
  --accent-secondary: #06b6d4;     /* Cyan */
  --accent-pink: #ec4899;          /* Rose Pink */
  --accent-emerald: #10b981;       /* Emerald Green */
  --accent-amber: #f59e0b;         /* Gold / Coins */
  --accent-red: #ef4444;           /* Danger / Live */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-dark: linear-gradient(180deg, rgba(8, 9, 15, 0) 0%, rgba(8, 9, 15, 0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Glows & Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-glass-lg: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 24px rgba(139, 92, 246, 0.35);
  --glow-pink: 0 0 24px rgba(236, 72, 153, 0.35);
  --glow-amber: 0 0 20px rgba(245, 158, 11, 0.35);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --header-height: 64px;
}

/* ================= Global Reset & Typography ================= */
* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Lights */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(8, 9, 15, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}
.ambient-orb-2 {
  position: absolute;
  top: 40%;
  left: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(8, 9, 15, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}
.ambient-orb-3 {
  position: absolute;
  bottom: -100px;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(8, 9, 15, 0) 70%);
  border-radius: 50%;
  filter: blur(70px);
}

/* ================= Glassmorphism Utility Classes ================= */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-light);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.glass-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-glass-light);
}

/* ================= Modern Header / Navbar ================= */
.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(8, 9, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1030;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  user-select: none;
}
.brand-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--glow-primary);
}
.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.brand-badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Search Capsule */
.search-capsule {
  flex: 0 1 600px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 3px 6px 3px 18px;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}
.search-capsule:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-glass-focus);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  padding: 8px 4px;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-submit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.search-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}
.voice-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 4px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.voice-search-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Header Action Pills */
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}
.coin-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  transform: translateY(-1px);
  box-shadow: var(--glow-amber);
}

.rewards-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.rewards-pill:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25));
  color: #fbcfe8;
  transform: translateY(-1px);
  box-shadow: var(--glow-pink);
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.user-avatar-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--glow-primary);
}

/* ================= Modern Sidebar Navigation ================= */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  z-index: 1;
}

.app-sidebar {
  width: 250px;
  background: rgba(11, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  flex-shrink: 0;
  padding: 16px 12px;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  transition: transform 0.25s ease;
}
.app-sidebar::-webkit-scrollbar { width: 5px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.nav-link-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link-pill i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-link-pill:hover {
  color: #fff;
  background: var(--bg-glass-hover);
}
.nav-link-pill:hover i {
  transform: scale(1.1);
  color: var(--accent-primary);
}
.nav-link-pill.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 600;
  box-shadow: inset 0 0 16px rgba(139, 92, 246, 0.15);
}
.nav-link-pill.active i {
  color: #c4b5fd;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 14px 16px 6px 16px;
}

/* ================= Category Chips (Filter Bar) ================= */
.chips-bar-wrap {
  position: sticky;
  top: var(--header-height);
  background: rgba(8, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1020;
  padding: 12px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.chips-bar-wrap::-webkit-scrollbar { display: none; }

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.chip-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-glass-light);
  transform: translateY(-1px);
}
.chip-item.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--glow-primary);
}
.chip-item .badge-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.sort-select-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 6px 20px 6px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}
.sort-select-glass:focus {
  border-color: var(--border-glass-focus);
}
.sort-select-glass option {
  background: #111422;
  color: #fff;
}

/* ================= Music & Video Grid Cards ================= */
.streaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px 20px;
  margin-top: 10px;
  width: 100%;
}

.track-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.track-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 92, 246, 0.2);
}

.track-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #121420;
}
.track-thumb-img, .track-thumb-wrap video.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.track-thumb-wrap video.preview-video {
  display: none;
  z-index: 2;
}
.track-card:hover .track-thumb-img {
  transform: scale(1.05);
}

/* Play Overlay on Hover */
.track-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.track-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
  transform: scale(0.8);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.track-card:hover .track-play-overlay {
  opacity: 1;
}
.track-card:hover .track-play-btn {
  transform: scale(1);
}

/* Floating Badges */
.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-tag-audio {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-tag-karaoke {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(236, 72, 153, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #fbcfe8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.fav-float-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
}
.fav-float-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
  transform: scale(1.1);
}
.fav-float-btn.active {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Card Content Details */
.track-info {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.track-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.track-avatar.audio {
  background: var(--gradient-secondary);
}
.track-avatar.video {
  background: var(--gradient-primary);
}

.track-meta {
  flex-grow: 1;
  min-width: 0;
}
.track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.track-card:hover .track-title {
  color: #c4b5fd;
}

.track-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.track-dot {
  font-size: 0.6rem;
  opacity: 0.6;
}

/* ================= Pagination Glass ================= */
.glass-pagination .page-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  margin: 0 4px;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.glass-pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-glass-light);
}
.glass-pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--glow-primary);
}
.glass-pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

/* ================= Form Controls & Inputs ================= */
.glass-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-glass) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 16px !important;
  transition: all 0.2s !important;
  font-family: inherit;
}
.glass-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--border-glass-focus) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
}

.glass-btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.glass-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.55);
  color: #fff;
}

.glass-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.glass-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-glass-light);
}

/* ================= Player Page Specifics ================= */
.player-container {
  background: rgba(18, 20, 32, 0.7);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass-lg);
}

.audio-vinyl-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(8, 9, 15, 0.8) 70%);
  position: relative;
}
.vinyl-disc {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  animation: vinylSpin 20s linear infinite;
  animation-play-state: paused;
}
.vinyl-disc.playing {
  animation-play-state: running;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sound Wave Animation */
.sound-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.sound-wave span {
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: waveBar 1.2s ease-in-out infinite alternate;
}
.sound-wave span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 60%; animation-delay: 0.4s; }
@keyframes waveBar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ================= Responsive Styles ================= */
@media (max-width: 991px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 1040;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.8);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1035;
  }
  .sidebar-backdrop.show {
    display: block;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 12px;
  }
  .search-capsule {
    display: none;
  }
  .search-capsule.mobile-active {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 1050;
    background: var(--bg-surface);
    border-radius: 0;
    max-width: 100%;
    padding: 6px 12px;
  }
  .streaming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

@media (max-width: 576px) {
  .streaming-grid {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
}
