/* =====================================================
   NYMIX — Purple Music App CSS
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
svg.ui-icon { display:inline-block; width:1em; height:1em; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }

:root {
  --bg:           #120826;
  --bg2:          #1a0f35;
  --sidebar-bg:   rgba(20, 10, 45, 0.85);
  --card-bg:      rgba(255,255,255,0.05);
  --card-hover:   rgba(255,255,255,0.1);
  --glass:        rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --purple-glow:  rgba(124,58,237,0.4);
  --red:          #ef4444;
  --accent:       #8b5cf6;
  --text:         #ffffff;
  --text2:        #c4b5fd;
  --text3:        #9ca3af;
  --player-h:     130px;
  --sidebar-w:    220px;
  --right-w:      280px;
}

html, body { height:100%; font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); overflow:hidden; }

/* ── Background Blobs ── */
.bg-blob {
  position:fixed; border-radius:50%; filter:blur(90px);
  pointer-events:none; z-index:0;
}
.blob1 { width:500px; height:500px; background:rgba(109,40,217,0.35); top:-100px; left:-100px; }
.blob2 { width:400px; height:400px; background:rgba(79,30,180,0.25); bottom:0; right:200px; }
.blob3 { width:300px; height:300px; background:rgba(139,92,246,0.2); top:200px; right:-80px; }

/* ── App Layout ── */
.app {
  display:grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--right-w);
  height:100vh;
  position:relative;
  z-index:1;
}

/* ══════════════════════════════════════════
   LEFT SIDEBAR
══════════════════════════════════════════ */
.sidebar {
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  overflow: hidden;
}

.logo {
  display:flex; align-items:center; gap:10px;
  margin-bottom:24px; padding:0 8px;
}
.logo-icon {
  width:36px; height:36px; background:linear-gradient(135deg,#7c3aed,#a855f7);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 15px var(--purple-glow);
}
.logo span { font-size:22px; font-weight:800; letter-spacing:-0.5px; }

.search-box {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.08); border:1px solid var(--border);
  border-radius:10px; padding:9px 14px; margin-bottom:20px;
  transition:all 0.2s;
}
.search-box:focus-within {
  background:rgba(255,255,255,0.12); border-color:var(--purple);
  box-shadow:0 0 0 2px var(--purple-glow);
}
.search-box input {
  background:none; border:none; outline:none; color:var(--text);
  font-size:13px; font-family:'Inter',sans-serif; width:100%;
}
.search-box input::placeholder { color:var(--text3); }

.nav-section-label {
  font-size:11px; font-weight:600; letter-spacing:1px;
  color:var(--text3); padding:0 10px; margin-bottom:8px;
}

.nav-menu { display:flex; flex-direction:column; gap:2px; }

.nav-link {
  display:flex; align-items:center; gap:10px;
  padding:9px 10px; border-radius:10px;
  color:var(--text2); font-size:13px; font-weight:500;
  cursor:pointer; transition:all 0.15s; text-decoration:none;
  position:relative;
}
.nav-link:hover { background:var(--card-bg); color:var(--text); }
.nav-link.active {
  background:linear-gradient(90deg,rgba(124,58,237,0.3),rgba(124,58,237,0.05));
  color:var(--text);
  border-left:3px solid var(--purple);
}
.nav-icon { width:20px; height:20px; flex:0 0 22px; }
.lib-icon {
  width:22px; height:22px; border-radius:5px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; color:white;
}
.badge-new {
  margin-left:auto; background:var(--red); color:white;
  font-size:9px; font-weight:700; padding:2px 6px; border-radius:20px;
}
.dot-blue {
  margin-left:auto; width:7px; height:7px;
  background:#3b82f6; border-radius:50%;
}

.sidebar-bottom { margin-top:auto; }
.user-profile {
  display:flex; align-items:center; gap:10px;
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:12px; padding:10px 12px;
}
.user-avatar {
  position:relative; overflow:hidden;
  width:34px; height:34px; background:linear-gradient(135deg,#7c3aed,#ec4899);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; flex-shrink:0;
}
.user-avatar-image { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.user-name { font-size:12px; font-weight:600; }
.user-plan { font-size:10px; color:var(--text3); }

/* ══════════════════════════════════════════
   CENTER
══════════════════════════════════════════ */
.center {
  display:flex; flex-direction:column;
  overflow:hidden; position:relative;
}

.center-topbar {
  display:flex; align-items:center; gap:10px;
  padding:16px 24px 10px;
  flex-shrink:0;
}
.nav-arrow {
  width:28px; height:28px; background:rgba(255,255,255,0.1);
  border:none; border-radius:50%; color:var(--text);
  font-size:18px; cursor:pointer; display:flex;
  align-items:center; justify-content:center;
  transition:background 0.15s; line-height:1;
}
.nav-arrow .ui-icon { width:17px; height:17px; }
.nav-arrow:hover { background:rgba(255,255,255,0.2); }
.view-title { font-size:12px; color:var(--text3); margin-left:4px; }
.notification-wrap { position:relative; z-index:12; margin-left:auto; }
.notification-toggle { position:relative; display:grid; width:36px; height:36px; place-items:center; border:1px solid rgba(255,255,255,.09); border-radius:11px; background:rgba(255,255,255,.06); color:var(--text); cursor:pointer; }
.notification-toggle:hover, .notification-toggle[aria-expanded="true"] { border-color:rgba(160,106,255,.45); background:rgba(160,106,255,.15); }
.notification-toggle > svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.notification-count { position:absolute; top:-5px; right:-5px; display:grid; min-width:17px; height:17px; place-items:center; padding:0 4px; border:2px solid #100c19; border-radius:99px; background:#ff5277; color:#fff; font-size:9px; font-weight:800; line-height:1; }
.notification-count[hidden], .notification-panel[hidden] { display:none !important; }
.notification-panel { position:absolute; top:calc(100% + 9px); right:0; width:min(340px,calc(100vw - 24px)); max-height:min(480px,70dvh); overflow:auto; border:1px solid rgba(194,154,255,.2); border-radius:14px; background:#181321; box-shadow:0 18px 48px rgba(0,0,0,.5); }
.notification-heading { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border-bottom:1px solid var(--border); background:#181321; }
.notification-heading strong { font-size:13px; }
.notification-heading span { color:var(--green); font-size:10px; }
.notification-list { display:grid; }
.notification-item { display:grid; gap:3px; width:100%; padding:11px 15px; border:0; border-bottom:1px solid var(--border); background:transparent; color:var(--text); text-align:left; cursor:pointer; }
.notification-item:hover { background:rgba(160,106,255,.1); }
.notification-item:last-child { border-bottom:0; }
.notification-item strong { font-size:11px; }
.notification-item span, .notification-empty { margin:0; color:var(--text3); font-size:10px; line-height:1.45; }
.notification-empty { padding:18px 15px; text-align:center; }

/* Views */
.view { display:none; flex:1; overflow-y:auto; padding:0 24px 10px; }
.view.active { display:block; }
.view-messages.active { display:flex; min-height:0; flex:1; overflow:hidden; padding:0; }
.view-messages iframe { width:100%; height:100%; min-height:0; flex:1; border:0; background:var(--bg); }
.app.social-active { grid-template-columns:var(--sidebar-w) minmax(0,1fr); }
.app.social-active .right-panel { display:none; }
.app.social-active .center-topbar { min-height:44px; padding:8px 18px 4px; }
.app.social-active .view-title { color:var(--text); font-size:14px; font-weight:650; }
.mobile-menu-toggle, .mobile-menu-backdrop, .sidebar-close { display:none; }
.view::-webkit-scrollbar { width:4px; }
.view::-webkit-scrollbar-thumb { background:#333; border-radius:4px; }

.section-big-title {
  font-size:34px; font-weight:900; letter-spacing:-1px;
  margin-bottom:16px; color:var(--text);
}
.section-big-title .ui-icon { width:30px; height:30px; }
.hero-bg:not([src]) { visibility:hidden; }

/* Hero Banner */
.hero-banner {
  position:relative; border-radius:16px; overflow:hidden;
  height:220px; margin-bottom:28px;
}
.hero-bg {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.4s ease;
}
.hero-banner:hover .hero-bg { transform:scale(1.04); }
.hero-banner.slide-change .hero-bg { animation:hero-slide-fade .45s ease; }
@keyframes hero-slide-fade { from { opacity:.35; } to { opacity:1; } }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(10,3,30,0.9) 0%, rgba(10,3,30,0.4) 60%, transparent 100%);
}
.hero-content {
  position:absolute; bottom:0; left:0; padding:20px 24px;
}
.hero-tag { font-size:11px; color:var(--text2); letter-spacing:1px; text-transform:uppercase; margin-bottom:4px; }
.hero-listeners { font-size:11px; color:var(--text3); margin-bottom:8px; }
.hero-listeners strong { color:var(--text2); }
.hero-tag { color:var(--purple-light); }
.hero-title { font-size:26px; font-weight:800; margin-bottom:14px; text-shadow:0 2px 10px rgba(0,0,0,0.5); }
.hero-actions { display:flex; gap:10px; }
.hero-carousel-controls { position:absolute; top:12px; right:14px; display:flex; align-items:center; gap:7px; padding:5px 7px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(12,8,21,.58); backdrop-filter:blur(8px); }
.hero-slide-arrow { display:grid; width:27px; height:27px; place-items:center; border:0; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; cursor:pointer; }
.hero-slide-arrow:hover { background:rgba(255,255,255,.25); }
.hero-slide-arrow .ui-icon { width:15px; height:15px; }
.hero-slide-dots { display:flex; align-items:center; gap:5px; }
.hero-slide-dot { width:7px; height:7px; padding:0; border:0; border-radius:99px; background:rgba(255,255,255,.52); cursor:pointer; transition:width .2s ease,background .2s ease; }
.hero-slide-dot.active { width:18px; background:#fff; }

.btn-play-hero {
  display:flex; align-items:center; gap:7px;
  background:var(--red); color:white; border:none;
  border-radius:20px; padding:9px 20px; font-size:13px;
  font-weight:700; cursor:pointer; font-family:'Inter',sans-serif;
  transition:all 0.15s; box-shadow:0 4px 15px rgba(239,68,68,0.4);
}
.btn-play-hero .ui-icon { width:15px; height:15px; }
.btn-play-hero:hover { background:#dc2626; transform:scale(1.04); }
.btn-play-hero:disabled { cursor:not-allowed; opacity:.55; box-shadow:none; }

.btn-follow {
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.15); color:white; border:1px solid rgba(255,255,255,0.3);
  border-radius:20px; padding:9px 20px; font-size:13px; font-weight:600;
  cursor:pointer; font-family:'Inter',sans-serif;
  backdrop-filter:blur(10px); transition:all 0.15s; text-decoration:none;
}
.btn-follow:hover { background:rgba(255,255,255,0.25); }

/* Playlist Table */
.playlist-section { margin-top:4px; }
.playlist-header {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;
}
.playlist-header h2 { font-size:20px; font-weight:700; }
.featured-caption { margin:4px 0 0; color:var(--text3); font-size:11px; }
.featured-error { padding:24px 12px; color:var(--text3); text-align:center; }
.show-all-btn {
  background:none; border:none; color:var(--purple-light);
  font-size:12px; cursor:pointer; font-family:'Inter',sans-serif;
  font-weight:500; transition:color 0.15s;
}
.show-all-btn:hover { color:white; }

.playlist-table { width:100%; border-collapse:collapse; }
.playlist-table thead th {
  font-size:10px; letter-spacing:1px; color:var(--text3);
  text-align:left; padding:0 10px 10px; font-weight:600;
}
.playlist-table tbody tr {
  border-radius:8px; cursor:pointer;
  transition:background 0.15s;
}
.playlist-table tbody tr:hover { background:var(--card-bg); }
.playlist-table tbody tr.active-row { background:rgba(124,58,237,0.2); }
.playlist-table tbody td {
  padding:10px 10px; font-size:13px; color:var(--text2);
  vertical-align:middle;
}
.playlist-table tbody td:first-child { color:var(--text3); width:30px; font-size:12px; }
.td-title { color:var(--text) !important; font-weight:500; }
.td-artist { color:var(--text3) !important; }
.td-time { color:var(--text3) !important; }
.td-album {
  max-width:120px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; color:var(--text3) !important;
}
.td-actions { text-align:right; }
.row-like-btn {
  background:none; border:none; color:var(--text3);
  font-size:16px; cursor:pointer; opacity:0;
  transition:all 0.15s;
}
.playlist-table tbody tr:hover .row-like-btn { opacity:1; }
.row-like-btn.liked { opacity:1 !important; color:#a855f7; }

/* EQ Bars */
.eq {
  display:inline-flex; gap:2px; align-items:flex-end; height:14px;
}
.eq span {
  width:3px; background:var(--purple-light); border-radius:2px;
  animation: eq 0.8s ease infinite;
}
.eq span:nth-child(2) { animation-delay:.15s; }
.eq span:nth-child(3) { animation-delay:.3s; }
@keyframes eq { 0%,100%{height:4px} 50%{height:14px} }

/* Search Grid */
.search-status-text { color:var(--text3); font-size:13px; margin-bottom:16px; }
.search-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:14px;
}
.search-more-wrap { display:flex; justify-content:center; padding:24px 0; }
.search-more-btn {
  border:1px solid var(--border); border-radius:20px; padding:10px 20px;
  background:var(--card-bg); color:var(--text); font:inherit; cursor:pointer;
}
.search-more-btn:hover:not(:disabled) { background:var(--card-hover); }
.search-more-btn:disabled { cursor:wait; opacity:.65; }
.search-limited { color:#fbbf24; }
.sg-card {
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:14px; overflow:hidden; cursor:pointer;
  transition:all 0.2s; position:relative;
}
.sg-card:hover { background:var(--card-hover); transform:translateY(-3px); box-shadow:0 10px 30px rgba(0,0,0,0.3); }
.sg-card img { width:100%; aspect-ratio:1; object-fit:cover; }
.sg-card-info { padding:10px; }
.sg-card-title { font-size:12px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sg-card-artist { font-size:11px; color:var(--text3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sg-play-btn {
  position:absolute; bottom:46px; right:10px;
  width:36px; height:36px; background:var(--purple);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(6px); transition:all 0.2s;
  box-shadow:0 4px 15px var(--purple-glow); font-size:14px; color:white;
}
.sg-card:hover .sg-play-btn { opacity:1; transform:translateY(0); }

/* Genre Grid */
.genre-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; }
.genre-card {
  border-radius:14px; padding:20px 16px; cursor:pointer;
  font-size:15px; font-weight:700; color:white;
  min-height:80px; transition:transform 0.15s, box-shadow 0.15s;
  overflow:hidden; position:relative;
}
.genre-card:hover { transform:scale(1.04); box-shadow:0 10px 30px rgba(0,0,0,0.4); }
.genre-icon { margin-bottom:8px; color:rgba(255,255,255,.92); }
.genre-icon .ui-icon { width:27px; height:27px; }

/* Song List View (liked) */
.song-list-view { display:flex; flex-direction:column; gap:4px; }
.sl-row {
  display:flex; align-items:center; gap:14px;
  padding:8px 12px; border-radius:10px; cursor:pointer;
  transition:background 0.15s;
}
.sl-row:hover { background:var(--card-bg); }
.sl-row img { width:44px; height:44px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.sl-info { flex:1; min-width:0; }
.sl-title { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sl-artist { font-size:11px; color:var(--text3); margin-top:2px; }
.sl-like-btn { background:none; border:none; color:#a855f7; font-size:18px; cursor:pointer; }

/* Radio Grid */
.radio-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; }
.radio-card {
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:14px; padding:20px; text-align:center; cursor:pointer;
  transition:all 0.2s;
}
.radio-card:hover { background:var(--card-hover); transform:translateY(-3px); }
.radio-icon { display:grid; place-items:center; width:52px; height:52px; margin:0 auto 10px; border-radius:16px; background:rgba(168,85,247,.16); color:var(--purple-light); }
.radio-icon .ui-icon { width:28px; height:28px; }
.radio-title { font-size:14px; font-weight:600; }
.radio-desc { font-size:11px; color:var(--text3); margin-top:4px; }
.user-menu-button { display:grid; place-items:center; width:30px; height:30px; border:0; border-radius:8px; background:transparent; color:var(--text2); cursor:pointer; }
.user-menu-button:hover { background:var(--card-hover); color:var(--text); }

/* Spinner */
.loading-wrap {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; padding:60px; gap:16px; color:var(--text3);
}
.spinner {
  width:36px; height:36px; border:3px solid rgba(124,58,237,0.2);
  border-top-color:var(--purple); border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ══════════════════════════════════════════
   PLAYER BAR
══════════════════════════════════════════ */
.player-bar {
  flex-shrink:0; background:rgba(15,7,36,0.95);
  backdrop-filter:blur(20px); border-top:1px solid var(--border);
  padding:12px 20px 10px;
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; gap:16px;
}

.player-left { display:flex; align-items:center; gap:8px; }
.player-center { display:flex; align-items:center; gap:10px; }
.player-right { display:flex; align-items:center; gap:10px; justify-content:flex-end; }

.p-ctrl-btn {
  background:none; border:none; color:var(--text3);
  font-size:16px; cursor:pointer; padding:6px;
  border-radius:6px; transition:all 0.15s; line-height:1;
}
.p-ctrl-btn .ui-icon { width:18px; height:18px; }
.p-ctrl-btn:hover { color:var(--text); }
.p-ctrl-btn.active { color:var(--purple-light); }

.play-pause-btn {
  width:42px; height:42px; background:white; border:none;
  border-radius:50%; cursor:pointer; display:flex;
  align-items:center; justify-content:center;
  font-size:16px; transition:transform 0.1s, box-shadow 0.15s;
  box-shadow:0 4px 20px rgba(255,255,255,0.15);
}
.play-pause-btn .ui-icon { width:20px; height:20px; stroke-width:2.2; }
#p-like-btn.liked .ui-icon, .row-like-btn.liked .ui-icon, .sl-like-btn .ui-icon { fill:currentColor; }
.play-pause-btn:hover { transform:scale(1.08); box-shadow:0 6px 25px rgba(255,255,255,0.25); }

.player-progress-wrap {
  grid-column:1/-1; display:flex; align-items:center; gap:10px;
  padding:0 2px;
}
.p-time { font-size:11px; color:var(--text3); min-width:34px; }
#p-current { text-align:right; }

.p-progress-track {
  flex:1; height:4px; background:rgba(255,255,255,0.15);
  border-radius:4px; cursor:pointer; position:relative;
}
.p-progress-fill {
  height:100%; background:linear-gradient(90deg,var(--purple),var(--purple-light));
  border-radius:4px; width:0%;
}
.p-progress-dot {
  position:absolute; top:50%; left:0%;
  transform:translate(-50%,-50%);
  width:12px; height:12px; background:white;
  border-radius:50%; opacity:0; transition:opacity 0.2s;
}
.p-progress-track:hover .p-progress-dot { opacity:1; }
.p-progress-track:hover .p-progress-fill { background:var(--purple-light); }

.vol-range {
  -webkit-appearance:none; width:80px; height:4px;
  background:rgba(255,255,255,0.2); border-radius:4px; cursor:pointer;
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance:none; width:12px; height:12px;
  background:white; border-radius:50%;
}
.vol-range:hover { background:var(--purple); }

/* ══════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════ */
.right-panel {
  background:var(--sidebar-bg);
  backdrop-filter:blur(20px);
  border-left:1px solid var(--border);
  display:flex; flex-direction:column; gap:20px;
  padding:20px 16px; overflow-y:auto;
}
.right-panel::-webkit-scrollbar { width:4px; }
.right-panel::-webkit-scrollbar-thumb { background:#333; border-radius:4px; }

.right-section-header {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;
}
.right-section-header h3 { font-size:16px; font-weight:700; }
.more-btn, .see-all-btn {
  background:none; border:none; color:var(--text3);
  font-size:12px; cursor:pointer; transition:color 0.15s;
}
.more-btn:hover, .see-all-btn:hover { color:var(--text); }
.see-all-btn { color:var(--purple-light); font-weight:500; }

.tags-grid { display:flex; flex-wrap:wrap; gap:8px; }
.tag-pill {
  background:var(--card-bg); border:1px solid var(--border);
  color:var(--text2); border-radius:20px; padding:7px 14px;
  font-size:12px; font-weight:500; cursor:pointer;
  font-family:'Inter',sans-serif; transition:all 0.15s;
}
.tag-pill:hover {
  background:var(--purple); border-color:var(--purple);
  color:white; box-shadow:0 4px 15px var(--purple-glow);
}

/* Now Playing Card */
.now-playing-card {
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:16px; overflow:hidden; position:relative;
}
.np-card-img-wrap { width:100%; aspect-ratio:1; position:relative; }
.np-card-img-wrap img { width:100%; height:100%; object-fit:cover; }
#yt-player { position:absolute; inset:0; min-width:200px; min-height:200px; z-index:1; }
#yt-player iframe { width:100%; height:100%; }
.np-card-placeholder {
  width:100%; height:100%; background:linear-gradient(135deg,#2d1b69,#1a0f35);
  display:flex; align-items:center; justify-content:center; min-height:160px;
}
.np-card-info { padding:12px; }
.np-card-title { font-size:14px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.np-card-artist { font-size:12px; color:var(--text3); margin-top:3px; }
.np-add-btn {
  position:absolute; top:10px; right:10px;
  width:28px; height:28px; background:rgba(0,0,0,0.5);
  border:1px solid rgba(255,255,255,0.2); border-radius:50%;
  color:white; font-size:16px; cursor:pointer;
  backdrop-filter:blur(10px); transition:all 0.15s;
}
.np-add-btn:hover { background:var(--purple); border-color:var(--purple); }

/* Recently Played */
.played-list { display:flex; flex-direction:column; gap:4px; }
.played-item {
  display:flex; align-items:center; gap:10px;
  padding:8px 8px; border-radius:10px; cursor:pointer;
  transition:background 0.15s;
}
.played-item:hover { background:var(--card-bg); }
.played-item img {
  width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0;
}
.played-info { flex:1; min-width:0; }
.played-title { font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.played-artist { font-size:10px; color:var(--text3); }
.played-time { font-size:10px; color:var(--text3); flex-shrink:0; }
.played-empty { color:var(--text3); font-size:12px; padding:12px; text-align:center; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.sg-card, .sl-row, .played-item, .genre-card, .radio-card {
  animation: fadeUp 0.3s ease both;
}

@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(190px, var(--sidebar-w)) minmax(0,1fr); }
  .app > .right-panel { display:none; }
}
@media (max-width: 820px) {
  html, body { min-height:100%; overflow:hidden; }
  .app { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; height:100dvh; min-height:0; }
  .app.social-active { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; height:100dvh; }
  .sidebar, .app.social-active .sidebar {
    position:fixed; z-index:21; inset:0 auto 0 0; width:min(290px,86vw); height:100dvh;
    min-width:0; flex-direction:column; align-items:stretch; gap:0; padding:20px 15px max(14px,env(safe-area-inset-bottom));
    overflow-x:hidden; overflow-y:auto; border:0; border-right:1px solid var(--border);
    background:rgba(20,10,45,.98); box-shadow:12px 0 36px rgba(0,0,0,.4);
    transform:translateX(-105%); transition:transform .22s ease;
  }
  .app.mobile-menu-open .sidebar, .app.social-active.mobile-menu-open .sidebar { transform:translateX(0); }
  .logo, .app.social-active .logo { display:flex; flex:0 0 auto; margin-bottom:18px; }
  .logo span { display:inline; }
  .sidebar-close {
    display:grid; place-items:center; width:34px; height:34px; margin-left:auto;
    border:1px solid var(--border); border-radius:9px; background:var(--card-bg); color:var(--text); cursor:pointer;
  }
  .sidebar > .search-box, .app.social-active .sidebar > .search-box { display:flex; flex:0 0 auto; width:100%; min-height:42px; margin:0 0 18px; }
  .sidebar > .nav-section-label, .app.social-active .sidebar > .nav-section-label { display:block; flex:0 0 auto; }
  .sidebar .nav-menu:nth-of-type(2), .app.social-active .sidebar .nav-menu:nth-of-type(2) { display:flex; }
  .sidebar > .nav-menu, .app.social-active .sidebar > .nav-menu,
  .sidebar > .nav-menu:first-of-type, .app.social-active .sidebar > .nav-menu:first-of-type {
    display:flex; min-width:0; flex:0 0 auto; flex-direction:column; justify-content:flex-start; gap:3px;
  }
  .sidebar .nav-link, .app.social-active .sidebar .nav-link {
    display:flex; min-width:0; flex:0 0 auto; justify-content:flex-start; gap:10px;
    padding:9px 10px; font-size:13px;
  }
  .sidebar .nav-link .nav-icon, .app.social-active .sidebar .nav-link .nav-icon { width:20px; height:20px; }
  .sidebar .nav-link .badge-new, .sidebar .nav-link .dot-blue { display:block; }
  .sidebar-bottom, .app.social-active .sidebar-bottom { display:block; flex:0 0 auto; margin-top:auto; padding-top:16px; }
  .sidebar-bottom .user-profile, .app.social-active .sidebar-bottom .user-profile { gap:10px; padding:10px 12px; }
  .sidebar-bottom .user-info, .app.social-active .sidebar-bottom .user-info { display:block; }
  .sidebar-bottom .user-plan, .app.social-active .user-plan { display:block; }
  .sidebar-bottom .user-avatar, .app.social-active .sidebar-bottom .user-avatar { width:34px; height:34px; }
  .sidebar-bottom .user-menu-button, .app.social-active .sidebar-bottom .user-menu-button { width:32px; height:32px; }
  .mobile-menu-toggle {
    display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px;
    border:1px solid var(--border); border-radius:9px; background:var(--card-bg); color:var(--text); cursor:pointer;
  }
  .mobile-menu-toggle .ui-icon { width:19px; height:19px; }
  .mobile-menu-backdrop, .app.social-active .mobile-menu-backdrop {
    display:block; position:fixed; z-index:20; inset:0; width:100%; height:100%;
    border:0; background:rgba(5,3,10,.58); cursor:pointer;
  }
  .mobile-menu-backdrop[hidden], .app.social-active .mobile-menu-backdrop[hidden] { display:none !important; }
  .center { grid-row:1; min-height:0; }
  .player-bar { grid-row:2; }
  .center-topbar { min-height:44px; padding:8px 14px 4px; }
  .notification-toggle { width:34px; height:34px; }
  .view { min-height:0; padding:0 14px 12px; }
  .view-messages.active { padding:0; }
  .player-bar { grid-template-columns:auto 1fr auto; gap:8px; padding:7px 12px max(7px, env(safe-area-inset-bottom)); }
  .player-left, .player-right { gap:4px; }
  .player-center { justify-content:center; gap:4px; }
  .play-pause-btn { width:36px; height:36px; }
  .p-ctrl-btn { padding:5px; }
  .p-ctrl-btn .ui-icon { width:16px; height:16px; }
  .vol-range { width:54px; }
  .player-progress-wrap { gap:7px; }
  .hero-banner { height:200px; }
  .search-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
}
@media (max-width: 540px) {
  .center-topbar { padding-right:10px; padding-left:10px; gap:7px; }
  .center-topbar .nav-arrow { width:26px; height:26px; }
  .view { padding-right:10px; padding-left:10px; }
  .section-big-title { font-size:27px; }
  .hero-banner { height:190px; margin-bottom:18px; }
  .hero-carousel-controls { top:9px; right:9px; gap:5px; padding:4px 6px; }
  .hero-slide-arrow { width:24px; height:24px; }
  .hero-slide-dot { width:6px; height:6px; }
  .hero-slide-dot.active { width:15px; }
  .hero-content { left:0; padding:15px; }
  .hero-title { font-size:20px; }
  .hero-actions .btn-play-hero, .hero-actions .btn-follow { padding:8px 14px; font-size:12px; }
  .playlist-header { align-items:flex-start; gap:8px; }
  .playlist-header h2 { font-size:16px; }
  .playlist-table thead th { padding-right:5px; padding-left:5px; font-size:8px; }
  .playlist-table tbody td { padding:8px 5px; font-size:11px; }
  .playlist-table thead th:nth-child(3), .playlist-table tbody td:nth-child(3),
  .playlist-table thead th:nth-child(4), .playlist-table tbody td:nth-child(4),
  .playlist-table thead th:nth-child(5), .playlist-table tbody td:nth-child(5) { display:none; }
  .player-bar { grid-template-columns:1fr; gap:4px; padding:5px 10px max(6px, env(safe-area-inset-bottom)); }
  .player-left, .player-right { display:none; }
  .player-center { grid-row:1; }
  .player-progress-wrap { grid-row:2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner.slide-change .hero-bg { animation:none; }
  .hero-slide-dot { transition:none; }
}
