:root {
  --bg: #09090f;
  --surface: #11111b;
  --surface-2: #191927;
  --surface-3: #222235;
  --purple: #9667ff;
  --purple-light: #b49aff;
  --purple-dark: #7c3aed;
  --text: #f5f3ff;
  --muted: #9290a6;
  --border: rgba(255,255,255,.07);
  --danger: #f87171;
  --success: #4ade80;
  --player-h: 84px;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
  padding-bottom: var(--player-h);
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-left: 1px solid var(--border);
  position: fixed;
  top: 0; right: 0; bottom: var(--player-h);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
}
.main {
  flex: 1;
  margin-right: var(--sidebar-w);
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9,9,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.content { padding: 28px 32px 40px; }

/* Sidebar */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: grid; place-items: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(150,103,255,.35);
}
.nav-section { margin-bottom: 20px; }
.nav-label {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 12px 8px;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition: .15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: rgba(150,103,255,.15); color: var(--purple-light); }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Search */
.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search-box input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 42px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: .2s;
}
.search-box input:focus { border-color: var(--purple); background: var(--surface-3); }
.search-box svg {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.topbar-actions { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(150,103,255,.3);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { margin-bottom: 40px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
}
.section-head a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.section-head a:hover { color: var(--purple-light); }

/* Song cards */
.song-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.song-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  transition: .2s;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.song-card:hover {
  background: var(--surface-2);
  border-color: var(--border);
  transform: translateY(-2px);
}
.song-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  margin-bottom: 10px;
}
.song-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  bottom: 8px; left: 8px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: .2s;
  box-shadow: 0 4px 14px rgba(150,103,255,.4);
}
.song-card:hover .play-btn { opacity: 1; transform: translateY(0); }
.song-title {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.song-artist {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List style (for search / playlist) */
.song-list { display: flex; flex-direction: column; gap: 4px; }
.song-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
}
.song-list-item:hover { background: var(--surface-2); }
.song-list-item .thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}
.song-list-item .meta { flex: 1; min-width: 0; }
.song-list-item .meta .t {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-list-item .meta .a {
  color: var(--muted);
  font-size: 0.85rem;
}
.like-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: .15s;
}
.like-btn:hover, .like-btn.liked { color: #f472b6; }
.like-btn.liked svg { fill: #f472b6; }

/* Player bar */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 50;
}
.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 240px;
  min-width: 180px;
}
.player-track img {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-3);
}
.player-track .info { min-width: 0; }
.player-track .info .t {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-track .info .a {
  color: var(--muted);
  font-size: 0.8rem;
}
.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
}
.controls-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: .15s;
}
.ctrl-btn:hover { color: var(--text); }
.ctrl-btn.play {
  width: 42px; height: 42px;
  background: var(--text);
  color: var(--bg);
}
.ctrl-btn.play:hover { transform: scale(1.06); }
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
}
.progress {
  flex: 1;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 2px;
  width: 0%;
  position: relative;
}
.progress-fill::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: .15s;
}
.progress:hover .progress-fill::after { opacity: 1; }
.player-extra {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
}
.volume input[type=range] {
  flex: 1;
  accent-color: var(--purple);
  height: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(150,103,255,.2), rgba(109,40,217,.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); margin-bottom: 20px; max-width: 400px; }
.hero-art {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #4c1d95);
  opacity: .5;
  filter: blur(2px);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}
.form-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: .2s;
}
.form-group input:focus { border-color: var(--purple); }
.auth-error {
  background: rgba(248,113,113,.12);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.auth-card .btn-primary { width: 100%; justify-content: center; padding: 13px; margin-top: 8px; }
.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-switch a { color: var(--purple-light); font-weight: 500; }

/* Empty / loading */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .5; }
.loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: var(--player-h);
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  z-index: 45;
  justify-content: space-around;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 6px 12px;
}
.mobile-nav a.active { color: var(--purple-light); }
.mobile-nav svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-right: 0; }
  .mobile-nav { display: flex; }
  .content { padding: 20px 16px 100px; }
  .topbar { padding: 10px 16px; }
  .hero { padding: 24px 20px; flex-direction: column; text-align: center; }
  .hero h1 { font-size: 1.5rem; }
  .hero-art { display: none; }
  .player-track { width: 140px; min-width: 100px; }
  .player-extra { display: none; }
  .song-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}


/* =========================================================
   EKKO — immersive music interface (YouTube Music inspired)
   UI-only layer: existing routes, data and player behavior stay intact.
   ========================================================= */
:root {
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #202023;
  --surface-3: #2b2b30;
  --purple: #ff3855;
  --purple-light: #ff7184;
  --purple-dark: #d91f3d;
  --text: #f7f7f8;
  --muted: #a1a1aa;
  --border: rgba(255,255,255,.075);
  --player-h: 88px;
  --sidebar-w: 252px;
}
body {
  background:
    radial-gradient(ellipse at 78% -18%, rgba(255,56,85,.10), transparent 38%),
    var(--bg);
  letter-spacing: -.01em;
}
::selection { background: rgba(255,56,85,.35); color: white; }
.sidebar {
  background: rgba(15,15,17,.96);
  border-left: 1px solid rgba(255,255,255,.055);
  padding: 24px 14px;
  backdrop-filter: blur(24px);
}
.brand { padding: 8px 14px 30px; font-size: 1.22rem; letter-spacing: -.04em; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg,#ff6479,#e51f43 75%);
  box-shadow: 0 8px 24px rgba(255,56,85,.28);
}
.nav-section { margin-bottom: 26px; }
.nav-label { padding: 0 14px 10px; color: #777780; font-size: .69rem; font-weight: 700; }
.nav-item {
  min-height: 44px; padding: 11px 14px; border-radius: 12px;
  font-size: .91rem; transition: background .2s, color .2s, transform .2s;
}
.nav-item:hover { background: rgba(255,255,255,.055); transform: translateX(-2px); }
.nav-item.active {
  background: linear-gradient(90deg,rgba(255,56,85,.17),rgba(255,56,85,.055));
  color: #ff8292; box-shadow: inset -2px 0 #ff3855;
}
.main { background: transparent; }
.topbar {
  padding: 16px 34px;
  background: rgba(11,11,13,.78);
  border-bottom-color: rgba(255,255,255,.045);
  backdrop-filter: blur(24px);
}
.search-box { max-width: 560px; }
.search-box input {
  min-height: 46px; border-radius: 12px; padding-right: 46px;
  background: #1b1b1f; border-color: rgba(255,255,255,.045);
}
.search-box input:focus { border-color: rgba(255,56,85,.65); background: #222226; }
.search-box svg { right: 17px; }
.btn { min-height: 40px; }
.btn-primary {
  background: linear-gradient(135deg,#ff536d,#e52243);
  box-shadow: 0 7px 22px rgba(255,56,85,.22);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255,56,85,.32); }
.btn-ghost { background: #1b1b1f; border-color: rgba(255,255,255,.07); }
.avatar { background: linear-gradient(145deg,#3a3034,#201d20); border: 1px solid rgba(255,255,255,.1); }
.content { padding: 34px 38px 48px; max-width: 1700px; margin: 0 auto; }
.hero {
  min-height: 290px; padding: 44px 48px; border: 0; border-radius: 22px;
  background:
    linear-gradient(100deg,rgba(10,10,12,.98) 2%,rgba(10,10,12,.82) 48%,rgba(10,10,12,.20) 100%),
    radial-gradient(circle at 78% 48%,rgba(255,56,85,.55),transparent 32%),
    linear-gradient(135deg,#48202a,#1a1217 55%,#17171b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 65px rgba(0,0,0,.22);
  position: relative; isolation: isolate; overflow: hidden;
}
.hero::after {
  content:""; position:absolute; z-index:-1; width:340px; height:340px;
  left:10%; top:-35%; border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.02),0 0 90px rgba(255,56,85,.16);
}
.hero h1 { font-size: clamp(2rem,3.5vw,3.15rem); line-height:1.2; letter-spacing:-.055em; }
.hero p { color:#c1b9bd; max-width:440px; font-size:1rem; margin-top:12px; }
.hero-art {
  width:220px;height:220px; flex:0 0 220px; opacity:.9; filter:none;
  background: radial-gradient(circle at 35% 30%,#ffb0b9,#ff3855 38%,#8d142d 72%,#2b1019);
  box-shadow: 0 25px 70px rgba(255,56,85,.28), inset -18px -20px 45px rgba(0,0,0,.3);
  position:relative;
}
.hero-art::before,.hero-art::after {
  content:"";position:absolute;inset:18%;border:1px solid rgba(255,255,255,.4);border-radius:50%;
  transform:rotate(-28deg) scaleX(.72);
}
.hero-art::after { inset:31%; transform:rotate(34deg) scaleX(.72); }
.section { margin-bottom: 46px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size:1.42rem; letter-spacing:-.035em; }
.section-head a { transition:color .2s; }
.song-row { grid-template-columns: repeat(auto-fill,minmax(172px,1fr)); gap:18px; }
.song-card {
  background: transparent; border-radius: 15px; padding: 10px;
  border:1px solid transparent; overflow:hidden;
}
.song-card:hover {
  background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.055);
  transform:translateY(-4px);
}
.song-cover { border-radius:12px; margin-bottom:13px; box-shadow:0 10px 28px rgba(0,0,0,.24); }
.song-cover img { transition:transform .45s cubic-bezier(.2,.7,.2,1); }
.song-card:hover .song-cover img { transform:scale(1.055); }
.play-btn {
  width:48px;height:48px;bottom:12px;left:12px;
  background:#ff3855; box-shadow:0 8px 24px rgba(255,56,85,.35);
}
.song-card:hover .play-btn { transform:translateY(0) scale(1.02); }
.song-title { font-size:.94rem; }
.song-artist { color:#9999a2; font-size:.84rem; }
.song-list { gap:5px; }
.song-list-item { padding:11px 14px; border-radius:12px; }
.song-list-item:hover { background:rgba(255,255,255,.055); }
.song-list-item .thumb { width:54px;height:54px;border-radius:9px; }
.like-btn:hover,.like-btn.liked { color:#ff6078; }
.player {
  height:var(--player-h); padding:0 26px;
  background:rgba(20,20,22,.97); border-top:1px solid rgba(255,255,255,.09);
  box-shadow:0 -14px 45px rgba(0,0,0,.22); backdrop-filter:blur(24px);
}
.player-track img { width:56px;height:56px;border-radius:9px; }
.player-controls { gap:5px; }
.controls-row { gap:20px; }
.ctrl-btn.play { background:#f7f7f8; color:#111; }
.progress { height:4px; background:#3a3a40; }
.progress-fill { background:#ff3855; }
.progress-fill::after { background:#fff; }
.player-extra { width:210px; }
.volume input[type=range] { accent-color:#ff3855; }
.auth-page { background:radial-gradient(circle at 50% 0,rgba(255,56,85,.12),transparent 40%),#0b0b0d; }
.auth-card { background:#151517; border-color:rgba(255,255,255,.08); box-shadow:0 25px 80px rgba(0,0,0,.38); }
.form-group input { background:#202023; }
.form-group input:focus { border-color:#ff536d; }
.auth-switch a { color:#ff8292; }
.empty { padding:76px 20px; }
.mobile-nav {
  background:rgba(17,17,19,.97); backdrop-filter:blur(20px);
  border-top-color:rgba(255,255,255,.07);
}
.mobile-nav a.active { color:#ff7184; }
@media (min-width:1500px) {
  .content { padding-left:52px;padding-right:52px; }
  .song-row { grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:22px; }
}
@media (max-width:900px) {
  .content { padding:20px 16px 112px; }
  .topbar { padding:10px 16px; }
  .hero { min-height:230px; padding:30px 24px; }
  .hero-art { display:block;width:110px;height:110px;flex-basis:110px; }
  .hero h1 { font-size:1.8rem; }
  .hero p { font-size:.9rem; }
  .song-row { grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px; }
  .player { padding:0 12px;gap:10px; }
  .player-track { width:34%;min-width:0; }
  .player-track img { width:46px;height:46px; }
  .player-controls { min-width:0; }
  .controls-row { gap:10px; }
  .player-extra { display:none; }
}
@media (max-width:520px) {
  :root { --player-h:76px; }
  .topbar-actions .btn-ghost { display:none; }
  .hero { text-align:right; flex-direction:row; gap:12px; padding:25px 19px; }
  .hero h1 { font-size:1.45rem; }
  .hero p { font-size:.82rem;margin-bottom:14px; }
  .hero .btn { font-size:.8rem;padding:8px 13px; }
  .hero-art { width:78px;height:78px;flex-basis:78px; }
  .song-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .song-card { padding:7px; }
  .player-track { width:42%; }
  .player-track .info .t { font-size:.78rem; }
  .player-track .info .a { font-size:.7rem; }
  .player-controls { flex:1; }
  .controls-row { gap:4px; }
  .ctrl-btn { width:30px;height:30px; }
  .ctrl-btn.play { width:38px;height:38px; }
  .progress-row { gap:6px;font-size:.65rem; }
  .mobile-nav { padding:5px 0; }
}


/* ── EKKO MOTION / VISUAL FINISH ───────────────────────────── */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, .85, .25, 1.25);
  --motion-fast: 180ms;
  --motion-base: 420ms;
  --motion-slow: 760ms;
}
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 55% 42% at 92% -8%, rgba(255,56,85,.13), transparent 72%),
    radial-gradient(ellipse 45% 38% at -8% 52%, rgba(109,65,255,.055), transparent 70%),
    linear-gradient(180deg,#0b0b0d 0%,#0d0d10 54%,#0b0b0d 100%);
  background-attachment: fixed;
}
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.16;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
a,button { -webkit-tap-highlight-color: transparent; }
button,.btn,.song-card,.nav-item,.ctrl-btn { -webkit-font-smoothing:antialiased; }
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid rgba(255,113,132,.9); outline-offset:3px;
}
.sidebar { transition:background var(--motion-base) ease,border-color var(--motion-base) ease; }
.brand { transition:transform var(--motion-base) var(--ease-out-expo); }
.brand:hover { transform:translateY(-2px); }
.brand-icon { position:relative; isolation:isolate; overflow:hidden; }
.brand-icon::after {
  content:"";position:absolute;inset:-80%;z-index:-1;
  background:linear-gradient(110deg,transparent 38%,rgba(255,255,255,.32) 50%,transparent 62%);
  transform:translateX(-65%) rotate(18deg);transition:transform 900ms var(--ease-out-expo);
}
.brand:hover .brand-icon::after { transform:translateX(65%) rotate(18deg); }
.topbar { transition:background var(--motion-base) ease,box-shadow var(--motion-base) ease; }
.search-box input { transition:background var(--motion-base) ease,border-color var(--motion-base) ease,box-shadow var(--motion-base) ease; }
.search-box input:focus { box-shadow:0 0 0 4px rgba(255,56,85,.09),0 10px 35px rgba(0,0,0,.18); }
.btn,.play-btn,.ctrl-btn,.nav-item {
  transition:transform var(--motion-base) var(--ease-out-expo),
             background var(--motion-base) ease,
             color var(--motion-fast) ease,
             box-shadow var(--motion-base) ease,
             border-color var(--motion-base) ease;
}
.btn:active,.play-btn:active,.ctrl-btn:active { transform:scale(.96); }
.hero {
  --pointer-x:75%; --pointer-y:45%;
  min-height:320px;
  background:
    radial-gradient(360px circle at var(--pointer-x) var(--pointer-y),rgba(255,91,116,.19),transparent 68%),
    linear-gradient(100deg,rgba(10,10,12,.98) 0%,rgba(10,10,12,.83) 49%,rgba(10,10,12,.25) 100%),
    radial-gradient(circle at 76% 46%,rgba(255,56,85,.56),transparent 34%),
    linear-gradient(135deg,#48202a,#1a1217 55%,#17171b);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.075),0 28px 90px rgba(0,0,0,.27);
  transform:translateZ(0);
}
.hero::before {
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.38;
  background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.055) 48%,transparent 70%);
  transform:translateX(-65%);animation:hero-sheen 11s var(--ease-out-expo) 1.2s infinite;
}
.hero::after {
  width:360px;height:360px;left:9%;top:-8%;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 0 0 30px rgba(255,255,255,.025),0 0 0 65px rgba(255,255,255,.018),0 0 100px rgba(255,56,85,.18);
  animation:orbit-breathe 9s ease-in-out infinite;
}
.hero h1 { text-wrap:balance; }
.hero p { line-height:2; }
.hero-art {
  border:1px solid rgba(255,255,255,.2);
  animation:art-float 7s ease-in-out infinite;
  transform:translateZ(0);
}
.hero-art::before { animation:disc-rotate 24s linear infinite; }
.hero-art::after { animation:disc-rotate 32s linear infinite reverse; }
.song-card {
  transform:translateZ(0);
  transition:background var(--motion-base) ease,border-color var(--motion-base) ease,
             transform 520ms var(--ease-out-expo),box-shadow 520ms var(--ease-out-expo);
}
.song-card:hover {
  transform:translateY(-7px) scale(1.012);
  box-shadow:0 20px 44px rgba(0,0,0,.19);
}
.song-cover { overflow:hidden; isolation:isolate; }
.song-cover::after {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(145deg,rgba(255,255,255,.13),transparent 35%,rgba(0,0,0,.12));
  opacity:.7;transition:opacity 400ms ease;
}
.song-card:hover .song-cover::after { opacity:1; }
.song-cover img { will-change:transform; }
.play-btn { z-index:2; }
.song-card:hover .play-btn { transform:translateY(0) scale(1.06); }
.section-head h2 { position:relative; }
.section-head h2::after {
  content:"";display:inline-block;width:5px;height:5px;margin:0 10px 3px 0;
  border-radius:50%;background:var(--purple);box-shadow:0 0 14px rgba(255,56,85,.7);
}
.player { transition:transform 500ms var(--ease-out-expo),background 300ms ease; }
.player[style*="display: flex"] { animation:player-arrive 650ms var(--ease-out-expo) both; }
.player-track img { transition:transform 450ms var(--ease-out-expo),box-shadow 450ms ease; }
.player-track img:hover { transform:scale(1.055) rotate(-2deg);box-shadow:0 8px 26px rgba(255,56,85,.2); }
.progress { cursor:pointer;overflow:visible; }
.progress-fill { position:relative;border-radius:99px; }
.progress-fill::after {
  content:"";position:absolute;left:-4px;top:50%;width:10px;height:10px;border-radius:50%;
  background:#fff;opacity:0;transform:translateY(-50%) scale(.6);
  transition:opacity 160ms ease,transform 160ms ease;
}
.progress:hover .progress-fill::after { opacity:1;transform:translateY(-50%) scale(1); }
.mobile-nav a { transition:color 220ms ease,transform 300ms var(--ease-out-expo); }
.mobile-nav a:active { transform:scale(.92); }
.motion-ready .motion-reveal {
  opacity:0;transform:translate3d(0,24px,0) scale(.99);
  transition:opacity 700ms var(--ease-out-expo),transform 850ms var(--ease-out-expo);
  transition-delay:calc(var(--reveal-order,0) * 55ms);
}
.motion-ready .motion-reveal.is-visible { opacity:1;transform:translate3d(0,0,0) scale(1); }
.motion-tap { animation:tap-pop 260ms var(--ease-out-expo); }
@keyframes hero-sheen {
  0%,58% { transform:translateX(-70%); }
  78%,100% { transform:translateX(70%); }
}
@keyframes orbit-breathe {
  0%,100% { transform:scale(.96) rotate(-8deg);opacity:.72; }
  50% { transform:scale(1.04) rotate(8deg);opacity:1; }
}
@keyframes art-float {
  0%,100% { transform:translateY(0) rotate(-5deg); }
  50% { transform:translateY(-12px) rotate(3deg); }
}
@keyframes disc-rotate { to { rotate:360deg; } }
@keyframes player-arrive {
  from { transform:translateY(18px);opacity:0; }
  to { transform:translateY(0);opacity:1; }
}
@keyframes tap-pop {
  0% { transform:scale(1); }
  45% { transform:scale(.94); }
  100% { transform:scale(1); }
}
@media (hover:none) {
  .song-card:hover { transform:none;box-shadow:none; }
  .hero { --pointer-x:75% !important;--pointer-y:45% !important; }
}
@media (max-width:900px) {
  .hero { min-height:250px; }
  .hero-art { animation-duration:8s; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto !important;animation-duration:.01ms !important;
    animation-iteration-count:1 !important;transition-duration:.01ms !important;
  }
  .motion-ready .motion-reveal { opacity:1;transform:none; }
}


/* ── FINAL PRODUCT PASS: cohesive premium system ─────────── */
:root {
  color-scheme:dark;
  --surface-glass:rgba(255,255,255,.035);
  --line-soft:rgba(255,255,255,.075);
}
body { font-feature-settings:"ss01" on; }
.app { min-height:100vh; }
.sidebar {
  box-shadow:inset -1px 0 rgba(255,255,255,.025),12px 0 50px rgba(0,0,0,.08);
}
.brand { font-weight:800; }
.brand-icon { color:#fff; }
.nav-item svg,.mobile-nav svg { flex:0 0 auto; }
.main { min-width:0; }
.topbar { min-height:76px; }
.topbar-actions { gap:12px; }
.content { min-height:calc(100vh - 76px); }
.hero {
  min-height:354px; padding:54px 58px; border-radius:26px;
  display:flex; align-items:center; justify-content:space-between;
}
.hero-copy { position:relative; z-index:2; max-width:590px; }
.hero-kicker {
  display:inline-flex;align-items:center;gap:9px;margin-bottom:23px;
  color:#ff9aa8;font-size:.68rem;font-weight:800;letter-spacing:.15em;
}
.hero-kicker-dot {
  width:7px;height:7px;border-radius:50%;background:#ff536d;
  box-shadow:0 0 0 5px rgba(255,83,109,.12),0 0 18px rgba(255,83,109,.75);
}
.hero h1 {
  font-size:clamp(2.5rem,4.1vw,4.15rem);font-weight:800;line-height:1.32;
  letter-spacing:-.065em;margin-bottom:13px;
}
.hero h1 span {
  background:linear-gradient(95deg,#fff 4%,#ff9aa8 54%,#ff536d 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p { color:#b8b1b5;max-width:460px;font-size:.98rem;line-height:2.05;margin-bottom:25px; }
.hero-actions { display:flex;align-items:center;gap:18px; }
.hero-actions .btn { min-height:48px;padding:0 22px;border-radius:13px;gap:16px; }
.hero-arrow { font-size:1.2rem;transition:transform 300ms var(--ease-out-expo); }
.hero-actions .btn:hover .hero-arrow { transform:translateX(-5px); }
.hero-note { color:#77737a;font-size:.78rem; }
.hero-art-wrap {
  width:310px;height:280px;flex:0 0 310px;position:relative;
  display:grid;place-items:center;isolation:isolate;
}
.hero-art {
  width:188px;height:188px;opacity:1;filter:none;border-radius:50%;
  display:grid;place-items:center;z-index:2;
  background:
    radial-gradient(circle at 32% 25%,rgba(255,255,255,.8),transparent 12%),
    radial-gradient(circle at 34% 28%,#ffb4be 0%,#ff536d 27%,#d51d43 58%,#531324 100%);
  box-shadow:0 20px 75px rgba(255,56,85,.33),inset -20px -22px 45px rgba(30,0,10,.38),inset 9px 8px 22px rgba(255,255,255,.28);
}
.hero-art-core {
  width:66px;height:66px;display:grid;place-items:center;border-radius:50%;
  color:rgba(255,255,255,.94);font-size:2rem;
  background:radial-gradient(circle at 35% 25%,#29232a,#0c0b0e 76%);
  border:1px solid rgba(255,255,255,.22);box-shadow:0 0 0 8px rgba(255,255,255,.07),0 8px 22px rgba(0,0,0,.3);
}
.hero-orbit {
  position:absolute;border:1px solid rgba(255,255,255,.15);border-radius:50%;
  transform:rotate(-25deg) scaleY(.57);
}
.hero-orbit-one { width:290px;height:290px;animation:disc-rotate 28s linear infinite; }
.hero-orbit-two { width:350px;height:350px;border-color:rgba(255,115,137,.16);transform:rotate(35deg) scaleY(.57);animation:disc-rotate 38s linear infinite reverse; }
.hero-spark { position:absolute;color:#ffb0bc;text-shadow:0 0 20px rgba(255,100,125,.8); }
.hero-spark-one { top:23px;right:44px;font-size:1.5rem;animation:spark-pulse 3s ease-in-out infinite; }
.hero-spark-two { bottom:27px;left:36px;font-size:2rem;animation:spark-pulse 4s ease-in-out infinite reverse; }
.hero-bottom-glow {
  position:absolute;width:55%;height:90px;bottom:-75px;right:20%;
  background:#ff3855;filter:blur(75px);opacity:.18;pointer-events:none;
}
@keyframes spark-pulse { 0%,100%{opacity:.5;transform:scale(.8) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(18deg)} }
.section { margin-bottom:54px; }
.section-head { margin-bottom:22px; }
.section-head h2 { font-size:1.38rem; }
.song-row { gap:17px; }
.song-card { min-width:0; }
.song-title,.song-artist { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.song-list-item {
  border:1px solid transparent;transition:background 260ms ease,border-color 260ms ease,transform 350ms var(--ease-out-expo);
}
.song-list-item:hover { border-color:rgba(255,255,255,.06);transform:translateX(-3px); }
.empty {
  border:1px dashed rgba(255,255,255,.12);border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.008));
}
.auth-page { border-radius:24px; }
.auth-card { backdrop-filter:blur(20px); }
.auth-card .btn { width:100%;justify-content:center;margin-top:8px; }
.form-group input { min-height:48px;border-radius:12px; }
.player {
  display:flex;align-items:center;
  background:linear-gradient(180deg,rgba(25,25,28,.96),rgba(13,13,15,.99));
}
.player::before {
  content:"";position:absolute;top:-1px;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,95,120,.55),transparent);
}
.player-track .info { min-width:0; }
.player-track .info .t,.player-track .info .a { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#yt-container { backdrop-filter:blur(16px); }
@media (max-width:900px) {
  .hero { padding:32px 27px;min-height:280px; }
  .hero-art-wrap { width:170px;height:190px;flex-basis:170px; }
  .hero-art { width:120px;height:120px; }
  .hero-art-core { width:48px;height:48px;font-size:1.5rem; }
  .hero-orbit-one { width:180px;height:180px; }
  .hero-orbit-two { width:220px;height:220px; }
  .hero h1 { font-size:2.2rem; }
}
@media (max-width:560px) {
  .hero { padding:25px 19px;min-height:250px; }
  .hero-copy { max-width:70%; }
  .hero-kicker { font-size:.53rem;letter-spacing:.09em;margin-bottom:13px; }
  .hero h1 { font-size:1.72rem;line-height:1.45; }
  .hero p { font-size:.77rem;line-height:1.9;margin-bottom:16px; }
  .hero-actions { gap:9px;flex-wrap:wrap; }
  .hero-actions .btn { min-height:40px;padding:0 13px;font-size:.76rem; }
  .hero-note { display:none; }
  .hero-art-wrap { position:absolute;left:-8px;top:50%;transform:translateY(-50%);width:115px;height:145px;opacity:.9; }
  .hero-art { width:85px;height:85px; }
  .hero-art-core { width:36px;height:36px;font-size:1.1rem; }
  .hero-orbit-one { width:130px;height:130px; }
  .hero-orbit-two { width:160px;height:160px; }
  .hero-spark-one { top:0;right:14px; }
  .hero-spark-two { bottom:0;left:5px; }
  .section { margin-bottom:38px; }
}
