/* ============================================================
   VIBEMUSIC – style.css
   Dark Spotify-inspired theme with glassmorphism & animations
   ============================================================ */

/* ─── 1. CSS CUSTOM PROPERTIES (Design Tokens) ───────────── */
:root {
  /* Colors */
  --bg-base:        #121212;
  --bg-elevated:    #181818;
  --bg-highlight:   #282828;
  --bg-press:       #333333;
  --accent:         #1DB954;
  --accent-dark:    #158a3e;
  --accent-glow:    rgba(29, 185, 84, 0.35);
  --text-primary:   #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted:     #6a6a6a;
  --player-bg:      #0a0a0a;
  --sidebar-bg:     #000000;
  --border-subtle:  rgba(255,255,255,0.07);

  /* Dimensions */
  --sidebar-width:  240px;
  --player-height:  88px;
  --top-bar-height: 70px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    0.15s;
  --dur-mid:     0.28s;
  --dur-slow:    0.5s;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px var(--accent-glow);
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-press); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── 3. LAYOUT GRID ─────────────────────────────────────── */
.app-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr;
  height: calc(100dvh - var(--player-height));
  position: relative;
}

/* ─── 4. SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border-subtle);
  transition: transform var(--dur-mid) var(--ease-smooth),
              width var(--dur-mid) var(--ease-smooth);
  z-index: 100;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
  user-select: none;
}
.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50%       { filter: drop-shadow(0 0 18px rgba(29,185,84,0.7)); }
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 50%, #fff 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--dur-fast) ease,
              background var(--dur-fast) ease,
              transform var(--dur-fast) ease;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) ease;
  border-radius: inherit;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-highlight);
  transform: translateX(4px);
}
.nav-link:hover::before { opacity: 1; }
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-highlight);
}
.nav-link.active::before { opacity: 1; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sidebar Playlist Section */
.sidebar-section {
  margin-top: 2rem;
}
.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 0 0.75rem 0.75rem;
}
.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.playlist-list li a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-list li a:hover { color: var(--text-primary); background: var(--bg-highlight); }
.playlist-list li a.active { color: var(--accent); }

/* ─── 5. MOBILE SIDEBAR TOGGLE ───────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  color: var(--text-primary);
  transition: background var(--dur-fast) ease;
}
.sidebar-toggle:hover { background: var(--bg-highlight); }

/* ─── 6. MAIN CONTENT ────────────────────────────────────── */
.main-content {
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--bg-base) 30%);
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 2rem;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

/* Search */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  width: 100%;
  max-width: 420px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.search-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon { color: var(--text-muted); width: 18px; height: 18px; flex-shrink: 0; }
.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}
.search-clear.visible { opacity: 1; pointer-events: all; }
.search-clear:hover { color: var(--text-primary); }

/* Content Sections */
.content-section {
  display: none;
  padding: 2rem;
  flex: 1;
  animation: fadeInUp var(--dur-mid) var(--ease-smooth);
}
.content-section.active { display: block; }

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

/* ─── 7. HERO BANNER ─────────────────────────────────────── */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0d2818 0%, #1a3a28 40%, #1a2040 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(29,185,84,0.15);
  min-height: 200px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(29,185,84,0.12) 0%, transparent 60%);
}
.hero-text { position: relative; z-index: 1; max-width: 55%; }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(90deg, #1DB954, #1ed760, #a8ff78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
.btn-hero:hover {
  background: #1ed760;
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}
.btn-hero:active { transform: scale(0.97); }

/* Hero Visual – Vinyl disc */
.hero-visual {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
}
.hero-disc {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(#1a1a1a, #2a2a2a, #1a1a1a, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.4);
  animation: spin-disc 8s linear infinite paused;
  position: relative;
  z-index: 2;
}
.hero-disc.playing { animation-play-state: running; }
@keyframes spin-disc {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-disc-inner {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #1DB954 0%, #0a3d1f 60%, #000 100%);
  box-shadow: 0 0 12px var(--accent-glow);
}
.hero-rings { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(29,185,84,0.15);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: ring-pulse 3s ease-in-out infinite;
}
.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 210px; height: 210px; animation-delay: 0.6s; }
.ring-3 { width: 240px; height: 240px; animation-delay: 1.2s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.4;  transform: translate(-50%, -50%) scale(1.03); }
}

/* ─── 8. SECTION TITLES ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.see-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--dur-fast) ease;
}
.see-all-link:hover { color: var(--text-primary); }

/* ─── 9. SONG GRID & CARDS ───────────────────────────────── */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}

.song-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: background var(--dur-mid) ease,
              transform var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) ease;
  border: 1px solid transparent;
  overflow: hidden;
}
.song-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(29,185,84,0.08), transparent);
  transition: opacity var(--dur-mid) ease;
  border-radius: inherit;
}
.song-card:hover {
  background: var(--bg-highlight);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-card), 0 0 20px rgba(29,185,84,0.15);
  border-color: rgba(29,185,84,0.2);
}
.song-card:hover::before { opacity: 1; }
.song-card.active {
  border-color: var(--accent);
  background: rgba(29,185,84,0.1);
}

.card-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-mid) ease;
}
/* CSS gradient fallback covers – used when no image is found */
.card-cover-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.song-card:hover .card-cover { transform: scale(1.06); }

/* Play overlay on card */
.card-play-overlay {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  pointer-events: none;
}
.song-card:hover .card-play-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.song-card.active .card-play-overlay { opacity: 1; transform: translateY(0); background: #1ed760; }
.card-play-overlay svg { fill: #000; }

/* Equalizer animation on active card */
.card-equalizer {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 18px;
}
.song-card.active.is-playing .card-play-overlay { opacity: 0; }
.song-card.active.is-playing .card-equalizer { display: flex; }
.eq-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: eq-dance 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 8px;  animation-delay: 0.3s; }
.eq-bar:nth-child(4) { height: 14px; animation-delay: 0.1s; }
@keyframes eq-dance {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.card-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active song highlight */
.card-playing-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: none;
}
.song-card.active .card-playing-badge { display: block; }

/* No Results */
.no-results {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 3rem 0;
  text-align: center;
}

/* ─── 10. LIBRARY / PLAYLIST SECTION ─────────────────────── */
.playlist-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.playlist-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.playlist-tab:hover { background: var(--bg-highlight); color: var(--text-primary); }
.playlist-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Playlist Song Rows */
.playlist-songs { display: flex; flex-direction: column; gap: 0.35rem; }
.playlist-row {
  display: grid;
  grid-template-columns: 36px 2fr 1.5fr 60px;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.playlist-row:hover { background: var(--bg-elevated); }
.playlist-row.active { background: rgba(29,185,84,0.1); }
.playlist-row-num {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.playlist-row.active .playlist-row-num { color: var(--accent); font-weight: 700; }
.playlist-row-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.playlist-row-thumb {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.playlist-row-thumb-gradient {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.playlist-row-title { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-row-artist { font-size: 0.8rem; color: var(--text-secondary); }
.playlist-row-artist-col { font-size: 0.83rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-row-duration { font-size: 0.82rem; color: var(--text-muted); text-align: right; }

/* ─── 11. PLAYER ─────────────────────────────────────────── */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-height);
  background: var(--player-bg);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 500;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Player Left */
.player-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.player-cover-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-cover {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-highlight);
  transition: transform var(--dur-mid) ease;
}
.player-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.player-cover-gradient {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.player-cover:hover { transform: scale(1.08); }
.player-cover-glow {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) ease;
  z-index: -1;
}
.player-cover-glow.visible { opacity: 1; }
.player-info { min-width: 0; flex: 1; }
.player-song-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.player-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-like-btn {
  flex-shrink: 0;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.player-like-btn:hover { color: var(--accent); transform: scale(1.2); }
.player-like-btn.liked { color: var(--accent); }

/* Player Center */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(480px, 45vw);
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0.45rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease,
              background var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}
.ctrl-btn:hover { color: var(--text-primary); transform: scale(1.12); }
.ctrl-btn:active { transform: scale(0.92); }
.ctrl-play {
  background: var(--text-primary);
  color: #000 !important;
  width: 40px; height: 40px;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.ctrl-play:hover {
  background: #fff;
  transform: scale(1.1) !important;
  box-shadow: 0 0 18px rgba(255,255,255,0.3);
}
.ctrl-shuffle.active, .ctrl-repeat.active { color: var(--accent); position: relative; }
.ctrl-shuffle.active::after, .ctrl-repeat.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Progress Bar */
.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.time-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
}
.progress-bar-bg {
  flex: 1;
  height: 4px;
  background: var(--bg-press);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: height var(--dur-fast) ease;
}
.progress-bar-bg:hover { height: 6px; }
.progress-bar-filled {
  height: 100%;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  width: 0%;
  pointer-events: none;
  transition: width 0.5s linear, background var(--dur-fast) ease;
}
.progress-bar-bg:hover .progress-bar-filled { background: var(--accent); }
.progress-bar-thumb {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  left: 0%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.progress-bar-bg:hover .progress-bar-thumb { opacity: 1; }

/* Player Right: Volume */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.ctrl-volume-icon {
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}
.ctrl-volume-icon:hover { color: var(--text-primary); }
.volume-bar-bg {
  width: 90px;
  height: 4px;
  background: var(--bg-press);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: height var(--dur-fast) ease;
}
.volume-bar-bg:hover { height: 6px; }
.volume-bar-filled {
  height: 100%;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  pointer-events: none;
  transition: background var(--dur-fast) ease;
}
.volume-bar-bg:hover .volume-bar-filled { background: var(--accent); }
.volume-bar-thumb {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.volume-bar-bg:hover .volume-bar-thumb { opacity: 1; }

/* ─── 12. COVER GRADIENT THEMES ──────────────────────────── */
.cover-theme-1 { background: linear-gradient(135deg, #6a3093, #a044ff); }
.cover-theme-2 { background: linear-gradient(135deg, #f7971e, #ffd200); }
.cover-theme-3 { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.cover-theme-4 { background: linear-gradient(135deg, #00b09b, #96c93d); }
.cover-theme-5 { background: linear-gradient(135deg, #e52d27, #b31217); }
.cover-theme-6 { background: linear-gradient(135deg, #cc2b5e, #753a88); }
.cover-theme-7 { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.cover-theme-8 { background: linear-gradient(135deg, #1DB954, #0a3d1f); }

/* Tamil Vibes Themes – warm, earthy, soulful */
.cover-theme-9  { background: linear-gradient(135deg, #c0392b, #f39c12); }  /* saffron-red */
.cover-theme-10 { background: linear-gradient(135deg, #1a6b3c, #56ab2f); }  /* rain-green */
.cover-theme-11 { background: linear-gradient(135deg, #2c3e6b, #8e44ad); }  /* moonlit indigo */
.cover-theme-12 { background: linear-gradient(135deg, #d4a017, #e67e22); }  /* golden brass */
.cover-theme-13 { background: linear-gradient(135deg, #922b21, #e74c3c); }  /* deep rose */

/* ─── 13. TAMIL VIBES BANNER ──────────────────────────────── */
.tamil-vibes-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #3d0c00 0%, #7d2100 30%, #2d1a00 70%, #1a0a2e 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 2.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(240, 140, 20, 0.3);
  min-height: 190px;
}
.tamil-vibes-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(220, 90, 10, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 200, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Kolam-inspired decorative corner */
.tamil-vibes-banner::after {
  content: '✦';
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-size: 4rem;
  opacity: 0.07;
  color: #f39c12;
  line-height: 1;
}

.tamil-banner-text {
  position: relative;
  z-index: 1;
  max-width: 58%;
}
.tamil-banner-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f39c12;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.tamil-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #f39c12, #e74c3c, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tamil-banner-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.btn-tamil-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #e67e22, #c0392b);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              filter var(--dur-fast) ease;
  margin-right: 0.6rem;
}
.btn-tamil-play:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
  filter: brightness(1.15);
}
.btn-tamil-play:active { transform: scale(0.96); }

.btn-tamil-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.btn-tamil-view:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* Tamil Vibes – spinning disc visual */
.tamil-banner-visual {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  z-index: 1;
}
.tamil-disc {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#3d0c00, #7d2100, #f39c12, #7d2100, #3d0c00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(243,156,18,0.3), inset 0 0 20px rgba(0,0,0,0.5);
  animation: tamil-spin 10s linear infinite paused;
}
.tamil-disc.playing { animation-play-state: running; }
@keyframes tamil-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.tamil-disc-inner {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a0500 0%, #3d0c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 10px rgba(243,156,18,0.4);
}

/* Floating music notes */
.tamil-notes {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}
.tamil-notes span {
  position: absolute;
  font-size: 1.1rem;
  color: rgba(243,156,18,0.7);
  animation: float-note 4s ease-in-out infinite;
}
.tn-1 { top: 5%;  left: 15%;  animation-delay: 0s;    font-size: 1.2rem; }
.tn-2 { top: 70%; left: 5%;   animation-delay: 0.8s;  font-size: 0.9rem; }
.tn-3 { top: 15%; right: 10%; animation-delay: 1.6s;  font-size: 1rem; }
.tn-4 { top: 65%; right: 5%;  animation-delay: 2.4s;  font-size: 1.3rem; }
@keyframes float-note {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.5; }
  50%       { transform: translateY(-12px) rotate(5deg); opacity: 1; }
}

/* Tamil title accent */
.section-title.tamil-title {
  background: linear-gradient(90deg, #f39c12, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 13. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-width: 200px; }
  .hero-title { font-size: 1.8rem; }
  .hero-visual { width: 120px; height: 120px; right: 1.5rem; }
  .hero-disc { width: 120px; height: 120px; }
}

@media (max-width: 700px) {
  :root {
    --sidebar-width: 240px;
    --player-height: 72px;
  }

  .app-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: var(--player-height);
    transform: translateX(-100%);
    z-index: 150;
    border-right: 1px solid var(--border-subtle);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.7); }
  .sidebar-toggle { display: flex; }

  .main-content { padding-top: 0; }
  .top-bar { padding: 0.75rem 1rem 0.75rem 3.5rem; }
  .content-section { padding: 1.25rem 1rem; }

  .hero-banner { flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: 1.75rem; }
  .hero-visual { position: relative; top: auto; right: auto; transform: none; align-self: flex-end; }

  .song-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.8rem; }

  .player {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
    height: auto;
    min-height: var(--player-height);
  }
  .player-left { grid-column: 1; grid-row: 1; }
  .player-center { grid-column: 2; grid-row: 1; width: 100%; align-items: flex-end; }
  .player-right { display: none; }
  .player-controls { gap: 0.5rem; }
  .ctrl-shuffle, .ctrl-repeat { display: none; }
  .time-label { display: none; }

  .playlist-row { grid-template-columns: 28px 1fr 50px; }
  .playlist-row-artist-col { display: none; }
}

@media (max-width: 420px) {
  .song-grid { grid-template-columns: repeat(2, 1fr); }
}
