/* ============================================================
   EKKO — YouTube Music Class UI (beyond YTM)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0b0b0f;
  --bg-elevated: #101016;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --surface-3: #262632;
  --hover: rgba(168,85,247,0.12);
  --text: #f4f4f8;
  --text-2: #b8b8c8;
  --muted: #8a8a9a;
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --accent-soft: rgba(168,85,247,0.22);
  --on-accent: #fff;
  --border: rgba(168,85,247,0.12);
  --glow: rgba(168,85,247,0.35);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --player-h: 72px;
  --sidebar-w: 240px;
  --font: "Vazirmatn", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.35);
  --shadow-md: 0 12px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --shadow-glow: 0 0 40px rgba(168,85,247,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea { font-family: inherit; }

/* Soft charcoal + purple ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(168,85,247,.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(88,28,135,.18), transparent 55%),
    linear-gradient(180deg, #0b0b0f 0%, #0a0a0e 100%);
}
.ambient {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: ambFloat 18s ease-in-out infinite alternate;
}
.ambient::before {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(168,85,247,.45), transparent 70%);
}
.ambient::after {
  width: min(50vw, 460px);
  height: min(50vw, 460px);
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%);
  animation-delay: -7s;
}
@keyframes ambFloat {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
  padding-bottom: var(--player-h);
}
.sidebar {
  width: var(--sidebar-w);
  background: #000;
  border-left: 1px solid var(--border);
  position: fixed;
  top: 0; right: 0; bottom: var(--player-h);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
}
.main {
  flex: 1;
  margin-right: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #1a0a12 0%, #000 280px);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.content {
  padding: 8px 28px 48px;
  max-width: 1600px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 14px;
  box-shadow: none;
  animation: none;
}

/* Nav — YTM style */
.nav-section { margin-bottom: 16px; }
.nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .15s var(--ease), color .15s;
  margin-bottom: 2px;
  position: relative;
}
.nav-item svg { width: 22px; height: 22px; opacity: .9; }
.nav-item:hover { background: var(--hover); color: var(--text); transform: none; }
.nav-item.active {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item.active::before { display: none; }
.nav-item.active svg { color: var(--text); opacity: 1; }

/* Search */
.search-box { flex: 1; max-width: 480px; position: relative; }
.search-box input {
  width: 100%;
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 44px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: background .15s, box-shadow .15s;
}
.search-box input:focus {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.search-box input::placeholder { color: var(--muted); }
.search-box svg {
  position: absolute;
  right: 16px; 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: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform .15s var(--ease), background .15s, opacity .15s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: #000;
  box-shadow: none;
  animation: none;
  background-size: auto;
}
.btn-primary::after { display: none; }
.btn-primary:hover {
  transform: scale(1.04);
  background: #f2f2f2;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--hover);
  border-color: rgba(255,255,255,.35);
  transform: none;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #555;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .8rem;
  overflow: hidden;
}

/* Hero — cinematic but YTM-clean */
.hero {
  position: relative;
  border-radius: 16px;
  padding: 40px 40px;
  margin: 12px 0 28px;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #3b0a1a 0%, #1a0a12 40%, #0a0a0a 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 90% 20%, rgba(255,0,51,.25), transparent 55%);
  animation: none;
  z-index: 0;
}
.hero-copy { position: relative; z-index: 1; max-width: 520px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-2);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  color: #fff;
}
.hero h1 span {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--accent);
  animation: none;
}
.hero p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 22px;
  max-width: 400px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: .85rem; }
.hero-art-wrap {
  width: 180px; height: 180px;
  position: relative;
  z-index: 1;
}
.hero-art {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff3355, #5a0018 60%, #1a0008);
  display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(255,0,51,.25);
}
.hero-art-core {
  font-size: 3rem;
  animation: none;
  filter: none;
}
.hero-orbit, .hero-spark, .hero-bottom-glow { display: none; }

/* Chips — exact YTM feel */
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  transition: background .15s;
  white-space: nowrap;
}
.chip:hover { background: var(--surface-3); transform: none; }
.chip-active {
  background: #fff;
  color: #000;
}
.chip-active:hover { background: #f0f0f0; color: #000; }

/* Sections */
.section { margin-bottom: 36px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head h2::after { display: none; }
.section-head a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.section-head a:hover { color: var(--text); }

/* Horizontal shelves */
.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-card {
  flex: 0 0 160px;
  width: 160px;
  scroll-snap-align: start;
}

/* Song cards — YTM */
.song-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.song-card {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 10px;
  cursor: pointer;
  transition: background .15s var(--ease);
  border: none;
}
.song-card:hover {
  background: var(--hover);
  transform: none;
  border: none;
  box-shadow: none;
}
.song-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.song-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.song-card:hover .song-cover img { transform: scale(1.05); }
.song-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .2s;
}
.song-card:hover .song-cover::after { opacity: 1; }
.play-btn {
  position: absolute;
  bottom: 10px; left: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s var(--ease);
  box-shadow: 0 4px 16px rgba(255,0,51,.4);
  z-index: 2;
}
.song-card:hover .play-btn {
  opacity: 1;
  transform: translateY(0);
}
.play-btn:hover {
  transform: scale(1.08) !important;
  filter: brightness(1.1);
}
.song-title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.song-artist {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List rows */
.song-list { display: flex; flex-direction: column; gap: 2px; }
.song-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .12s;
}
.song-list-item:hover {
  background: var(--hover);
  transform: none;
}
.song-list-item .thumb {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2);
  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: .82rem; }

/* Bottom player — YTM */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: #212121;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 50;
  box-shadow: none;
  backdrop-filter: none;
}
.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 28%;
  min-width: 180px;
  cursor: pointer;
}
.player-track img {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #333;
}
.player-track .info .t {
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-track .info .a { color: var(--muted); font-size: .75rem; }
.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 480px;
  margin: 0 auto;
}
.controls-row { display: flex; align-items: center; gap: 16px; }
.ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: color .12s, background .12s;
}
.ctrl-btn:hover { color: var(--text); background: transparent; }
.ctrl-btn.play {
  width: 40px; height: 40px;
  background: #fff;
  color: #000;
  box-shadow: none;
}
.ctrl-btn.play:hover {
  transform: scale(1.06);
  background: #fff;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress {
  flex: 1;
  height: 3px;
  background: #555;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  box-shadow: none;
}
.progress:hover .progress-fill { background: var(--accent); }
.player-extra {
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.volume { display: flex; align-items: center; gap: 6px; width: 110px; }
.volume input[type=range] { flex: 1; accent-color: #fff; height: 3px; }

/* Now playing sheet */
.np-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 80;
  display: none;
}
.np-overlay.is-open { display: block; }
.np-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 6%;
  z-index: 90;
  background: #0f0f0f;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,.06);
  border-bottom: none;
  display: none;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}
.np-sheet.is-open { display: flex; }
.np-handle-wrap { display: flex; justify-content: center; padding: 12px; }
.np-handle {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: #555;
}
.np-body { flex: 1; overflow-y: auto; padding: 8px 22px 28px; }
.np-cover-wrap {
  width: min(100%, 300px);
  margin: 4px auto 18px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  position: relative;
}
.np-cover { width: 100%; height: 100%; object-fit: cover; }
.np-yt-wrap { position: absolute; inset: 0; }
.np-yt-wrap iframe { width: 100%; height: 100%; border: 0; }
.np-meta { text-align: center; margin-bottom: 16px; }
.np-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; color: #fff; }
.np-artist { color: var(--muted); }
.np-progress-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; color: var(--muted); margin-bottom: 12px;
}
.np-progress { flex: 1; height: 4px; }
.np-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 16px;
}
.np-play { width: 56px !important; height: 56px !important; }
.np-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.np-action {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 10px;
  color: var(--text-2); font-size: .7rem; font-weight: 600;
}
.np-action:hover, .np-action.liked { background: var(--hover); color: var(--text); }
.np-action.liked { color: var(--accent); }
.np-volume-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; color: var(--muted);
}
.np-volume-row input[type=range] { flex: 1; accent-color: #fff; }
.np-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.np-tab {
  flex: 1; padding: 12px 6px;
  font-weight: 700; font-size: .88rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.np-tab.active { color: #fff; border-bottom-color: #fff; }
.np-panel { display: none; }
.np-panel.active { display: block; }
.np-muted { color: var(--muted); text-align: center; padding: 20px; }
.np-q-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 8px; border-radius: 8px;
  text-align: right; color: var(--text);
}
.np-q-item:hover { background: var(--hover); }
.np-q-item img {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; background: #222; flex-shrink: 0;
}
.np-q-item .t { font-weight: 600; font-size: .88rem; }
.np-q-item .a { color: var(--muted); font-size: .78rem; }
.np-lyrics-text {
  white-space: pre-wrap; line-height: 1.85;
  color: var(--text-2); font-family: inherit; padding: 8px 0 20px;
}

/* Category tiles */
.page-title { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 18px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cat-tile {
  border-radius: 12px;
  padding: 24px 16px 18px;
  min-height: 110px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: none;
  transition: transform .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-tile:hover { transform: scale(1.03); box-shadow: none; }
.cat-emoji { font-size: 1.6rem; margin-bottom: 8px; }
.cat-name { font-weight: 800; font-size: 1rem; }

/* Auth */
.auth-page { display: grid; place-items: center; padding: 48px 16px; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: none;
}
.auth-card h1 { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-2);
}
.form-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}
.form-group input:focus {
  border-color: rgba(255,255,255,.2);
  box-shadow: none;
  background: var(--surface-3);
  transform: none;
}
.auth-error {
  background: rgba(255,0,51,.12);
  color: #ff6b81;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: .9rem;
}
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.auth-switch a { color: var(--text); font-weight: 700; }

/* Profile menu */
.sidebar-footer {
  margin-top: auto;
  padding: 10px 6px;
  border-top: 1px solid var(--border);
  position: relative;
}
.profile-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: right;
}
.profile-trigger:hover { background: var(--hover); }
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-hint { color: var(--muted); font-size: .72rem; }
.profile-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 6px; left: 6px;
  background: #212121;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 60;
  display: none;
}
.profile-dropdown.is-open { display: block; }
.profile-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px;
  font-weight: 600; font-size: .88rem; color: var(--text-2);
}
.profile-dd-item:hover { background: var(--hover); color: var(--text); }
.profile-dd-item.danger { color: #ff6b81; }
.top-profile { position: relative; }
.top-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 150px; bottom: auto;
}
#profile-dropdown:not(.is-open),
#top-profile-dropdown:not(.is-open) { display: none !important; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7);
  display: none; place-items: center; padding: 20px;
}
.modal-overlay.is-open { display: grid; }
.modal-card {
  width: 100%; max-width: 360px;
  background: #212121;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.modal-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; text-align: center; }
.pl-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.pl-item {
  padding: 12px 14px; border-radius: 8px;
  background: transparent; text-align: right;
  font-weight: 600; color: var(--text);
}
.pl-item:hover { background: var(--hover); }
.pl-create { display: flex; gap: 8px; margin-top: 12px; flex-direction: row-reverse; }
.pl-create input {
  flex: 1; background: var(--surface-2); border: none;
  border-radius: 999px; padding: 11px 14px; color: var(--text); text-align: right;
}

/* Force hide until open */
#pl-modal:not(.is-open),
#np-sheet:not(.is-open),
#np-overlay:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#pl-modal.is-open {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#np-sheet.is-open {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#np-overlay.is-open {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Empty */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }

/* Mobile */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: var(--player-h);
  left: 0; right: 0;
  background: #121212;
  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: 3px;
  font-size: .65rem; font-weight: 600; color: var(--muted); padding: 4px 10px;
}
.mobile-nav a.active { color: #fff; }
.mobile-nav svg { width: 22px; height: 22px; }

/* Disable heavy motion from older layers */
.motion-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.song-card:hover { --spot-x: 0; }

@media (max-width: 960px) {
  .sidebar { display: none; }
  .main { margin-right: 0; }
  .mobile-nav { display: flex; }
  .content { padding: 8px 14px 100px; }
  .topbar { padding: 10px 14px; }
  .hero { padding: 28px 20px; flex-direction: column; text-align: center; min-height: auto; }
  .hero p { margin: 0 auto 18px; }
  .hero-actions { justify-content: center; }
  .hero-art-wrap { width: 120px; height: 120px; }
  .player-extra { display: none; }
  .player-track { width: 40%; min-width: 120px; }
  .h-card { flex-basis: 140px; width: 140px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Fullscreen Now Playing */
.np-sheet.is-open,
#np-sheet.is-open {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.np-body {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.np-cover-wrap {
  width: min(88vw, 340px) !important;
}
@media (min-width: 800px) {
  .np-body {
    max-width: 560px;
    padding-top: 24px;
  }
  .np-cover-wrap {
    width: min(70vw, 380px) !important;
  }
}

/* Quick picks — YouTube Music style */
.qp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}
.qp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: right;
  color: var(--text);
  transition: background .12s;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}
.qp-item:hover { background: var(--hover); }
.qp-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.qp-meta { min-width: 0; flex: 1; }
.qp-title {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qp-artist {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .qp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .qp-grid { grid-template-columns: 1fr; }
}

.yt-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  text-align: center;
  background: #181818;
  color: #ddd;
}
.yt-fallback-title { font-weight: 800; font-size: 1.1rem; }
.yt-fallback p { color: #999; font-size: .9rem; max-width: 280px; }
.np-open-yt {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: underline;
  opacity: .85;
}
.np-open-yt:hover { opacity: 1; }

/* ========== HOME — match YouTube Music screenshot ========== */
.ytm-home { padding-top: 8px; }

.ytm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-direction: row-reverse;
}
.ytm-h1 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.ytm-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.ytm-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}
.ytm-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}
.ytm-icon-btn:hover { background: rgba(255,255,255,.08); }
.ytm-pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.ytm-pill-btn:hover { background: rgba(255,255,255,.08); }
.ytm-more {
  color: #aaa;
  font-weight: 700;
  font-size: .85rem;
}
.ytm-more:hover { color: #fff; }

/* Quick picks 3-column list like YTM */
.ytm-qp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 24px;
  margin-bottom: 28px;
}
.ytm-qp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: right;
  width: 100%;
  min-height: 56px;
  transition: background .12s;
  flex-direction: row; /* thumb on right in RTL via direction */
}
html[dir="rtl"] .ytm-qp-item { flex-direction: row; }
.ytm-qp-item:hover { background: rgba(255,255,255,.08); }
.ytm-qp-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: #2a2a2a;
  flex-shrink: 0;
}
.ytm-qp-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.ytm-qp-title {
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.3;
}
.ytm-qp-sub {
  font-size: .8rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Hide old hero on home for pure YTM look */
.ytm-home .hero { display: none; }

.ytm-chips { margin-bottom: 8px; }

/* Shelves */
.ytm-shelf { margin-bottom: 32px; }
.ytm-hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ytm-hscroll::-webkit-scrollbar { display: none; }
.ytm-card {
  flex: 0 0 160px;
  width: 160px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .12s;
}
.ytm-card:hover { background: rgba(255,255,255,.06); }
.ytm-card-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
  margin-bottom: 10px;
}
.ytm-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ytm-card-play {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all .15s;
  border: none;
  cursor: pointer;
}
.ytm-card:hover .ytm-card-play {
  opacity: 1;
  transform: none;
}
.ytm-card-title {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ytm-card-artist {
  color: #aaa;
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .ytm-qp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ytm-qp { grid-template-columns: 1fr; }
  .ytm-h1 { font-size: 1.35rem; }
  .ytm-card { flex-basis: 140px; width: 140px; }
}

/* ===== Ekko cinematic slider ===== */
.ekko-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 6px 0 32px;
  height: clamp(220px, 32vw, 340px);
  background: linear-gradient(135deg, #14101c 0%, #0c0a12 50%, #12081c 100%);
  isolation: isolate;
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.06);
  border: 1px solid rgba(168,85,247,.15);
}
.ekko-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ekko-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateX(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  display: flex;
  align-items: center;
  padding: 28px 36px;
  cursor: pointer;
}
.ekko-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}
.ekko-slide-bg {
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, #3b0a1a, #1a0a28 45%, #0a0a12);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.3);
  transform: scale(1.15);
  z-index: 0;
  animation: slideBg 10s ease-in-out infinite alternate;
}
.ekko-slide.is-active .ekko-slide-bg {
  animation: slideBg 12s ease-in-out infinite alternate;
}
@keyframes slideBg {
  from { transform: scale(1.12) translateX(0); }
  to { transform: scale(1.2) translateX(-3%); }
}
.ekko-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
  z-index: 1;
}
html[dir="rtl"] .ekko-slide-shade {
  background: linear-gradient(270deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.2) 100%);
}
.ekko-slide-body {
  position: relative;
  z-index: 3;
  max-width: 55%;
}
.ekko-slide-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff4d6d;
  margin-bottom: 10px;
}
.ekko-slide-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.ekko-slide-artist {
  color: #cfcfcf;
  font-size: .95rem;
  margin-bottom: 18px;
}
.ekko-slide-play {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #c084fc, #a855f7 40%, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(168,85,247,.45), 0 4px 12px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ekko-slide-play:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(168,85,247,.55), 0 6px 16px rgba(0,0,0,.45);
}
.ekko-slide-art {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: min(38%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,85,247,.25);
  z-index: 2;
  animation: artFloat 5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.08);
}
@keyframes artFloat {
  0%, 100% { transform: translateY(-50%) rotate(-4deg); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(-2deg); }
}
html[dir="rtl"] .ekko-slide-art {
  left: auto;
  right: 6%;
  transform: translateY(-50%) rotate(4deg);
}
html[dir="rtl"] .ekko-slide-art {
  animation-name: artFloatRtl;
}
@keyframes artFloatRtl {
  0%, 100% { transform: translateY(-50%) rotate(4deg); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(2deg); }
}

.ekko-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.ekko-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}
.ekko-dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 99px;
}
.ekko-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.ekko-slider-nav:hover { background: rgba(0,0,0,.7); }
.ekko-slider-nav.prev { right: 12px; }
.ekko-slider-nav.next { left: 12px; }

@media (max-width: 720px) {
  .ekko-slider { height: 210px; }
  .ekko-slide-body { max-width: 70%; }
  .ekko-slide-art { width: 28%; opacity: .9; }
}

/* Shared YouTube stage — mini dock vs NP fullscreen slot */
.yt-stage {
  position: fixed;
  z-index: 55;
  background: #000;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  transition: width .25s ease, height .25s ease, top .25s ease, left .25s ease, right .25s ease, bottom .25s ease, border-radius .25s ease;
}
.yt-stage-hidden {
  display: none !important;
}
/* mini player mode */
.yt-stage.yt-dock {
  display: block;
  left: 16px;
  bottom: calc(var(--player-h) + 12px);
  width: min(320px, calc(100vw - 32px));
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  z-index: 55;
}
/* inside Now Playing cover */
.yt-stage.yt-in-np {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  z-index: 4;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}
.yt-stage-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 6;
  line-height: 1;
}
.yt-stage.yt-in-np .yt-stage-close { display: none; }
.np-yt-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ===== Analytics dashboard ===== */
.an-wrap { padding-bottom: 24px; }
.an-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}
.an-card {
  background: #121212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.an-num { font-size: 1.4rem; font-weight: 900; color: #fff; }
.an-label { color: #aaa; font-size: .78rem; margin-top: 4px; }
.an-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.an-panel {
  background: #121212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px;
}
.an-panel h2 { font-size: 1rem; margin-bottom: 10px; }
.an-list { list-style: none; }
.an-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .88rem;
  color: #ddd;
}
.an-list li b { color: #fff; font-weight: 800; }
.an-table-wrap { overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.an-table th, .an-table td {
  text-align: right;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.an-table th { color: #aaa; font-weight: 600; }

/* ===== Mobile responsive fixes ===== */
@media (max-width: 960px) {
  .app { padding-bottom: calc(var(--player-h) + 64px); }
  .main { margin-right: 0 !important; width: 100%; }
  .sidebar { display: none !important; }
  .mobile-nav {
    display: flex !important;
    position: fixed;
    left: 0; right: 0;
    bottom: var(--player-h);
    height: 56px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 45;
    padding: 0 env(safe-area-inset-bottom, 0);
  }
  .content {
    padding: 8px 12px 24px !important;
    max-width: 100%;
  }
  .topbar {
    padding: 8px 10px !important;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .search-box { max-width: none; flex: 1; min-width: 0; }
  .search-box input { padding: 9px 14px 9px 40px; font-size: .88rem; }
  .topbar-actions .btn { padding: 8px 12px; font-size: .8rem; }
  .ekko-slider { height: 180px !important; margin-bottom: 16px; border-radius: 12px; }
  .ekko-slide { padding: 18px 16px; }
  .ekko-slide-body { max-width: 75%; }
  .ekko-slide-title { font-size: 1.15rem !important; }
  .ekko-slide-art { width: 26% !important; opacity: .85; }
  .ytm-h1 { font-size: 1.25rem !important; }
  .ytm-section-head { flex-wrap: wrap; gap: 8px; }
  .ytm-qp { grid-template-columns: 1fr !important; gap: 2px; }
  .ytm-hscroll { gap: 12px; }
  .ytm-card { flex: 0 0 132px; width: 132px; }
  .player {
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .player-track { width: 42% !important; min-width: 0 !important; }
  .player-controls { max-width: none; }
  .player-extra { display: none !important; }
  .yt-stage.yt-dock {
    left: 8px !important;
    width: min(200px, calc(100vw - 16px)) !important;
    bottom: calc(var(--player-h) + 60px) !important;
  }
  .np-sheet.is-open { top: 0 !important; }
  .chip-row { padding-bottom: 12px; }
}

@media (max-width: 420px) {
  .topbar-actions .btn-ghost { display: none; }
  .ekko-slide-play { padding: 10px 16px; font-size: .82rem; }
}


/* Row badges */
.row-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  vertical-align: middle;
}
.row-badge-ok {
  background: rgba(34, 197, 94, .15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .25);
}
.row-badge-warn {
  background: rgba(251, 191, 36, .12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .25);
}

/* ===== Analytics Pro ===== */
.an-wrap { max-width: 1200px; }
.an-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(16,185,129,.12));
  border: 1px solid rgba(255,255,255,.08);
}
.an-hero h1 { font-size: 1.5rem; margin: 0 0 4px; }
.an-hero p { margin: 0; color: #aaa; font-size: .88rem; }
.an-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  font-size: .8rem;
  color: #ddd;
}
.an-live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: an-pulse 1.6s infinite;
  display: inline-block;
}
@keyframes an-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.an-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.an-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #161616, #101010);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: right;
  transition: transform .15s ease, border-color .15s ease;
}
.an-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); }
.an-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
  pointer-events: none;
}
.an-num { font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.an-label { color: #9ca3af; font-size: .78rem; margin-top: 6px; }
.an-delta { font-size: .72rem; color: #6ee7b7; margin-top: 6px; }
.an-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.an-panel {
  background: #121212;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 16px;
}
.an-panel h2 {
  font-size: .95rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.an-panel h2 span {
  font-size: .72rem;
  font-weight: 600;
  color: #888;
}
.an-list { list-style: none; margin: 0; padding: 0; }
.an-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .86rem;
  color: #ddd;
}
.an-list li:last-child { border-bottom: 0; }
.an-list li b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.an-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  margin-top: 6px;
  overflow: hidden;
}
.an-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #22c55e);
}
.an-table-wrap { overflow-x: auto; border-radius: 12px; }
.an-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.an-table th, .an-table td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.an-table th { color: #9ca3af; font-weight: 600; font-size: .75rem; }
.an-table tr:hover td { background: rgba(255,255,255,.03); }
.an-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.an-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: #141414;
  color: #ccc;
  font-size: .8rem;
  cursor: pointer;
}
.an-tab.is-active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 700;
}
@media (max-width: 640px) {
  .an-hero { padding: 14px; }
  .an-num { font-size: 1.3rem; }
}


/* ===== Premium Now Playing (compact + swipe) ===== */
.np-overlay.is-open {
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.np-sheet.is-open,
#np-sheet.is-open {
  display: flex !important;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% -10%, #2a2a32 0%, #0c0c0f 55%, #070708 100%) !important;
  border-top: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 -20px 80px rgba(0,0,0,.55);
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease;
  touch-action: pan-y;
}
.np-sheet.is-dragging {
  transition: none !important;
}
.np-handle-wrap {
  padding: 10px 0 4px !important;
  cursor: grab;
  flex-shrink: 0;
}
.np-handle-wrap:active { cursor: grabbing; }
.np-handle {
  width: 44px !important;
  height: 5px !important;
  border-radius: 99px !important;
  background: rgba(255,255,255,.28) !important;
  border: none !important;
  display: block;
  margin: 0 auto;
}
.np-body {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 10px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 4px 22px 22px !important;
  overflow-y: auto;
  box-sizing: border-box;
}
.np-cover-wrap {
  width: min(72vw, 280px) !important;
  max-width: 280px !important;
  aspect-ratio: 1 !important;
  margin: 0 auto 4px !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06);
  flex-shrink: 0;
  position: relative;
}
.np-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.np-meta {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 8px;
}
.np-title {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin: 0 0 2px !important;
  line-height: 1.25;
  color: #fff !important;
}
.np-artist {
  margin: 0 !important;
  color: rgba(255,255,255,.55) !important;
  font-size: .92rem !important;
}
.np-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0 !important;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}
.np-progress {
  flex: 1;
  height: 5px !important;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  cursor: pointer;
}
.np-progress .progress-fill,
#np-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff, #e8e8e8);
  border-radius: 99px;
}
.np-controls {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 22px !important;
  margin: 2px 0 0 !important;
}
.np-play {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.np-play:hover { transform: scale(1.04); }
.np-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}
.np-action {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.8) !important;
  font-size: .72rem !important;
  min-height: 64px;
  transition: background .15s ease, transform .12s ease;
}
.np-action:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
.np-action.liked {
  color: #ff6b8a !important;
  border-color: rgba(255,107,138,.25) !important;
  background: rgba(255,107,138,.08) !important;
}
.np-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px !important;
  color: rgba(255,255,255,.5);
}
.np-volume-row input[type=range] {
  flex: 1;
  accent-color: #fff;
  height: 4px;
}
.np-tabs {
  display: flex;
  gap: 4px;
  margin-top: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.np-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
}
.np-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}
.np-panel { padding-top: 8px; }

/* Desktop: cover + meta/controls tighter, less empty middle */
@media (min-width: 900px) {
  .np-body {
    max-width: 640px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px !important;
    padding: 20px 32px 28px !important;
  }
  .np-cover-wrap {
    width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
  }
  .np-main-col {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .np-meta { text-align: right !important; }
  .np-actions { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 560px) {
  .np-cover-wrap {
    width: min(70vw, 240px) !important;
  }
  .np-title { font-size: 1.08rem !important; }
  .np-actions { gap: 6px !important; }
  .np-action { min-height: 58px; padding: 8px 4px !important; font-size: .68rem !important; }
  .np-body { padding: 0 16px 18px !important; gap: 8px !important; }
}


/* ===== YouTube Music layout for Now Playing ===== */
.np-body.np-ytm {
  max-width: none !important;
  width: 100% !important;
  height: 100%;
  display: grid !important;
  grid-template-columns: minmax(320px, 42%) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "side stage"
    "dock dock";
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}
.np-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
  overflow: hidden;
}
.np-stage {
  grid-area: stage;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px 12px;
  min-width: 0;
  background: radial-gradient(80% 60% at 70% 40%, rgba(80,80,120,.18), transparent 60%);
}
.np-stage .np-cover-wrap {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 16px !important;
  margin: 0 !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.np-stage .np-cover { object-fit: cover; }
.np-dock {
  grid-area: dock;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,14,.96);
  padding: 8px 20px 12px;
}
.np-dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.np-side .np-tabs {
  display: flex;
  gap: 0;
  margin: 0 !important;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.np-side .np-tab {
  flex: 1;
  padding: 14px 8px;
  font-size: .9rem;
}
.np-now-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label actions"
    "info actions";
  gap: 2px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  flex-shrink: 0;
}
.np-now-label {
  grid-area: label;
  font-size: .72rem;
  color: #aaa;
  font-weight: 600;
}
.np-now-info { grid-area: info; min-width: 0; }
.np-now-info .np-title {
  font-size: .95rem !important;
  text-align: right !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-now-info .np-artist {
  font-size: .8rem !important;
  text-align: right !important;
}
.np-now-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 6px;
}
.np-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #eee;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.np-icon-btn:hover { background: rgba(255,255,255,.12); }
.np-icon-btn.liked { color: #ff6b8a; border-color: rgba(255,107,138,.35); }
.np-side .np-tab-panels {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 6px 0 16px;
}
.np-side .np-panel { display: none; }
.np-side .np-panel.active { display: block; }
.np-side .np-q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  width: 100%;
  border: none;
  background: transparent;
  color: #eee;
  text-align: right;
  cursor: pointer;
}
.np-side .np-q-item:hover { background: rgba(255,255,255,.06); }
.np-side .np-q-item.is-current {
  background: rgba(255,255,255,.08);
}
.np-side .np-q-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #222;
}
.np-side .np-q-item .t { font-size: .86rem; font-weight: 600; }
.np-side .np-q-item .a { font-size: .75rem; color: #999; }
.np-dock .np-progress-row { margin: 0 0 6px !important; }
.np-dock .np-controls { margin: 0 !important; gap: 18px !important; }
.np-dock .np-play {
  width: 48px !important;
  height: 48px !important;
}

@media (max-width: 900px) {
  .np-body.np-ytm {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "stage"
      "side"
      "dock";
    overflow-y: auto !important;
  }
  .np-stage {
    padding: 8px 16px 4px;
  }
  .np-stage .np-cover-wrap {
    width: min(92vw, 420px) !important;
    aspect-ratio: 1 !important;
  }
  .np-side {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.06);
    max-height: 42vh;
  }
  .np-dock-row { justify-content: center; }
  .np-volume-row { display: none; }
}


/* base31 yt fix */
#np-overlay, .np-overlay, #np-overlay.is-open {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  backdrop-filter: none !important;
}
.np-close-x {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-close-x:hover { background: rgba(255,255,255,.14); }
.np-sheet { position: relative; }
.yt-stage { transition: none !important; }
.yt-stage.yt-dock {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(var(--player-h) + 12px) !important;
  width: min(300px, calc(100vw - 32px)) !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  z-index: 55 !important;
  display: block !important;
}
body.np-open .yt-stage.yt-in-np {
  position: fixed !important;
  top: 56px !important;
  bottom: 110px !important;
  left: 24px !important;
  right: clamp(300px, 42vw, 520px) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 16px !important;
  z-index: 85 !important;
  display: block !important;
}
@media (max-width: 900px) {
  body.np-open .yt-stage.yt-in-np {
    top: 48px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    height: 42vw !important;
    max-height: 280px !important;
  }
}


/* Vercel resources on analytics */
.an-vercel-note { color: #9ca3af; font-size: .84rem; margin: 0 0 14px; line-height: 1.6; }
.an-res-grid { display: grid; gap: 12px; }
.an-res {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 12px 14px;
}
.an-res-head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 8px; }
.an-res-head b { font-variant-numeric: tabular-nums; }
.an-res-bar {
  height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden;
}
.an-res-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #22c55e, #a3e635);
}
.an-res-warn .an-res-bar i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.an-res-critical .an-res-bar i { background: linear-gradient(90deg, #ef4444, #f97316); }
.an-res-meta { margin-top: 8px; font-size: .78rem; color: #aaa; }
.an-res-meta b { color: #fff; }
.an-res-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.an-local-traffic { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.an-local-traffic h3 { font-size: .92rem; margin-bottom: 10px; }
.an-muted { color: #888; font-size: .78rem; }

.an-vercel-meta { display:flex; flex-wrap:wrap; gap:10px 16px; margin:0 0 14px; font-size:.8rem; color:#9ca3af; }
.an-vercel-meta b { color:#e5e7eb; }
.an-vercel-meta code { background:rgba(255,255,255,.06); padding:2px 6px; border-radius:6px; font-size:.75rem; }
.an-warn { color:#fbbf24 !important; }


/* Local circular resource meters */
.an-local-res { margin-bottom: 18px; }
.an-circles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.an-circle-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 14px 10px 12px;
  text-align: center;
}
.an-circle-svg-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
}
.an-circle-svg { width: 100%; height: 100%; }
.an-circle-bg {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 8;
}
.an-circle-fg {
  fill: none;
  stroke: #22c55e;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray .6s ease;
}
.an-res-warn .an-circle-fg { stroke: #f59e0b; }
.an-res-critical .an-circle-fg { stroke: #ef4444; }
.an-circle-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.an-circle-label {
  font-size: .82rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
  line-height: 1.35;
  min-height: 2.4em;
}
.an-circle-meta {
  font-size: .75rem;
  color: #9ca3af;
}
.an-circle-meta b { color: #fff; }
.an-circle-remain {
  margin-top: 4px;
  font-size: .72rem;
  color: #a7f3d0;
}
.an-res-warn .an-circle-remain { color: #fcd34d; }
.an-res-critical .an-circle-remain { color: #fca5a5; }
.an-circle-hint {
  margin-top: 6px;
  font-size: .68rem;
  color: #6b7280;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .an-circles { grid-template-columns: repeat(2, 1fr); }
}


/* charcoal-purple polish */
.app, .main, .content { background: transparent; }
.sidebar {
  background: rgba(12,12,18,.82) !important;
  backdrop-filter: blur(18px);
  border-inline-end: 1px solid rgba(168,85,247,.1);
  box-shadow: 8px 0 40px rgba(0,0,0,.35);
}
.nav-item {
  border-radius: 12px;
  transition: background .2s var(--ease), box-shadow .2s, color .15s;
}
.nav-item:hover {
  background: rgba(168,85,247,.1);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.12);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(168,85,247,.22), rgba(168,85,247,.08));
  box-shadow: inset 3px 0 0 #a855f7, 0 4px 20px rgba(168,85,247,.12);
}
.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  opacity: .85;
  filter: drop-shadow(0 0 6px rgba(168,85,247,.15));
}
.nav-item.active svg {
  color: #c084fc;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(168,85,247,.45));
}
.brand-icon {
  box-shadow: 0 8px 24px rgba(168,85,247,.35);
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
}
.ytm-shelf,
.ytm-section-head {
  position: relative;
}
.ytm-h2 {
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.ytm-qp-item,
.ytm-card,
.song-card,
.track-card {
  border-radius: 14px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.ytm-qp-item:hover,
.ytm-card:hover,
.song-card:hover,
.track-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,.28);
  box-shadow: var(--shadow-md), 0 0 28px rgba(168,85,247,.12);
}
.player-bar,
.mini-player,
#player-bar {
  background: rgba(12,12,18,.88) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid rgba(168,85,247,.12);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45), 0 -1px 0 rgba(168,85,247,.08);
}
.ekko-slide-shade {
  background: linear-gradient(90deg,
    rgba(8,6,14,.92) 0%,
    rgba(10,8,18,.72) 42%,
    rgba(10,8,18,.25) 100%) !important;
}
html[dir="rtl"] .ekko-slide-shade {
  background: linear-gradient(270deg,
    rgba(8,6,14,.92) 0%,
    rgba(10,8,18,.72) 42%,
    rgba(10,8,18,.25) 100%) !important;
}
.ekko-slide-kicker {
  background: rgba(168,85,247,.18);
  color: #e9d5ff;
  border: 1px solid rgba(168,85,247,.25);
  box-shadow: 0 0 20px rgba(168,85,247,.15);
}
.btn, .btn-primary, .search-btn {
  box-shadow: 0 6px 20px rgba(168,85,247,.25);
}
.btn:hover, .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(168,85,247,.4);
}
input, .search-input, .field input {
  background: rgba(20,20,28,.8) !important;
  border-color: rgba(168,85,247,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
input:focus, .search-input:focus, .field input:focus {
  border-color: rgba(168,85,247,.45) !important;
  box-shadow: 0 0 0 3px rgba(168,85,247,.15), inset 0 1px 0 rgba(255,255,255,.04);
}
.np-sheet {
  box-shadow: 0 -20px 80px rgba(0,0,0,.65), 0 0 60px rgba(168,85,247,.12);
}


/* fixed sidebar + hero split */
.sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: var(--player-h) !important;
  left: auto !important;
  width: var(--sidebar-w) !important;
  z-index: 50 !important;
  overflow-y: auto;
  display: flex !important;
  flex-direction: column;
}
.main {
  margin-right: var(--sidebar-w) !important;
  width: auto;
  min-width: 0;
  background: transparent !important;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(168,85,247,.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-login {
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #c084fc, #7c3aed) !important;
  box-shadow: 0 10px 28px rgba(168,85,247,.35) !important;
}
.sidebar-register {
  width: 100%;
  justify-content: center;
  padding: 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(168,85,247,.2);
}

/* Hero split 50/50 */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 4px 0 28px;
  min-height: clamp(240px, 36vw, 380px);
}
.hero-split-slider,
.hero-split-play {
  min-height: inherit;
  height: 100%;
}
.hero-split .ekko-slider {
  height: 100% !important;
  min-height: inherit;
  margin: 0 !important;
}
.orb-stage {
  position: relative;
  height: 100%;
  min-height: inherit;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(168,85,247,.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(168,85,247,.2), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(124,58,237,.18), transparent 50%),
    linear-gradient(160deg, #120e1a, #0a0a10 60%, #100816);
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.05);
  cursor: crosshair;
  touch-action: none;
}
#orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.orb-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  color: #ddd;
  pointer-events: none;
}
.orb-hint-icon {
  color: #c084fc;
  text-shadow: 0 0 12px rgba(168,85,247,.8);
}
.orb-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.orb-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,.25);
  background: rgba(20,12,30,.65);
  color: #f3e8ff;
  font-weight: 700;
  font-size: .8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .15s, background .15s;
}
.orb-btn:hover {
  transform: translateY(-1px);
  background: rgba(168,85,247,.25);
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split .ekko-slider { height: 220px !important; min-height: 220px; }
  .orb-stage { min-height: 220px; height: 220px; }
}

@media (max-width: 900px) {
  /* keep login accessible via topbar; sidebar hidden on small screens */
  .sidebar { display: none !important; }
  .main { margin-right: 0 !important; }
}


/* music bot */
.bot-stage {
  position: relative;
  height: 100%;
  min-height: inherit;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  user-select: none;
}
.bot-aura {
  position: absolute;
  width: min(70%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%);
  filter: blur(18px);
  animation: botAura 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes botAura {
  from { transform: scale(.9); opacity: .7; }
  to { transform: scale(1.12); opacity: 1; }
}
.bot-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bot-notes span {
  position: absolute;
  color: rgba(192,132,252,.55);
  font-size: 1.1rem;
  animation: noteFloat 5s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(168,85,247,.5);
}
.bot-notes span:nth-child(1) { left: 12%; bottom: 18%; animation-delay: 0s; }
.bot-notes span:nth-child(2) { left: 22%; bottom: 30%; animation-delay: .7s; font-size: 1.4rem; }
.bot-notes span:nth-child(3) { right: 16%; bottom: 22%; animation-delay: 1.2s; }
.bot-notes span:nth-child(4) { right: 28%; bottom: 36%; animation-delay: 1.8s; font-size: .95rem; }
.bot-notes span:nth-child(5) { left: 48%; bottom: 14%; animation-delay: 2.2s; }
@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .3; }
  50% { transform: translateY(-28px) rotate(12deg); opacity: .85; }
}
.music-bot {
  position: relative;
  width: min(52%, 200px);
  z-index: 2;
  transform: translateY(6px);
  animation: botBob 3.2s ease-in-out infinite;
}
@keyframes botBob {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(0); }
}
.bot-head {
  position: relative;
  width: 78%;
  margin: 0 auto;
  aspect-ratio: 1.15 / 1;
  background: linear-gradient(160deg, #2a2438, #16121f 55%, #1a1528);
  border-radius: 28px 28px 22px 22px;
  border: 1px solid rgba(168,85,247,.35);
  box-shadow:
    0 12px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 24px rgba(168,85,247,.15);
}
.bot-antenna {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(#7c3aed, #c084fc);
  border-radius: 3px;
}
.bot-antenna i {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #e9d5ff;
  box-shadow: 0 0 12px #a855f7, 0 0 24px rgba(168,85,247,.6);
  animation: antBlink 1.6s ease-in-out infinite;
}
@keyframes antBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
.bot-ear {
  position: absolute;
  top: 28%;
  width: 12px;
  height: 28px;
  background: linear-gradient(180deg, #a855f7, #5b21b6);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(168,85,247,.4);
}
.bot-ear.left { left: -8px; }
.bot-ear.right { right: -8px; }
.bot-face {
  position: absolute;
  inset: 18% 14% 16%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
}
.bot-eye {
  width: 38%;
  aspect-ratio: 1;
  background: #0b0a10;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0,0,0,.8);
}
.bot-pupil {
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5d0fe, #a855f7 45%, #5b21b6);
  box-shadow: 0 0 10px rgba(168,85,247,.9);
  transition: transform .08s linear;
  will-change: transform;
}
.bot-mouth {
  width: 100%;
  height: 28%;
  border-radius: 0 0 16px 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(168,85,247,.2);
  display: grid;
  place-items: center;
}
.bot-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70%;
}
.bot-eq i {
  display: block;
  width: 4px;
  height: 40%;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9d5ff, #a855f7);
  animation: eqBar 1s ease-in-out infinite;
}
.bot-eq i:nth-child(1) { animation-delay: 0s; }
.bot-eq i:nth-child(2) { animation-delay: .1s; height: 70%; }
.bot-eq i:nth-child(3) { animation-delay: .2s; height: 100%; }
.bot-eq i:nth-child(4) { animation-delay: .3s; height: 60%; }
.bot-eq i:nth-child(5) { animation-delay: .4s; height: 45%; }
@keyframes eqBar {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
.bot-body {
  position: relative;
  width: 88%;
  margin: 8px auto 0;
  aspect-ratio: 1.25 / 1;
  background: linear-gradient(180deg, #221c30, #14101c);
  border-radius: 18px 18px 26px 26px;
  border: 1px solid rgba(168,85,247,.28);
  box-shadow: 0 16px 36px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.bot-speaker {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2b243c, #0d0b12 70%);
  border: 2px solid rgba(168,85,247,.25);
  display: grid;
  place-items: center;
}
.bot-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,.2);
  animation: ringPulse 2.4s ease-out infinite;
}
.bot-ring:nth-child(1) { width: 56%; height: 56%; }
.bot-ring:nth-child(2) { width: 78%; height: 78%; animation-delay: .4s; }
@keyframes ringPulse {
  0%, 100% { opacity: .35; transform: scale(.96); }
  50% { opacity: .8; transform: scale(1.02); }
}
.bot-core {
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5d0fe, #a855f7 50%, #6d28d9);
  box-shadow: 0 0 18px rgba(168,85,247,.8);
  animation: coreBeat 1.2s ease-in-out infinite;
}
@keyframes coreBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.bot-arm {
  position: absolute;
  top: 18%;
  width: 14px;
  height: 42%;
  background: linear-gradient(180deg, #3b3152, #1b1626);
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,.2);
}
.bot-arm.left { left: -12px; transform: rotate(12deg); animation: armL 2.8s ease-in-out infinite; }
.bot-arm.right { right: -12px; transform: rotate(-12deg); animation: armR 2.8s ease-in-out infinite; }
@keyframes armL {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(22deg); }
}
@keyframes armR {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(-22deg); }
}
.bot-shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 70%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%);
  filter: blur(2px);
}
.bot-caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  font-size: .75rem;
  color: #ddd;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .bot-stage { min-height: 220px; height: 220px; }
  .music-bot { width: min(42%, 160px); }
}




/* ===== Full-width slider + peeking music bot (fixed layout) ===== */
.hero-banner {
  position: relative;
  width: 100%;
  margin: 12px 0 28px;
  padding-top: 36px; /* room for robot peeking above */
}

.hero-banner .ekko-slider,
.ekko-slider-full {
  position: relative;
  width: 100% !important;
  height: clamp(260px, 32vw, 360px) !important;
  min-height: 240px;
  margin: 0 !important;
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
}

/* Hide legacy split leftovers */
.hero-split-play { display: none !important; }

/* Slider content: keep text readable, art on the side */
.hero-banner .ekko-slide {
  padding: 28px 36px;
  padding-left: 160px; /* space so content not under robot */
}
html[dir="rtl"] .hero-banner .ekko-slide {
  padding-left: 36px;
  padding-right: 160px;
}
.hero-banner .ekko-slide-body {
  max-width: min(52%, 520px);
  z-index: 3;
}
.hero-banner .ekko-slide-art {
  width: min(30%, 200px);
  left: 6%;
  z-index: 2;
}
html[dir="rtl"] .hero-banner .ekko-slide-art {
  left: auto;
  right: 6%;
}

/* Nav arrows clean */
.hero-banner .ekko-slider-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 5;
}
.hero-banner .ekko-slider-nav.prev {
  right: 14px;
  left: auto;
  bottom: auto;
}
.hero-banner .ekko-slider-nav.next {
  left: 14px;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(168,85,247,.3);
  border-color: rgba(168,85,247,.45);
}

/* Robot sits on TOP-LEFT corner of slider, overlapping edge */
.bot-peek {
  position: absolute;
  top: 0;
  left: 18px;
  width: 140px;
  height: 160px;
  z-index: 8;
  pointer-events: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}
html[dir="rtl"] .bot-peek {
  left: 18px;
  right: auto;
}

.music-bot-peek {
  position: relative;
  width: 118px !important;
  margin: 0;
  animation: botPeekBob 3.2s ease-in-out infinite !important;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.45));
}
@keyframes botPeekBob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

.music-bot-peek .bot-head {
  width: 84%;
  margin: 0 auto;
}
.music-bot-peek .bot-body {
  width: 90%;
  margin: 6px auto 0;
}

/* Left hand grips top rim of slider */
.grip-hand {
  left: 2px;
  bottom: -2px;
  width: 40px;
  height: 30px;
  z-index: 9;
}
.grip-hand span {
  position: absolute;
  background: linear-gradient(180deg, #4a3d66, #1b1626);
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.grip-hand span:nth-child(1) { width: 30px; height: 12px; left: 0; top: 10px; transform: rotate(-22deg); }
.grip-hand span:nth-child(2) { width: 11px; height: 18px; left: 2px; top: 0; transform: rotate(-12deg); }
.grip-hand span:nth-child(3) { width: 11px; height: 18px; left: 15px; top: 2px; transform: rotate(8deg); }

/* Right hand reaches toward the next arrow (left side of banner) */
.press-hand {
  right: -22px;
  bottom: 36px;
  width: 48px;
  height: 36px;
  transform-origin: 0 50%;
  animation: pressIdle 2.6s ease-in-out infinite;
  z-index: 9;
}
.press-hand span {
  position: absolute;
  background: linear-gradient(180deg, #4a3d66, #1b1626);
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.press-hand span:nth-child(1) {
  width: 38px; height: 13px; left: 0; top: 12px; transform: rotate(18deg);
}
.press-hand span:nth-child(2) {
  width: 13px; height: 16px; left: 28px; top: 0; border-radius: 8px;
}
@keyframes pressIdle {
  0%, 100% { transform: rotate(0deg) translate(0,0); }
  50% { transform: rotate(6deg) translate(4px, 3px); }
}
.press-hand.is-pressing {
  animation: none !important;
  transform: rotate(14deg) translate(12px, 10px) scale(.95);
  transition: transform .16s ease;
}

/* Put NEXT control near robot hand for the story */
.hero-banner .ekko-slider-nav.next {
  left: 150px;
  top: auto;
  bottom: 22px;
  transform: none;
}

.bot-peek .bot-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bot-peek .bot-notes span {
  position: absolute;
  color: rgba(192,132,252,.65);
  animation: noteFloat 4.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(168,85,247,.45);
}
.bot-peek .bot-notes span:nth-child(1) { left: 6px; top: 8px; animation-delay: 0s; }
.bot-peek .bot-notes span:nth-child(2) { right: 4px; top: 28px; animation-delay: .8s; }
.bot-peek .bot-notes span:nth-child(3) { left: 48px; top: 0; animation-delay: 1.4s; }

@media (max-width: 800px) {
  .hero-banner { padding-top: 24px; }
  .bot-peek { width: 100px; height: 120px; left: 8px; }
  .music-bot-peek { width: 88px !important; }
  .hero-banner .ekko-slide {
    padding: 20px !important;
  }
  html[dir="rtl"] .hero-banner .ekko-slide {
    padding: 20px !important;
    padding-right: 110px !important;
  }
  .hero-banner .ekko-slider-nav.next {
    left: 110px;
    bottom: 14px;
    width: 36px;
    height: 36px;
  }
  .hero-banner .ekko-slide-art { display: none; }
}


/* global companion bot */
.bot-global {
  position: fixed;
  top: 88px;
  left: 20px;
  width: 120px;
  height: 140px;
  z-index: 90;
  pointer-events: none;
  transition: top .55s cubic-bezier(.22,1,.36,1), left .55s cubic-bezier(.22,1,.36,1);
  will-change: top, left;
}
.bot-global.is-moving {
  transition: top .55s cubic-bezier(.22,1,.36,1), left .55s cubic-bezier(.22,1,.36,1);
}
.music-bot-global {
  width: 110px !important;
  position: relative;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.5));
  animation: botPeekBob 3.2s ease-in-out infinite !important;
  transform-origin: 50% 100%;
}
.bot-global.is-busy .music-bot-global {
  animation: none !important;
}
.bot-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  max-width: 200px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(20, 12, 32, .92);
  border: 1px solid rgba(168,85,247,.4);
  color: #f3e8ff;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 20px rgba(168,85,247,.2);
  backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}
.bot-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(20, 12, 32, .92);
}
.bot-bubble[hidden] { display: none !important; }

.bot-global .press-hand.is-pressing {
  animation: none !important;
  transform: rotate(14deg) translate(10px, 8px) scale(.95);
  transition: transform .15s ease;
}

/* Don't cover critical mobile nav */
@media (max-width: 720px) {
  .bot-global {
    top: auto;
    bottom: calc(var(--player-h) + 72px);
    left: 8px;
    width: 88px;
    height: 104px;
  }
  .music-bot-global { width: 80px !important; }
  .bot-bubble { min-width: 120px; font-size: .68rem; }
}


/* ===== clean robot hands + slider polish ===== */
.music-bot-global .bot-hand,
.music-bot .bot-hand {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Arms attached to body – simple clean limbs */
.music-bot-global .bot-body {
  position: relative;
}
.music-bot-global .grip-hand,
.music-bot-global .press-hand {
  position: absolute;
  width: 16px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #5b4b7a 0%, #2a2238 100%) !important;
  border: 1px solid rgba(168,85,247,.35) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  top: 8px;
}
.music-bot-global .grip-hand {
  left: -12px;
  transform: rotate(18deg);
  animation: armGrip 3s ease-in-out infinite;
}
.music-bot-global .press-hand {
  right: -12px;
  left: auto;
  transform: rotate(-18deg);
  animation: armPressIdle 2.8s ease-in-out infinite;
}
.music-bot-global .grip-hand span,
.music-bot-global .press-hand span {
  display: none !important; /* hide broken finger blobs */
}

/* little hand pad at end of arm */
.music-bot-global .grip-hand::after,
.music-bot-global .press-hand::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 16px;
  height: 12px;
  margin-left: -8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #6d5b90, #2e2740);
  border: 1px solid rgba(168,85,247,.3);
}
@keyframes armGrip {
  0%, 100% { transform: rotate(16deg) translateY(0); }
  50% { transform: rotate(22deg) translateY(2px); }
}
@keyframes armPressIdle {
  0%, 100% { transform: rotate(-16deg) translateY(0); }
  50% { transform: rotate(-22deg) translateY(2px); }
}
.music-bot-global .press-hand.is-pressing {
  animation: none !important;
  transform: rotate(-6deg) translate(4px, 8px) !important;
}

/* Slider layout cleanup */
.hero-banner {
  padding-top: 8px !important;
  margin-bottom: 24px !important;
}
.hero-banner .ekko-slider {
  overflow: hidden !important;
  border-radius: 22px !important;
}
.hero-banner .ekko-slide {
  padding: 28px 40px !important;
}
html[dir="rtl"] .hero-banner .ekko-slide {
  padding: 28px 40px !important;
}
.hero-banner .ekko-slide-body {
  max-width: min(48%, 480px) !important;
  margin-inline-start: auto;
}
.hero-banner .ekko-slide-art {
  width: min(28%, 190px) !important;
  left: 5% !important;
  right: auto !important;
  opacity: 1 !important;
}
html[dir="rtl"] .hero-banner .ekko-slide-art {
  left: 5% !important;
  right: auto !important;
}
.hero-banner .ekko-slider-nav {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
}
.hero-banner .ekko-slider-nav.prev {
  right: 12px !important;
  left: auto !important;
}
.hero-banner .ekko-slider-nav.next {
  left: 12px !important;
  right: auto !important;
}

/* Home park for bot: top-left of content, not overlapping slider badly */
.bot-global {
  /* default home; JS overrides top/left without !important */
  top: 88px;
  left: 20px;
}


/* ============================================================
   FINAL LAYOUT FIX — sidebar fixed + clean full slider
   ============================================================ */

/* Sidebar always fixed on desktop */
@media (min-width: 901px) {
  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: var(--player-h, 72px) !important;
    left: auto !important;
    width: var(--sidebar-w, 240px) !important;
    z-index: 50 !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(12, 12, 18, 0.92) !important;
    border-left: 1px solid rgba(168, 85, 247, 0.12) !important;
    padding: 16px 12px !important;
  }
  .main {
    margin-right: var(--sidebar-w, 240px) !important;
    margin-left: 0 !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
  }
  .sidebar-footer {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(168,85,247,.12) !important;
  }
  .sidebar-login {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .sidebar-register {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Content width: use full main area */
.content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Hero / slider — clean full width of content */
.hero-banner {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 28px !important;
  padding-top: 0 !important;
}
.hero-banner .ekko-slider,
.ekko-slider-full,
.hero-banner #ekko-slider {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: clamp(250px, 30vw, 340px) !important;
  min-height: 240px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: block !important;
}
.hero-banner .ekko-slider-track {
  width: 100% !important;
  height: 100% !important;
}
.hero-banner .ekko-slide {
  padding: 32px 48px !important;
  align-items: center !important;
}
html[dir="rtl"] .hero-banner .ekko-slide {
  padding: 32px 48px !important;
}
.hero-banner .ekko-slide-body {
  position: relative !important;
  z-index: 3 !important;
  max-width: min(50%, 520px) !important;
  margin: 0 !important;
}
.hero-banner .ekko-slide-title {
  font-size: clamp(1.25rem, 2.6vw, 2rem) !important;
  line-height: 1.25 !important;
}
.hero-banner .ekko-slide-art {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: min(26%, 200px) !important;
  left: 5% !important;
  right: auto !important;
  z-index: 2 !important;
  display: block !important;
  border-radius: 14px !important;
  opacity: 1 !important;
}
html[dir="rtl"] .hero-banner .ekko-slide-art {
  left: 5% !important;
  right: auto !important;
  transform: translateY(-50%) rotate(-3deg) !important;
}
html[dir="ltr"] .hero-banner .ekko-slide-art {
  right: 5% !important;
  left: auto !important;
}

/* Arrows: simple middle sides */
.hero-banner .ekko-slider-nav {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  z-index: 6 !important;
  margin: 0 !important;
}
.hero-banner .ekko-slider-nav.prev {
  right: 14px !important;
  left: auto !important;
}
.hero-banner .ekko-slider-nav.next {
  left: 14px !important;
  right: auto !important;
}
.hero-banner .ekko-slider-dots {
  bottom: 14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* Mobile sidebar stays bottom nav */
@media (max-width: 900px) {
  .sidebar { display: none !important; }
  .main { margin-right: 0 !important; }
  .hero-banner .ekko-slide { padding: 22px 20px !important; }
  .hero-banner .ekko-slide-art { width: 28% !important; opacity: .95 !important; }
}


/* ===== Player page-lock fix ===== */
#np-overlay:not(.is-open),
#np-sheet:not(.is-open),
.np-overlay:not(.is-open),
.np-sheet:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.np-open {
  overflow: hidden;
}
body:not(.np-open) #np-overlay,
body:not(.np-open) #np-sheet {
  display: none !important;
  pointer-events: none !important;
}
/* Sheet should not cover entire desktop when open — keep side clickable via overlay close */
@media (min-width: 901px) {
  #np-sheet.is-open,
  .np-sheet.is-open {
    left: auto !important;
    right: 0 !important;
    width: min(420px, 42vw) !important;
    max-width: 420px !important;
    top: 0 !important;
    bottom: var(--player-h, 72px) !important;
    border-radius: 16px 0 0 16px !important;
    margin: 0 !important;
  }
  #np-overlay.is-open {
    background: rgba(0,0,0,.45) !important;
  }
}
/* yt dock must never steal full-page clicks */
.yt-stage.yt-dock {
  pointer-events: auto;
  max-width: 320px !important;
}
.yt-stage-hidden {
  pointer-events: none !important;
  opacity: 0 !important;
}


/* ===== YTM player hard fix: never block the page ===== */

/* Mini bottom bar — classic YouTube Music */
#player.player,
.player#player {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  height: 72px !important;
  max-height: 72px !important;
  min-height: 72px !important;
  z-index: 60 !important;
  display: none;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 16px !important;
  background: #212121 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35) !important;
  pointer-events: auto !important;
}
#player.player[style*="flex"],
#player.player[style*="display: flex"],
.player#player[style*="flex"] {
  display: flex !important;
}

/* YouTube mini stage MUST stay a small dock — never full page */
body > #yt-stage,
body > .yt-stage,
#yt-stage.yt-dock,
.yt-stage.yt-dock,
#yt-stage.yt-in-np,
.yt-stage.yt-in-np {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(72px + 12px) !important;
  width: min(280px, calc(100vw - 32px)) !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-width: 280px !important;
  max-height: 160px !important;
  border-radius: 12px !important;
  z-index: 58 !important;
  inset: auto !important;
}
#yt-stage.yt-stage-hidden,
.yt-stage.yt-stage-hidden {
  display: none !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* NP sheet: YTM-like full panel, only when open */
#np-sheet.is-open {
  display: flex !important;
  position: fixed !important;
  z-index: 80 !important;
  pointer-events: auto !important;
}
#np-sheet:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
}
#np-overlay:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
}
@media (min-width: 901px) {
  #np-sheet.is-open {
    top: 0 !important;
    bottom: 72px !important;
    right: 0 !important;
    left: auto !important;
    width: min(440px, 40vw) !important;
    max-width: 440px !important;
    border-radius: 0 !important;
    background: #09090c !important;
  }
}
@media (max-width: 900px) {
  #np-sheet.is-open {
    inset: 0 0 72px 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
}

/* Page must remain usable while music plays */
body.np-open {
  overflow: auto !important; /* allow scroll; panel is side drawer on desktop */
}


/* ===== True YTM now-playing layout cleanup ===== */

/* Hide duplicate NP bottom controls on desktop — mini bar is enough */
@media (min-width: 901px) {
  .np-ytm .np-progress-row,
  .np-ytm .np-controls,
  .np-ytm .np-volume-row {
    display: none !important;
  }
  #np-sheet.is-open {
    display: flex !important;
    flex-direction: column !important;
    top: 0 !important;
    bottom: 72px !important;
    right: 0 !important;
    left: auto !important;
    width: min(400px, 38vw) !important;
    background: #0a0a0a !important;
    border-left: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 0 !important;
    z-index: 80 !important;
  }
  .np-body.np-ytm {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 12px 14px 16px !important;
    overflow: hidden !important;
  }
  .np-stage {
    width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
  }
  .np-cover-wrap {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
    margin: 0 0 8px !important;
  }
  .np-side {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    width: 100% !important;
  }
}

/* Single bottom player bar — YTM */
#player.player {
  height: 72px !important;
  max-height: 72px !important;
  z-index: 90 !important;
  background: #212121 !important;
}
#player .player-track { width: 26%; min-width: 160px; }
#player .player-controls { max-width: 560px; }
#player .player-extra { width: 22%; justify-content: flex-end; display: flex; align-items: center; gap: 8px; }

/* Docked video only when NP closed */
#yt-stage.yt-dock {
  position: fixed !important;
  left: 12px !important;
  bottom: 84px !important;
  width: 240px !important;
  max-width: 240px !important;
  max-height: 135px !important;
  aspect-ratio: 16/9 !important;
  z-index: 70 !important;
  border-radius: 10px !important;
}
/* when NP open, geometry comes from JS inline — don't force dock */
#yt-stage.yt-in-np {
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.5) !important;
}

.np-close-x {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
}
