/* ersy — Spotify / Tidal–like streaming UI */
:root {
  --bg: #0c0714;
  --panel: #160d24;
  --panel-2: #1a102c;
  --magenta: #ff2d6f;
  --magenta-hi: #ff4d85;
  --magenta-soft: #ff8fb0;
  --purple: #9b4dff;
  --text: #f5eef8;
  --muted: #a894b8;
  --dim: #7a6a8c;
  --line: rgba(245, 238, 248, 0.1);
  --line-2: rgba(245, 238, 248, 0.16);
  --line-3: rgba(245, 238, 248, 0.32);
  --fill: rgba(245, 238, 248, 0.05);
  --fill-2: rgba(245, 238, 248, 0.1);

  /* Compat aliases for existing inline styles */
  --navy: var(--bg);
  --navy-deep: #080410;
  --navy-panel: var(--panel-2);
  --cream: var(--text);
  --wine: var(--magenta);
  --wine-hi: var(--magenta-hi);
  --rose: var(--magenta);
  --rose-soft: var(--magenta-soft);
  --pale: #d4c4de;
  --body: #c9b8d4;
  --bar-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--magenta-soft);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--magenta);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(155, 77, 255, 0.35);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 45, 111, 0.45);
}

input[type="range"] {
  accent-color: var(--magenta);
}

:focus-visible {
  outline: 2px solid var(--magenta-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes welcomeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes welcomeOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

@keyframes acctIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes acctOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes eqBounce {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes assemble {
  from {
    opacity: 0;
    transform: translate(var(--dx, 100px), var(--dy, 80px)) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes collageShift {
  from {
    transform: translate(28px, -16px) rotate(-1.4deg);
  }
  to {
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

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

/* ─── App shell layout ─────────────────────────────────────────── */
.app-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 290px;
  height: 100vh;
  overflow: hidden;
  padding: 10px 10px 0;
  gap: 10px;
  background: #0c0714;
}

.side-nav,
.main-scroll,
.right-rail {
  border-radius: 14px;
  background: var(--panel);
  min-height: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 16px;
  position: relative;
  z-index: 30;
  overscroll-behavior: contain;
  min-width: 0;
}

.side-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 77, 255, 0.28) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}
.side-nav::-webkit-scrollbar-thumb {
  background: rgba(155, 77, 255, 0.28);
  border-radius: 999px;
}
.side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.main-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  background: #0b0614;
  padding-bottom: calc(var(--bar-h) + var(--bar-inset, 14px) + 72px);
  min-width: 0;
}

.right-rail {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 14px calc(var(--bar-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav-toggle { display: none !important; }

/* ─── YouTube Music–style top bar + drawer ─────────────────────── */
.yt-svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}
.yt-svg-sm {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

.yt-top {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 6px 0 4px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: #000;
  color: #fff;
}

.yt-top-left,
.yt-top-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
  min-width: 0;
}

.yt-top-right {
  margin-left: auto;
}

.yt-ico {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  flex: none;
}
.yt-ico:hover { background: rgba(255, 255, 255, 0.08); }

.yt-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: #fff;
  padding: 0 8px 0 2px;
  cursor: pointer;
  flex: none;
  text-decoration: none;
}
.yt-logo {
  width: 28px;
  height: 28px;
  flex: none;
}
.yt-logo svg { width: 100%; height: 100%; display: block; }
.yt-logo circle { fill: #ff2d6f; }
.yt-logo path { fill: #fff; }
.yt-word {
  font-family: var(--display, "Bricolage Grotesque", sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.yt-open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  margin: 0 6px 0 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  flex: none;
  white-space: nowrap;
  max-width: 26vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-open-app:hover { filter: brightness(0.94); }

.yt-avatar {
  width: 34px;
  height: 34px;
  margin: 0 8px 0 2px;
  border: 0;
  border-radius: 50%;
  background: #5b3a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.yt-avatar-guest {
  background: #2a2a2a;
  color: #fff;
}
.yt-avatar-guest .yt-svg { width: 20px; height: 20px; }
.yt-avatar.on { outline: 2px solid #fff; outline-offset: 2px; }

.yt-bell {
  position: relative;
}
.yt-bell.has { color: var(--magenta-soft, #ff9fbc); }
.yt-bell i {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--magenta, #ff2d6f);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

.yt-acct-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
}

.yt-acct {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px) + 4px);
  right: 10px;
  z-index: 81;
  width: min(280px, calc(100vw - 20px));
  background: #212121;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 8px 0;
  overflow: hidden;
  transform-origin: top right;
  animation: acctIn 0.16s ease;
}

.yt-acct.is-leaving,
.yt-acct-scrim.is-leaving {
  animation: acctOut 0.14s ease forwards;
  pointer-events: none;
}

.yt-acct-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid #3d3d3d;
  margin-bottom: 6px;
}

.yt-acct-who .yt-avatar {
  margin: 0;
  pointer-events: none;
}

.yt-acct-who strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.yt-acct-who em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.yt-acct button,
.yt-acct a {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.yt-acct button:hover,
.yt-acct a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.acct-sheet {
  max-width: 480px;
  width: calc(100vw - 28px);
}

.auth.acct-sheet {
  width: min(480px, calc(100vw - 28px));
  grid-template-columns: 1fr;
  background: #120a1c;
}

.yt-drawer-head {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: -6px -4px 10px;
  padding: 0 0 8px;
}

.yt-new-pl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 8px);
  margin: 4px 4px 16px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #272727;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.yt-new-pl:hover { background: #333; }
.yt-new-pl .yt-svg { width: 20px; height: 20px; }

.yt-auto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  background: none;
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  text-decoration: none;
}
.yt-auto:hover { background: rgba(255, 255, 255, 0.06); }
.yt-auto.on { background: rgba(255, 255, 255, 0.08); }
.yt-auto strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.yt-auto em {
  display: flex;
  align-items: center;
  font-style: normal;
  font-size: 12px;
  color: #aaa;
  font-weight: 400;
}

@media (min-width: 861px) {
  .yt-drawer-close,
  .yt-open-link { display: none; }

  .yt-drawer-head {
    margin: 0 0 8px;
    padding: 2px 4px 12px;
  }

  .side-nav .nav-link .ico .yt-svg {
    width: 22px;
    height: 22px;
  }

  .yt-new-pl {
    background: var(--fill-2);
    color: var(--text);
  }
  .yt-new-pl:hover { background: var(--fill-3, rgba(255,255,255,.1)); }

  .yt-auto {
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
  }
  .yt-auto em { color: var(--dim); }
  .yt-auto.on { background: rgba(255, 45, 111, 0.14); }
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(8, 4, 16, 0.72);
  backdrop-filter: blur(4px);
}

/* Legacy shell padding when frame not used */
.shell {
  min-height: 100vh;
  padding-bottom: 148px;
}

.serif {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta-soft);
}

.section {
  padding: 0 28px 48px;
}

.page {
  padding: 28px 28px 16px;
}

.h-page {
  margin: 8px 0 22px;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h-sec {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Buttons / chips / fields ─────────────────────────────────── */
.btn {
  border: 0;
  background: var(--magenta);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: var(--magenta-hi);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-xs {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
}

.btn-ghost {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  background: var(--fill-2);
  border-color: var(--line-3);
}

a.btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--magenta-soft);
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--text);
}

.btn-quiet-s {
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-quiet-s:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.btn-quiet-s.danger {
  border-color: rgba(255, 45, 111, 0.4);
  color: var(--magenta-soft);
}

.btn-quiet-s.danger:hover {
  background: rgba(255, 45, 111, 0.12);
}

.chip {
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.chip.on {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--text);
  box-shadow: none;
}

.chip-artist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 7px;
}

.chip-artist img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
  flex: none;
}

.pill {
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--muted);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
}

.pill.on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.field {
  width: min(420px, 100%);
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--text);
  outline: none;
}

.field::placeholder {
  color: var(--dim);
}

.field:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 45, 111, 0.18);
}

.heart {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s;
}

.heart:hover {
  border-color: var(--magenta);
  color: var(--magenta-soft);
}

.heart.on {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(255, 45, 111, 0.35);
}

.heart-float {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  background: rgba(12, 7, 20, 0.65);
  color: var(--muted);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.heart-float.on {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--text);
}

/* ─── Side nav ─────────────────────────────────────────────────── */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 4px 6px 18px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.brand-mark .mark,
.brand-mark::before {
  content: none;
}

.brand-mark .logo,
.brand-mark > span.logo,
.brand-mark .plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  box-shadow: 0 0 24px rgba(255, 45, 111, 0.45);
}

.brand-mark strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  font-weight: 600;
  margin-top: 1px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 2px 4px 14px;
}

.side-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex: none;
  padding: 0;
  box-shadow: 0 0 28px rgba(255, 45, 111, 0.5);
  cursor: pointer;
  border: 0;
}

.side-brand .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-brand .brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.side-brand .brand-text span {
  font-size: 11px;
  color: var(--dim);
  font-weight: 600;
}

.side-nav-links,
.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.side-nav a,
.side-nav button.nav-link,
.side-links button,
.side-nav-links button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.side-nav a:hover,
.side-nav button.nav-link:hover,
.side-links button:hover,
.side-nav-links button:hover {
  background: var(--fill-2);
  color: var(--text);
}

.side-nav a.on,
.side-nav button.nav-link.on,
.side-links button.on,
.side-nav-links button.on {
  background: rgba(255, 45, 111, 0.14);
  color: var(--text);
}

.side-nav a .ico,
.side-nav button.nav-link .ico,
.side-links button .ico,
.side-nav-links button .ico,
.nav-ico {
  width: 22px;
  text-align: center;
  font-size: 15px;
  flex: none;
  opacity: 0.9;
}

.side-section {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex: 1;
  min-height: 0;
}

.side-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 10px;
}

.side-section-head span,
.side-section > .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.side-playlists {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-section .pl,
a.pl {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.side-section .pl:hover,
a.pl:hover {
  background: var(--fill-2);
  color: var(--text);
}

.side-section .pl img,
.side-section .thumb,
a.pl img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
  flex: none;
  pointer-events: none;
}

.side-playlist strong,
.side-section .pl strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: inherit;
}

.side-playlist em,
.side-section .pl em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.yt-artist-section {
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.yt-artist-hint {
  margin: 0 10px 8px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.35;
}

.yt-artist-list {
  overflow: visible;
  min-height: 0;
  padding-bottom: 2px;
}

.yt-artist-row img {
  border-radius: 50% !important;
}

.yt-artist-row span {
  min-width: 0;
  flex: 1;
}

.yt-artist-row strong,
.yt-artist-row em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-pl-section {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.side-user {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-user img,
.side-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--magenta);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.side-user .meta {
  min-width: 0;
  flex: 1;
}

.side-user-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.side-admin {
  font-size: 11px;
  font-weight: 700;
  color: var(--magenta-soft);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1;
  flex: none;
}

.side-admin:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.side-user strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user span {
  display: block;
  font-size: 11px;
  color: var(--dim);
}

.side-user button {
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.side-user button:hover {
  color: var(--text);
  border-color: var(--line-3);
}

/* Legacy header (still used if present) */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 64px;
  background: rgba(12, 7, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  cursor: pointer;
  flex: none;
}

.brand span {
  color: var(--magenta);
  font-size: 26px;
  line-height: 0;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
  height: 100%;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button {
  position: relative;
  border: 0;
  background: none;
  color: var(--dim);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  transition: color 0.15s;
}

.nav button:hover {
  color: var(--text);
}

.nav button.on {
  color: var(--text);
}

.nav button i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  display: block;
}

.nav button.on i {
  background: var(--magenta);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex: none;
  transition: 0.15s;
}

.search-btn:hover {
  border-color: var(--line-3);
  color: var(--text);
}

.search-btn kbd {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}

.hdr-out {
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.hdr-out:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.hdr-in {
  border: 0;
  background: var(--magenta);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  box-shadow: 0 6px 22px rgba(255, 45, 111, 0.35);
}

.hdr-in:hover {
  background: var(--magenta-hi);
}

.bell {
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
}

.bell .yt-svg {
  width: 18px;
  height: 18px;
}

.bell:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.bell.has {
  color: var(--magenta-soft);
}

.bell i {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--magenta);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  border: 2px solid #0b0614;
  z-index: 2;
}

/* ─── Home hero + Netflix rows ─────────────────────────────────── */
.home-hero {
  position: relative;
  margin: 16px 16px 8px;
  min-height: min(42vh, 380px);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--panel-2);
  isolation: isolate;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.04);
}

.home-hero-glow {
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 55%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.45), transparent 68%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
  z-index: 1;
}

.home-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 7, 20, 0.92) 0%, rgba(12, 7, 20, 0.55) 48%, rgba(12, 7, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 7, 20, 0.95) 0%, transparent 55%);
  z-index: 1;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 36px 40px;
  max-width: 560px;
}

.home-hero-inner .eyebrow {
  margin-bottom: 10px;
}

.home-hero-inner h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.home-hero-inner p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

.home-hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Legacy hero (compat) */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 40px 28px 36px;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  left: -120px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.4), transparent 68%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pale);
}

.hero-tag b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  display: inline-block;
  box-shadow: 0 0 10px var(--magenta);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero p {
  max-width: 48ch;
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stats b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  background: rgba(245, 238, 248, 0.04);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  min-height: 280px;
  max-height: 480px;
}

.hero-stage .transition {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #110818;
  border-radius: 12px;
  animation: collageShift 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stage.is-assembled .transition {
  opacity: 0;
  transform: translate(-36px, 22px) rotate(-1deg) scale(1.03);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  animation: none;
}

.hero-stage .transition .tile {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a102c;
  background-size: cover;
  background-position: top center;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: assemble 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stage .transition .tile-a {
  width: 28%;
  height: 44%;
  left: 9%;
  top: 16%;
  --dx: 110px;
  --dy: 70px;
  animation-delay: 0.05s;
}

.hero-stage .transition .tile-b {
  width: 24%;
  height: 32%;
  left: 42%;
  top: 7%;
  --dx: -70px;
  --dy: 90px;
  animation-delay: 0.18s;
}

.hero-stage .transition .tile-c {
  width: 22%;
  height: 40%;
  left: 52%;
  top: 42%;
  --dx: 95px;
  --dy: -60px;
  animation-delay: 0.3s;
}

.hero-stage .transition .tile-d {
  width: 26%;
  height: 30%;
  left: 14%;
  top: 62%;
  --dx: -85px;
  --dy: 50px;
  animation-delay: 0.42s;
}

.hero-stage .transition .tile-e {
  width: 18%;
  height: 26%;
  left: 72%;
  top: 18%;
  --dx: 60px;
  --dy: 100px;
  animation-delay: 0.22s;
}

.faces {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  background: #110818;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.08s;
}

.hero-stage.is-assembled .faces {
  opacity: 1;
  pointer-events: auto;
}

.hero-stage.is-assembling .faces {
  opacity: 0;
  pointer-events: none;
}

/* Netflix-style horizontal rows */
.nf-row {
  padding: 8px 0 28px;
  margin: 0 0 8px;
}

.nf-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px 14px;
}

.nf-row-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nf-rail,
.nf-row .rail,
.nf-row .faces {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 18px 28px 36px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.nf-row .faces {
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  border-radius: 0;
  padding: 18px 28px 40px;
  height: auto;
  min-height: 220px;
}

.nf-row .card,
.nf-card {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  height: 240px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  isolation: isolate;
  transform-origin: center center;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faces .card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  isolation: isolate;
  transform-origin: center center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nf-row .card:hover,
.nf-row .card:focus-within,
.nf-row .nf-card:hover,
.nf-row .nf-card:focus-within,
.faces .card:hover,
.faces .card:focus-within {
  transform: scale(1.35);
  z-index: 10;
  border-color: rgba(255, 45, 111, 0.55);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 45, 111, 0.2);
}

.nf-row .card-hit,
.faces .card-hit {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}

.nf-row .card-hit img,
.faces .card-hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.02);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nf-row .card:hover .card-hit img,
.nf-row .card:focus-within .card-hit img,
.faces .card:hover .card-hit img,
.faces .card:focus-within .card-hit img {
  transform: scale(1.08);
}

.nf-row .veil,
.faces .card-hit .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 7, 20, 0.94) 8%,
    rgba(12, 7, 20, 0.2) 48%,
    rgba(12, 7, 20, 0.05) 72%
  );
  pointer-events: none;
}

.nf-row .card-base,
.faces .card-base {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: left;
  z-index: 1;
  transition: opacity 250ms ease;
}

.nf-row .card-base em,
.faces .card-base em {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  font-style: normal;
}

.nf-row .card-base strong,
.faces .card-base strong {
  display: block;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 3px;
  color: var(--text);
}

.nf-row .card:hover .card-base,
.nf-row .card:focus-within .card-base,
.faces .card:hover .card-base,
.faces .card:focus-within .card-base {
  opacity: 0;
}

.nf-row .card-details,
.faces .card-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 12px 12px;
  background: linear-gradient(
    to top,
    rgba(12, 7, 20, 0.97) 0%,
    rgba(12, 7, 20, 0.78) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(12px);
  transition: 300ms ease;
  pointer-events: none;
  text-align: left;
}

.nf-row .card:hover .card-details,
.nf-row .card:focus-within .card-details,
.faces .card:hover .card-details,
.faces .card:focus-within .card-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nf-row .card-details-row,
.faces .card-details-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.nf-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--magenta);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 18px rgba(255, 45, 111, 0.45);
  transition: transform 0.15s, background 0.15s;
}

.nf-play:hover {
  background: var(--magenta-hi);
  transform: scale(1.06);
}

.nf-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: rgba(12, 7, 20, 0.4);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.nf-ico:hover {
  border-color: var(--text);
  background: var(--fill-2);
}

.nf-ico.on {
  color: var(--magenta);
  border-color: var(--magenta);
}

.card-details-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.card-details-meta {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pale);
}

.card-details-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.card-details-genres span {
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--pale);
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Jump-back rail */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.rail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-width: 246px;
  border: 1px solid var(--line);
  background: var(--fill);
  border-radius: 12px;
  padding: 9px 16px 9px 9px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.rail-card:hover {
  background: var(--fill-2);
  border-color: var(--line-3);
}

.rail-card img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  flex: none;
  pointer-events: none;
}

.news-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

a.news-card {
  text-decoration: none;
}

.news-card .news-date {
  flex: none;
  width: 46px;
  text-align: center;
  line-height: 1.05;
}

.news-card .news-date b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.news-card .news-date em {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--dim);
  font-style: normal;
}

.story-page {
  max-width: 720px;
}

.story-hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 220px;
  margin: 16px 0 22px;
  border-radius: 16px;
  overflow: hidden;
  background: #120818;
  isolation: isolate;
}

.story-hero-bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  pointer-events: none;
}

.story-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.5;
}

.story-hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 4, 16, 0.15), rgba(8, 4, 16, 0.55));
}

.story-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 12px;
  margin: 16px;
  background: var(--fill);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.story-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--magenta);
}

.story h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.story-by {
  margin: 10px 0 0;
  color: var(--dim);
}

.story-body {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pale);
}

.story-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .story-hero-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .story-hero {
    width: min(200px, 56vw);
    margin: 18px auto 8px;
  }
}

/* Artist / tile grids */
.grid-artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(245, 238, 248, 0.03);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--line-3);
}

.card-top {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--panel-2);
  border: 0;
  padding: 0;
  display: block;
  cursor: pointer;
  width: 100%;
}

.card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-top .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 7, 20, 0.92) 4%, rgba(12, 7, 20, 0.08) 56%);
}

.card-top .cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  text-align: left;
}

.card-top .cap em {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  display: block;
  font-style: normal;
}

.card-top .cap strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  display: block;
  margin-top: 4px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: auto;
}

.tile {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(245, 238, 248, 0.03);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.tile:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.tile-btn {
  border: 0;
  padding: 0;
  background: var(--panel-2);
  display: block;
  width: 100%;
  cursor: pointer;
}

.tile-btn .sq {
  position: relative;
  aspect-ratio: 1;
}

.tile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tile-cap {
  padding: 12px 14px 14px;
  text-align: left;
}

.tile-cap em {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-style: normal;
}

.tile-cap strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
  color: var(--text);
}

/* Rows / lists */
.rows {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.row {
  background: var(--panel);
  padding: 14px 18px;
}

.datebox {
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 5px 3px;
  line-height: 1;
  background: var(--fill);
}

.datebox em {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--magenta-soft);
  font-style: normal;
}

.datebox b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-top: 3px;
}

.badge {
  border: 1px solid rgba(255, 143, 176, 0.4);
  color: var(--magenta-soft);
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.year-note {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta-soft);
}

/* ─── Artist page (Live / Spotify-style) ───────────────────────── */
.lv-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  min-height: 320px;
  padding: 36px 32px 28px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}

.lv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.15);
  opacity: 0.45;
}

.lv-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 7, 20, 0.2) 0%, rgba(12, 7, 20, 0.85) 100%),
    radial-gradient(ellipse at 20% 60%, rgba(255, 45, 111, 0.22), transparent 55%);
}

.lv-portrait {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(220px, 38vw);
  aspect-ratio: 1;
}

.lv-ring {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.55) 0%, rgba(155, 77, 255, 0.25) 42%, transparent 68%);
  filter: blur(8px);
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.lv-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid rgba(245, 238, 248, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: block;
  background: var(--panel-2);
}

.lv-hero-meta {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-bottom: 6px;
}

.lv-verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lv-verified i,
.lv-verified .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  box-shadow: 0 0 14px rgba(255, 45, 111, 0.55);
}

.lv-hero-meta h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.lv-listeners {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.lv-listeners b {
  color: var(--text);
  font-weight: 800;
}

.lv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

.lv-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--magenta);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 0 rgba(255, 45, 111, 0.4),
    0 10px 32px rgba(255, 45, 111, 0.45);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.lv-play:hover {
  background: var(--magenta-hi);
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(255, 45, 111, 0.55);
}

.lv-follow {
  border: 1px solid var(--line-3);
  background: rgba(12, 7, 20, 0.35);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}

.lv-follow:hover {
  background: var(--fill-2);
  border-color: var(--text);
}

.lv-follow.on {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 6px 20px rgba(255, 45, 111, 0.35);
}

.lv-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(15, 8, 24, 0.92);
  backdrop-filter: blur(14px);
}

.lv-tabs::-webkit-scrollbar {
  display: none;
}

.lv-tabs button {
  position: relative;
  border: 0;
  background: none;
  color: var(--dim);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  flex: none;
  transition: color 0.15s;
}

.lv-tabs button:hover {
  color: var(--text);
}

.lv-tabs button.on {
  color: var(--text);
}

.lv-tabs button.on::after,
.lv-tabs button i {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  display: block;
}

.lv-tabs button.on::after,
.lv-tabs button.on i {
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 45, 111, 0.6);
}

.lv-body {
  padding: 24px 28px 40px;
  display: grid;
  gap: 28px;
}

.lv-album {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 45, 111, 0.12), rgba(155, 77, 255, 0.08));
  border: 1px solid var(--line);
}

.lv-album-cover {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.lv-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lv-album-meta .label {
  margin-bottom: 6px;
}

.lv-album-meta h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lv-album-meta p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.lv-album-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Track table */
.lv-tracks {
  width: 100%;
  border-collapse: collapse;
}

.lv-tracks thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}

.lv-tracks thead th:first-child {
  width: 40px;
  text-align: center;
  padding-left: 8px;
}

.lv-tracks thead th:last-child {
  text-align: right;
  width: 72px;
}

.lv-tracks tbody tr {
  border-radius: 10px;
  transition: background 0.15s;
}

.lv-tracks tbody tr:hover {
  background: var(--fill-2);
}

.lv-tracks tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 14px;
}

.lv-tracks tbody td:first-child {
  text-align: center;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  width: 40px;
  padding-left: 8px;
}

.lv-tracks tbody td:last-child {
  text-align: right;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.lv-tracks .t-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lv-tracks .t-title img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: var(--panel-2);
}

.lv-tracks .t-title button,
.lv-tracks .t-title strong {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.lv-tracks .t-title span {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
  font-weight: 500;
}

.lv-tracks tr.playing {
  background: rgba(255, 45, 111, 0.12);
}

.lv-tracks tr.playing td:first-child,
.lv-tracks tr.playing .t-title button,
.lv-tracks tr.playing .t-title strong {
  color: var(--magenta);
}

.lv-tracks tr.playing .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.lv-tracks .eq {
  display: none;
}

.lv-tracks tr.playing .eq span,
.eq span {
  width: 3px;
  height: 100%;
  background: var(--magenta);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eqBounce 0.9s ease-in-out infinite;
}

.lv-tracks tr.playing .eq span:nth-child(2),
.eq span:nth-child(2) {
  animation-delay: 0.15s;
}

.lv-tracks tr.playing .eq span:nth-child(3),
.eq span:nth-child(3) {
  animation-delay: 0.3s;
}

.lv-tracks tr.playing .num {
  display: none;
}

/* Legacy track rows */
.grid-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.album-art {
  position: relative;
  aspect-ratio: 1.5;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}

.album-art.has-art .art,
.album-art img.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}

.album-art img:not(.art) {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(245, 238, 248, 0.7);
  z-index: 2;
}

.album-art b {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.track {
  display: grid;
  grid-template-columns: 20px 1fr auto auto auto;
  gap: 11px;
  align-items: center;
  border-radius: 10px;
  padding: 8px 10px;
}

.track.playing {
  background: rgba(255, 45, 111, 0.14);
}

.track.playing button.t {
  color: var(--magenta);
}

.track n {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.track button.t {
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.track .h {
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
}

.track .h.on {
  color: var(--magenta);
}

.track .d {
  font-size: 11.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.track .muted {
  color: var(--dim);
  cursor: not-allowed;
}

.t-vid {
  border: 1px solid rgba(255, 143, 176, 0.4);
  background: none;
  color: var(--magenta-soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
  transition: 0.15s;
}

.t-vid:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--text);
}

.track-more {
  margin-top: 6px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.15s;
}

.track-more:hover {
  color: var(--text);
  border-color: var(--line-3);
  background: var(--fill);
}

.link-out {
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.link-out:hover {
  border-color: var(--magenta);
  color: var(--magenta-soft);
}

/* Legacy artist profile */
.prof {
  position: relative;
  min-height: min(52vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.prof-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
}

.prof-wash {
  position: absolute;
  inset: 0;
  background: var(--accent, var(--magenta));
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.prof-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 2%,
    rgba(12, 7, 20, 0.82) 34%,
    rgba(12, 7, 20, 0.28) 68%,
    rgba(12, 7, 20, 0.5) 100%
  );
}

.prof-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 28px 32px;
  max-width: 960px;
}

.prof-back {
  border: 1px solid var(--line-3);
  background: rgba(12, 7, 20, 0.4);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  margin-bottom: 18px;
}

.prof-back:hover {
  background: var(--fill-2);
}

.prof-inner h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text);
}

.prof-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.prof-stats b {
  font-weight: 800;
  color: var(--text);
}

.prof-blurb {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pale);
}

.prof-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.act {
  border: 1px solid var(--line-3);
  background: rgba(12, 7, 20, 0.4);
  color: var(--text);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}

.act:hover {
  background: var(--fill-2);
}

.act-primary {
  background: var(--magenta);
  color: var(--text);
  border-color: var(--magenta);
  box-shadow: 0 8px 24px rgba(255, 45, 111, 0.4);
}

.act-primary:hover {
  background: var(--magenta-hi);
}

.act-on {
  background: var(--magenta);
  border-color: var(--magenta);
}

.prof-tabs {
  display: flex;
  gap: 2px;
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prof-tabs::-webkit-scrollbar {
  display: none;
}

.prof-tabs button {
  position: relative;
  border: 0;
  background: none;
  color: var(--dim);
  padding: 0 14px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  flex: none;
}

.prof-tabs button:first-child {
  padding-left: 0;
}

.prof-tabs button:hover {
  color: var(--text);
}

.prof-tabs button.on {
  color: var(--text);
}

.prof-tabs button i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  display: block;
}

.prof-tabs button:first-child i {
  left: 0;
}

.prof-tabs button.on i {
  background: var(--magenta);
}

.prof-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  padding: 28px 28px 64px;
}

.prof-h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.035em;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prof-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  max-width: 72ch;
  text-wrap: pretty;
}

.facts {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 16px;
}

.facts dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

.facts dt:first-of-type {
  margin-top: 0;
}

.facts dd {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

table.awards {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.awards th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

table.awards td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  vertical-align: top;
}

table.awards td.won {
  color: var(--magenta-soft);
  font-weight: 700;
}

.prof-sticky {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 28px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  background: #0b0614;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.prof-sticky.show {
  height: 58px;
  opacity: 1;
}

.prof-sticky-id {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  flex: none;
}

.prof-sticky-id img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
}

.prof-sticky-id strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prof-sticky-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.prof-sticky-tabs::-webkit-scrollbar {
  display: none;
}

.prof-sticky-tabs .pill {
  padding: 6px 14px;
  font-size: 12.5px;
  white-space: nowrap;
  flex: none;
}

.prof-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  border: 1px solid var(--line-3);
  background: rgba(12, 7, 20, 0.55);
  backdrop-filter: blur(8px);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.prof-nav:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}

.prof-nav.prev {
  left: 16px;
}

.prof-nav.next {
  right: 16px;
}

.prof-nav-arrow {
  font-size: 26px;
  line-height: 1;
  margin-top: -3px;
}

.prof-nav-tip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
  pointer-events: none;
}

.prof-nav.prev .prof-nav-tip {
  left: calc(100% + 10px);
}

.prof-nav.next .prof-nav-tip {
  right: calc(100% + 10px);
}

.prof-nav:hover .prof-nav-tip,
.prof-nav:focus-visible .prof-nav-tip {
  opacity: 1;
  visibility: visible;
}

.prof-nav-tip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
  flex: none;
}

.prof-nav-tip em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.prof-nav-tip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2px;
}

.toptracks {
  padding: 24px 28px 8px;
  max-width: 900px;
}

.toptracks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.toptracks-head h2,
.toptracks-head span {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.toptracks-all {
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--text);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  flex: none;
}

.toptracks-all:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}

.toptracks ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toptrack {
  display: grid;
  grid-template-columns: 26px 56px minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  padding: 8px 12px 8px 4px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}

.toptrack:hover {
  background: var(--fill-2);
}

.toptrack-n {
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.toptrack-art {
  position: relative;
  width: 56px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-2);
  display: block;
}

.toptrack-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.toptrack-art em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  color: var(--text);
  background: rgba(12, 7, 20, 0.55);
  opacity: 0;
  transition: opacity 0.15s;
}

.toptrack:hover .toptrack-art em {
  opacity: 1;
}

.toptrack-title {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toptrack-artist {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toptrack-views {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ─── Right rail ───────────────────────────────────────────────── */
.right-rail .label,
.rail-block .label {
  display: block;
  margin-bottom: 12px;
}

.related {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item,
.related button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.related-item:hover,
.related button:hover {
  background: var(--fill-2);
}

.related img,
.related-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
  flex: none;
  border: 2px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-item:hover img,
.related button:hover img {
  border-color: var(--magenta);
  box-shadow: 0 0 18px rgba(255, 45, 111, 0.35);
}

.related strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

.shop-card,
.shop-list .shop-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.shop-card:hover {
  border-color: rgba(255, 45, 111, 0.45);
  background: var(--fill-2);
  transform: translateY(-1px);
}

.shop-card img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}

.shop-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.shop-card span {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
}

.shop-card .price {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--magenta-soft);
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vid-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-top: 0;
}

.vid-rail::-webkit-scrollbar { display: none; }

.vid-rail .vid-wrap {
  flex: 0 0 min(260px, 72vw);
  width: min(260px, 72vw);
  max-width: 280px;
  scroll-snap-align: start;
}

.vid-shelf-body {
  margin-top: 0;
}

/* Videos */
.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.vid {
  border: 1px solid var(--line);
  background: rgba(245, 238, 248, 0.03);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.vid:hover {
  border-color: var(--line-3);
  transform: none;
}

.vid .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
}

.vid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vid .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--magenta);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(255, 45, 111, 0.45);
  opacity: 0.92;
}

.vid .meta {
  padding: 12px 14px 14px;
}

.vid-wrap {
  position: relative;
}

.vid-wrap .vid {
  width: 100%;
}

.vid-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 7, 20, 0.72);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.vid-wrap:hover .vid-add,
.vid-add:focus-visible {
  opacity: 1;
}

.vid-add:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}

@media (hover: none) {
  .vid-add {
    opacity: 1;
  }
}

.vid-shelf {
  margin-top: 32px;
}

.vid-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.vid-shelf-artist {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.vid-shelf-artist img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
  flex: none;
}

.vid-shelf-artist strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.vid-shelf-artist em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}

.vid-shelf-artist:hover strong {
  color: var(--magenta-soft);
}

/* Playlists */
.playlist {
  border: 1px solid var(--line);
  background: rgba(245, 238, 248, 0.03);
  border-radius: 14px;
  padding: 16px;
}

.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.playlist-head strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.playlist-head em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}

.playlist-items {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.playlist-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  padding: 9px 12px;
}

.playlist-row img {
  width: 64px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.picker {
  width: min(460px, 100%);
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.18s ease-out;
}

.picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.picker-head h3 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.picker-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  max-height: 40vh;
  overflow-y: auto;
}

.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: var(--navy-deep);
  color: var(--text);
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.picker-row:hover {
  background: var(--fill-2);
}

.picker-row em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 700;
  white-space: nowrap;
}

.picker-new {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.picker-new .field {
  flex: 1;
  min-width: 180px;
}

/* Empty */
.empty {
  border: 1px solid var(--line);
  background: rgba(245, 238, 248, 0.03);
  border-radius: 16px;
  padding: 52px 32px;
  text-align: center;
  max-width: 620px;
}

.empty .mark {
  font-size: 36px;
  color: var(--magenta);
}

.empty h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}

.empty p {
  margin: 10px auto 22px;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Overlays ─────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 16, 0.78);
  z-index: 280;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: overlayIn 0.2s ease;
}

.overlay.is-leaving {
  animation: overlayOut 0.16s ease forwards;
  pointer-events: none;
}

.overlay.is-leaving .welcome {
  animation: welcomeOut 0.16s ease forwards;
}

.cmd-wrap {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(8, 4, 16, 0.78);
  display: flex;
  justify-content: center;
  padding: 12vh 20px 20px;
}

.cmd {
  width: min(660px, 100%);
  height: fit-content;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.18s ease-out;
}

.cmd-top {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cmd-top input {
  flex: 1;
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.cmd-res {
  overflow: auto;
  padding: 8px;
}

.cmd-res button {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  padding: 10px 11px;
  border-radius: 10px;
  cursor: pointer;
}

.cmd-res button:hover,
.cmd-res button.sel {
  background: var(--fill-2);
}

.cmd-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: var(--magenta);
  color: var(--text);
  overflow: hidden;
  padding: 0;
}

.cmd-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.auth {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--text);
  border-radius: 20px;
  overflow: hidden;
  max-height: 92vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.18s ease-out;
}

.auth-art {
  position: relative;
  background: var(--panel-2);
}

.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.auth-art .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 45, 111, 0.45), rgba(12, 7, 20, 0.9));
}

.auth-art .cap {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 340px;
}

.auth-art .cap b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 10px;
  color: var(--text);
}

.auth-form {
  padding: 32px 34px 34px;
  overflow: auto;
  color: #1a102c;
}

.auth-form h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-form .sub {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6a5a7a;
  max-width: 40ch;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a5a7a;
}

.auth-form input {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(26, 16, 44, 0.2);
  background: #fff;
  color: #1a102c;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 45, 111, 0.18);
}

.auth-x {
  border: 1px solid rgba(26, 16, 44, 0.2);
  background: none;
  color: #6a5a7a;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.auth-submit {
  width: 100%;
  margin-top: 22px;
  border: 0;
  background: var(--magenta);
  color: var(--text);
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 45, 111, 0.35);
  transition: background 0.15s;
}

.auth-submit:hover {
  background: var(--magenta-hi);
}

.auth-switch {
  border: 0;
  background: none;
  color: var(--magenta);
  font-weight: 800;
  font-size: 13.5px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.auth-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 16, 44, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: #6a5a7a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 24px);
  transform: translateX(-50%);
  z-index: 240;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 600;
  max-width: min(calc(100vw - 32px), 420px);
  text-align: center;
  line-height: 1.35;
  box-shadow: none;
  animation: riseIn 0.2s ease-out;
}

.notes-wrap {
  position: fixed;
  inset: 0;
  z-index: 75;
}

.notes {
  position: absolute;
  right: max(16px, 2vw);
  top: 72px;
  width: min(390px, calc(100vw - 32px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.16s ease-out;
}

.notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.notes-head strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.notes-list {
  overflow-y: auto;
}

.note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.note:last-child {
  border-bottom: 0;
}

.note:hover {
  background: var(--fill-2);
}

.note.unread {
  background: rgba(255, 45, 111, 0.08);
}

.note.unread:hover {
  background: rgba(255, 45, 111, 0.14);
}

.note img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
}

.note-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--magenta);
  display: block;
}

.note-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.note-body {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.note-time {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}

.notes-empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.notes-guest {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  text-align: center;
}

.side-login {
  flex: 1;
  min-width: 0;
}

/* Desktop top chrome — search + notifications beside account */
.desk-top {
  display: none;
  position: sticky;
  top: -1px;
  z-index: 25;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 16px;
  margin: 0;
  background: #0b0614;
  backdrop-filter: none;
}

.desk-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.desk-search:hover {
  border-color: var(--line-3);
  color: var(--text);
  background: var(--fill-2);
}

.desk-search .yt-svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.desk-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.desk-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  overflow: visible;
}

.desk-acct {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.desk-acct:hover,
.desk-acct.on {
  border-color: var(--line-3);
  background: var(--fill-2);
}

.desk-acct .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.desk-acct-guest .yt-svg {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

.desk-acct-name {
  font-size: 13.5px;
  font-weight: 650;
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 4px;
}

@media (min-width: 861px) {
  .desk-top { display: flex; }

  .side-user { display: none; }

  .notes {
    top: 78px;
    right: max(20px, calc((100vw - min(100vw, 1440px)) / 2 + 24px));
  }

  .yt-acct {
    top: 70px;
    right: max(24px, calc((100vw - min(100vw, 1440px)) / 2 + 28px));
  }
}

/* ─── Player bar ───────────────────────────────────────────────── */
.player-dock {
  position: contents;
}

.bar,
.bar.ersy-playbar {
  --orb: linear-gradient(160deg, #3a3a42 0%, #1c1c22 55%, #121216 100%);
  --orb-hi: linear-gradient(160deg, #4a4a55 0%, #26262e 55%, #17171c 100%);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 12px;
  min-height: var(--bar-h, 96px);
  background: #0a0a0c;
  backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

.bar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.bar .left,
.bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.bar .center,
.bar-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  flex: none;
}

.bar .right,
.bar-right {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  min-width: max-content;
  flex: none;
  flex-shrink: 0;
}

.bar-orb {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #f3f3f5;
  background: var(--orb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  flex: none;
  transition: transform 0.12s ease, filter 0.12s ease, color 0.12s ease;
}

.bar-orb:hover {
  background: var(--orb-hi);
  transform: translateY(-1px);
}

.bar-orb.on,
.bar-orb.device-on {
  color: #ff2d6f;
}

.bar-orb .yt-svg {
  width: 16px;
  height: 16px;
}

.bar-save {
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bar-play {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 35% 30%, #ff6b9a, #ff2d6f 55%, #d11755) !important;
  color: #fff !important;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(255, 45, 111, 0.35),
    0 0 22px rgba(255, 45, 111, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.15s, filter 0.15s;
}

.bar-play:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.bar-play .yt-svg {
  width: 18px;
  height: 18px;
}

.bar-transport {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-seek {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bar-seek .seek {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
  flex: 1;
}

.bar-seek .seek i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: #ff2d6f;
  display: block;
}

.bar-seek .seek:hover i {
  background: #ff4f86;
  box-shadow: 0 0 10px rgba(255, 45, 111, 0.5);
}

.bar-seek .time {
  font-size: 11px;
  color: #9a9aa3;
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}

.bar-seek .time:last-child {
  text-align: right;
}

.bar-dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ff2d6f;
}

.bar-device-wrap {
  position: relative;
}

.device-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 12px;
  background: #282828;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 8px;
  z-index: 70;
}

.device-pop > strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 2px 6px 8px;
}

.device-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.device-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.device-row.on {
  color: #ff2d6f;
}

.device-row span:first-child {
  display: grid;
  place-items: center;
}

.device-row span:first-child .yt-svg {
  width: 18px;
  height: 18px;
}

.device-row b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.device-row em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: #b3b3b3;
}

.device-row.on em {
  color: rgba(255, 45, 111, 0.85);
}

.device-note {
  margin: 4px 6px 0;
  font-size: 11px;
  line-height: 1.4;
  color: #a7a7a7;
}

.bar .disc {
  width: 48px;
  height: 48px;
  flex: none;
}

.bar .disc img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: #1a1a20;
  display: block;
}

.bar-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.bar-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.bar-meta > .trunc,
.bar-meta span {
  font-size: 12px;
  color: #9a9aa3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.bar-artist {
  color: inherit;
  text-decoration: none;
}

a.bar-artist:hover {
  color: #fff;
  text-decoration: underline;
}

.bar-btn {
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.15s;
}

.bar-btn:hover {
  color: var(--text);
}

.bar-btn.on {
  color: var(--magenta);
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 42vw);
}

.seek {
  height: 5px;
  border-radius: 99px;
  background: rgba(245, 238, 248, 0.16);
  cursor: pointer;
  position: relative;
  flex: 1;
}

.seek i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--magenta);
  display: block;
}

.seek:hover i {
  background: var(--magenta-hi);
  box-shadow: 0 0 10px rgba(255, 45, 111, 0.5);
}

.time {
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .bar-save {
    display: none;
  }
  .bar-orb {
    width: 36px;
    height: 36px;
  }
  .bar-play {
    width: 46px !important;
    height: 46px !important;
  }
}

.disc img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: var(--panel-2);
}

.disc.spin img {
  border-radius: 50%;
  animation: spin 7s linear infinite;
}

.disc i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--bg);
  display: none;
}

.disc.spin i {
  display: block;
}

.disc {
  position: relative;
  flex: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.vol {
  width: 90px;
  height: 4px;
  border-radius: 99px;
  background: rgba(245, 238, 248, 0.16);
  cursor: pointer;
  position: relative;
}

.vol i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--text);
  display: block;
}

.queue {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bar-h) + 12px);
  z-index: 61;
  width: min(380px, calc(100vw - 32px));
  max-height: 58vh;
  overflow: auto;
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: riseIn 0.18s ease-out;
  padding: 10px 0 12px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 14px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.queue-head-acts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-section {
  padding: 6px 8px 10px;
}

.q-label,
.q-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.queue-row,
.queue-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
}

.queue-row.on,
.queue-row:hover,
.queue-main:hover {
  background: var(--fill-2);
}

.queue-row.on {
  background: rgba(255, 45, 111, 0.18);
  color: var(--magenta-soft);
}

.queue-row img,
.queue-main img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.queue-row strong,
.queue-main strong {
  display: block;
  font-size: 13px;
}

.queue-row em,
.queue-main em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
}

.queue-row.q-edit,
.np-qrow.q-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 2px 4px;
}

.q-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.q-tools button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}

.q-tools button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.q-tools button:disabled {
  opacity: 0.25;
  cursor: default;
}

.queue-empty {
  margin: 0;
  padding: 8px 12px 4px;
  font-size: 13px;
  color: var(--dim);
}

.np-qmain {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  min-width: 0;
  width: 100%;
}

.np-qmain:hover {
  background: rgba(255, 255, 255, 0.05);
}

.np-qmain img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

/* ─── Video host ───────────────────────────────────────────────── */
.vh {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.vh.mini {
  z-index: 260;
}

.vh:not(.audio):not(.mini):not(.full) {
  display: none;
}

.vh[hidden] {
  display: none;
}

.vh .vh-box {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  width: min(760px, calc(100vw - 36px));
  pointer-events: auto;
  background: var(--navy-deep);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.vh .vh-grip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vh .vh-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.vh .vh-meta img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  flex: none;
}

.vh .vh-text {
  min-width: 0;
}

.vh .vh-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh .vh-text em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh .vh-transport,
.vh .vh-seekrow {
  display: none;
}

.vh .vh-controls {
  display: flex;
  gap: 7px;
  flex: none;
}

.vh .vh-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.42), transparent 38%),
    radial-gradient(circle at 70% 88%, rgba(0, 0, 0, 0.35), transparent 42%),
    linear-gradient(165deg, rgba(70, 58, 82, 0.95), rgba(16, 10, 22, 0.92));
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -6px 10px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.vh .vh-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.vh .vh-btn::after {
  content: '';
  position: absolute;
  inset: 3px 7px auto 7px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.vh .vh-btn:hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
}

.vh .vh-btn:active {
  transform: translateY(1px) scale(0.96);
}

.vh .vh-btn.on {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.62), transparent 36%),
    radial-gradient(circle at 70% 90%, rgba(120, 0, 40, 0.45), transparent 44%),
    linear-gradient(165deg, #ff7aa6, #d50f52);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 10px 22px rgba(255, 45, 111, 0.48),
    0 0 0 3px rgba(255, 45, 111, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -6px 10px rgba(120, 0, 40, 0.28);
}

.vh .vh-dots {
  display: none;
}

.vh-now-head,
.vh-art {
  display: none;
}

.vh.mini .bar-tint,
.vh.full .bar-tint,
.vh-mode-pill,
.vh-expand-grip,
.vh .vh-dots {
  display: none !important;
}

.vh-stage {
  display: contents;
}

.vh.full [data-vh-max] {
  display: none;
}

/* YouTube Music–style now playing when Show video is open */
.vh.full {
  pointer-events: auto;
  z-index: 240;
  background: rgba(5, 3, 10, 0.55);
}

.vh.full .vh-box {
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 45, 111, 0.18), transparent 55%),
    #120810;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto minmax(0, auto);
  grid-template-areas:
    "head"
    "stage"
    "meta"
    "transport"
    "seek"
    "lyrics"
    "panel";
  gap: 12px 0;
  box-shadow: none;
  overflow: hidden;
}

.vh.full .vh-now-head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px;
  position: relative;
  z-index: 6;
}

.vh-head-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.vh-bottom-tools {
  display: none;
}

.vh.full .vh-collapse {
  border-radius: 50%;
  font-size: 20px;
  line-height: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vh-mode-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 92px;
  padding: 3px 5px 3px 3px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vh-mode-pill button {
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  display: grid;
  place-items: center;
}

.vh-mode-pill button.on {
  color: #fff;
}

.vh-island-song {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: #1a1a1a !important;
}

.vh-island-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.vh-mode-pill .vh-island-song.on {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.vh.full .vh-stage {
  grid-area: stage;
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
}

.vh.full .vh-art,
.vh.full iframe {
  grid-area: 1 / 1;
}

.vh.full .vh-art {
  display: block;
  width: min(72vw, 420px);
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
  background: #1a1020;
}

.vh.full iframe {
  width: min(100%, 920px);
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  z-index: 2;
}

.vh.full.face-video .vh-stage {
  width: 100%;
  align-self: stretch;
}

.vh.full.face-video iframe {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: min(58vh, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.vh.full.face-song iframe {
  opacity: 0;
  pointer-events: none;
  width: min(72vw, 420px);
  aspect-ratio: 1;
  z-index: 0;
}

.vh.full.face-video .vh-art {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.vh.full .vh-grip {
  display: contents;
}

.vh.full .vh-dots,
.vh.full .vh-controls {
  display: none;
}

.vh.full .vh-meta {
  grid-area: meta;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.vh.full .vh-meta img {
  display: none;
}

.vh.full .vh-text {
  width: 100%;
}

.vh.full .vh-text strong {
  font-size: 26px;
  letter-spacing: -0.04em;
  white-space: normal;
}

.vh.full .vh-text em {
  font-size: 15px;
}

.vh.full .vh-transport {
  grid-area: transport;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  justify-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vh.full .vh-seekrow {
  grid-area: seek;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0;
}

.vh-lyrics-live {
  display: none;
}

.vh.full .vh-lyrics-live {
  grid-area: lyrics;
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 4px 16px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  cursor: default;
  touch-action: manipulation;
}

.vh.full.has-panel .vh-lyrics-live {
  display: none;
}

.vh.full .vh-lyric-on {
  display: block;
  max-width: 36rem;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
}

.vh.full .vh-lyric-next {
  display: block;
  max-width: 36rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.4);
}

.vh.mini .vh-lyrics-live,
.vh.audio .vh-lyrics-live {
  display: none !important;
}

.vh.full .vh-bottom-tools {
  display: none !important;
}

.vh.full .vh-panel {
  grid-area: panel;
  min-height: 0;
  max-height: 32vh;
  overflow-y: auto;
  padding: 0 8px 8px;
  -webkit-overflow-scrolling: touch;
}

.vh.full .vh-panel[hidden] {
  display: none !important;
}

.vh.full.has-panel .vh-stage,
.vh.has-panel.full .vh-stage {
  max-height: 36vh;
}

.vh-panel-head {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.vh-panel-empty {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.vh-qrow {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.vh-qrow:hover,
.vh-qrow.on {
  background: rgba(255, 255, 255, 0.06);
}

.vh-qrow strong {
  font-size: 14px;
  font-weight: 650;
}

.vh-qrow em {
  font-size: 12px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.vh.full #np-lyrics-body .np-lyrics-line {
  font-size: 20px;
}

.vh.full .vh-play-main {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fff 0%, #f6f6f6 40%, #dedede 100%);
  color: #141018;
  border: 0;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.46),
    0 0 0 6px rgba(255, 255, 255, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -5px 8px rgba(0, 0, 0, 0.12);
}

.vh.full .vh-play-main svg {
  width: 24px;
  height: 24px;
  filter: none;
}

.vh.full .vh-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.vh.full .vh-btn svg {
  width: 18px;
  height: 18px;
}

.vh iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
  display: block;
}

.vh.mini {
  pointer-events: none;
  background: transparent !important;
  z-index: 260;
}

.vh.mini .vh-box {
  left: auto;
  right: 16px;
  top: auto;
  bottom: 16px;
  transform: none;
  width: 280px;
  height: auto !important;
  min-width: 220px;
  min-height: 0;
  max-width: none;
  max-height: none;
  background: #120810;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  position: fixed;
  z-index: 261;
  pointer-events: auto;
  touch-action: auto;
}

.vh.mini .vh-grip {
  background: #160d18;
  margin: 0;
  padding: 10px 12px 12px;
  gap: 8px;
  flex: none !important;
  flex-wrap: nowrap;
  order: 2;
  align-items: center;
  position: relative;
  z-index: 8;
  isolation: isolate;
}

.vh.mini .vh-dots,
.vh.mini .vh-meta img,
.vh.mini .vh-controls,
.vh.mini .vh-seekrow,
.vh.mini .vh-transport > :not([data-vh-play]) {
  display: none !important;
}

.vh.mini .vh-meta {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
}

.vh.mini .vh-center {
  display: contents;
}

.vh.mini .vh-text strong {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}

.vh.mini .vh-text em {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.vh.mini .vh-transport {
  display: flex !important;
  align-items: center;
  margin: 0;
  gap: 0;
  flex: none;
}

.vh.mini .vh-play-main,
.vh.mini .vh-btn {
  width: 40px;
  height: 40px;
  font-size: 12px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  pointer-events: auto !important;
  touch-action: manipulation;
  position: relative;
  z-index: 20;
}

.vh.mini .vh-play-main {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
}

.vh.mini .vh-now-head .vh-btn::after,
.vh.mini .vh-play-main::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -10px;
}

.vh.mini {
  z-index: 260;
}

.vh.mini [data-vh-lyrics],
.vh.mini [data-vh-queue],
.vh.mini .vh-panel,
.vh.mini .vh-bottom-tools {
  display: none !important;
}

.vh.mini .vh-now-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  flex: none !important;
  order: 0;
  background: #120810;
  cursor: grab;
  touch-action: auto;
  position: relative;
  z-index: 8;
  isolation: isolate;
}

.vh.mini .vh-head-tools {
  margin-left: auto;
}

.vh.mini .vh-now-head .vh-btn {
  width: 36px;
  height: 36px;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.vh.mini .vh-stage {
  display: block !important;
  flex: none !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
  order: 1;
  background: #1a1020;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.vh.mini .vh-drag {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
}

.vh.is-dragging .vh-drag {
  cursor: grabbing;
}

.vh:not(.mini) .vh-drag {
  display: none;
}

.vh.mini iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  pointer-events: none !important;
  border: 0;
  margin: 0;
  z-index: 1;
}

.vh.mini.no-clip iframe {
  width: 1px !important;
  height: 1px !important;
  left: -9999px !important;
  inset: auto !important;
  opacity: 0 !important;
}

.vh.mini .vh-art {
  display: none !important;
}

.vh.mini.no-clip .vh-art {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 1 !important;
  z-index: 1;
  pointer-events: none;
}

.vh.mini .vh-resize {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.45) 46%, rgba(255, 255, 255, 0.45) 54%, transparent 54%),
    linear-gradient(135deg, transparent 62%, rgba(255, 255, 255, 0.9) 62%, rgba(255, 255, 255, 0.9) 70%, transparent 70%);
  cursor: nwse-resize;
  z-index: 4;
  touch-action: none;
}

.vh.mini .vh-resize::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
}

.vh.mini .vh-resize:hover,
.vh.is-resizing .vh-resize {
  background:
    linear-gradient(135deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(135deg, transparent 62%, #fff 62%, #fff 70%, transparent 70%);
}

.vh:not(.mini) .vh-resize {
  display: none;
}

.vh.audio .vh-box {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: 100%;
  /* Soft shell + radius owned by player-bar.css */
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.device-pop-fixed {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bar-h, 96px) + 14px);
  z-index: 80;
}

.vh .vh-controls .yt-svg {
  width: 15px;
  height: 15px;
}

.vh .vh-btn .bar-dot {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ff2d6f;
}

.vh.audio .vh-controls {
  grid-area: controls;
  justify-content: flex-end;
  min-width: max-content;
  flex-shrink: 0;
  gap: 8px;
}

.vh.audio .vh-grip {
  margin: 0;
  display: grid;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "meta transport controls" "seek seek seek";
}

.vh.audio .vh-meta {
  grid-area: meta;
  min-width: 0;
}

.vh.audio .vh-meta img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.vh.audio .vh-transport {
  grid-area: transport;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.vh.audio .vh-seekrow {
  grid-area: seek;
  display: flex;
  align-items: center;
  gap: 11px;
}

.vh.audio .vh-play-main {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(180deg, #ff6b9a, #e0185c);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
  box-shadow:
    0 8px 20px rgba(255, 45, 111, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.vh.audio .vh-play-main:hover {
  filter: brightness(1.08);
}

.vh.audio [data-vh-min] {
  display: none;
}

.vh.audio .vh-dots {
  display: none;
}

.vh.audio iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
  border-radius: 0;
}

.vh .vh-seek {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(245, 238, 248, 0.16);
  cursor: pointer;
  position: relative;
}

.vh .vh-seek i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--magenta);
  display: block;
  width: 0;
}

.vh .vh-seek:hover i {
  background: var(--magenta-hi);
}

.vh .vh-time {
  font-size: 11.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 36px;
}

.vh.with-bar.mini .vh-box {
  bottom: calc(var(--bar-h) + 12px);
}

/* Footer */
.site-foot {
  margin-top: 56px;
  padding: 48px 36px 28px;
  background: #121212;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a7a7a7;
}

.site-foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 32px;
}

.site-foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 32px 28px;
  flex: 1;
  min-width: 0;
}

.site-foot-col h3 {
  margin: 0 0 18px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.site-foot a,
.site-foot-link {
  border: 0;
  background: none;
  padding: 0;
  color: #a7a7a7;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-foot a:hover,
.site-foot-link:hover {
  color: #fff;
}

.site-foot-socials {
  display: flex;
  flex: none;
  gap: 12px;
}

.site-foot-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #292929;
  color: #fff;
  display: grid;
  place-items: center;
}

.site-foot-social svg {
  width: 16px;
  height: 16px;
  display: block;
}

.site-foot-social:hover {
  background: #3e3e3e;
}

.site-foot-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-foot-legal-links .site-foot-link {
  font-size: 12.5px;
}

.site-foot-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #7a7a7a;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.site-foot-lang svg {
  width: 16px;
  height: 16px;
  display: block;
}

.site-foot-lang:hover {
  border-color: #fff;
}

.site-foot-copy {
  margin: 18px 0 0;
  text-align: right;
  font-size: 12px;
  color: #a7a7a7;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .app-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-frame {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }

  .main-scroll {
    border-radius: 0;
    padding-top: 56px;
  }

  .side-nav {
    position: fixed;
    left: 10px;
    top: 10px;
    bottom: calc(var(--bar-h) + 10px);
    width: min(280px, calc(100vw - 40px));
    z-index: 40;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .yt-top { display: flex; }

  .nav-toggle { display: none !important; }

  .side-nav.open ~ .nav-scrim,
  .nav-scrim.show {
    display: block;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .hero-stage {
    aspect-ratio: 5 / 4;
    max-height: none;
    min-height: 240px;
  }

  .faces .card:hover,
  .faces .card:focus-within {
    transform: scale(1.12);
  }

  .nf-row .card:hover,
  .nf-row .card:focus-within {
    transform: scale(1.18);
  }

  .prof-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .facts {
    position: static;
  }

  .auth {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .auth-art {
    display: none;
  }

  .bar {
    gap: 12px;
    padding: 10px 14px;
  }

  .bar .right,
  .bar-right {
    display: flex !important;
  }

  .lv-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 20px 22px;
  }

  .lv-album {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }

  .lv-album-cover {
    width: 110px;
    height: 110px;
  }

  .vh.audio .vh-grip {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta controls" "transport transport" "seek seek";
  }
}

@media (max-width: 640px) {
  .section,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-foot-cols {
    grid-template-columns: 1fr;
  }

  .home-hero {
    margin: 10px;
    min-height: 280px;
  }

  .home-hero-inner {
    padding: 24px 20px 28px;
  }

  .nf-row-head,
  .nf-row .rail,
  .nf-row .faces {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lv-tabs,
  .lv-body,
  .lv-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-btn span {
    display: none;
  }

  .stats {
    gap: 18px;
  }

  .stats b {
    font-size: 22px;
  }

  .hero-stage {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .faces {
    gap: 8px;
    padding: 8px;
  }

  .faces .card:hover,
  .faces .card:focus-within,
  .nf-row .card:hover,
  .nf-row .card:focus-within {
    transform: scale(1.06);
  }

  .faces .card-details,
  .nf-row .card-details {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 10px 8px 8px;
  }

  .faces .card-base,
  .nf-row .card-base {
    opacity: 0;
  }

  .card-details-genres {
    display: none;
  }

  .grid-albums {
    grid-template-columns: 1fr;
  }

  .row-upcoming {
    grid-template-columns: 52px 1fr !important;
    gap: 12px !important;
  }

  .row-upcoming img,
  .row-upcoming .badge {
    display: none;
  }

  .row-update {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .toptrack {
    grid-template-columns: 20px 48px minmax(0, 1fr);
    gap: 10px;
  }

  .toptrack-artist,
  .toptrack-views {
    display: none;
  }

  .playlist-row {
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    gap: 9px;
  }

  .playlist-row img {
    width: 52px;
    height: 30px;
  }

  .notes {
    right: 10px;
    left: 10px;
    width: auto;
    top: 64px;
  }

  .prof-nav {
    width: 38px;
    height: 38px;
  }

  .prof-nav.prev {
    left: 8px;
  }

  .prof-nav.next {
    right: 8px;
  }

  .prof-nav-tip {
    display: none;
  }

  .site-foot {
    padding: 36px 18px 24px;
  }

  .site-foot-top {
    flex-direction: column;
    gap: 28px;
  }

  .site-foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .site-foot-copy {
    text-align: left;
  }

  .vh.audio .vh-box {
    width: 100%;
  }

  .vh.mini .vh-box {
    right: 10px;
    left: auto;
    top: auto;
    width: min(280px, calc(100vw - 20px));
    height: auto !important;
    min-height: 0;
    max-width: none;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .vh.with-bar.mini .vh-box {
    bottom: calc(var(--bar-h) + 8px);
  }

  .vh.audio .vh-meta img {
    width: 38px;
    height: 38px;
  }

  .seek-row {
    width: min(100%, 70vw);
  }

  table.awards th:nth-child(4),
  table.awards td:nth-child(4) {
    display: none;
  }
}

/* --- layout helpers wired from app.js --- */
.side-section{
  margin-top:16px;
  flex:0 0 auto;
  min-height:0;
  overflow:visible;
}
.side-section.yt-artist-section{
  flex:0 0 auto;
  max-height:none;
  overflow:visible;
  display:flex;
  flex-direction:column;
}
.side-section.yt-pl-section{
  flex:0 0 auto;
  min-height:0;
  overflow:visible;
}
.side-section .label{margin-bottom:10px}
.side-empty{margin:8px 2px;font-size:12.5px;color:var(--dim);line-height:1.5}
.side-playlist .side-pl-art{
  width:40px;height:40px;border-radius:8px;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--magenta),var(--purple));font-weight:800;font-size:15px;color:#fff;
}
.side-playlist{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
.side-playlist span{min-width:0;display:flex;flex-direction:column}
.side-admin{margin-left:0}
.related-row{
  display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;color:var(--text);
  padding:8px;border-radius:10px;cursor:pointer;text-align:left;text-decoration:none;
}
.related-row:hover{background:var(--fill-2)}
.related-row img{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:top center;flex:none;pointer-events:none}
.related-row span{min-width:0;display:flex;flex-direction:column}
.related-row strong{font-size:14px;font-weight:700}
.related-row em{font-style:normal;font-size:12px;color:var(--dim);margin-top:2px}
.shop-list{display:grid;gap:10px}
.shop-card{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;background:var(--fill);border:1px solid var(--line)}
.shop-card img{width:52px;height:52px;border-radius:8px;object-fit:cover;flex:none}
.shop-card strong{display:block;font-size:13.5px;font-weight:700}
.shop-card em{display:block;font-style:normal;font-size:11.5px;color:var(--dim);margin:3px 0 6px}
.rail-stats{display:grid;gap:10px}
.rail-stats div{padding:12px 14px;border-radius:12px;background:var(--fill);border:1px solid var(--line)}
.rail-stats b{display:block;font-size:22px;font-weight:800;letter-spacing:-.03em}
.rail-stats span{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.lv-disc-title{margin:36px 0 16px;font-size:22px;font-weight:800;letter-spacing:-.03em}
.facts-inline{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin-top:28px}
.facts-inline dt{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.facts-inline dd{margin:6px 0 0;font-size:14.5px;font-weight:600}
.lv-tracks .h{border:0;background:none;color:var(--dim);cursor:pointer;font-size:14px}
.lv-tracks .h.on{color:var(--magenta)}
.lv-tracks .muted{color:var(--dim);cursor:not-allowed}
.page{padding:28px 28px 40px}
.h-page{margin:8px 0 20px;font-size:clamp(32px,4vw,52px);font-weight:800;letter-spacing:-.045em}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--magenta-soft)}
.trunc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}
.rail-card{display:flex;align-items:center;gap:12px;flex:none;min-width:220px;border:1px solid var(--line);background:var(--fill);border-radius:12px;padding:9px 14px 9px 9px;color:var(--text);text-align:left;cursor:pointer}
.rail-card:hover{background:var(--fill-2)}
.rail-card img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 14%;
  flex: none;
  background: var(--panel-2);
}
body{overflow:hidden}

/* --- platform polish --- */
.nav-scrim.show {
  display: block !important;
}
.release-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.release-card {
  position: relative;
  flex: none;
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.release-art {
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--panel-2, #1a102c);
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 350ms cubic-bezier(.22,1,.36,1);
}
.release-card:hover .release-art img { transform: scale(1.06); }
.release-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.release-card strong,
.release-meta strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, #fff);
}
.release-card em,
.release-meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
}
.release-card .nf-play {
  position: absolute;
  right: 10px;
  bottom: 52px;
  opacity: 0;
  transform: translateY(8px);
  transition: 200ms ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.release-card:hover .nf-play {
  opacity: 1;
  transform: none;
}
.vh.audio .vh-box {
  bottom: 0;
  z-index: 70;
}
.bar {
  z-index: 60;
}
.disc.spin img {
  animation: spin 8s linear infinite;
}
.disc i {
  opacity: 0;
}
.disc.spin i {
  opacity: 1;
}
@media (max-width: 860px) {
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(8, 4, 16, 0.72);
    backdrop-filter: blur(4px);
  }
  .nav-scrim.show { display: block; }
}

/* SPA nav as real <a>: keep look, allow open-in-new-tab */
a.card-top,
a.lib-hit,
a.lib-meta,
a.chart-main,
a.vid-shelf-artist,
a.pod-shelf-artist,
a.see-all-rel,
a.see-all-back,
a.see-all-album-art,
a.mood-tile,
a.genre-tile,
a.ersy-era-card,
a.sp-feat,
a.sp-latest-card,
a.sp-pick-card,
a.ytm-showall,
a.ytm-text,
a.nf-play,
a.release-art,
a.release-meta,
a.ytm-rel,
a.nav-link {
  text-decoration: none;
  color: inherit;
}

a.card-top img,
a.lib-hit img,
a.chart-main img,
a.vid-shelf-artist img,
a.pod-shelf-artist img,
a.see-all-rel img,
a.see-all-album-art img,
a.mood-tile img,
a.genre-tile img,
a.ersy-era-card img,
a.sp-feat img,
a.sp-latest-card img,
a.sp-pick-card img,
a.release-art img,
a.ytm-rel img,
a.news-card img {
  pointer-events: none;
}

/* Desktop horizontal shelf arrows */
.h-rail {
  position: relative;
  margin: 0 -4px;
  padding: 0 4px;
}

.h-rail.is-scrollable::before,
.h-rail.is-scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.h-rail.is-scrollable::before {
  left: 0;
  background: linear-gradient(90deg, #0b0614, transparent);
}

.h-rail.is-scrollable::after {
  right: 0;
  background: linear-gradient(270deg, #0b0614, transparent);
}

.h-rail.is-scrollable:not(.at-start)::before,
.h-rail.is-scrollable:not(.at-end)::after {
  opacity: 0.9;
}

.h-rail-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  padding: 0 0 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: background 0.15s, opacity 0.2s ease, transform 0.15s;
}

.h-rail-btn.prev { left: 6px; }
.h-rail-btn.next { right: 6px; }

.h-rail-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.06);
}

.h-rail-btn:disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (hover: hover) and (min-width: 861px) {
  .h-rail.is-scrollable .h-rail-btn:not(:disabled) {
    display: grid;
  }
  .h-rail.is-scrollable:hover .h-rail-btn:not(:disabled),
  .h-rail.is-scrollable:focus-within .h-rail-btn:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 860px) {
  .h-rail-btn { display: none !important; }
  .h-rail.is-scrollable::before,
  .h-rail.is-scrollable::after { display: none; }
}

.ytm-artist .h-rail.is-scrollable:not(.at-start)::before {
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.96), transparent);
}
.ytm-artist .h-rail.is-scrollable:not(.at-end)::after {
  background: linear-gradient(270deg, rgba(18, 18, 18, 0.96), transparent);
}
.ytm-artist .h-rail-btn {
  top: 38%;
}


