/* =========================================================
   AURORA PLAYER — Estilos
   ========================================================= */

:root{
  --bg-0:#0a0b12;
  --bg-1:#0f1120;
  --bg-2:#151833;
  --surface:#1a1d3a;
  --surface-2:#20244a;
  --surface-glass: rgba(30, 34, 66, 0.55);
  --border-soft: rgba(255,255,255,0.08);
  --text-0:#f5f6fb;
  --text-1:#c3c6e0;
  --text-2:#8b8fb8;
  --accent-1:#8b5cf6;
  --accent-2:#ec4899;
  --accent-3:#22d3ee;
  --grad-brand: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-brand-2: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px rgba(139,92,246,0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-w: 280px;
  --player-h: 96px;
  --footer-h: 46px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

body.light-theme{
  --bg-0:#eef0fb;
  --bg-1:#e4e7fb;
  --bg-2:#dfe2f7;
  --surface:#ffffff;
  --surface-2:#f3f4fc;
  --surface-glass: rgba(255,255,255,0.7);
  --border-soft: rgba(20,20,50,0.08);
  --text-0:#181a2e;
  --text-1:#3f4266;
  --text-2:#71749c;
  --shadow-lg: 0 20px 50px rgba(80,80,150,0.15);
}

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

body{
  font-family:'Manrope', sans-serif;
  background: var(--bg-0);
  color: var(--text-0);
  min-height:100vh;
  overflow-x:hidden;
  transition: background var(--transition), color var(--transition);
}

h1,h2,h3,h4, .brand-name, .player-title{
  font-family:'Outfit', sans-serif;
}

::selection{ background: var(--accent-1); color:#fff; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent-1); }

/* ============ FUNDO DECORATIVO ============ */
.bg-decor{ position:fixed; inset:0; z-index:-1; overflow:hidden; }
.blob{
  position:absolute; border-radius:50%; filter: blur(90px); opacity:0.45;
  animation: floatBlob 18s ease-in-out infinite;
}
.blob-1{ width:520px; height:520px; background: var(--accent-1); top:-160px; left:-120px; }
.blob-2{ width:460px; height:460px; background: var(--accent-2); bottom:-140px; right:-100px; animation-delay:-6s; }
.blob-3{ width:380px; height:380px; background: var(--accent-3); top:40%; left:60%; animation-delay:-12s; }
@keyframes floatBlob{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(40px,-30px) scale(1.08); }
  66%{ transform: translate(-30px,30px) scale(0.95); }
}
.noise-overlay{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ============ LAYOUT SHELL ============ */
.app-shell{
  display:flex;
  min-height:100vh;
  padding-bottom: calc(var(--player-h) + var(--footer-h) + 12px);
}

/* ============ SIDEBAR ============ */
.sidebar{
  width: var(--sidebar-w);
  flex-shrink:0;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  border-right:1px solid var(--border-soft);
  padding:26px 20px;
  display:flex;
  flex-direction:column;
  gap:26px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  z-index:20;
  transition: transform var(--transition);
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:44px; height:44px; border-radius:14px;
  background: var(--grad-brand);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:#fff;
  box-shadow: var(--shadow-glow);
  flex-shrink:0;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-name{ font-size:18px; font-weight:600; color: var(--text-0); }
.brand-name strong{
  background: var(--grad-brand);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:800;
}
.brand-tag{ font-size:11px; color: var(--text-2); margin-top:2px; }

.nav-menu{ display:flex; flex-direction:column; gap:4px; }
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius: var(--radius-sm);
  background:transparent; border:none; cursor:pointer;
  color: var(--text-1); font-size:14.5px; font-weight:600;
  text-align:left; font-family:inherit;
  transition: all var(--transition);
}
.nav-item i{ width:18px; text-align:center; color: var(--text-2); transition: color var(--transition); }
.nav-item:hover{ background: var(--surface-2); color: var(--text-0); }
.nav-item.active{ background: var(--grad-brand); color:#fff; box-shadow: var(--shadow-glow); }
.nav-item.active i{ color:#fff; }

.sidebar-section{ display:flex; flex-direction:column; gap:10px; flex:1; min-height:0; }
.sidebar-section-head{
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--text-2);
}
.playlist-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:2px;
  overflow-y:auto;
}
.playlist-list li{
  padding:9px 12px; border-radius:10px; cursor:pointer;
  color: var(--text-1); font-size:13.5px; font-weight:500;
  display:flex; align-items:center; gap:10px;
  transition: all var(--transition);
}
.playlist-list li:hover{ background: var(--surface-2); color: var(--text-0); }
.playlist-list li .pl-dot{
  width:8px; height:8px; border-radius:50%; background: var(--grad-brand); flex-shrink:0;
}
.playlist-list li .pl-count{ margin-left:auto; font-size:11px; color: var(--text-2); }
.playlist-list .empty-hint{ font-size:12.5px; color: var(--text-2); padding:8px 12px; font-style:italic; }

.sidebar-footer{ padding-top:10px; border-top:1px solid var(--border-soft); }

.ghost-btn{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:11px; border-radius: var(--radius-sm);
  background: var(--surface-2); border:1px dashed var(--border-soft);
  color: var(--text-1); font-weight:600; font-size:13px; cursor:pointer;
  font-family:inherit;
  transition: all var(--transition);
}
.ghost-btn:hover{ border-color: var(--accent-1); color: var(--accent-1); }

/* ============ MAIN AREA ============ */
.main-area{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  display:flex; align-items:center; gap:16px;
  padding:20px 32px;
  position:sticky; top:0; z-index:15;
  background: var(--bg-0);
  backdrop-filter: blur(10px);
}
.only-mobile{ display:none; }

.search-box{
  flex:1; max-width:460px; display:flex; align-items:center; gap:10px;
  background: var(--surface-glass); border:1px solid var(--border-soft);
  padding:11px 16px; border-radius:999px;
  color: var(--text-2);
  transition: all var(--transition);
}
.search-box:focus-within{ border-color: var(--accent-1); box-shadow:0 0 0 3px rgba(139,92,246,0.15); }
.search-box input{
  border:none; outline:none; background:transparent; color: var(--text-0);
  font-size:14px; width:100%; font-family:inherit;
}
.search-box input::placeholder{ color: var(--text-2); }

.topbar-actions{ display:flex; align-items:center; gap:12px; margin-left:auto; }

.icon-btn{
  width:40px; height:40px; border-radius:50%;
  background: var(--surface-glass); border:1px solid var(--border-soft);
  color: var(--text-1); cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:15px; transition: all var(--transition);
  flex-shrink:0;
}
.icon-btn:hover{ background: var(--surface-2); color: var(--text-0); transform: translateY(-2px); }
.icon-btn.small{ width:28px; height:28px; font-size:12px; }
.icon-btn.active{ color: var(--accent-1); }

.user-chip{
  display:flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px;
  background: var(--surface-glass); border:1px solid var(--border-soft);
  font-size:13.5px; font-weight:600; color: var(--text-1);
}
.user-chip i{ font-size:20px; color: var(--accent-1); }

/* Content */
.content{ padding:8px 32px 40px; flex:1; }

.view{ display:none; animation: fadeUp .4s ease; }
.view.active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px); } to{ opacity:1; transform:none; } }

/* Hero */
.hero{
  display:flex; align-items:center; justify-content:space-between; gap:40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(236,72,153,0.10));
  border:1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding:44px 44px;
  margin-bottom:36px;
  position:relative; overflow:hidden;
}
.hero-eyebrow{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent-2); margin-bottom:12px;
}
.hero-text h1{ font-size:38px; line-height:1.15; margin:0 0 16px; font-weight:700; color: var(--text-0); max-width:520px; }
.grad-text{ background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-text p{ color: var(--text-1); font-size:15px; max-width:460px; line-height:1.6; margin:0 0 26px; }
.hero-actions{ display:flex; gap:14px; }

.btn-primary{
  display:flex; align-items:center; gap:10px;
  background: var(--grad-brand); color:#fff; border:none;
  padding:13px 24px; border-radius:999px; font-weight:700; font-size:14px;
  cursor:pointer; box-shadow: var(--shadow-glow); font-family:inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow:0 10px 30px rgba(139,92,246,0.5); }
.btn-primary.sm{ padding:9px 18px; font-size:13px; }

.btn-ghost-lg{
  display:flex; align-items:center; gap:10px;
  background: var(--surface-glass); color: var(--text-0); border:1px solid var(--border-soft);
  padding:13px 22px; border-radius:999px; font-weight:600; font-size:14px;
  cursor:pointer; font-family:inherit; transition: all var(--transition);
}
.btn-ghost-lg:hover{ border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-2px); }

.btn-ghost{
  background: var(--surface-2); color: var(--text-1); border:1px solid var(--border-soft);
  padding:10px 18px; border-radius:999px; font-weight:600; font-size:13px; cursor:pointer;
  font-family:inherit; transition: all var(--transition);
}
.btn-ghost:hover{ color: var(--text-0); border-color: var(--accent-1); }
.btn-ghost.sm{ padding:8px 14px; font-size:12.5px; display:inline-flex; align-items:center; gap:6px; }
.btn-ghost.danger:hover{ color:#f87171; border-color:#f87171; }

.hero-art{ position:relative; flex-shrink:0; }
.hero-disc{
  width:220px; height:220px; border-radius:50%; position:relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 10px rgba(255,255,255,0.03);
  animation: spinDisc 14s linear infinite paused;
}
.hero-disc.spinning{ animation-play-state: running; }
.hero-disc img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.hero-disc-hole{
  position:absolute; top:50%; left:50%; width:26px; height:26px; border-radius:50%;
  background: var(--bg-0); transform: translate(-50%,-50%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.15);
}
@keyframes spinDisc{ to{ transform: rotate(360deg); } }
.hero-eq{
  position:absolute; bottom:-14px; left:50%; transform: translateX(-50%);
  display:flex; gap:4px; align-items:flex-end; height:22px;
}
.hero-eq span{
  width:4px; background: var(--grad-brand-2); border-radius:2px; height:6px;
  animation: eqBounce 1.1s ease-in-out infinite;
}
.hero-eq span:nth-child(2){ animation-delay:.1s; }
.hero-eq span:nth-child(3){ animation-delay:.2s; }
.hero-eq span:nth-child(4){ animation-delay:.3s; }
.hero-eq span:nth-child(5){ animation-delay:.4s; }
@keyframes eqBounce{ 0%,100%{ height:6px; } 50%{ height:22px; } }

/* Section headers */
.section-head{
  display:flex; align-items:center; gap:14px; margin: 30px 0 18px;
  flex-wrap:wrap;
}
.section-head h2{
  font-size:19px; font-weight:700; margin:0; display:flex; align-items:center; gap:10px;
  color: var(--text-0);
}
.section-head h2 i{ color: var(--accent-1); }
.head-tools{ display:flex; gap:10px; margin-left:auto; align-items:center; }

.select-tool{
  background: var(--surface-glass); border:1px solid var(--border-soft); color: var(--text-1);
  padding:9px 14px; border-radius:10px; font-size:13px; font-family:inherit; cursor:pointer;
}

/* Track Grid (cards) */
.track-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap:18px;
}
.track-card{
  background: var(--surface-glass); border:1px solid var(--border-soft);
  border-radius: var(--radius-md); padding:14px; cursor:pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position:relative;
}
.track-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-1); }
.track-card .cover-wrap{ position:relative; border-radius:12px; overflow:hidden; margin-bottom:12px; aspect-ratio:1/1; }
.track-card img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.track-card:hover img{ transform: scale(1.06); }
.track-card .play-overlay{
  position:absolute; inset:0; background: rgba(10,10,20,0.4);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity var(--transition);
}
.track-card:hover .play-overlay{ opacity:1; }
.play-overlay .mini-play{
  width:46px; height:46px; border-radius:50%; background: var(--grad-brand);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px;
  box-shadow: var(--shadow-glow);
}
.track-card .t-title{ font-size:14px; font-weight:700; color: var(--text-0); margin:0 0 3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-card .t-artist{ font-size:12.5px; color: var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-card.playing{ border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(236,72,153,0.35); }

/* Artist row */
.artist-row{ display:flex; gap:22px; overflow-x:auto; padding-bottom:8px; }
.artist-chip{ text-align:center; flex-shrink:0; cursor:pointer; width:100px; }
.artist-chip img{
  width:88px; height:88px; border-radius:50%; object-fit:cover;
  border:2px solid var(--border-soft); transition: border-color var(--transition), transform var(--transition);
}
.artist-chip:hover img{ border-color: var(--accent-1); transform: scale(1.05); }
.artist-chip span{ display:block; margin-top:8px; font-size:12.5px; font-weight:600; color: var(--text-1); }

/* Track table (list) */
.track-table{ display:flex; flex-direction:column; gap:4px; }
.track-row{
  display:grid; grid-template-columns: 44px 1fr 140px 90px 130px; align-items:center;
  gap:14px; padding:11px 16px; border-radius:12px; cursor:default;
  transition: background var(--transition);
}
.track-row.head-row{
  font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color: var(--text-2); font-weight:700;
  padding:8px 16px; cursor:default;
}
.track-row:not(.head-row):hover{ background: var(--surface-glass); }
.track-row.playing{ background: rgba(139,92,246,0.12); }
.tr-idx{ color: var(--text-2); font-size:13px; text-align:center; position:relative; }
.tr-idx .row-play-btn{
  display:none; background:none; border:none; color: var(--accent-1); cursor:pointer; font-size:15px;
}
.track-row:not(.head-row):hover .tr-idx .idx-num{ display:none; }
.track-row:not(.head-row):hover .tr-idx .row-play-btn{ display:inline-block; }
.track-row.playing .tr-idx .idx-num{ display:none; }
.track-row.playing .tr-idx .row-play-btn{ display:inline-block; color: var(--accent-2); }

.tr-main{ display:flex; align-items:center; gap:12px; min-width:0; }
.tr-main img{ width:42px; height:42px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.tr-titles{ min-width:0; }
.tr-titles .tt{ font-size:14px; font-weight:700; color: var(--text-0); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tr-titles .ta{ font-size:12.5px; color: var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tr-album{ font-size:13px; color: var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tr-duration{ font-size:13px; color: var(--text-2); text-align:right; }
.tr-actions{ display:flex; gap:6px; justify-content:flex-end; }
.tr-actions .icon-btn{ width:32px; height:32px; font-size:12.5px; background:transparent; border-color:transparent; }
.tr-actions .icon-btn:hover{ background: var(--surface-2); border-color: var(--border-soft); }
.tr-actions .icon-btn.liked{ color: var(--accent-2); }

.empty-state{
  text-align:center; padding:60px 20px; color: var(--text-2);
}
.empty-state i{ font-size:38px; margin-bottom:14px; display:block; color: var(--accent-1); opacity:.6; }

/* Playlist grid */
.playlist-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap:18px; }
.playlist-card{
  background: var(--surface-glass); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  padding:18px; cursor:pointer; transition: all var(--transition); position:relative;
}
.playlist-card:hover{ transform: translateY(-5px); border-color: var(--accent-1); box-shadow: var(--shadow-lg); }
.playlist-cover-stack{
  height:110px; border-radius:10px; margin-bottom:14px; position:relative; overflow:hidden;
  background: var(--grad-brand); display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr;
}
.playlist-cover-stack img{ width:100%; height:100%; object-fit:cover; }
.playlist-cover-stack .empty-icon{ display:flex; align-items:center; justify-content:center; grid-column:1/3; grid-row:1/3; color:#fff; font-size:30px; opacity:.85; }
.playlist-card h4{ margin:0 0 4px; font-size:15px; color: var(--text-0); }
.playlist-card span{ font-size:12.5px; color: var(--text-2); }

.playlist-detail{ margin-top:10px; }

/* ============ PLAYER BAR ============ */
.player-bar{
  position:fixed; left:0; right:0; bottom: var(--footer-h);
  height: var(--player-h);
  background: var(--surface-glass);
  backdrop-filter: blur(22px);
  border-top:1px solid var(--border-soft);
  display:flex; align-items:center; gap:24px;
  padding: 0 26px;
  z-index:50;
}

.player-track-info{ display:flex; align-items:center; gap:14px; width:280px; flex-shrink:0; }
.player-cover-wrap{ position:relative; width:56px; height:56px; flex-shrink:0; }
.player-cover{ width:56px; height:56px; border-radius:12px; object-fit:cover; position:relative; z-index:2; }
.spin-ring{
  position:absolute; inset:-4px; border-radius:14px; z-index:1;
  border:2px solid transparent; border-top-color: var(--accent-1); border-right-color: var(--accent-2);
  opacity:0; transition: opacity .3s;
}
.spin-ring.active{ opacity:1; animation: spinRing 2s linear infinite; }
@keyframes spinRing{ to{ transform: rotate(360deg); } }

.player-meta{ min-width:0; display:flex; flex-direction:column; }
.player-title{ font-size:14px; font-weight:700; color: var(--text-0); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-artist{ font-size:12.5px; color: var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.like-btn.liked{ color: var(--accent-2); }
.like-btn.liked i{ font-weight:900; }

.player-center{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; max-width:640px; margin:0 auto; }
.player-controls{ display:flex; align-items:center; gap:14px; }
.player-controls .icon-btn{ width:36px; height:36px; font-size:14px; }
.play-btn{
  width:46px !important; height:46px !important; background: var(--grad-brand) !important; color:#fff !important;
  border:none !important; box-shadow: var(--shadow-glow); font-size:16px !important;
}
.play-btn:hover{ transform: translateY(-2px) scale(1.05); }
.icon-btn.toggled{ color: var(--accent-1); }
.icon-btn.toggled::after{ content:''; position:absolute; width:5px; height:5px; background: var(--accent-1); border-radius:50%; bottom:2px; }

.progress-row{ display:flex; align-items:center; gap:10px; width:100%; }
.time-label{ font-size:11.5px; color: var(--text-2); width:38px; text-align:center; flex-shrink:0; }
.progress-bar{
  flex:1; height:5px; background: var(--surface-2); border-radius:999px; position:relative; cursor:pointer;
}
.progress-fill{ position:absolute; top:0; left:0; height:100%; width:0%; background: var(--grad-brand); border-radius:999px; }
.progress-handle{
  position:absolute; top:50%; left:0%; width:12px; height:12px; border-radius:50%; background:#fff;
  box-shadow:0 0 0 3px rgba(139,92,246,0.4); transform: translate(-50%,-50%); transition: left .05s linear;
}

.player-extra{ display:flex; align-items:center; gap:10px; width:280px; justify-content:flex-end; flex-shrink:0; }
.visualizer{ display:flex; align-items:center; gap:3px; height:22px; margin-right:6px; }
.visualizer span{ width:3px; height:4px; background: var(--grad-brand-2); border-radius:2px; transition: height .15s ease; }
.visualizer.active span{ animation: vizBounce 0.9s ease-in-out infinite; }
.visualizer span:nth-child(odd){ animation-delay:.15s; }
.visualizer span:nth-child(3n){ animation-delay:.3s; }
@keyframes vizBounce{ 0%,100%{ height:4px; } 50%{ height:20px; } }

.volume-box{ display:flex; align-items:center; gap:8px; }
.volume-box input[type="range"]{ width:80px; accent-color: var(--accent-1); cursor:pointer; }

/* ============ FOOTER ============ */
.site-footer{
  position:fixed; left:0; right:0; bottom:0; height: var(--footer-h);
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-1); border-top:1px solid var(--border-soft);
  z-index:60;
}
.site-footer p{ margin:0; font-size:12.5px; color: var(--text-2); }
.site-footer strong{ color: var(--text-0); font-weight:700; background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ============ MODAL ============ */
.modal-overlay{
  position:fixed; inset:0; background: rgba(5,6,15,0.65); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; z-index:200;
  opacity:0; pointer-events:none; transition: opacity var(--transition);
}
.modal-overlay.show{ opacity:1; pointer-events:auto; }
.modal-box{
  width:min(420px, 90vw); background: var(--surface); border:1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding:24px; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97); transition: transform var(--transition);
}
.modal-overlay.show .modal-box{ transform: none; }
.modal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.modal-head h3{ margin:0; font-size:17px; color: var(--text-0); }
.modal-body label{ display:block; font-size:13px; color: var(--text-2); margin-bottom:8px; font-weight:600; }
.modal-body input[type="text"]{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--border-soft);
  background: var(--surface-2); color: var(--text-0); font-size:14px; font-family:inherit; outline:none;
}
.modal-body input[type="text"]:focus{ border-color: var(--accent-1); }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

.modal-playlist-list{ list-style:none; margin:0 0 14px; padding:0; max-height:260px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.modal-playlist-list li{
  display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px;
  background: var(--surface-2); cursor:pointer; font-size:13.5px; font-weight:600; color: var(--text-1);
  transition: all var(--transition);
}
.modal-playlist-list li:hover{ background: var(--accent-1); color:#fff; }
.modal-playlist-list li i{ color: var(--accent-2); }
.modal-playlist-list li:hover i{ color:#fff; }

/* Toast */
.toast{
  position:fixed; bottom: calc(var(--player-h) + var(--footer-h) + 20px); left:50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface); color: var(--text-0); border:1px solid var(--border-soft);
  padding:12px 22px; border-radius:999px; font-size:13.5px; font-weight:600;
  box-shadow: var(--shadow-lg); opacity:0; pointer-events:none; z-index:300;
  transition: all .3s ease; display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
.toast i{ color: var(--accent-1); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .sidebar{ position:fixed; left:0; top:0; height:100vh; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open{ transform: translateX(0); }
  .only-mobile{ display:flex; }
  .hero{ flex-direction:column; text-align:center; padding:32px 24px; }
  .hero-text p, .hero-text h1{ max-width:none; }
  .hero-actions{ justify-content:center; }
  .player-track-info{ width:auto; flex:1; }
  .player-extra{ width:auto; }
  .visualizer, .volume-box{ display:none; }
}

@media (max-width: 720px){
  .track-row{ grid-template-columns: 36px 1fr 90px; }
  .tr-album, .tr-duration{ display:none; }
  .content{ padding: 8px 16px 40px; }
  .topbar{ padding:16px; }
  .player-bar{ padding:0 14px; gap:12px; }
  .player-meta .player-artist{ display:none; }
  .hero-disc{ width:160px; height:160px; }
}
