﻿/* ================================================================
   WaveBeats — Complete Stylesheet (All 21 Features)
   ================================================================ */

/* ---------- CSS Variables (Dark Theme Default) ---------- */
:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-hover: #22223a;
  --bg-sidebar: #0e0e16;
  --text: #e8e8f0;
  --text-secondary: #9898b0;
  --muted: #5a5a78;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --accent-subtle: rgba(139, 92, 246, 0.1);
  --border: rgba(255,255,255,0.06);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #3b82f6;
  --player-bg: #0d0d14;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --sidebar-width: 280px;
  --sidebar-collapsed: 68px;
  --player-height: 100px;
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-secondary: #eeeef4;
  --bg-card: #ffffff;
  --bg-hover: #e8e8f0;
  --bg-sidebar: #f0f0f8;
  --text: #1a1a2e;
  --text-secondary: #555570;
  --muted: #8888a0;
  --border: rgba(0,0,0,0.08);
  --player-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
img { display: block; max-width: 100%; }
input, select { font-family: inherit; }
ul { list-style: none; }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { width: 100%; aspect-ratio: 1; border-radius: var(--radius); }
.skeleton-text { height: 14px; width: 70%; margin-top: 8px; border-radius: 6px; }
.skeleton-text-sm { height: 10px; width: 50%; margin-top: 6px; border-radius: 6px; }

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }

/* ---------- Modal Overlay ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px; width: 90%;
  text-align: center;
  transform: scale(0.9); transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-icon { font-size: 40px; color: var(--danger); margin-bottom: 12px; }
.modal-box h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.modal-box p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.modal-btn {
  padding: 10px 28px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: all var(--transition);
}
.modal-cancel { background: var(--bg-hover); color: var(--text); }
.modal-cancel:hover { background: var(--muted); }
.modal-confirm { background: var(--danger); color: #fff; }
.modal-confirm:hover { background: #dc2626; transform: translateY(-1px); }

/* ---------- Context Menu ---------- */
.context-menu {
  position: fixed; z-index: 9500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: scale(0.95);
  transition: all 0.15s ease;
}
.context-menu.show { opacity: 1; visibility: visible; transform: scale(1); }
.context-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; cursor: pointer;
  transition: background 0.15s;
}
.context-menu-item:hover { background: var(--accent-subtle); color: var(--accent); }
.context-menu-item i { width: 18px; text-align: center; font-size: 12px; }
.context-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- Sleep Timer ---------- */
.sleep-timer-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.sleep-opt {
  padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  background: var(--bg-hover); color: var(--text); transition: all var(--transition);
}
.sleep-opt:hover { background: var(--accent); color: #fff; }
.sleep-opt.active { background: var(--accent); color: #fff; }
.sleep-cancel { width: 100%; background: transparent; color: var(--muted); margin-top: 4px; }
.sleep-cancel:hover { color: var(--danger); background: transparent; }
.sleep-timer-status { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 500; }

/* ---------- Queue Panel ---------- */
.queue-panel {
  position: fixed; right: 0; top: 0; bottom: var(--player-height);
  width: 360px; background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 800;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.queue-panel.show { transform: translateX(0); }
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.queue-header h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.queue-actions { display: flex; gap: 8px; }
.queue-clear-btn, .queue-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); transition: all var(--transition); font-size: 13px;
}
.queue-clear-btn:hover { background: var(--danger); color: #fff; }
.queue-close-btn:hover { background: var(--accent); color: #fff; }
.queue-now-playing {
  padding: 16px 20px;
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.queue-now-playing img {
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  max-width: 44px; max-height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover; object-position: center center;
  background: var(--bg-hover);
  image-rendering: auto;
}
.queue-now-playing .q-info { flex: 1; }
.queue-now-playing .q-name { font-weight: 600; font-size: 14px; }
.queue-now-playing .q-artist { color: var(--text-secondary); font-size: 12px; }
.queue-list-header {
  padding: 12px 20px 8px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); font-weight: 700;
}
.queue-list { flex: 1; overflow-y: auto; padding: 0 8px; }
.queue-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background var(--transition); cursor: pointer; font-size: 13px;
}
.queue-list li:hover { background: var(--bg-hover); }
.queue-list li img {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  max-width: 40px; max-height: 40px;
  border-radius: 6px;
  object-fit: cover; object-position: center center;
  background: var(--bg-hover);
  image-rendering: auto;
}
.queue-list li .q-info { flex: 1; }
.queue-list li .q-name { font-weight: 500; }
.queue-list li .q-artist { font-size: 11px; color: var(--text-secondary); }
.queue-list li .q-remove {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; opacity: 0; transition: all var(--transition);
}
.queue-list li:hover .q-remove { opacity: 1; }
.queue-list li .q-remove:hover { background: var(--danger); color: #fff; }

/* ---------- Keyboard Shortcuts Modal ---------- */
.shortcuts-box { max-width: 520px; }
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.shortcut {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-hover); font-size: 13px;
}
.shortcut kbd {
  background: var(--bg); padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; font-family: monospace;
  border: 1px solid var(--border); min-width: 32px; text-align: center;
}
.shortcut span { flex: 1; color: var(--text-secondary); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 500;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .box,
.sidebar.collapsed .sidebar-divider,
.sidebar.collapsed .logo h2 { display: none; }
.sidebar.collapsed .sidebar-nav .nav-item { justify-content: center; padding: 14px 0; }
.sidebar.collapsed .sidebar-nav .nav-item i { margin-right: 0; }
.sidebar.collapsed .sidebar-header { justify-content: center; }
.sidebar.collapsed .logo h2 { display: none; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px 10px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.logo h2 { font-family: var(--font-heading); font-size: 20px; white-space: nowrap; }

.sidebar-toggle {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); transition: all var(--transition); font-size: 12px;
}
.sidebar-toggle:hover { background: var(--accent); color: #fff; }

.sidebar-nav { padding: 10px 10px 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition); margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent-subtle); color: var(--accent); font-weight: 600; }
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.sidebar-divider { height: 1px; background: var(--border); margin: 12px 18px; }

/* Sidebar Boxes */
.box { padding: 14px 14px 10px; }
.box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.box-header h3 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.badge {
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; min-width: 22px; text-align: center;
}
.sidebar-list { max-height: 200px; overflow-y: auto; }
.sidebar-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer; transition: all var(--transition);
  position: relative;
}
.sidebar-list li:hover { background: var(--bg-hover); }
.sidebar-list li i { color: var(--accent); font-size: 11px; flex-shrink: 0; }
.sidebar-list li span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-label { font-size: 10px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.empty-msg { font-size: 11px; color: var(--muted); text-align: center; padding: 16px 8px; font-style: italic; }

/* Playlist Controls */
.playlist-actions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.input-group {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-hover); border-radius: var(--radius-sm); padding: 4px 8px;
}
.input-group i { font-size: 11px; color: var(--muted); }
.input-group input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 12px; padding: 5px 0;
}
.input-group input::placeholder { color: var(--muted); }
.btn-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 11px;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--accent-hover); transform: scale(1.05); }
.delete-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1); color: var(--danger);
  font-size: 11px; font-weight: 600; transition: all var(--transition);
}
.delete-btn:hover { background: var(--danger); color: #fff; }
.playlist-dropdown {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; margin-bottom: 8px;
  cursor: pointer; outline: none;
}
.playlist-dropdown option { background: var(--bg-card); }

/* Song Remove Btn in playlist */
.song-remove-btn {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); transition: all var(--transition);
  opacity: 0; position: absolute; right: 6px;
}
.sidebar-list li:hover .song-remove-btn { opacity: 1; }
.song-remove-btn:hover { background: var(--danger); color: #fff; }

/* Sortable / Drag & Drop */
.sortable-list li { cursor: grab; }
.sortable-list li:active { cursor: grabbing; }
.sortable-list li.dragging { opacity: 0.4; background: var(--accent-subtle); }
.sortable-list li.drag-over { border-top: 2px solid var(--accent); }

/* Sidebar Backdrop (Mobile) */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 490; opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
.main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 20px;
  position: relative;
  transition: background var(--transition);
}

/* Top Bar */
.top-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  position: sticky; top: 0;
  background: var(--bg); z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-menu { display: none; font-size: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-shrink: 0; }
.breadcrumb-item { color: var(--muted); cursor: pointer; transition: color var(--transition); white-space: nowrap; }
.breadcrumb-item:hover { color: var(--text); }
.breadcrumb-item.active { color: var(--text); font-weight: 600; cursor: default; }
.breadcrumb-sep { color: var(--muted); font-size: 10px; }

/* Search */
.search-wrapper {
  position: relative; flex: 1; max-width: 400px;
}
.search-wrapper .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--muted);
}
.search-wrapper input {
  width: 100%; padding: 10px 36px 10px 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 30px; color: var(--text); font-size: 13px;
  outline: none; transition: all var(--transition);
}
.search-wrapper input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-wrapper input::placeholder { color: var(--muted); }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.search-clear.visible { opacity: 1; visibility: visible; }
.search-clear:hover { background: var(--bg-hover); color: var(--text); }

/* Search Results Dropdown */
.search-results {
  position: absolute; top: 56px; left: 0; right: 0;
  max-width: 400px; margin-left: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); max-height: 360px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: none; z-index: 200;
}
.search-results.show { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer; transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg-hover); }
.search-result-item img {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  max-width: 40px; max-height: 40px;
  border-radius: 6px;
  object-fit: cover; object-position: center center;
  background: var(--bg-hover);
  image-rendering: auto;
}
.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-name { font-size: 13px; font-weight: 600; }
.search-result-item .sr-meta { font-size: 11px; color: var(--text-secondary); }
.search-result-item .sr-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); font-weight: 700;
}

/* Top Bar Right */
.top-bar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
  transition: all var(--transition);
}
.top-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.top-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.greeting { font-size: 13px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 32px 36px;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsl(260, 40%, 15%) 0%, var(--bg) 60%, hsl(320, 30%, 10%) 100%);
  transition: background 1s ease;
}
.hero-content {
  position: relative; text-align: center; z-index: 2;
  animation: fadeInUp 0.6s ease;
}
.hero-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block;
}
.hero-content h1 {
  font-family: var(--font-heading); font-size: clamp(24px, 4vw, 42px);
  font-weight: 800; line-height: 1.2; margin-bottom: 8px;
}
.hero-subtitle { color: var(--text-secondary); font-size: 15px; }
.hero-cover {
  width: 180px; height: 180px; border-radius: 16px;
  object-fit: cover; margin-bottom: 16px;
  box-shadow: 0 8px 32px var(--accent, rgba(139,92,246,0.5));
  transition: box-shadow 0.6s ease;
}

/* Equalizer Animation */
.equalizer {
  display: flex; gap: 3px; justify-content: center;
  align-items: flex-end; height: 28px; margin-top: 16px;
}
.equalizer span {
  width: 4px; background: var(--accent); border-radius: 4px;
  height: 8px; transition: height 0.2s;
}
.equalizer.playing span { animation: eqBounce 0.8s infinite ease-in-out; }
.equalizer.playing span:nth-child(1) { animation-delay: 0s; }
.equalizer.playing span:nth-child(2) { animation-delay: 0.15s; }
.equalizer.playing span:nth-child(3) { animation-delay: 0.3s; }
.equalizer.playing span:nth-child(4) { animation-delay: 0.45s; }
.equalizer.playing span:nth-child(5) { animation-delay: 0.6s; }
@keyframes eqBounce {
  0%, 100% { height: 8px; }
  50% { height: 28px; }
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 20px 24px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-header h2 i { color: var(--accent); font-size: 20px; }

/* Section Transition */
.section { animation: sectionFadeIn 0.4s ease; }
@keyframes sectionFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* View Toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.view-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ================================================================
   RECENTLY PLAYED HOME SECTION
   ================================================================ */
.recent-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.recent-home-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 10px; cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  overflow: hidden;
}
.recent-home-card:hover { background: var(--bg-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.recent-home-card img {
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  max-width: 48px; max-height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover; object-position: center center;
  background: var(--bg-hover);
  image-rendering: auto;
}
.recent-home-card .rhc-info { flex: 1; overflow: hidden; }
.recent-home-card .rhc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-home-card .rhc-artist { font-size: 11px; color: var(--text-secondary); }

/* ================================================================
   ARTIST GRID
   ================================================================ */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}
.artist-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s; text-align: center;
  animation: fadeInUp 0.5s ease both;
}
.artist-card:hover {
  background: var(--bg-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.artist-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 34px; font-weight: 800;
  color: #fff; margin-bottom: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden; position: relative;
}
.artist-avatar img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover; object-position: center center;
  image-rendering: auto;
  border-radius: 50%; background: var(--bg-hover);
}
.artist-card:hover .artist-avatar { transform: scale(1.05); box-shadow: 0 12px 32px var(--accent-glow); }
.artist-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.artist-meta { font-size: 11px; color: var(--muted); }

/* ================================================================
   ALBUM GRID
   ================================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}
.album-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: all 0.3s;
  animation: fadeInUp 0.5s ease both;
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.album-cover-container {
  position: relative; width: 100%; height: 0; padding-bottom: 100%; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-hover);
}
.album-cover-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  transition: transform 0.4s;
}
.album-card:hover .album-cover-container img { transform: scale(1.05); }
.album-play-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 6px 20px var(--accent-glow);
  opacity: 0; transform: translateY(8px);
  transition: all 0.3s;
}
.album-card:hover .album-play-btn { opacity: 1; transform: translateY(0); }
.album-play-btn:hover { transform: scale(1.1) !important; }
.album-info { padding: 14px; }
.album-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-artist { font-size: 12px; color: var(--text-secondary); }
.album-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ================================================================
   ALBUM DETAIL HEADER
   ================================================================ */
.album-detail-header {
  display: flex; gap: 28px; align-items: flex-end;
  padding: 24px; margin-bottom: 20px;
  background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
  border-radius: var(--radius-lg);
}
.album-detail-cover {
  width: 200px; height: 200px; flex-shrink: 0;
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-hover);
}
.album-detail-cover img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  border-radius: var(--radius);
  object-fit: cover; object-position: center center;
  image-rendering: auto;
  box-shadow: var(--shadow-lg);
}
.album-detail-info { flex: 1; }
.detail-type { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.album-detail-info h1 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 6px 0 8px; }
.detail-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.artist-link { color: var(--accent); cursor: pointer; font-weight: 600; }
.artist-link:hover { text-decoration: underline; }
.album-detail-actions { display: flex; gap: 12px; margin-top: 16px; }
.play-album-btn, .shuffle-album-btn {
  padding: 10px 24px; border-radius: 30px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.play-album-btn { background: var(--accent); color: #fff; }
.play-album-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.shuffle-album-btn { background: var(--bg-card); border: 1px solid var(--border); }
.shuffle-album-btn:hover { background: var(--bg-hover); }

/* ================================================================
   ARTIST DETAIL HEADER
   ================================================================ */
.artist-detail-header {
  display: flex; gap: 28px; align-items: flex-end;
  padding: 24px; margin-bottom: 20px;
  background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
  border-radius: var(--radius-lg);
}
.artist-detail-cover {
  width: 200px; height: 200px; flex-shrink: 0;
  position: relative; overflow: hidden;
  border-radius: 50%;
  background: var(--bg-hover);
}
.artist-detail-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border-radius: 50%;
  max-width: none; max-height: none;
  object-fit: cover; object-position: center center;
  image-rendering: auto;
  box-shadow: var(--shadow-lg);
}
.artist-detail-initials {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 56px; font-weight: 800;
  color: #fff; box-shadow: var(--shadow-lg);
}
.artist-detail-info { flex: 1; }
.artist-detail-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ================================================================
   SONG LIST / CARDS
   ================================================================ */
.song-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.song-list.list-view {
  grid-template-columns: 1fr;
  gap: 4px;
}
.song {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: all 0.3s;
  animation: fadeInUp 0.5s ease both;
  position: relative;
}
.song:hover { background: var(--bg-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.song.now-playing { border-color: var(--accent); background: var(--accent-subtle); }

/* Now-playing bars on card */
.song.now-playing::after {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 20px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='16' viewBox='0 0 20 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='6' width='3' height='10' rx='1' fill='%238b5cf6'%3E%3Canimate attributeName='height' values='10;4;10' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='6;12;6' dur='0.6s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='5' y='2' width='3' height='14' rx='1' fill='%238b5cf6'%3E%3Canimate attributeName='height' values='14;6;14' dur='0.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='2;10;2' dur='0.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='10' y='4' width='3' height='12' rx='1' fill='%238b5cf6'%3E%3Canimate attributeName='height' values='12;8;12' dur='0.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='4;8;4' dur='0.5s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='15' y='8' width='3' height='8' rx='1' fill='%238b5cf6'%3E%3Canimate attributeName='height' values='8;3;8' dur='0.7s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='8;13;8' dur='0.7s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.song-cover-container {
  position: relative; width: 100%; height: 0; padding-bottom: 100%; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-hover);
}
.song-cover-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  transition: transform 0.4s;
}
.song:hover .song-cover-container img { transform: scale(1.08); }
.song-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 22px;
  opacity: 0; transition: opacity 0.3s; cursor: pointer;
}
.song:hover .song-play-btn { opacity: 1; }
.song-info { padding: 12px; }
.song-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist {
  font-size: 12px; color: var(--accent); cursor: pointer; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-artist:hover { text-decoration: underline; }
.song-album-label { font-size: 11px; color: var(--muted); cursor: pointer; margin-bottom: 8px; }
.song-album-label:hover { color: var(--text-secondary); }
.song-actions { display: flex; gap: 6px; }
.song-action-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  background: var(--bg-hover); transition: all var(--transition);
}
.song-action-btn:hover { color: var(--accent); background: var(--accent-subtle); }
.song-action-btn.fav-active { color: #ef4444; }
.song-action-btn.fav-active:hover { color: #ef4444; }

/* List View overrides */
.song-list.list-view .song {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius-sm); padding: 4px;
}
.song-list.list-view .song:hover { transform: none; }
.song-list.list-view .song-cover-container {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  max-width: 48px; max-height: 48px; padding-bottom: 0;
  border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--bg-hover);
}
.song-list.list-view .song-cover-container img {
  max-width: none; max-height: none;
}
.song-list.list-view .song-info {
  display: flex; align-items: center; gap: 16px; flex: 1; padding: 8px 12px;
}
.song-list.list-view .song-name { min-width: 140px; }
.song-list.list-view .song-artist { min-width: 100px; margin-bottom: 0; }
.song-list.list-view .song-album-label { min-width: 80px; margin-bottom: 0; }
.song-list.list-view .song-actions { margin-left: auto; }

/* ================================================================
   AUDIO VISUALIZER
   ================================================================ */
.visualizer-canvas {
  position: fixed;
  bottom: var(--player-height);
  left: var(--sidebar-width);
  right: 0;
  height: 60px;
  z-index: 50;
  pointer-events: none;
  opacity: 0.5;
}
.sidebar.collapsed ~ .main .visualizer-canvas,
.sidebar.collapsed ~ .visualizer-canvas { left: var(--sidebar-collapsed); }

/* ================================================================
   PLAYER FOOTER
   ================================================================ */
.player {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-height);
  background: var(--player-bg);
  border-top: 1px solid var(--border);
  z-index: 600;
  transform: translateY(100%);
  transition: background var(--transition), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.player.visible {
  transform: translateY(0);
}
/* Music Playing Strip - Above play/pause controls */
.music-playing-strip {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  width: 100%;
  max-width: 300px;
  height: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.music-playing-strip.active {
  opacity: 1;
}
.music-playing-strip span {
  flex: 1;
  background: linear-gradient(180deg, #f97316, #ef4444);
  height: 3px;
  min-height: 2px;
  border-radius: 1px 1px 0 0;
  transform-origin: bottom;
  animation: none;
}
.music-playing-strip.active span {
  animation: musicStripBar 1.2s ease-in-out infinite alternate;
}
.music-playing-strip.active span:nth-child(odd) {
  animation-duration: 0.8s;
}
.music-playing-strip.active span:nth-child(3n) {
  animation-duration: 1.0s;
  animation-delay: 0.1s;
}
.music-playing-strip.active span:nth-child(5n) {
  animation-duration: 0.7s;
  animation-delay: 0.2s;
}
.music-playing-strip.active span:nth-child(7n) {
  animation-duration: 1.1s;
  animation-delay: 0.05s;
}
.music-playing-strip.active span:nth-child(2n) {
  animation-delay: 0.15s;
}
.music-playing-strip.active span:nth-child(4n) {
  animation-delay: 0.25s;
}
.music-playing-strip.active span:nth-child(6n) {
  animation-delay: 0.3s;
}
.music-playing-strip.active span:nth-child(8n) {
  animation-duration: 0.9s;
  animation-delay: 0.35s;
}
.music-playing-strip.active span:nth-child(10n) {
  animation-duration: 0.6s;
  animation-delay: 0.08s;
}
@keyframes musicStripBar {
  0% { height: 2px; }
  50% { height: 16px; }
  100% { height: 4px; }
}

.player-inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 20px; gap: 16px;
}

/* Player Left */
.player-left { display: flex; align-items: center; gap: 14px; width: 280px; flex-shrink: 0; }
.player-cover-wrapper {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  position: relative; background: var(--bg-hover);
}
.player-cover-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover; object-position: center center;
  image-rendering: auto;
  background: var(--bg-hover);
}
.now-playing-bars {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; align-items: flex-end; height: 14px;
}
.now-playing-bars span {
  width: 3px; background: #fff; border-radius: 2px;
  animation: npBar 0.6s infinite ease-in-out alternate;
}
.now-playing-bars span:nth-child(1) { animation-delay: 0s; height: 6px; }
.now-playing-bars span:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.now-playing-bars span:nth-child(3) { animation-delay: 0.4s; height: 4px; }
@keyframes npBar {
  0% { height: 4px; }
  100% { height: 14px; }
}
.cover-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.2s;
  cursor: pointer; font-size: 16px; color: #fff;
}
.player-cover-wrapper:hover .cover-overlay { opacity: 1; }
.player-song-info { overflow: hidden; flex: 1; }
.player-song-info p {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-artist {
  font-size: 12px; color: var(--accent); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.player-artist:hover { text-decoration: underline; }
.player-fav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted);
  transition: all var(--transition); flex-shrink: 0;
}
.player-fav-btn:hover { color: #ef4444; }
.player-fav-btn.active { color: #ef4444; }

/* Player Center */
.player-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 600px; margin: 0 auto; }
.controls { display: flex; align-items: center; gap: 16px; }
.controls button {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-secondary);
  transition: all var(--transition);
}
.controls button:hover { color: var(--text); background: var(--bg-hover); }
.controls button.active { color: var(--accent); }
.play-btn {
  width: 44px !important; height: 44px !important;
  background: var(--accent) !important; color: #fff !important;
  font-size: 18px !important;
}
.play-btn:hover { background: var(--accent-hover) !important; transform: scale(1.05); }

/* Progress Row */
.progress-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.progress-row span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 36px; }
.progress-row span:last-child { text-align: right; }
.progress-track {
  flex: 1; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 4px; position: relative; cursor: pointer;
  transition: height 0.15s;
}
.progress-track:hover { height: 6px; }
.progress-filled {
  height: 100%; background: linear-gradient(90deg, var(--accent), #ec4899);
  border-radius: 4px; position: absolute; top: 0; left: 0;
}
.progress-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; position: absolute; top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.15s;
}
.progress-track:hover .progress-thumb { opacity: 1; }

/* Player Right */
.player-right {
  display: flex; align-items: center; gap: 8px;
  width: 280px; flex-shrink: 0; justify-content: flex-end;
}
.player-extra-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  transition: all var(--transition);
}
.player-extra-btn:hover { color: var(--text); background: var(--bg-hover); }
.player-extra-btn.active { color: var(--accent); }
.volume-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  transition: all var(--transition);
}
.volume-icon-btn:hover { color: var(--text); }
.volume-track {
  width: 90px; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 4px; position: relative; cursor: pointer;
}
.volume-filled {
  height: 100%; background: var(--accent); border-radius: 4px;
  position: absolute; top: 0; left: 0;
}
.volume-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; position: absolute; top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.15s;
}
.volume-track:hover .volume-thumb { opacity: 1; }
#volumeValue { font-size: 11px; color: var(--muted); min-width: 32px; text-align: right; }

/* Marquee for long song names */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-text.scrolling { animation: marquee 8s linear infinite; display: inline-block; white-space: nowrap; }

/* ================================================================
   PLAYLIST COVER MOSAIC
   ================================================================ */
.playlist-mosaic {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  overflow: hidden; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  flex-shrink: 0;
}
.playlist-mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center; background: var(--bg-hover);
}
.playlist-mosaic.single img { grid-column: 1 / -1; grid-row: 1 / -1; }

/* ================================================================
   CURATED HOME SECTIONS
   ================================================================ */
.curated-row {
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease both;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* ---- Collapse Bar ---- */
.curated-collapse-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.curated-collapse-bar:hover {
  background: var(--bg-hover);
}
.curated-collapse-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.curated-collapse-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.curated-collapse-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}
.curated-collapse-title i {
  color: var(--accent);
  font-size: 14px;
}
.curated-collapse-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.curated-collapse-chevron {
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

/* ---- Collapsible Body ---- */
.curated-collapsible-body {
  max-height: 500px;
  opacity: 1;
  padding: 0 18px 18px;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}
.curated-collapsed .curated-collapsible-body {
  max-height: 0;
  opacity: 0;
  padding: 0 18px;
}
.curated-collapsed .curated-collapse-chevron {
  transform: rotate(-90deg);
}

.curated-row-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.curated-row-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.curated-row-header h2 i {
  color: var(--accent);
  font-size: 18px;
}
.curated-row-desc {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 120px;
}
.curated-play-all-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.curated-play-all-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.curated-scroll-wrapper {
  position: relative;
}
.curated-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.curated-scroll::-webkit-scrollbar { height: 4px; }
.curated-scroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 10px; }
.curated-card {
  flex: 0 0 160px;
  cursor: pointer;
  transition: all 0.3s;
  scroll-snap-align: start;
  animation: fadeInUp 0.5s ease both;
}
.curated-card:hover {
  transform: translateY(-4px);
}
.curated-card-cover {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-hover);
  margin-bottom: 8px;
}
.curated-card-cover img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  transition: transform 0.4s;
}
.curated-card:hover .curated-card-cover img {
  transform: scale(1.08);
}
.curated-card-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  border: none;
}
.curated-card:hover .curated-card-play-btn {
  opacity: 1;
}
.curated-card.now-playing .curated-card-cover {
  box-shadow: 0 0 0 2px var(--accent), 0 4px 20px var(--accent-glow);
}
.curated-card-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.curated-card-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ================================================================
   LIBRARY CONTENT (All Songs by Artist)
   ================================================================ */
.library-content {
  display: flex !important;
  flex-direction: column;
  gap: 28px;
}
.library-artist-group {
  animation: fadeInUp 0.5s ease both;
}
.library-artist-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.library-artist-header:hover {
  background: var(--bg-hover);
}
.library-artist-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
}
.library-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.library-avatar-initials {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.library-artist-info {
  flex: 1;
}
.library-artist-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}
.library-artist-info span {
  font-size: 12px;
  color: var(--text-secondary);
}
.library-play-artist-btn,
.library-go-artist-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--transition);
  flex-shrink: 0;
  border: none;
}
.library-play-artist-btn:hover {
  background: var(--accent);
  color: #fff;
}
.library-go-artist-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}
.library-songs-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
}
.library-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.library-song-item:hover {
  background: var(--bg-hover);
}
.library-song-item.now-playing {
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
}
.library-song-item img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  background: var(--bg-hover);
}
.library-song-details {
  flex: 1;
  min-width: 0;
}
.library-song-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-song-album {
  font-size: 12px;
  color: var(--muted);
}
.library-song-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .player-left { width: 200px; }
  .player-right { width: 200px; }
  .player-right #volumeValue { display: none; }
  .queue-panel { width: 320px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 600;
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-menu { display: flex; }

  .main {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-bottom: 140px;
  }

  .top-bar {
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    gap: 10px;
  }
  .breadcrumb { display: none; }
  .search-wrapper { max-width: none; }
  .greeting { display: none; }

  .hero { padding: 32px 20px 24px; min-height: 160px; }
  .hero-cover { width: 140px; height: 140px; border-radius: 14px; margin-bottom: 14px; }
  .section { padding: 16px; }

  .artist-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
  .artist-avatar { width: 72px; height: 72px; font-size: 28px; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .song-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

  .album-detail-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .artist-detail-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .artist-detail-cover { width: 140px; height: 140px; }
  .artist-detail-initials { width: 140px; height: 140px; font-size: 40px; }
  .artist-detail-actions { justify-content: center; }
  .album-detail-cover { width: 160px; height: 160px; }
  .detail-meta { justify-content: center; }
  .album-detail-actions { justify-content: center; }

  .curated-card { flex: 0 0 140px; }
  .curated-card-cover { width: 140px; height: 140px; }
  .curated-card-name, .curated-card-artist { max-width: 140px; }
  .curated-row-header { gap: 10px; }
  .curated-row-header h2 { font-size: 17px; }

  /* ---- Mobile Player: Two-row layout with controls ---- */
  .player {
    height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .player-inner {
    flex-wrap: wrap;
    padding: 8px 12px 6px;
    gap: 0;
  }
  /* Row 1: Song info + core controls + fav */
  .player-left {
    width: auto;
    flex: 1;
    min-width: 0;
    order: 1;
  }
  .player-cover-wrapper { width: 44px; height: 44px; }
  .player-song-info p { font-size: 13px; }
  .player-artist { font-size: 11px; }
  .player-center {
    display: flex;
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 4px;
    padding-top: 4px;
  }
  .controls { gap: 6px; }
  .controls button { width: 36px; height: 36px; font-size: 15px; }
  .play-btn { width: 40px !important; height: 40px !important; font-size: 16px !important; }
  .progress-row { gap: 8px; }
  .progress-row span { font-size: 10px; min-width: 30px; }

  .player-right {
    width: auto;
    order: 2;
    flex-shrink: 0;
  }
  .player-right .player-extra-btn,
  .player-right .volume-track,
  .player-right #volumeValue { display: none; }
  .player-right .volume-icon-btn { display: none; }
  /* Keep shuffle/repeat smaller on mobile */
  #shuffleBtn, #repeatBtn { width: 30px; height: 30px; font-size: 13px; }

  .visualizer-canvas { left: 0; height: 40px; }
  .queue-panel { width: 100%; }
  .shortcuts-grid { grid-template-columns: 1fr; }

  .recent-home-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* Bigger touch targets for nav items */
  .nav-item { padding: 13px 14px; font-size: 15px; }
  .sidebar-list li { padding: 10px 10px; }

  /* Toast on mobile */
  .toast-container { top: auto; bottom: 140px; right: 12px; left: 12px; align-items: center; }
  .toast { max-width: none; width: 100%; }

  /* Context menu mobile */
  .context-menu { min-width: 220px; }
  .context-menu-item { padding: 12px 16px; font-size: 14px; }

  /* Modal mobile */
  .modal-box { max-width: 92vw; padding: 24px 20px; }
}

@media (max-width: 480px) {
  .artist-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .song-list { grid-template-columns: 1fr; gap: 8px; }
  .song-list:not(.list-view) .song {
    display: flex; align-items: center; gap: 12px;
    border-radius: var(--radius-sm); padding: 4px;
  }
  .song-list:not(.list-view) .song:hover { transform: none; }
  .song-list:not(.list-view) .song-cover-container {
    width: 52px; height: 52px; padding-bottom: 0;
    border-radius: var(--radius-sm); flex-shrink: 0;
  }
  .song-list:not(.list-view) .song-info {
    display: flex; flex-direction: column; flex: 1; padding: 6px 8px;
  }
  .song-list:not(.list-view) .song-actions { flex-direction: row; }
  .song-list:not(.list-view) .song.now-playing::after { top: 50%; right: 8px; transform: translateY(-50%); }
  .recent-home-grid { grid-template-columns: 1fr 1fr; }

  /* Keep queue + lyrics toggle + theme visible on mobile */
  .top-bar-right .top-btn { display: none; }
  .top-bar-right #themeToggleBtn,
  .top-bar-right #queueToggleBtn,
  .top-bar-right #lyricsToggleBtn { display: flex; }

  .curated-card { flex: 0 0 120px; }
  .curated-card-cover { width: 120px; height: 120px; }
  .curated-card-name, .curated-card-artist { max-width: 120px; }
  .curated-play-all-btn { padding: 6px 14px; font-size: 11px; }
  .curated-row-header h2 { font-size: 15px; }
  .curated-row-desc { font-size: 11px; }

  .library-artist-avatar { width: 40px; height: 40px; }
  .library-artist-info h3 { font-size: 14px; }
  .library-song-item img { width: 36px; height: 36px; min-width: 36px; }
  .library-songs-list { padding-left: 8px; }

  /* Smaller player cover on very small screens */
  .player-cover-wrapper { width: 40px; height: 40px; }
  .player-left { gap: 10px; }
  .player-fav-btn { width: 32px; height: 32px; font-size: 14px; }

  /* Hero section smaller */
  .hero { padding: 24px 16px 20px; min-height: 130px; }
  .hero-cover { width: 110px; height: 110px; border-radius: 12px; margin-bottom: 12px; }
  .hero-subtitle { font-size: 13px; }
  .equalizer { height: 22px; margin-top: 10px; }

  .section-header h2 { font-size: 18px; }
}

/* Extra small phones (under 360px like iPhone SE) */
@media (max-width: 360px) {
  .artist-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .artist-avatar { width: 60px; height: 60px; font-size: 22px; }
  .artist-name { font-size: 12px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .recent-home-grid { grid-template-columns: 1fr; }
  .top-bar { padding: 10px 10px; gap: 8px; }
  .search-wrapper input { padding: 8px 32px 8px 34px; font-size: 12px; }
  .curated-card { flex: 0 0 100px; }
  .curated-card-cover { width: 100px; height: 100px; }
  .curated-card-name, .curated-card-artist { max-width: 100px; font-size: 11px; }
}

/* ================================================================
   SOUND CAPSULE
   ================================================================ */
#capsuleModal {
  z-index: 9200;
}
.capsule-container {
  background: var(--bg-secondary);
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  position: relative;
  box-shadow: none;
  animation: capsuleSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
.capsule-container::-webkit-scrollbar { width: 6px; }
.capsule-container::-webkit-scrollbar-track { background: transparent; }
.capsule-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.capsule-container::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
@keyframes capsuleSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.capsule-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; z-index: 100;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text);
  border: 1px solid var(--border);
}
.capsule-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg) scale(1.1); border-color: var(--danger); }

/* Header */
.capsule-header {
  text-align: center;
  padding: 80px 24px 48px;
  background: linear-gradient(180deg, var(--accent-subtle) 0%, rgba(139,92,246,0.03) 100%);
  border-radius: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}
.capsule-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.capsule-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px var(--accent-glow);
  animation: capsulePulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
  cursor: default;
}
.capsule-logo:hover {
  transform: scale(1.1) rotate(5deg);
}
@keyframes capsulePulse {
  0%, 100% { box-shadow: 0 8px 32px var(--accent-glow); }
  50% { box-shadow: 0 8px 48px var(--accent-glow), 0 0 80px var(--accent-glow); }
}
.capsule-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 36px); font-weight: 900;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.capsule-date { color: var(--text-secondary); font-size: 13px; }
.capsule-user-id {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  letter-spacing: 0.5px;
}

/* Sections */
.capsule-section {
  padding: 32px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.capsule-section.capsule-visible {
  opacity: 1;
  transform: translateY(0);
}
.capsule-section-title {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.5vw, 20px); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.capsule-section-title i { color: var(--accent); font-size: 14px; }
.capsule-section-desc {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 14px;
}
.capsule-empty {
  text-align: center; color: var(--muted);
  font-size: 13px; padding: 20px 0;
  font-style: italic;
}

/* Time Counter Ring */
.capsule-time-counter {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}
.time-ring {
  position: relative;
  width: 180px; height: 180px;
  transition: transform 0.3s ease;
}
.time-ring:hover {
  transform: scale(1.05);
}
.time-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--bg-hover);
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke: url(#capsuleGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.time-value {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.time-number {
  font-family: var(--font-heading);
  font-size: 42px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.time-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.time-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.time-stat {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 170px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.time-stat:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
  background: var(--bg-hover);
}
.time-stat:hover i {
  transform: scale(1.2);
}
.time-stat i {
  transition: transform 0.3s ease;
}
.time-stat i {
  color: var(--accent);
  font-size: 16px;
  width: 20px; text-align: center;
}
.time-stat span {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800;
  color: var(--text);
}
.time-stat label {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  font-weight: 600;
}

/* Comparison Bar */
.comparison-bar-container { padding: 8px 0; }
.comparison-bar {
  height: 28px;
  background: var(--bg-hover);
  border-radius: 14px;
  position: relative;
  overflow: visible;
  margin-bottom: 8px;
}
.comparison-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ec4899, #f59e0b);
  border-radius: 14px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}
.comparison-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: left 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  left: 0%;
  z-index: 2;
}
.comparison-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.comparison-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
}
.comparison-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* Capsule Bars */
.capsule-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capsule-bar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.capsule-bar-item:hover {
  background: var(--bg-hover);
  transform: translateX(6px);
}
.capsule-bar-item:hover .capsule-rank {
  transform: scale(1.15);
}
.capsule-bar-item:hover .capsule-bar-name {
  color: var(--accent);
}
.capsule-bar-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 800;
  color: var(--accent);
}
.capsule-bar-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.capsule-bar-cover {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  max-width: 40px; max-height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.capsule-bar-cover img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center center; background: var(--bg-hover);
}
.capsule-bar-info {
  flex: 1;
  min-width: 0;
}
.capsule-bar-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.capsule-bar-meta {
  font-size: 11px; color: var(--muted);
}
.capsule-bar-track {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.capsule-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}
/* Color variations */
.capsule-bars .capsule-bar-item:nth-child(1) .capsule-bar-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.capsule-bars .capsule-bar-item:nth-child(2) .capsule-bar-fill { background: linear-gradient(90deg, #ec4899, #f472b6); }
.capsule-bars .capsule-bar-item:nth-child(3) .capsule-bar-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.capsule-bars .capsule-bar-item:nth-child(4) .capsule-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.capsule-bars .capsule-bar-item:nth-child(5) .capsule-bar-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }
.capsule-bars .capsule-bar-item:nth-child(6) .capsule-bar-fill { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Trending bars */
.capsule-bars.trending .capsule-bar-item:nth-child(1) .capsule-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.capsule-bars.trending .capsule-bar-item:nth-child(2) .capsule-bar-fill { background: linear-gradient(90deg, #ef4444, #f87171); }
.capsule-bars.trending .capsule-bar-item:nth-child(3) .capsule-bar-fill { background: linear-gradient(90deg, #ec4899, #f472b6); }
.capsule-bars.trending .capsule-bar-item:nth-child(4) .capsule-bar-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.capsule-bars.trending .capsule-bar-item:nth-child(5) .capsule-bar-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* Unique bars */
.capsule-bars.unique .capsule-bar-fill { background: linear-gradient(90deg, #22c55e, #4ade80) !important; }
.capsule-bars.unique .capsule-bar-item:nth-child(2) .capsule-bar-fill { background: linear-gradient(90deg, #14b8a6, #2dd4bf) !important; }
.capsule-bars.unique .capsule-bar-item:nth-child(3) .capsule-bar-fill { background: linear-gradient(90deg, #06b6d4, #22d3ee) !important; }
.capsule-bars.unique .capsule-bar-item:nth-child(4) .capsule-bar-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important; }
.capsule-bars.unique .capsule-bar-item:nth-child(5) .capsule-bar-fill { background: linear-gradient(90deg, #ec4899, #f472b6) !important; }

/* Capsule badge for rank */
.capsule-rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-heading);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.capsule-rank.gold:hover { box-shadow: 0 0 16px rgba(245, 158, 11, 0.5); }
.capsule-rank.silver:hover { box-shadow: 0 0 16px rgba(156, 163, 175, 0.5); }
.capsule-rank.bronze:hover { box-shadow: 0 0 16px rgba(217, 119, 6, 0.5); }
.capsule-rank.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }
.capsule-rank.silver { background: linear-gradient(135deg, #9ca3af, #d1d5db); color: #000; }
.capsule-rank.bronze { background: linear-gradient(135deg, #b45309, #d97706); color: #fff; }
.capsule-rank.normal { background: var(--bg-hover); color: var(--muted); }

/* Capsule Now Playing */
.capsule-now-playing-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  scroll-snap-align: start;
}
.capsule-now-playing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  transition: transform 0.3s ease;
}
.capsule-now-playing:hover {
  transform: scale(1.02);
}
.capsule-np-cover {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: capsuleNpPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.capsule-np-cover:hover {
  transform: scale(1.08) rotate(2deg);
}
@keyframes capsuleNpPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 24px var(--accent-glow), 0 0 40px var(--accent-glow); }
}
.capsule-np-info { flex: 1; min-width: 0; }
.capsule-np-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.capsule-np-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.capsule-np-artist {
  font-size: 12px;
  color: var(--text-secondary);
}
.capsule-np-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}
.capsule-np-eq span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: capsuleEq 0.8s ease-in-out infinite;
}
.capsule-np-eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.capsule-np-eq span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.capsule-np-eq span:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.capsule-np-eq span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
@keyframes capsuleEq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Session Timeline */
.capsule-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.capsule-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
  animation: timelineSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes timelineSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.timeline-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  font-family: monospace;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 8px var(--accent-glow);
}
.capsule-timeline-item:first-child .timeline-dot {
  width: 12px; height: 12px;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 16px var(--accent-glow), 0 0 24px var(--accent-glow); }
}
/* Vertical connecting line between dots */
.capsule-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 67px; /* time width + gap + half dot */
  top: calc(50% + 6px);
  width: 2px;
  height: calc(100% - 6px);
  background: var(--border);
}
.timeline-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.timeline-content:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateX(6px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.timeline-cover {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.timeline-info { flex: 1; min-width: 0; }
.timeline-song {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-artist {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Comparison bar interactive */
.comparison-bar {
  transition: transform 0.3s ease;
}
.comparison-bar:hover {
  transform: scaleY(1.15);
}
.comparison-marker {
  transition: left 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s ease;
}
.comparison-marker:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Capsule bars hover effect on fill */
.capsule-bar-item:hover .capsule-bar-fill {
  filter: brightness(1.3);
}
.capsule-bar-fill {
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

/* Capsule back-to-top */
.capsule-back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 24px var(--accent-glow);
  z-index: 101;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.capsule-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.capsule-back-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Capsule section indicator dots */
.capsule-nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 101;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.capsule-nav-dots.visible {
  opacity: 1;
}
.capsule-nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.capsule-nav-dot:hover {
  background: var(--accent-hover);
  transform: scale(1.4);
}
.capsule-nav-dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Capsule Responsive */
@media (max-width: 560px) {
  .capsule-container { width: 100%; padding: 0; }
  .capsule-time-counter { flex-direction: column; gap: 20px; }
  .time-ring { width: 140px; height: 140px; }
  .time-number { font-size: 34px; }
  .time-stats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .time-stat { min-width: 0; flex: 1; padding: 10px 12px; }
  .time-stat span { font-size: 18px; }
  .capsule-section { padding: 24px 16px; }
  .capsule-header { padding: 60px 16px 36px; min-height: 260px; }
  .capsule-header h2 { font-size: 22px; }
  .capsule-section-title { font-size: 15px; }
  .capsule-nav-dots { display: none; }
  .capsule-close { top: 12px; right: 12px; }
}

/* ================================================================
   LYRICS OVERLAY (inside main)
   ================================================================ */
.lyrics-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
  pointer-events: none;
}
.lyrics-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Blurred album art background */
.lyrics-overlay-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.3) saturate(1.5);
  transform: scale(1.3);
  z-index: 0;
}
.lyrics-overlay-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 30%,
    rgba(0,0,0,0.5) 70%,
    rgba(0,0,0,0.7) 100%
  );
}

.lyrics-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header — song info + close */
.lyrics-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  flex-shrink: 0;
}
.lyrics-song-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lyrics-song-info img {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.lyrics-song-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.lyrics-artist-name {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.lyrics-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lyrics-status {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  white-space: nowrap;
}
.lyrics-status .spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lyrics-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.lyrics-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Lyrics Content (scrollable center area) */
.lyrics-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 10%;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.lyrics-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  padding: 60px 20px;
  line-height: 2;
}
.lyrics-placeholder i {
  font-size: 40px;
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
}

/* Plain lyrics */
.lyrics-plain {
  font-size: 20px;
  line-height: 2.2;
  color: rgba(255,255,255,0.7);
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 10% 0;
  text-align: center;
}

/* Synced lyrics */
.lyrics-synced {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 35% 0;
  text-align: center;
}
.lyrics-line {
  font-size: 22px;
  line-height: 1.7;
  padding: 10px 18px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.25);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transform: scale(1);
}
.lyrics-line-inner {
  position: relative;
  z-index: 1;
  display: inline;
}
.lyrics-line-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: width 0.3s linear, opacity 0.4s ease;
  border-radius: var(--radius);
  pointer-events: none;
}
.lyrics-line:hover {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* Active line */
.lyrics-line.active {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  transform: scale(1.03);
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}
.lyrics-line.active .lyrics-line-progress {
  opacity: 1;
}

/* Word-by-word reveal */
.lyrics-word {
  display: inline-block;
  opacity: 0.5;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lyrics-word.revealed {
  animation: wordReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--word-i) * 0.04s);
}
@keyframes wordReveal {
  0% { opacity: 0.5; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Past lines */
.lyrics-line.past {
  color: rgba(255,255,255,0.4);
}
.lyrics-line.past .lyrics-line-progress {
  opacity: 0.2;
}

/* Near lines */
.lyrics-line.near {
  color: rgba(255,255,255,0.35);
}

/* Distant upcoming */
.lyrics-line.upcoming:not(.near) {
  color: rgba(255,255,255,0.2);
}

/* Instrumental */
.lyrics-line.instrumental {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 16px;
}
.lyrics-line.instrumental.active {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  text-shadow: 0 0 16px rgba(255,255,255,0.2);
  animation: instrumentalPulse 1.5s ease-in-out infinite;
}
@keyframes instrumentalPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Not Found */
.lyrics-not-found {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
}
.lyrics-not-found i {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}
.lyrics-not-found p {
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.lyrics-footer {
  padding: 10px 20px;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  flex-shrink: 0;
}

/* ================================================================
   PLAYBACK SPEED CONTROL
   ================================================================ */
.speed-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 700;
}
.speed-popup.show { opacity: 1; visibility: visible; transform: translateY(0); }
.speed-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.speed-option:hover { background: var(--accent-subtle); color: var(--accent); }
.speed-option.active { color: var(--accent); font-weight: 700; }
.speed-option.active::after { content: '✓'; font-size: 12px; color: var(--accent); }

/* Speed button in player */
#playerSpeedBtn {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  font-family: var(--font-heading);
}
#playerSpeedBtn.non-default { color: var(--accent); }

/* Lyrics Overlay Responsive */
@media (max-width: 768px) {
  .lyrics-content { padding: 0 5%; }
  .lyrics-line { font-size: 18px; }
  .lyrics-line.active { font-size: 23px; }
  .lyrics-overlay-header { padding: 14px 16px; }
  .lyrics-song-info img { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .lyrics-line { font-size: 16px; }
  .lyrics-line.active { font-size: 20px; }
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-page { padding: 20px 0 60px; max-width: 1100px; margin: 0 auto; }

/* --- Hero Banner --- */
.about-hero-banner {
  text-align: center; padding: 60px 30px 50px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: var(--radius-lg); margin-bottom: 40px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.about-hero-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(139,92,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(236,72,153,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.about-hero-icon {
  font-size: 52px; color: var(--accent); margin-bottom: 16px;
  animation: aboutPulse 2s ease-in-out infinite;
}
@keyframes aboutPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.about-hero-banner h1 {
  font-family: var(--font-heading); font-size: 40px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ec4899, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px;
}
.about-tagline { color: var(--text-secondary); font-size: 16px; font-weight: 400; margin-bottom: 28px; }
.about-stats-row {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.about-stat { display: flex; flex-direction: column; align-items: center; }
.about-stat-num {
  font-family: var(--font-heading); font-size: 32px; font-weight: 900; color: var(--accent);
}
.about-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-top: 2px; }

/* --- Section Block & Labels --- */
.about-section-block { margin-bottom: 36px; }
.about-section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.about-section-label i { font-size: 18px; }

/* --- Story Card --- */
.about-story-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.about-story-card p {
  color: var(--text-secondary); line-height: 1.8; font-size: 15px;
}
.about-story-card p strong { color: var(--accent); }
.about-story-card p em { color: var(--text); font-style: italic; }

/* --- Tech Stack Grid --- */
.about-tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.about-tech-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.about-tech-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  opacity: 0; transition: opacity var(--transition);
}
.about-tech-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.about-tech-item:hover::before { opacity: 1; }
.about-tech-icon { font-size: 28px; color: var(--accent); margin-bottom: 4px; }
.about-tech-item strong { font-size: 14px; font-weight: 600; color: var(--text); }
.about-tech-item span { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* --- Backend Architecture --- */
.about-backend-grid { display: flex; flex-direction: column; gap: 14px; }
.about-backend-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.about-backend-item:hover { transform: translateX(6px); border-color: var(--accent); box-shadow: var(--shadow); }
.about-backend-num {
  font-family: var(--font-heading); font-size: 28px; font-weight: 900;
  color: var(--accent); opacity: 0.3; flex-shrink: 0; min-width: 40px;
  transition: opacity var(--transition);
}
.about-backend-item:hover .about-backend-num { opacity: 1; }
.about-backend-content strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.about-backend-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* --- Infrastructure Cards --- */
.about-infra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-infra-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.about-infra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-infra-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.about-infra-badge.aws { background: rgba(255,153,0,0.12); color: #ff9900; }
.about-infra-badge.netlify { background: rgba(0,200,159,0.12); color: #00c89f; }
.about-infra-card h4 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.about-infra-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.about-infra-card p strong { color: var(--accent); }
.about-infra-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.about-infra-tags span {
  padding: 4px 12px; font-size: 11px; font-weight: 600;
  border-radius: 20px; background: var(--accent-subtle); color: var(--accent);
  border: 1px solid rgba(139,92,246,0.2); letter-spacing: 0.3px;
}

/* --- Features Grid --- */
.about-features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px;
}
.about-feature {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: all var(--transition); cursor: default;
}
.about-feature:hover {
  border-color: var(--accent); background: var(--accent-subtle);
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}
.about-feature i { color: var(--accent); font-size: 18px; flex-shrink: 0; }

/* --- Developer Card --- */
.about-developer-card {
  display: flex; align-items: center; gap: 28px;
  padding: 36px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(236,72,153,0.06));
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-developer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.about-dev-avatar {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  box-shadow: 0 8px 24px rgba(139,92,246,0.3);
}
.about-dev-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; display: block;
}
.about-dev-name {
  font-family: var(--font-heading); font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.about-dev-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* --- About Responsive --- */
@media (max-width: 768px) {
  .about-hero-banner h1 { font-size: 28px; }
  .about-hero-banner { padding: 40px 20px 35px; }
  .about-stats-row { gap: 24px; }
  .about-stat-num { font-size: 24px; }
  .about-tech-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .about-infra-grid { grid-template-columns: 1fr; }
  .about-features-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .about-developer-card { flex-direction: column; text-align: center; gap: 16px; padding: 28px 24px; }
  .about-backend-item { flex-direction: column; gap: 8px; }
  .about-backend-num { font-size: 20px; }
}

/* ================================================================
   SUPPORT SECTION
   ================================================================ */
.support-page { padding: 20px 0 60px; max-width: 800px; margin: 0 auto; }
.support-hero {
  text-align: center; padding: 50px 30px 40px;
  margin-bottom: 36px;
}
.support-heart-icon {
  font-size: 56px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}
.support-hero h1 {
  font-family: var(--font-heading); font-size: 36px; font-weight: 800;
  margin-top: 16px; margin-bottom: 10px;
}
.support-subtitle { color: var(--text-secondary); font-size: 16px; }

.support-content { display: flex; flex-direction: column; gap: 28px; }

.support-message-card, .support-qr-card, .support-thank-you {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.support-message-card h3, .support-qr-card h3 {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 14px;
}
.support-message-card h3 i, .support-qr-card h3 i { color: var(--accent); margin-right: 8px; }
.support-message-card > p { color: var(--text-secondary); line-height: 1.7; font-size: 14px; margin-bottom: 20px; }
.support-message-card > p strong { color: var(--accent); }

.support-costs { display: flex; flex-direction: column; gap: 18px; }
.cost-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  background: var(--bg-hover); border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.cost-item:hover { border-color: var(--accent); }
.cost-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 20px;
  background: var(--accent-subtle); color: var(--accent);
}
.cost-details strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cost-details span { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.cost-price {
  display: inline-block; margin-left: 8px;
  padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: var(--accent-subtle); color: var(--accent);
  border: 1px solid rgba(139,92,246,0.2); letter-spacing: 0.3px;
  vertical-align: middle;
}

.cost-total {
  display: flex; align-items: center; gap: 16px;
  margin-top: 22px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.08));
  border: 1px solid rgba(139,92,246,0.25);
}
.cost-total > i { font-size: 24px; color: var(--accent); flex-shrink: 0; }
.cost-total strong { display: block; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.cost-total span { font-size: 13px; color: var(--text-secondary); }

.support-qr-card { text-align: center; }
.support-qr-card > p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.support-qr-card > p strong { color: var(--accent); }
.support-qr-wrapper {
  margin: 28px auto; max-width: 280px;
  padding: 16px; border-radius: var(--radius-lg);
  background: #000; border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}
.support-qr-image { width: 100%; border-radius: var(--radius); }
.support-qr-name {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  color: var(--accent); margin: 12px 0 16px; letter-spacing: 1px;
}
.support-note { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.support-thank-you {
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
}
.support-thank-you i { font-size: 36px; color: var(--accent); margin-bottom: 12px; }
.support-thank-you h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: 10px;
}
.support-thank-you p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.support-signature {
  margin-top: 16px; font-style: italic; font-weight: 600;
  color: var(--accent) !important; font-size: 15px !important;
}

/* --- Feedback Form --- */
.support-feedback-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.support-feedback-card h3 {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 10px;
}
.support-feedback-card h3 i { color: var(--accent); margin-right: 8px; }
.support-feedback-card > p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }

.feedback-form { display: flex; flex-direction: column; gap: 18px; }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feedback-field { display: flex; flex-direction: column; gap: 6px; }
.feedback-field label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-secondary);
}
.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.feedback-field textarea { resize: vertical; min-height: 100px; }
.feedback-field select { cursor: pointer; }

.feedback-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; font-size: 15px; font-weight: 600;
  font-family: var(--font); border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feedback-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.feedback-submit:active { transform: translateY(0); }

@media (max-width: 768px) {
  .support-hero h1 { font-size: 28px; }
  .support-hero { padding: 35px 20px 30px; }
  .support-message-card, .support-qr-card, .support-thank-you, .support-feedback-card { padding: 24px 20px; }
  .support-qr-wrapper { max-width: 240px; }
  .feedback-row { grid-template-columns: 1fr; }
}
