:root {
  --c1: #ff2e97;
  --c2: #7a2ff7;
  --bg: #0a0a0f;
  --panel: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: #f4f4f8;
  font-family: 'Vazirmatn', sans-serif;
  min-height: 100%;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
  overflow-x: hidden;
}

/* animated background aura */
.bg-aura {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(closest-side at 20% 25%, var(--c1), transparent 60%),
    radial-gradient(closest-side at 80% 70%, var(--c2), transparent 60%),
    radial-gradient(closest-side at 55% 15%, #00e0ff44, transparent 55%);
  opacity: 0.28;
  filter: blur(40px);
  animation: drift 22s ease-in-out infinite alternate;
  transition: background 1.2s ease;
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(4%, -3%) scale(1.15); }
}

/* header */
.vv-header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(10,10,15,0.5);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.logo-orb {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 0 30px -6px var(--c1);
  transition: background 1s ease, box-shadow 1s ease;
}
.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: clamp(22px, 5vw, 30px);
  margin: 0; letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; text-align: right;
}
.brand-sub { margin: 0; font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 300; }
.stats { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.stat-num { font-weight: 800; color: #fff; }
.stat-lbl { color: rgba(255,255,255,0.45); }
.stat-dot { color: rgba(255,255,255,0.25); }

/* main */
.vv-main {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 32px) 40px;
}

/* drop zone */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}
.drop-zone:hover { border-color: var(--c1); background: rgba(255,255,255,0.04); }
.drop-active {
  border-color: var(--c1);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 40px -10px var(--c1);
  transform: scale(1.01);
  animation: pulseBorder 1s ease infinite;
}
@keyframes pulseBorder { 50% { border-color: var(--c2); } }
.drop-glyph { font-size: 40px; margin-bottom: 8px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.drop-title { font-weight: 800; font-size: 18px; }
.drop-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; font-family: 'JetBrains Mono', monospace; direction: ltr; }
.hidden { display: none; }

/* upload progress */
.upload-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; font-size: 13px;
}
.upload-bar { width: 90px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.upload-fill { height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width 0.3s ease; }

/* track list */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.3s ease;
  animation: slideIn 0.35s ease backwards;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } }
.track-row:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.18); }
.track-current {
  border-color: var(--c1);
  box-shadow: 0 0 30px -12px var(--c1);
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.track-index { width: 24px; text-align: center; flex-shrink: 0; }
.art {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; border: none; cursor: pointer;
  color: #fff; font-size: 15px; position: relative;
  transition: transform 0.15s ease;
}
.art:hover { transform: scale(1.06); }
.art-glyph { text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.track-title { font-weight: 500; font-size: 15px; }
.track-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; font-family: 'JetBrains Mono', monospace; direction: ltr; text-align: right; }
.rename-input {
  background: rgba(0,0,0,0.4); border: 1px solid var(--c1);
  border-radius: 8px; padding: 4px 8px; color: #fff; font-size: 15px;
  width: 100%; font-family: 'Vazirmatn', sans-serif; outline: none;
}
.track-actions { display: flex; gap: 6px; flex-shrink: 0; opacity: 0.4; transition: opacity 0.2s; }
.track-row:hover .track-actions { opacity: 1; }
.icon-btn {
  background: rgba(255,255,255,0.06); border: none; border-radius: 9px;
  width: 32px; height: 32px; color: #fff; cursor: pointer; font-size: 14px;
  display: grid; place-items: center; transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); }
.icon-btn.danger:hover { background: #ff2e5e; }
.danger-confirm { width: auto; padding: 0 12px; background: #ff2e5e; font-size: 12px; font-weight: 700; }

/* equalizer */
.eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; justify-content: center; }
.eq span { width: 3px; height: 4px; border-radius: 2px; opacity: 0.8; }
.eq-on span { animation: bounce 0.9s ease-in-out infinite; }
.eq-on span:nth-child(1) { animation-delay: 0s; }
.eq-on span:nth-child(2) { animation-delay: 0.2s; }
.eq-on span:nth-child(3) { animation-delay: 0.4s; }
.eq-on span:nth-child(4) { animation-delay: 0.15s; }
@keyframes bounce { 0%,100% { height: 4px; } 50% { height: 16px; } }

/* empty state */
.empty { text-align: center; padding: 60px 20px; }
.empty-note { font-size: 54px; animation: bob 2s ease-in-out infinite; }
.empty-title { font-weight: 800; font-size: 20px; margin-top: 10px; }
.empty-sub { color: rgba(255,255,255,0.45); margin-top: 6px; }

/* footer */
.vv-footer { text-align: center; margin-top: 34px; font-size: 12px; color: rgba(255,255,255,0.4); }
.remix-link { color: var(--c1); text-decoration: none; font-weight: 700; }
.remix-link:hover { text-decoration: underline; }

/* player bar */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 2fr auto;
  align-items: center; gap: 16px;
  padding: 12px clamp(12px, 3vw, 32px);
  background: rgba(12,12,20,0.72);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.player-live { box-shadow: 0 -12px 40px -20px var(--c1); }
.player-bar > .eq { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }
.np { display: flex; align-items: center; gap: 10px; min-width: 0; }
.np-art {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  transition: background 1s ease;
}
.np-title { font-weight: 500; font-size: 14px; }
.np-sub { font-size: 11px; color: rgba(255,255,255,0.45); }
.controls { display: flex; align-items: center; gap: 10px; }
.ctrl-btn {
  background: none; border: none; color: rgba(255,255,255,0.75);
  font-size: 18px; cursor: pointer; transition: color 0.15s, transform 0.15s;
}
.ctrl-btn:hover { color: #fff; transform: scale(1.15); }
.play-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  color: #fff; font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 22px -4px var(--c1);
  transition: transform 0.15s, background 1s ease;
}
.play-btn:hover { transform: scale(1.08); }
.prog-wrap { display: flex; align-items: center; gap: 10px; }
.time { font-size: 11px; color: rgba(255,255,255,0.5); font-family: 'JetBrains Mono', monospace; min-width: 34px; text-align: center; }
.prog-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.12);
  border-radius: 99px; cursor: pointer; position: relative; overflow: hidden;
}
.prog-fill { height: 100%; border-radius: 99px; transition: width 0.1s linear; }
.right-ctrls { display: flex; align-items: center; gap: 8px; }
.toggle-btn {
  background: rgba(255,255,255,0.06); border: none; border-radius: 9px;
  width: 34px; height: 34px; color: rgba(255,255,255,0.7); cursor: pointer;
  font-size: 14px; transition: all 0.15s;
}
.toggle-btn:hover { background: rgba(255,255,255,0.14); }
.toggle-btn.active { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 0 16px -4px var(--c1); }
.vol { display: flex; align-items: center; gap: 6px; }
.vol-slider {
  width: 74px; accent-color: var(--c1); cursor: pointer; direction: ltr;
}

/* toast */
.toast {
  position: fixed; bottom: 130px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  background: rgba(20,20,30,0.95); border: 1px solid var(--c1);
  color: #fff; padding: 10px 20px; border-radius: 99px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 30px -8px var(--c1);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* responsive */
@media (max-width: 720px) {
  .player-bar {
    grid-template-columns: 1fr;
    gap: 8px; padding: 10px 14px;
  }
  .player-bar > .eq { display: none; }
  .np { order: 1; }
  .prog-wrap { order: 2; }
  .controls { order: 3; justify-content: center; }
  .right-ctrls { order: 4; justify-content: center; }
  .app-shell { padding-bottom: 220px; }
  .stats { font-size: 11px; }
  .vol-slider { width: 60px; }
}