/* =========================================================
   B Music Entertainment
   Dark by default; light mode via the sun/moon button.
   ========================================================= */
:root {
  --bg: #0e1016;
  --bg-2: #12141b;
  --surface: #181b24;
  --surface-2: #20242f;
  --elev: #262a36;
  --player-bg: #0a0b10;
  --text: #f4f6fb;
  --muted: #a2a9b9;
  --faint: #6f7687;
  --line: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.07);
  --press: rgba(255, 255, 255, 0.12);
  --accent: #46a8ee;
  --accent-2: #4cc3c9;
  --on-accent: #04121f;
  --track: rgba(255, 255, 255, 0.22);
  --cover-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --tint-a: 1;
  --art: 34 58 92;
  --topbar-solid: rgba(14, 16, 22, 0.86);
  --side-w: 280px;
  --player-h: 88px;
  --tab-h: 58px;
  --card-w: 192px;
  --pad: 32px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eceef3;
  --elev: #ffffff;
  --player-bg: #ffffff;
  --text: #11131a;
  --muted: #596071;
  --faint: #8a90a0;
  --line: rgba(0, 0, 0, 0.09);
  --hover: rgba(0, 0, 0, 0.05);
  --press: rgba(0, 0, 0, 0.09);
  --accent: #2b84d0;
  --on-accent: #ffffff;
  --track: rgba(0, 0, 0, 0.16);
  --cover-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  --tint-a: 0.42;
  --topbar-solid: rgba(245, 246, 249, 0.88);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; overscroll-behavior-y: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--player-h);
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
i[data-icon] { display: inline-grid; place-items: center; font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.u-link:hover, a.u:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) auto; min-height: calc(100vh - var(--player-h)); }

.sidebar {
  position: sticky; top: 0; height: calc(100vh - var(--player-h));
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 12px 12px; background: var(--bg-2); border-right: 1px solid var(--line);
  overflow: hidden;
}
.brand { display: block; color: var(--text); padding: 0 12px 10px; }
.brand .logo { height: 44px; width: auto; overflow: visible; }
.brand .logo-mini { display: none; width: 34px; height: 34px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-install {
  display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 8px;
  font-weight: 700; color: var(--muted); transition: color .15s, background .15s;
}
.side-nav a .ic { width: 24px; height: 24px; }
.side-nav a:hover, .side-install:hover { color: var(--text); }
.side-nav a.on { color: var(--text); background: var(--hover); }
.side-lib {
  flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--line); scrollbar-width: thin;
}
.side-label { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin: 14px 12px 6px; }
.side-tile { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; }
.side-tile:hover { background: var(--hover); }
.side-tile.on { background: var(--press); }
.side-tile .cover, .tile-art { width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; box-shadow: none; }
.tile-art { display: grid; place-items: center; }
.tile-fav { background: linear-gradient(135deg, #3d5ee0, #8fb8f5); color: #fff; }
.tile-fav .ic { width: 22px; height: 22px; }
.side-new { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile-new { background: var(--hover); color: var(--text); border: 1px dashed var(--muted); }
.tile-new .ic { width: 22px; height: 22px; }
.side-new:hover .tile-new { color: var(--accent); border-color: var(--accent); }
.tile-text { min-width: 0; display: flex; flex-direction: column; }
.tile-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-text small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-tile.playing .tile-text b { color: var(--accent); }
.side-install { width: 100%; margin-top: 6px; border: 1px solid var(--line); justify-content: center; font-size: 14px; }
.side-install[hidden] { display: none; }

.main-col { position: relative; min-width: 0; }
.tint {
  position: absolute; left: 0; right: 0; top: 0; height: 480px; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--art) / var(--tint-a)) 0%, rgb(var(--art) / calc(var(--tint-a) * .45)) 50%, transparent 100%);
  transition: opacity .4s ease;
}
.tint.soft { height: 300px; opacity: .6; }

.topbar {
  position: sticky; top: 0; z-index: 6; height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 0 var(--pad);
  transition: background .25s, box-shadow .25s;
}
.topbar.solid { background: var(--topbar-solid); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav-arrows { display: flex; gap: 8px; }
.m-brand { display: none; }
.round-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0, 0, 0, .38); color: var(--text); transition: background .15s, transform .1s;
}
:root[data-theme="light"] .round-btn { background: rgba(255, 255, 255, .7); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.round-btn .ic { width: 18px; height: 18px; }
.round-btn:hover { background: rgba(0, 0, 0, .6); }
:root[data-theme="light"] .round-btn:hover { background: #fff; }
.round-btn:active { transform: scale(.95); }
.round-btn[disabled] { opacity: .45; cursor: default; }
.round-btn.on-dark { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.round-btn.on-dark:hover { background: rgba(255,255,255,.2); }

.search {
  display: flex; align-items: center; gap: 10px; height: 46px; width: min(420px, 100%);
  background: var(--surface-2); border: 1px solid transparent; border-radius: 999px; padding: 0 18px;
  color: var(--muted); transition: border-color .15s, background .15s;
}
.search:hover { border-color: var(--line); background: var(--elev); }
.search:focus-within { border-color: var(--text); color: var(--text); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }
.top-search { margin-left: 8px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }

.main { position: relative; z-index: 1; padding: 8px var(--pad) 40px; outline: none; min-height: 60vh; }
.page { animation: page-in .28s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Cover art ---------- */
.cover {
  position: relative; aspect-ratio: 1; width: 100%; border-radius: 8px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--cover-shadow); display: grid; place-items: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .cover-note { width: 38%; height: 38%; color: rgba(255,255,255,.85); }
.cover.round { border-radius: 50%; }
.cover .initials { font-size: 42px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }

/* ---------- Hi-Res badge ---------- */
.hr-badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  padding: 4px 7px; border-radius: 4px; border: 1px solid currentColor; color: var(--muted); white-space: nowrap;
}
.hr-badge .ic { width: 12px; height: 12px; }
.hr-badge[hidden] { display: none; }
.hr-badge.on-dark { color: rgba(255,255,255,.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: scale(1.02); }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--faint); }
.btn-ghost:hover { border-color: var(--text); filter: none; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; filter: none; }

.icon-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); transition: color .15s, transform .1s;
}
.icon-btn:hover { color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn[disabled]:hover { color: var(--muted); }
.toggle[aria-pressed="true"] { color: var(--accent); }
.toggle[aria-pressed="true"]::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor;
}
.fav-btn.on, .fav-btn.on:hover { color: var(--accent); }

.play-xl {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(0,0,0,.3);
  transition: transform .12s, filter .15s;
}
.play-xl .ic { width: 24px; height: 24px; }
.play-xl:hover { transform: scale(1.05); filter: brightness(1.08); }
.play-xl:active { transform: scale(.97); }
.play-xl[disabled] { opacity: .45; cursor: default; transform: none; }

.actions { display: flex; align-items: center; gap: 14px; margin: 6px 0 28px; }
.actions .icon-btn { width: 44px; height: 44px; }
.actions .icon-btn .ic { width: 28px; height: 28px; }
.actions .btn-ghost { padding: 8px 16px; font-size: 14px; }

/* ---------- Release / page header ---------- */
.rh { display: flex; align-items: flex-end; gap: 28px; padding: 20px 0 28px; }
.rh-art { width: clamp(170px, 20vw, 240px); flex-shrink: 0; }
.rh-art .cover { box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.rh-text { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 700; }
.rh h1 {
  font-size: clamp(36px, 6.4vw, 92px); font-weight: 900; letter-spacing: -0.045em; line-height: 1;
  margin: 6px 0 14px; overflow-wrap: anywhere;
}
.rh h1.long { font-size: clamp(32px, 4.6vw, 64px); }
.rh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--muted); }
.rh-meta b, .rh-meta a.artist { color: var(--text); font-weight: 700; }
.rh-meta a.artist:hover { text-decoration: underline; }
.rh-meta .dot::before { content: "•"; margin: 0 2px; }
.rh-meta .hr-badge { margin-left: 6px; }
.mini-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.mini-avatar .cover { border-radius: 50%; box-shadow: none; }
.mini-avatar .initials { font-size: 10px; }
.rh-desc { color: var(--muted); margin: 10px 0 0; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.artist-hero { padding: 64px 0 28px; display: flex; align-items: flex-end; gap: 28px; }
.artist-hero .rh-art { width: clamp(150px, 16vw, 220px); }
.artist-hero .cover { border-radius: 50%; }
.artist-hero h1 { font-size: clamp(40px, 8vw, 104px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin: 6px 0 14px; overflow-wrap: anywhere; }
.verified { display: inline-flex; align-items: center; gap: 6px; }
.verified .ic { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Shelves (horizontal rows) ---------- */
.shelf { margin: 10px 0 30px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.shelf-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.shelf-head h2 a:hover { text-decoration: underline; }
.shelf-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.shelf-tools { display: flex; align-items: center; gap: 8px; }
.see-all { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.see-all:hover { color: var(--text); text-decoration: underline; }
.shelf-tools .round-btn { width: 30px; height: 30px; }
.shelf-row {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0 -12px; padding: 0 0 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > * { flex: 0 0 var(--card-w); scroll-snap-align: start; }

/* ---------- Cards ---------- */
.card { display: block; padding: 12px; border-radius: 10px; min-width: 0; transition: background .2s; cursor: pointer; }
.card:hover { background: var(--hover); }
.card-art { position: relative; }
.card-play {
  position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 16px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.card-play .ic { width: 22px; height: 22px; }
.card-play:hover { transform: scale(1.06); }
.card:hover .card-play, .card:focus-within .card-play, body.audio-on .card.playing .card-play { opacity: 1; transform: none; }
.card-title { display: block; font-weight: 700; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.playing .card-title { color: var(--accent); }
.card-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.artist .cover { border-radius: 50%; }
.card.soon .cover::after { content: "Coming soon"; position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
@media (hover: none) { .card-play { display: none; } .card:hover { background: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 4px; margin: 0 -12px; }

/* ---------- Song lists ---------- */
.songs { margin: 0 0 28px; }
.song-head, .song-row {
  display: grid; align-items: center; gap: 16px; padding: 0 16px;
  grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2.2fr) minmax(0, 1.5fr) 132px;
}
.songs.compact .song-head, .songs.compact .song-row { grid-template-columns: 32px minmax(0, 1fr) minmax(90px, .5fr) 132px; }
.songs.compact .sr-album, .songs.compact .h-album { display: none; }
.sr-plays, .h-plays { text-align: right; font-variant-numeric: tabular-nums; }
.m-plays { display: none; }
.dotted:not(:empty)::before { content: "•"; margin: 0 6px 0 4px; }
.rh-meta .dotted:not(:empty)::before { margin: 0 6px 0 2px; }
.total-plays { color: var(--text); font-weight: 700; }
.total-plays:empty + .dotted::before { display: none; }
.song-head { height: 36px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.song-head .h-time { justify-self: end; margin-right: 46px; }
.song-head .h-time .ic { width: 16px; height: 16px; }
.song-row { height: 58px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.song-row:hover, .song-row:focus-within { background: var(--hover); }
.sr-num { position: relative; display: grid; place-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.sr-num .sr-play { position: absolute; inset: -6px; display: none; place-items: center; color: var(--text); }
.sr-num .sr-play .ic { width: 16px; height: 16px; }
.song-row:hover .sr-num .n, .song-row:hover .sr-num .eq { display: none; }
.song-row:hover .sr-play { display: grid; }
.sr-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sr-main .cover { width: 42px; flex-shrink: 0; border-radius: 4px; box-shadow: none; }
.sr-text { min-width: 0; display: flex; flex-direction: column; }
.sr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-title:hover { text-decoration: underline; }
.sr-sub { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub a:hover { color: var(--text); text-decoration: underline; }
.song-row.playing .sr-title { color: var(--accent); }
.sr-album, .sr-plays { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-album a:hover { color: var(--text); text-decoration: underline; }
.sr-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); }
.sr-end .time { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.sr-end .icon-btn { width: 30px; height: 30px; }
.sr-end .icon-btn .ic { width: 18px; height: 18px; }
.sr-end .fav-btn:not(.on), .sr-end .more-btn { opacity: 0; }
.song-row:hover .sr-end .fav-btn, .song-row:hover .sr-end .more-btn,
.song-row:focus-within .sr-end .fav-btn, .song-row:focus-within .sr-end .more-btn { opacity: 1; }
.song-row.soon { cursor: default; opacity: .6; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.paused .eq i { animation-play-state: paused; }

/* ---------- Home / sections ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.panel { background: var(--surface); border-radius: 12px; padding: 20px; }
:root[data-theme="light"] .panel { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.panel h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.panel p { margin: 0 0 12px; color: var(--muted); }
.lyr-preview { background: linear-gradient(160deg, rgb(var(--art) / 1), rgb(var(--art) / .7)); color: #fff; border-radius: 12px; padding: 20px; }
.lyr-preview h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.lyr-preview p { margin: 0 0 4px; font-size: 20px; font-weight: 800; line-height: 1.35; color: rgba(255,255,255,.92); }
.lyr-preview .btn { margin-top: 14px; background: #fff; color: #111; }
.credits { margin: 0; }
.credits div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.credits div:last-child { border-bottom: 0; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; font-weight: 600; text-align: right; }
.copyline { color: var(--muted); font-size: 13px; margin: -10px 0 30px; }
.copyline p { margin: 2px 0; }

.page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.035em; margin: 16px 0 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 15px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.chip:hover { background: var(--elev); }
.chip.on { background: var(--text); color: var(--bg); }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state .ic { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--faint); }
.empty-state h3 { color: var(--text); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { margin: 0 auto 18px; max-width: 42ch; }

/* Search */
.m-search { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; aspect-ratio: 1.55; border-radius: 10px; padding: 16px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: #fff; background: var(--c);
  transition: transform .15s;
}
.tile:hover { transform: scale(1.02); }
.tile .tile-img { position: absolute; right: -14px; bottom: -8px; width: 45%; transform: rotate(25deg); border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.tile .tile-img .cover { box-shadow: none; border-radius: 6px; }
.tile .tile-icon { position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; opacity: .85; transform: rotate(18deg); }
.results-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; margin-bottom: 28px; }
.results-top h2, .section-h { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.top-result { position: relative; display: block; background: var(--surface); border-radius: 12px; padding: 20px; transition: background .2s; }
:root[data-theme="light"] .top-result { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.top-result:hover { background: var(--surface-2); }
.top-result .cover { width: 96px; margin-bottom: 18px; }
.top-result .tr-title { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-result .tr-sub { color: var(--muted); font-size: 14px; }
.top-result .tr-sub b { color: var(--text); background: var(--press); padding: 3px 10px; border-radius: 999px; margin-right: 6px; font-size: 13px; }
.top-result .card-play { right: 20px; bottom: 20px; }
.top-result:hover .card-play, .top-result:focus-within .card-play { opacity: 1; transform: none; }
.results-top .songs { margin: 0; }

/* Text pages */
.prose { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; color: var(--muted); }
.prose a { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.social a:hover { background: var(--elev); }
.social a .ic { width: 18px; height: 18px; }

/* Footer */
.footer { margin-top: 48px; padding: 32px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer h4 { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.foot-social a:hover { background: var(--elev); text-decoration: none; }
.foot-social .ic { width: 18px; height: 18px; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* Loading placeholders */
.sk { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-hero { display: flex; gap: 28px; align-items: flex-end; padding: 20px 0 36px; }
.sk-art { width: clamp(170px, 20vw, 240px); aspect-ratio: 1; flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.sk-line { height: 14px; border-radius: 999px; margin-bottom: 14px; }
.sk-lines .sk-line { margin: 0; }
.sk-line.tall { height: 56px; border-radius: 10px; }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; }
.skel-row { display: flex; gap: 20px; overflow: hidden; }
.sk-card { flex: 0 0 calc(var(--card-w) - 24px); aspect-ratio: 1; }

/* ---------- Queue ---------- */
.queue {
  position: sticky; top: 0; width: 340px; height: calc(100vh - var(--player-h));
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line);
}
.queue[hidden] { display: none; }
.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 20px; }
.queue-head h2 { font-size: 18px; font-weight: 800; }
.queue-head .round-btn { background: transparent; box-shadow: none; }
.queue-head .round-btn:hover { background: var(--hover); }
.queue-body { flex: 1; overflow-y: auto; padding: 0 8px 24px; }
.q-label { font-size: 15px; font-weight: 800; margin: 16px 12px 6px; }
.q-label small { color: var(--muted); font-weight: 600; display: block; font-size: 13px; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; cursor: pointer; }
.q-item:hover { background: var(--hover); }
.q-item .cover { width: 46px; flex-shrink: 0; border-radius: 4px; box-shadow: none; }
.q-item .tile-text b { font-weight: 600; }
.q-item.now .tile-text b { color: var(--accent); }
.q-item .tile-text { flex: 1; }
.q-item .icon-btn { opacity: 0; }
.q-item:hover .icon-btn, .q-item:focus-within .icon-btn { opacity: 1; }
.q-empty { color: var(--muted); font-size: 14px; margin: 4px 12px; }

/* ---------- Player bar ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; height: var(--player-h);
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 16px;
  padding: 0 16px; background: var(--player-bg); border-top: 1px solid var(--line);
}
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-cover { width: 58px; height: 58px; flex-shrink: 0; }
.pl-cover .cover { border-radius: 6px; box-shadow: none; }
.pl-cover:empty { display: none; }
.pl-meta { min-width: 0; display: flex; flex-direction: column; }
.pl-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.pl-title:hover, a.pl-artist:hover { text-decoration: underline; color: var(--text); }
.pl-fav[hidden] { display: none; }
.pl-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pl-controls { display: flex; align-items: center; gap: 14px; }
.pl-controls .icon-btn .ic { width: 20px; height: 20px; }
.play-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); transition: transform .1s;
}
.play-btn .ic { width: 18px; height: 18px; }
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.96); }
.pl-progress { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; }
.time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; }
#cur { text-align: right; }
.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.pl-right .hr-badge { margin-right: 6px; }
.pl-right .vol { width: 110px; }
.mini-play, .mini-progress { display: none; }

/* Sliders (seek + volume) */
.slider {
  --pct: 0%; --fill: var(--text);
  -webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 16px; margin: 0; cursor: pointer; background: transparent;
  background-image: linear-gradient(var(--fill), var(--fill)), linear-gradient(var(--track), var(--track));
  background-size: var(--pct) 4px, 100% 4px; background-position: 0 50%, 0 50%; background-repeat: no-repeat;
}
.slider:hover, .slider:focus-visible, .slider:active { --fill: var(--accent); }
.slider:focus-visible { outline-offset: 0; }
.slider::-webkit-slider-runnable-track { height: 16px; background: transparent; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; border: 0;
  background: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,.4); opacity: 0; transition: opacity .15s;
}
.slider::-moz-range-track { height: 4px; background: transparent; }
.slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,.4); opacity: 0; transition: opacity .15s; }
.slider:hover::-webkit-slider-thumb, .slider:focus-visible::-webkit-slider-thumb, .slider:active::-webkit-slider-thumb { opacity: 1; }
.slider:hover::-moz-range-thumb, .slider:focus-visible::-moz-range-thumb, .slider:active::-moz-range-thumb { opacity: 1; }
.slider.on-dark { --fill: #fff; --track: rgba(255,255,255,.28); }
.slider.on-dark:hover, .slider.on-dark:active { --fill: #fff; }
.slider.on-dark::-webkit-slider-thumb { background: #fff; opacity: 1; }
.slider.on-dark::-moz-range-thumb { background: #fff; opacity: 1; }

/* ---------- Tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- Lyrics ---------- */
.lyrics {
  position: fixed; left: 0; right: 0; top: 0; bottom: var(--player-h); z-index: 9;
  overflow: hidden; color: #fff; background: rgb(var(--art)); animation: ly-in .25s ease;
}
@keyframes ly-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lyrics[hidden] { display: none; }
.ly-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.3); opacity: .45; transform: scale(1.1); }
.lyrics::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); pointer-events: none; }
.ly-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; max-width: 920px; margin: 0 auto; padding: 24px 24px 0; }
.ly-head { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ly-cover { width: 64px; flex-shrink: 0; }
.ly-cover .cover { border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ly-meta { min-width: 0; flex: 1; }
.ly-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ly-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ly-artist { color: rgba(255,255,255,.7); font-size: 14px; }
.ly-lines {
  position: relative; flex: 1; overflow-y: auto; padding: 8vh 0 30vh; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%);
}
.ly-lines::-webkit-scrollbar { display: none; }
.ly-line { font-size: clamp(24px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.015em; color: rgba(255,255,255,.95); transition: color .3s, opacity .3s, transform .3s; transform-origin: left center; }
.ly-backing { font-weight: 600; font-style: italic; font-size: clamp(18px, 2.6vw, 26px); color: rgba(255,255,255,.65); }
.ly-gap { height: 28px; }
.ly-note { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 30px; }
.ly-lines.is-synced .ly-line { color: rgba(255,255,255,.34); cursor: pointer; }
.ly-lines.is-synced .ly-line.past { color: rgba(255,255,255,.55); }
.ly-lines.is-synced .ly-line.active { color: #fff; transform: scale(1.02); }
.ly-lines.is-synced .ly-line:hover { color: rgba(255,255,255,.8); }
.ly-sync { flex-shrink: 0; margin-top: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 14px 18px; font-size: 14px; }
.ly-sync ol { margin: 8px 0 12px; padding-left: 20px; }
.ly-sync li { margin-bottom: 4px; }
.ly-sync kbd { background: rgba(255,255,255,.15); border-radius: 4px; padding: 1px 6px; font-family: inherit; font-size: 12px; }
.ly-sync .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.ly-sync textarea { width: 100%; font: 12px/1.4 ui-monospace, Consolas, monospace; background: rgba(0,0,0,.4); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px; }
.sync-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.sync-status { color: #cfe6fb; font-weight: 600; }
.cue-sample { background: var(--accent); color: #fff; border-radius: 4px; padding: 0 5px; }
.ly-line.cue { color: #fff; background: rgba(61, 143, 214, .45); border-radius: 10px; padding: 2px 10px; margin-left: -10px; }
.ly-line.done { color: rgba(255,255,255,.4); }

/* ---------- Full-screen Now Playing (phones) ---------- */
.np {
  position: fixed; inset: 0; z-index: 25; height: 100vh; height: 100dvh;
  overflow: hidden; color: #fff; background: rgb(var(--art));
  animation: np-in .34s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y;
}
.np[hidden] { display: none; }
@keyframes np-in { from { transform: translateY(100%); } to { transform: none; } }
.np-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .55; transform: scale(1.15); }
.np::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3) 50%, rgba(0,0,0,.6)); pointer-events: none; }
.np-inner {
  position: relative; z-index: 1; height: 100%; width: 100%; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: calc(8px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.np-inner::-webkit-scrollbar { display: none; }
.np-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; flex-shrink: 0; }
.np-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.np-icon .ic { width: 24px; height: 24px; }
.np-icon:active { background: rgba(255,255,255,.12); }
.np-head-text { min-width: 0; }
.np-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.np-album { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-art { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 22px 0; min-height: 0; }
.np-art-inner { width: min(100%, 46vh); will-change: transform; }
.np-art-inner .cover { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.np-info { flex-shrink: 0; display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-text { flex: 1; min-width: 0; }
.np-title { font-size: 23px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { display: block; color: rgba(255,255,255,.72); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-fav.on { color: var(--accent-2); }
.np-progress { flex-shrink: 0; margin-top: 14px; }
.np-times { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; margin-top: 2px; min-height: 22px; }
.np-controls { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.np-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.np-btn .ic { width: 34px; height: 34px; }
.np-btn.sm .ic { width: 24px; height: 24px; }
.np-btn.sm[aria-pressed="false"] { color: rgba(255,255,255,.8); }
.np-btn.toggle[aria-pressed="true"] { color: var(--accent-2); }
.np-btn:active { background: rgba(255,255,255,.12); }
.np-play { width: 72px; height: 72px; background: #fff; color: #111; }
.np-play .ic { width: 30px; height: 30px; }
.np-play:active { background: #fff; transform: scale(.95); }
.np-extra { flex-shrink: 0; display: flex; justify-content: space-between; margin-top: 8px; }
.np-extra .np-icon .ic { width: 20px; height: 20px; }
.np-lyrics {
  flex-shrink: 0; margin-top: 14px; width: 100%; text-align: left; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(0,0,0,.22); border-radius: 14px; padding: 16px;
}
.np-lyrics[hidden] { display: none; }
.np-lyrics-label { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.np-lyrics-line { font-size: 20px; font-weight: 800; line-height: 1.3; min-height: 1.3em; }
.np-lyrics-next { font-size: 20px; font-weight: 800; line-height: 1.3; color: rgba(255,255,255,.45); min-height: 1.3em; }
body.np-open { overflow: hidden; }
body.np-open .lyrics { z-index: 35; bottom: 0; }
body.np-open .ly-inner { padding-top: calc(16px + env(safe-area-inset-top)); }

/* ---------- "..." menu ---------- */
.menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.menu-backdrop[hidden], .menu[hidden] { display: none; }
.menu {
  position: fixed; z-index: 41; width: 250px; padding: 4px; max-height: calc(100vh - 16px); overflow-y: auto;
  background: var(--elev); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: menu-in .14s ease;
}
@keyframes menu-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.menu .menu-head, .menu .menu-cancel { display: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; text-align: left; font-size: 14px; font-weight: 500; }
.menu-item .ic { width: 18px; height: 18px; color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); }
.menu-item.on .ic { color: var(--accent); }
.menu-item[hidden] { display: none; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- Credits pop-up ---------- */
.info {
  border: 0; padding: 22px; border-radius: 14px; width: min(400px, calc(100vw - 32px));
  background: var(--elev); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.info::backdrop { background: rgba(0,0,0,.6); }
.info-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.info-head .cover { width: 64px; flex-shrink: 0; border-radius: 6px; }
.info-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.info-artist { color: var(--muted); }
.info-list { margin: 0; border-top: 1px solid var(--line); }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; }
.info-desc { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.info-done { width: 100%; margin-top: 18px; }

/* ---------- Toast + pull to refresh ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Medium screens: icon-only sidebar
   ========================================================= */
@media (max-width: 1180px) and (min-width: 769px) {
  :root { --side-w: 84px; --card-w: 176px; --pad: 24px; }
  .sidebar { padding: 18px 10px 12px; align-items: center; }
  .brand { padding: 0 0 10px; }
  .brand .logo { display: none; }
  .brand .logo-mini { display: block; }
  .side-nav a { justify-content: center; padding: 12px; }
  .side-nav a span, .tile-text, .side-label, .side-install span { display: none; }
  .side-lib { width: 100%; }
  .side-tile { justify-content: center; padding: 6px; }
  .side-install { padding: 10px; border: 0; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .song-head, .song-row { grid-template-columns: 32px minmax(0, 3fr) minmax(0, 2fr) 132px; }
  .sr-album, .song-head .h-album { display: none; }
  .queue { position: fixed; right: 0; top: 0; bottom: var(--player-h); height: auto; z-index: 11; box-shadow: -12px 0 40px rgba(0,0,0,.35); }
}

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 768px) {
  :root { --card-w: 150px; --pad: 16px; --mini-h: 58px; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }
  body.has-track { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--mini-h) + 20px); }
  .app { display: block; }
  .sidebar { display: none; }

  .topbar { height: auto; min-height: 56px; padding: calc(8px + env(safe-area-inset-top)) var(--pad) 8px; }
  .nav-arrows, .top-search { display: none; }
  body:not(.is-root) .nav-arrows { display: flex; margin-right: 2px; }
  body:not(.is-root) .nav-arrows [data-action="forward"] { display: none; }
  .pl-meta { flex: 1; }
  .m-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; min-width: 0; }
  .m-brand svg { width: 30px; height: 30px; flex-shrink: 0; }
  .m-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .round-btn { background: transparent; box-shadow: none; }
  .tint { height: 420px; }

  .main { padding: 4px var(--pad) 24px; }
  .rh, .artist-hero { flex-direction: column; align-items: stretch; gap: 18px; padding: 8px 0 18px; }
  .rh-art { width: min(66vw, 280px); margin: 0 auto; }
  .artist-hero { padding-top: 24px; }
  .artist-hero .rh-art { width: min(52vw, 220px); }
  .rh h1 { font-size: clamp(28px, 8vw, 40px); letter-spacing: -0.03em; margin: 2px 0 10px; }
  .rh h1.long { font-size: 26px; }
  .artist-hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .eyebrow { font-size: 12px; color: var(--muted); }
  .actions { margin: 0 0 18px; gap: 10px; }
  .actions .play-xl { margin-left: auto; order: 9; }
  .actions .icon-btn { width: 40px; height: 40px; }
  .actions .icon-btn .ic { width: 26px; height: 26px; }

  .shelf-head h2 { font-size: 21px; }
  .shelf-tools .round-btn { display: none; }
  .shelf-row { margin: 0 calc(var(--pad) * -1); padding: 0 calc(var(--pad) - 12px); scroll-padding: 0 calc(var(--pad) - 12px); }
  .card { padding: 8px 6px; }
  .card-title { font-size: 14px; }
  .card-sub { font-size: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -6px; }

  .song-head { display: none; }
  .song-row, .songs.compact .song-row { grid-template-columns: minmax(0, 1fr) auto; height: 62px; padding: 0 4px 0 0; gap: 8px; }
  .song-row:hover { background: none; }
  .song-row:active { background: var(--hover); }
  .sr-num, .sr-album, .sr-plays, .sr-end .time { display: none; }
  .m-plays { display: inline; }
  .songs.numbered .sr-num { display: grid; }
  .songs.numbered .song-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .songs.numbered .sr-main .cover { display: none; }
  .song-row:hover .sr-num .n, .song-row:hover .sr-num .eq { display: initial; }
  .song-row:hover .sr-play { display: none; }
  .sr-main .cover { width: 50px; }
  .sr-end .more-btn, .sr-end .fav-btn.on { opacity: 1; }
  .sr-end .fav-btn:not(.on) { display: none; }

  .two-col { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-title { margin: 8px 0 14px; }
  .m-search { display: flex; width: 100%; height: 48px; border-radius: 8px; background: var(--text); color: #333; margin-bottom: 22px; }
  .m-search input { color: #111; }
  .m-search input::placeholder { color: #555; }
  .m-search:focus-within { border-color: transparent; color: #111; }
  :root[data-theme="light"] .m-search { background: var(--surface-2); color: var(--muted); }
  :root[data-theme="light"] .m-search input { color: var(--text); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { font-size: 16px; padding: 12px; }
  .tile .tile-icon { width: 40px; height: 40px; }
  .results-top { grid-template-columns: minmax(0, 1fr); }
  .top-result .card-play { display: none; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Queue becomes a full-screen sheet */
  .queue { position: fixed; inset: 0; z-index: 30; width: auto; height: 100dvh; border: 0; padding-top: env(safe-area-inset-top); animation: np-in .3s cubic-bezier(.2,.8,.2,1); }

  /* Floating mini player */
  .player {
    left: 8px; right: 8px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px);
    height: var(--mini-h); padding: 0 6px 0 8px; gap: 4px; border: 0; border-radius: 10px; overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto auto; color: #fff;
    background: rgb(var(--mini-art, 40 58 88)); box-shadow: 0 8px 28px rgba(0,0,0,.35);
    transition: background .4s;
  }
  body:not(.has-track) .player { display: none; }
  .pl-center, .pl-right { display: none; }
  .pl-cover { width: 42px; height: 42px; pointer-events: none; }
  .pl-cover .cover { border-radius: 5px; }
  .pl-meta { pointer-events: none; }
  .pl-title { font-size: 14px; color: #fff; }
  .pl-artist { color: rgba(255,255,255,.75); font-size: 13px; }
  .pl-now { cursor: pointer; }
  .pl-fav { color: rgba(255,255,255,.85); width: 40px; height: 40px; }
  .pl-fav:hover { color: #fff; }
  .pl-fav.on { color: var(--accent-2); }
  .mini-play { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; }
  .mini-play .ic { width: 26px; height: 26px; }
  .mini-progress { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
  .mini-progress i { display: block; height: 100%; width: 0; background: #fff; }

  /* Tab bar */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 13;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, transparent, var(--bg) 42%);
  }
  :root[data-theme="dark"] .tabbar { background: linear-gradient(180deg, rgba(14,16,22,.2), rgba(14,16,22,.96) 40%); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a:active { transform: scale(.95); }

  .lyrics { bottom: 0; z-index: 35; }
  .ly-inner { padding: calc(14px + env(safe-area-inset-top)) 18px 0; }
  .ly-cover { width: 48px; }
  .ly-title { font-size: 18px; }
  .ly-line { font-size: 26px; }

  .toast { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--mini-h) + 18px); }

  /* Phone action sheet */
  .menu-backdrop { background: rgba(0,0,0,.55); animation: fade-in .2s ease; }
  .menu {
    left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto; padding: 8px; border-radius: 16px; max-height: 80vh; animation: sheet-in .26s cubic-bezier(.2,.8,.2,1);
  }
  .menu .menu-head { display: flex; align-items: center; gap: 12px; padding: 6px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .menu-head .cover { width: 48px; flex-shrink: 0; border-radius: 4px; }
  .menu-title { font-weight: 700; }
  .menu-sub { color: var(--muted); font-size: 13px; }
  .menu-item { padding: 13px 12px; font-size: 16px; }
  .menu-item .ic { width: 22px; height: 22px; }
  .menu .menu-cancel { display: block; text-align: center; font-weight: 700; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
}
@media (min-width: 769px) { .np { display: none !important; } }
@media (min-width: 769px) and (max-height: 500px) and (pointer: coarse) and (orientation: landscape) { .np:not([hidden]) { display: block !important; } }
@keyframes sheet-in { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* iPhone/Android app installed to the home screen */
@media (display-mode: standalone) { .side-install { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .shelf-row { scroll-behavior: auto; }
}

/* =========================================================
   November 2026 additions
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Desktop player bar picks up the color of the song's cover art */
@media (min-width: 769px) {
  body.has-track .player { background: linear-gradient(90deg, rgb(var(--mini-art, 34 58 92) / .42), rgb(var(--mini-art, 34 58 92) / .12) 38%, var(--player-bg) 70%); transition: background .5s; }
  :root[data-theme="light"] body.has-track .player { background: linear-gradient(90deg, rgb(var(--mini-art, 34 58 92) / .16), var(--player-bg) 55%); }
}
.player .pl-now { will-change: transform; }

/* Credits */
.credits-sub { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; }

/* Lyrics translation buttons */
.ly-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; flex-shrink: 0; }
.ly-opts[hidden] { display: none; }
.ly-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); transition: background .15s; }
.ly-chip .ic { width: 16px; height: 16px; }
.ly-chip:hover { background: rgba(255,255,255,.22); }
.ly-chip[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; }
.ly-tr { display: block; font-size: .56em; font-weight: 600; font-style: normal; letter-spacing: 0; line-height: 1.35; margin-top: 4px; opacity: .85; }

/* Email sign-up */
.signup {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 36px 0 8px; padding: 26px 28px; border-radius: 14px; color: #fff;
  background: linear-gradient(120deg, rgb(var(--art) / 1), rgb(var(--art) / .55)), linear-gradient(120deg, #1b3b66, #0f6f78);
}
.signup-text { flex: 1 1 280px; min-width: 0; }
.signup h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.signup p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.signup-form { display: flex; gap: 10px; flex: 1 1 340px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: 15px;
}
.signup-form input[type="email"]::placeholder { color: rgba(255,255,255,.65); }
.signup-form input[type="email"]:focus { outline: 2px solid #fff; outline-offset: 1px; }
.signup-form .btn { background: #fff; color: #111; height: 46px; white-space: nowrap; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { flex-basis: 100%; min-height: 0; font-weight: 600; }
.signup-msg:empty { display: none; }
/* "Want your music on B Music?" card: same shape, its own colours. */
.signup.pitch { margin-top: 16px; background: linear-gradient(120deg, #3a2a6e, #1d5d8c 60%, #127a7e); }
.signup + .signup.pitch { margin-top: 16px; }

/* Keyboard shortcuts */
.kb-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.kb-icon .ic { width: 32px; height: 32px; }
.info-list kbd { display: inline-block; font: 600 13px/1 Inter, system-ui, sans-serif; padding: 5px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.info-list dd:has(kbd) { font-weight: 400; }
@media (hover: none), (max-width: 768px) { .kb-link { display: none; } }

@media (max-width: 768px) {
  .signup { padding: 20px; gap: 16px; margin-top: 28px; }
  .signup h3 { font-size: 19px; }
  .signup-form { flex-direction: column; flex-basis: 100%; }
  .signup-form input[type="email"] { flex: none; width: 100%; }
  .signup-form .btn { width: 100%; justify-content: center; }
  .ly-chip { font-size: 13px; padding: 6px 12px; }
}

/* ---------- Phones: comfortable tap targets, no zoom when typing ---------- */
button, a, input, [role="button"] { touch-action: manipulation; } /* no double-tap zoom delay */
@media (max-width: 768px) {
  /* iPhones zoom the whole page into any text box smaller than 16px. */
  .search input, .signup-form input[type="email"] { font-size: 16px; }
  .topbar .round-btn { width: 40px; height: 40px; }
  .sr-end .icon-btn { width: 40px; height: 40px; }
  .footer li { margin-bottom: 0; }
  .footer li a { display: inline-block; padding: 7px 0; }
}

/* Sidebar "Show all 9" link under the short lists */
.side-more { display: block; margin: 2px 8px 6px; padding: 6px 8px; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.side-more:hover, .side-more:focus-visible { color: var(--text); background: var(--hover); }

/* ---------- Accounts ---------- */
.acct-slot { display: flex; align-items: center; }
.signin-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.signin-btn:hover { background: #f1f3f4; }
.g-logo { width: 18px; height: 18px; flex-shrink: 0; }
.google-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; }
.google-btn:hover { background: #f1f3f4; filter: none; }
.avatar-btn { width: 36px; height: 36px; padding: 2px; border-radius: 50%; background: rgba(0,0,0,.45); }
.avatar-btn:hover { background: rgba(0,0,0,.6); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; }
.avatar.big { width: 44px; height: 44px; font-size: 19px; flex-shrink: 0; }
.avatar.tiny { width: 22px; height: 22px; font-size: 11px; display: inline-grid; vertical-align: middle; margin-right: 6px; }
.acct-menu { width: 260px; right: 8px; left: auto; }
.acct-menu .acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .acct-head b { display: block; font-size: 15px; }
.acct-menu .acct-head small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.acct-menu a.menu-item { color: var(--text); text-decoration: none; }
.menu-item.danger { color: #ff8a80; }
.btn.danger { background: #e5484d; color: #fff; }
.ask { width: min(420px, calc(100vw - 32px)); }
.ask-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.ask-text { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.ask-input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; margin: 4px 0 6px; }
.ask-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pl-pick { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; margin: 6px -6px 0; }
.pl-opt { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: left; }
.pl-opt:hover, .pl-opt:focus-visible { background: var(--hover); }
.pl-opt .cover, .pl-opt-art { width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; }
.pl-opt b { display: block; font-size: 14.5px; }
.pl-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pl-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pl-empty { display: grid; place-items: center; }
.pl-new, .pl-opt-art { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.pl-new .ic { width: 38%; height: 38%; }
.pl-opt-art .ic { width: 22px; height: 22px; }
.card.new-pl { cursor: pointer; }
.card.new-pl:hover .pl-new { color: var(--text); }
.follow-btn { min-width: 96px; justify-content: center; }
.follow-btn.on { border-color: var(--accent); color: var(--accent); }
.greet { margin: 4px 0 14px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 8px 0 28px; background: linear-gradient(120deg, rgba(61,143,214,.22), rgba(76,195,201,.12)), var(--surface); }
.nudge h3 { margin: 0 0 4px; }
.nudge p { margin: 0; color: var(--muted); max-width: 560px; }
.pl-owner { display: inline-flex; align-items: center; font-weight: 700; color: var(--text); }
.pl-remove { opacity: .7; }
.pl-remove:hover { opacity: 1; }
@media (max-width: 768px) {
  .signin-btn span { display: none; }
  .signin-btn { width: 36px; padding: 0; justify-content: center; }
  .greet { font-size: 22px; }
  .acct-menu { right: 8px !important; }
}

/* ---------- Your Profile ---------- */
.acct-menu .acct-head { color: inherit; text-decoration: none; border-radius: 8px 8px 0 0; }
.acct-menu .acct-head:hover { background: var(--hover); }
.prof-hero { display: flex; align-items: flex-end; gap: 28px; padding: 40px 0 28px; }
.prof-pic { position: relative; flex-shrink: 0; }
.avatar.huge { width: clamp(140px, 16vw, 200px); height: clamp(140px, 16vw, 200px); font-size: clamp(56px, 7vw, 84px); box-shadow: 0 12px 48px rgba(0,0,0,.45); }
.prof-cam { position: absolute; right: 6px; bottom: 6px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .15s; }
.prof-cam:hover { transform: scale(1.08); }
.prof-cam .ic { width: 20px; height: 20px; }
.prof-name { font-size: clamp(40px, 7vw, 88px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin: 6px 0 14px; overflow-wrap: anywhere; }
.prof-name.long { font-size: clamp(32px, 4.6vw, 60px); }
.prof-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 28px; max-width: 720px; }
.prof-card h2 { font-size: 20px; margin: 0 0 14px; }
.prof-row { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.prof-row:first-of-type { border-top: 0; padding-top: 0; }
.prof-row label, .prof-label { font-weight: 700; font-size: 14px; }
.prof-row small { color: var(--muted); font-size: 13px; }
.prof-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof-field .ask-input { flex: 1; min-width: 200px; margin: 0; }
.prof-field .btn { height: 44px; }
.prof-up { cursor: pointer; }
.prof-email { color: var(--text); overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.btn-ghost.danger { background: transparent; color: #ff8a80; border-color: rgba(255,138,128,.45); }
.btn-ghost.danger:hover { border-color: #ff8a80; }
:root[data-theme="light"] .btn-ghost.danger { color: #c62828; border-color: rgba(198,40,40,.4); }
@media (max-width: 768px) {
  .prof-hero { flex-direction: column; align-items: center; text-align: center; padding: 20px 0 22px; gap: 18px; }
  .prof-hero .rh-meta { justify-content: center; flex-wrap: wrap; }
  .prof-name { font-size: clamp(30px, 9vw, 44px); margin: 2px 0 10px; }
  .prof-card { padding: 18px 16px; }
  .prof-field .ask-input { min-width: 0; }
}
.prof-intro { margin: -6px 0 12px; color: var(--muted); font-size: 14px; }
.prof-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--hover); font-size: 14px; color: var(--text); }
.prof-note .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--muted); }
.prof-note.pending { background: rgba(70,168,238,.12); }
.prof-note.pending .ic { color: var(--accent); }
.prof-note.no .ic { color: #ff8a80; }
/* Blue check for verified listeners */
.v-check { display: inline-grid; place-items: center; width: .62em; height: .62em; min-width: 16px; min-height: 16px; margin-left: .22em; border-radius: 50%; background: #2f8cf0; color: #fff; vertical-align: .08em; flex-shrink: 0; }
.v-check .ic { width: 72%; height: 72%; stroke-width: 3.2; }
.prof-name .v-check { width: .5em; height: .5em; vertical-align: .12em; }
.acct-head .v-check { width: 15px; height: 15px; min-width: 15px; min-height: 15px; vertical-align: -2px; }
.prof-verified { margin: -6px 0 10px; font-weight: 700; color: #2f8cf0; font-size: 14px; }

/* ---------- Your Music (artist uploads) ---------- */
.mm-intro { color: var(--muted); max-width: 70ch; margin: -6px 0 18px; }
.mm-quota { max-width: 720px; margin: 0 0 22px; display: grid; gap: 6px; }
.mm-qbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mm-qbar i { display: block; height: 100%; background: linear-gradient(90deg, #3d8fd6, #4cc3c9); }
.mm-form { display: grid; gap: 8px; }
.mm-form > label, .mm-vis legend { font-weight: 700; font-size: 14px; margin-top: 6px; }
.mm-form textarea.ask-input { resize: vertical; min-height: 70px; }
.mm-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.mm-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--faint); border-radius: 12px; cursor: pointer; min-height: 76px; }
.mm-drop:hover { border-color: var(--accent); }
.mm-drop.bad { border-color: #ff8a80; }
.mm-drop > .ic { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.mm-drop b { display: block; overflow-wrap: anywhere; }
.mm-drop small { color: var(--muted); font-size: 12.5px; }
.mm-art-prev { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; color: var(--muted); }
.mm-art-prev img { width: 100%; height: 100%; object-fit: cover; }
.mm-vis { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.mm-vis label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mm-vis label:has(input:checked) { border-color: var(--accent); background: rgba(70,168,238,.08); }
.mm-vis input { margin-top: 4px; accent-color: var(--accent); }
.mm-vis b { display: flex; align-items: center; gap: 6px; }
.mm-vis b .ic, .mm-meta .ic { width: 15px; height: 15px; }
.mm-vis small { color: var(--muted); font-size: 13px; display: block; }
.terms-list { margin: 10px 0 4px; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.terms-list b { color: var(--text); }
.mm-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 4px; cursor: pointer; }
.mm-agree input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.mm-progress { display: grid; gap: 6px; }
.mm-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.mm-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3d8fd6, #4cc3c9); transition: width .2s; }
#mm-ptext { font-size: 13px; color: var(--muted); }
.mm-form .btn[type=submit] { justify-self: start; margin-top: 6px; }
.mm-locked h2 { display: flex; align-items: center; gap: 8px; }
.mm-more { display: grid; gap: 8px; margin-top: 8px; }
.mm-more textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.mm-more .btn { justify-self: start; }
.mm-list { max-width: 900px; margin-top: 8px; }
.mm-list h2 { font-size: 22px; margin: 0 0 12px; }
.mm-song { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mm-cover { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.mm-cover img, .mm-cover span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.mm-info { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.mm-info b { overflow-wrap: anywhere; }
.mm-info a { color: inherit; }
.mm-info audio { width: 100%; max-width: 360px; height: 36px; margin-top: 4px; }
.mm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 13.5px; }
.mm-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mm-status { font-weight: 700; }
.mm-status.pending { color: var(--accent); }
.mm-status.live { color: #5fd39a; }
.mm-status.no { color: #ff8a80; }
.mm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.mm-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mm-cta h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.mm-cta p { margin: 0; }
.link-only { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.link-only .ic { width: 13px; height: 13px; }
.disclaim { color: var(--muted); font-size: 12.5px; max-width: 70ch; }
@media (max-width: 768px) {
  .mm-files { grid-template-columns: 1fr; }
  .mm-actions { width: 100%; }
  .mm-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Accounts: switcher, public pages ---------- */
.avatar-btn { position: relative; }
.avatar-btn.is-artist .avatar { box-shadow: 0 0 0 2px var(--accent); }
.artist-pill { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.4; pointer-events: none; }
.acct-switch { align-items: center; }
.acct-switch > span { display: grid; text-align: left; }
.acct-switch small { color: var(--muted); font-size: 12px; font-weight: 500; }
.acct-switch .avatar.tiny { width: 26px; height: 26px; flex-shrink: 0; }
.person-pic { display: grid; place-items: center; background: linear-gradient(135deg, #3d8fd6, #4cc3c9); color: #fff; font-size: 44px; font-weight: 800; overflow: hidden; }
.person-pic img { width: 100%; height: 100%; object-fit: cover; }
.prof-hero .rh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prof-hero .rh-actions .btn { height: 42px; }
.prof-card h2 { display: flex; align-items: center; gap: 8px; }
.prof-card select.ask-input { appearance: auto; }
@media (max-width: 768px) { .prof-hero .rh-actions { justify-content: center; } }

/* ---------- Artist pages: banner, pick, support, editing ---------- */
.artist-hero.has-banner { position: relative; isolation: isolate; margin: 0 calc(var(--pad) * -1); padding: 140px var(--pad) 28px; border-radius: 0 0 18px 18px; overflow: hidden; }
.artist-hero.has-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--banner) center / cover no-repeat; }
.artist-hero.has-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(12,14,20,.92) 100%); }
.artist-hero.has-banner h1, .artist-hero.has-banner .rh-meta, .artist-hero.has-banner .eyebrow { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.owner-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(70,168,238,.12); border: 1px solid rgba(70,168,238,.35); font-size: 14px; position: relative; z-index: 2; }
.owner-bar > .ic { width: 18px; height: 18px; color: var(--accent); }
.owner-bar span { flex: 1 1 200px; }
.owner-bar .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
.support-btn { background: #e8508a; border-color: #e8508a; color: #fff; }
.support-btn:hover { background: #d63d78; }
.social .support-btn { height: auto; padding: 8px 14px; }
.artist-pick { display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 12px; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; margin-bottom: 28px; }
.artist-pick:hover { background: var(--hover); }
.artist-pick .cover { width: 84px; height: 84px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.artist-pick > div { display: grid; gap: 3px; min-width: 0; }
.artist-pick small { color: var(--accent); font-weight: 700; font-size: 12.5px; }
.artist-pick b { font-size: 18px; overflow-wrap: anywhere; }
.artist-pick span { color: var(--muted); font-size: 13.5px; }
.pe-banner { height: 160px; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--faint); }
.pe-links { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; align-items: center; }
.pe-links label { font-weight: 600; font-size: 14px; }
@media (max-width: 768px) {
  .artist-hero.has-banner { padding: 100px var(--pad) 22px; }
  .pe-links { grid-template-columns: 1fr; gap: 4px; }
  .pe-links input { margin-bottom: 8px; }
}

/* ---------- Releases, release day ---------- */
.mm-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 10px 0 2px; display: grid; gap: 8px; }
.mm-group legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.mm-group[hidden], .mm-relfields[hidden] { display: none; }
.mm-relfields { display: grid; gap: 8px; }
.mm-num { max-width: 120px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; justify-self: start; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#mm-date { max-width: 280px; }
#mm-date[hidden] { display: none; }
.countdown { max-width: 640px; margin: 4px 0 22px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(61,143,214,.22), rgba(76,195,201,.12)), var(--surface); border: 1px solid var(--line); }
.cd-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.cd-label .ic { width: 20px; height: 20px; color: var(--accent); }
.cd-clock { display: flex; gap: 14px; margin: 14px 0 10px; }
.cd-clock div { min-width: 72px; padding: 10px 8px; border-radius: 12px; background: rgba(0,0,0,.25); text-align: center; }
.cd-clock b { display: block; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cd-clock small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.countdown p { margin: 0; font-size: 14px; }
@media (max-width: 600px) { .cd-clock { gap: 8px; } .cd-clock div { min-width: 0; flex: 1; } .cd-clock b { font-size: 26px; } }

/* ---------- Share sheet ---------- */
.share-sheet { width: min(460px, calc(100vw - 24px)); }
.share-link { display: flex; gap: 8px; margin: 14px 0 4px; }
.share-link input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.share-link .btn { height: 44px; flex-shrink: 0; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 14px 0; }
.share-opt { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-opt:hover { border-color: var(--accent); }
.share-opt .ic { width: 22px; height: 22px; }
.share-qr { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.share-qr .qr-box { flex-shrink: 0; width: 132px; height: 132px; border-radius: 8px; overflow: hidden; background: #fff; }
.share-qr .qr-box svg { width: 100%; height: 100%; display: block; }
.share-qr p { margin: 4px 0 10px; font-size: 13.5px; }
.share-qr .btn { height: 38px; }
.share-invite { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--accent); margin-bottom: 14px; }
.share-invite b { display: flex; align-items: center; gap: 6px; }
.share-invite b .ic { width: 16px; height: 16px; color: #e8508a; }
.share-invite p { margin: 4px 0 0; font-size: 13.5px; }
@media (max-width: 480px) { .share-qr { flex-direction: column; text-align: center; } .share-qr .qr-box { width: 200px; height: 200px; } }
.hr-badge.q-toggle { cursor: pointer; user-select: none; }
.hr-badge.q-toggle:hover { filter: brightness(1.2); }
.hr-badge.q-toggle.is-fast { color: #f2c14e; border-color: rgba(242,193,78,.5); }
.hr-badge.q-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Artist insights ---------- */
.insights { max-width: 900px; margin: 0 0 26px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.insights h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 14px; }
.insights h3 { font-size: 16px; margin: 18px 0 10px; }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ins-tiles > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; }
.ins-tiles small { color: var(--muted); font-size: 12.5px; }
.ins-tiles b { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.ins-tiles span { color: var(--muted); font-size: 12.5px; }
.ins-tiles span.up { color: #5fd39a; }
.ins-tiles span.down { color: #ff8a80; }
.ins-chart { margin: 14px 0 6px; }
.ins-chart svg { width: 100%; height: 80px; display: block; fill: var(--accent); }
.ins-chart rect:hover { fill: #4cc3c9; }
.ins-chart figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.scroll-x { overflow-x: auto; }
.ins-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.ins-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ins-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ins-table td:not(:first-child), .ins-table th:not(:first-child) { text-align: right; }
.ins-table a { color: inherit; font-weight: 600; }
.ins-people { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-person { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); color: inherit; text-decoration: none; }
.ins-person img, .ins-person > span { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.ins-person div { display: grid; }
.ins-person b { font-size: 13.5px; }
.ins-person small { color: var(--muted); font-size: 12px; }
.ins-note { font-size: 12.5px; margin: 12px 0 0; }

/* ---------- Welcome, For artists, not found ---------- */
.welcome { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin: 18px 0 30px; padding: 30px 32px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(61,143,214,.35), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(76,195,201,.22), transparent 55%), var(--surface); border: 1px solid var(--line); }
.welcome h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 6px 0 12px; font-weight: 900; }
.welcome p { color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0 0 18px; }
.welcome-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome-btns .btn { height: 46px; padding: 0 20px; }
.welcome-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.welcome-steps li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.18); }
.welcome-steps li .ic { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent); color: #fff; }
.welcome-steps b { font-size: 15px; }
.welcome-steps span { color: var(--muted); font-size: 13.5px; }
.fa-hero { margin: 28px 0 10px; padding: 34px 32px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(232,80,138,.25), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(61,143,214,.3), transparent 55%), var(--surface); border: 1px solid var(--line); }
.fa-hero h1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.035em; line-height: 1.04; font-weight: 900; margin: 6px 0 14px; }
.fa-hero p { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0 0 20px; }
.fa-end { text-align: center; margin-top: 34px; }
.fa-end h2 { margin: 0 0 16px; }
.fa-end .welcome-btns { justify-content: center; }
.fa-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fa-steps li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fa-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; }
.fa-steps b { display: block; margin-bottom: 4px; }
.fa-steps p, .fa-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 10px; }
.fa-grid > div { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.fa-grid .ic { width: 26px; height: 26px; color: var(--accent); }
.prose .lead { font-size: 18px; }
.nf { max-width: 560px; margin: 60px auto; text-align: center; }
.nf-art { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.nf-art .ic { width: 44px; height: 44px; }
.nf h1 { font-size: 30px; margin: 0 0 8px; }
.nf p { color: var(--muted); margin: 0 0 20px; }
.nf-search { display: flex !important; max-width: 420px; margin: 0 auto 18px; }
.nf-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.skel-page { padding-top: 24px; }
.sk-art.round { border-radius: 50%; }
.skel-song { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.sk-thumb { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; }
.skel-song .sk-lines { flex: 1; display: grid; gap: 8px; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; padding: 22px 18px; }
  .fa-hero { padding: 24px 18px; }
}
.welcome { position: relative; }
.welcome-x { position: absolute; top: 12px; right: 12px; }
.cont { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.cont-art { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.cont-art .cover, .cont-art img { width: 100%; height: 100%; }
.cont-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cont-text .eyebrow { display: flex; align-items: center; gap: 6px; }
.cont-text .eyebrow .ic { width: 14px; height: 14px; }
.cont-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-text small { color: var(--muted); }
.cont-bar { height: 4px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.cont-bar span { display: block; height: 100%; background: var(--accent); }
.cont-play { width: 48px; height: 48px; flex-shrink: 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.set-who { display: flex; align-items: center; gap: 14px; }
.set-who small { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: grid; gap: 2px; padding: 14px; border-radius: 12px; border: 2px solid var(--line); }
.seg-opt small { color: var(--muted); }
.seg-opt input:checked + span { border-color: var(--accent); background: rgba(61,143,214,.12); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cont-play { border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cont-play .ic { width: 22px; height: 22px; }
.cont-play:hover { transform: scale(1.05); }
.ck { max-width: 720px; }
.ck-head { display: flex; align-items: center; gap: 10px; }
.ck-head h2 { margin: 0; flex: 1; }
.ck-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 12px 0 10px; overflow: hidden; }
.ck-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck-list li { display: flex; align-items: center; gap: 10px; }
.ck-list li.ok span:not(.ck-dot) { color: var(--muted); text-decoration: line-through; }
.ck-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.ck-list li.ok .ck-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.ck-dot .ic { width: 14px; height: 14px; }
.ck-list a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#mm-form-card { transition: outline-color .15s, background .15s; outline: 2px dashed transparent; outline-offset: -2px; }
#mm-form-card.dragging { outline-color: var(--accent); background: rgba(61,143,214,.08); }
.mm-drop-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 4px 0 0; }
.mm-drop-hint .ic { width: 15px; height: 15px; }
.mm-preview { margin: 12px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.mm-prev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-prev-head .ic { width: 18px; height: 18px; color: var(--accent); }
.mm-preview audio { width: 100%; }
@media (hover: none) { .mm-drop-hint { display: none; } }
.share-embed { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.share-embed b { display: flex; align-items: center; gap: 6px; }
.share-embed p { margin: 0; }
.share-embed textarea { width: 100%; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--bg, #111); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: none; }
.share-embed .prof-field { align-items: center; }
.rep-reasons { border: 0; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.rep-reasons label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.rep-reasons input { accent-color: var(--accent); }
.faq { display: grid; gap: 8px; max-width: 760px; margin-bottom: 10px; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.faq a, .fa-hero a, .prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.help-form { max-width: 760px; margin-top: 24px; }
.help-form form { display: grid; gap: 6px; }
.help-form label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.help-form .btn { justify-self: start; margin-top: 10px; }
.help-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-2 > div { display: grid; gap: 6px; }
@media (max-width: 600px) { .help-2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.welcome-steps li > :first-child { grid-row: 1 / 3; grid-column: 1; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent); color: #fff; }
.welcome-steps li > b, .welcome-steps li > span { grid-column: 2; }
@media (max-width: 860px) {
  .welcome-steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .welcome-steps li { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; justify-items: center; row-gap: 4px; padding: 12px 6px; }
  .welcome-steps li > :first-child { grid-row: auto; grid-column: auto; width: 34px; height: 34px; padding: 7px; }
  .welcome-steps li > b, .welcome-steps li > span { grid-column: auto; }
  .welcome-steps span { font-size: 12px; }
  .welcome-btns .btn { flex: 1; justify-content: center; }
}
.welcome-steps li > :first-child .ic, .welcome-steps li > :first-child svg { width: 100%; height: 100%; padding: 0; background: none; border-radius: 0; grid-row: auto; }
.mm-preview[hidden], .share-embed[hidden] { display: none; }
.welcome-btns .btn { white-space: nowrap; }
.acct-slot { display: inline-flex; align-items: center; gap: 10px; }
.become-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; background: rgba(0,0,0,.18); }
.become-btn:hover { border-color: var(--text); background: rgba(255,255,255,.08); }
.become-btn .ic, .become-btn svg { width: 16px; height: 16px; }
[data-theme="light"] .become-btn { border-color: rgba(0,0,0,.2); background: rgba(255,255,255,.6); }
@media (max-width: 760px) { .become-btn { height: 32px; padding: 0 11px; font-size: 13px; } .ba-long { display: none; } }
.ba-box { margin: 18px 0 8px; padding: 22px; border-radius: 16px; background: var(--surface); border: 2px solid var(--accent); max-width: 720px; }
.ba-box.ok { border-color: #2fb36b; }
.ba-box h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.ba-box > p { margin: 0 0 14px; }
.ba-form { display: grid; gap: 6px; }
.ba-form label { font-weight: 600; font-size: 14px; margin-top: 4px; }
.ba-form .btn { justify-self: start; margin-top: 10px; }
.ba-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gate { max-width: 400px; width: calc(100% - 32px); text-align: center; padding: 28px 24px 22px; }
.gate-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.gate-logo svg, .gate-logo .ic { width: 32px; height: 32px; }
.gate-song { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border-radius: 14px; background: var(--surface-2); margin-bottom: 16px; }
.gate-song .cover { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.gate-song b { display: block; }
.gate-song small { color: var(--muted); }
.gate-title { margin: 0 0 6px; font-size: 24px; }
.gate-text { margin: 0 0 18px; color: var(--muted); }
.gate-btns { display: grid; gap: 10px; }
.gate-btns .btn { height: 48px; justify-content: center; font-size: 15px; }
.gate-btns .g-logo { width: 18px; height: 18px; }
.gate-fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Artist pages: themes and cards ---------- */
.artist-hero.has-banner::before { background-position: center var(--banner-y, 50%); }
.artist-hero .rh-art.sq .cover { border-radius: 14px; }
.ap { --ap: var(--accent); position: relative; }
.ap[data-ap-theme]:not([data-ap-theme="default"])::before { content: ""; position: absolute; z-index: -2; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); top: -80px; height: 900px; background: var(--ap-bg); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); }
.ap .play-xl, .ap .ap-feature .play-xl, .ap .btn:not(.btn-ghost):not(.google-btn) { background: var(--ap); }
.ap .eyebrow.verified svg { color: var(--ap); }
.ap-hero-tag { font-size: 17px; font-weight: 600; opacity: .9; margin: -6px 0 12px; }
.artist-hero.has-banner .ap-hero-tag { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.ap-announce { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 4px 0 18px; border-radius: 12px; background: color-mix(in srgb, var(--ap) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ap) 45%, transparent); font-weight: 600; }
.ap-announce .ic, .ap-announce svg { width: 20px; height: 20px; color: var(--ap); flex-shrink: 0; }
.ap-feature { display: flex; gap: 22px; align-items: center; padding: 18px; margin: 8px 0 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ap-feature.shared { border: 2px solid var(--ap); }
.ap-feature-art { width: 180px; flex-shrink: 0; }
.ap-feature-text { flex: 1; min-width: 0; }
.ap-feature-text small { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 11px; color: var(--ap); }
.ap-feature-text h2 { margin: 4px 0 4px; font-size: clamp(22px, 3vw, 34px); }
.ap-story { color: var(--muted); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-story b { color: var(--text); }
.ap-feature-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ap-soon { display: grid; gap: 10px; margin-bottom: 18px; }
.ap-soon a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--surface); }
.ap-soon .cover { width: 52px; height: 52px; flex-shrink: 0; }
.ap-soon small { display: flex; gap: 5px; align-items: center; color: var(--muted); }
.ap-soon small svg, .ap-soon small .ic { width: 14px; height: 14px; }
.ap-about { margin-bottom: 26px; }
.ap-tagline { font-size: 18px; font-weight: 700; margin-top: 0; }
.ap-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; color: var(--muted); }
.ap-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ap-facts svg, .ap-facts .ic { width: 16px; height: 16px; color: var(--ap); }
.ap-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 24px; }
.ap-photo { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--surface-2); }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ap-photo:hover img { transform: scale(1.04); }
.ap-big-photo { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; }
.ap-video { position: relative; aspect-ratio: 16 / 9; max-width: 820px; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 24px; }
.ap-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap-shows { display: grid; gap: 8px; max-width: 820px; margin-bottom: 24px; }
.ap-show { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.ap-show > div:nth-child(2) { flex: 1; min-width: 0; }
.ap-show small { display: block; color: var(--muted); }
.ap-show-date { width: 52px; text-align: center; border-radius: 10px; padding: 6px 0; background: color-mix(in srgb, var(--ap) 20%, var(--surface-2)); }
.ap-show-date b { display: block; font-size: 20px; line-height: 1; }
.ap-show-date small { text-transform: uppercase; font-weight: 800; color: var(--ap); }
.ap-qa { margin-bottom: 24px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ap-thanks { margin-bottom: 24px; }
.ap-thanks h3 { display: flex; align-items: center; gap: 8px; }
.ap-thanks svg, .ap-thanks .ic { width: 18px; height: 18px; color: var(--ap); }
.ap-notes { display: grid; gap: 10px; max-width: 820px; margin-bottom: 24px; }
.ap-note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.ap-note .avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
.ap-note b { display: inline-flex; align-items: center; gap: 4px; }
.ap-note b svg { width: 14px; height: 14px; color: var(--accent); }
.ap-note p { margin: 2px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-note small { color: var(--muted); }
.ap-note-form { display: grid; gap: 8px; }
.ap-note-form .btn { justify-self: start; }
.ap-contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 820px; margin-bottom: 26px; }
.ap-contact b { display: flex; align-items: center; gap: 8px; }
.ap-contact b svg, .ap-contact b .ic { width: 18px; height: 18px; color: var(--ap); }
.ap-contact small { display: block; color: var(--muted); margin-top: 2px; }
.ap-friends { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.ap-friends .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-right: -16px; border: 2px solid var(--bg); display: grid; place-items: center; background: var(--surface-2); font-size: 12px; font-weight: 800; }
.ap-friends span { margin-left: 14px; }
.ap-friends a { color: var(--text); font-weight: 600; }
.preview-bar { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ca-form { display: grid; gap: 8px; margin: 8px 0 4px; }
.ca-form textarea { resize: vertical; }
@media (max-width: 700px) {
  .ap-feature { flex-direction: column; align-items: stretch; text-align: left; }
  .ap-feature-art { width: 100%; max-width: 260px; margin: 0 auto; }
  .ap-gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Artist page editor */
.pe-look { max-width: 720px; margin-bottom: 18px; }
.pe-look h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pe-instant { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(47,179,107,.18); color: #3fcf85; }
.pe-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.pe-theme { display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.pe-theme input { position: absolute; opacity: 0; }
.pe-theme span { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.pe-theme input:checked + span { border-color: var(--text); }
.pe-theme input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pe-theme small { font-size: 12px; color: var(--muted); }
.seg-sm { max-width: 320px; }
.seg-sm .seg-opt span { padding: 9px 12px; }
.pe-banner.small { height: 90px; margin-top: 6px; background-size: cover; }
.pe-cards { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.pe-cards li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--surface-2); }
.pe-cards .mm-agree { margin: 0; }
.pe-arrows { display: flex; gap: 2px; }
.pe-arrows .icon-btn { width: 34px; height: 34px; }
.pe-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.pe-gimg { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; }
.pe-gimg.new { outline: 2px solid var(--accent); }
.pe-gimg .icon-btn { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: rgba(0,0,0,.6); color: #fff; }
.pe-gadd { aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; }
.pe-gadd[hidden] { display: none; }
.pe-gadd svg, .pe-gadd .ic { width: 22px; height: 22px; }
.pe-show { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 6px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pe-show input:last-child { grid-column: 1 / -1; }
.pe-qa { display: grid; gap: 6px; }
.pe-qa textarea { margin-bottom: 8px; }
@media (max-width: 600px) { .pe-show { grid-template-columns: 1fr; } }
.fan-inbox { max-width: 860px; }
.fan-inbox h2 { display: flex; align-items: center; gap: 8px; }
.fan-inbox h3 { margin: 16px 0 6px; font-size: 15px; color: var(--muted); }
.fi-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; flex-wrap: wrap; }
.fi-row.new { box-shadow: inset 3px 0 0 var(--accent); }
.fi-row > div:first-child { flex: 1; min-width: 220px; }
.fi-row p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fi-btns { display: flex; gap: 6px; align-items: flex-start; }
.req-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.ask-title:empty { display: none; }
/* ---------- Listener comfort ---------- */
.toast-undo { margin-left: 14px; padding: 4px 12px; border-radius: 99px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 800; cursor: pointer; }
.sleep-btn.on { color: var(--accent); }
.np-upnext { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; text-align: left; cursor: pointer; }
.np-upnext small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; font-weight: 800; }
.np-upnext span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.np-upnext[hidden] { display: none; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg3 .seg-opt span { padding: 10px; text-align: center; }
:root[data-text="large"] { font-size: 112.5%; }
:root[data-text="larger"] { font-size: 125%; }
:root[data-text="large"] body { font-size: 17px; }
:root[data-text="larger"] body { font-size: 19px; }
:root[data-text] .song-row, :root[data-text] .card-title, :root[data-text] .menu-item { font-size: 1.08em; }
/* Clear focus outlines for keyboard users */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Bigger tap targets on phones */
@media (max-width: 768px), (pointer: coarse) {
  .icon-btn { min-width: 44px; min-height: 44px; }
  .chip { padding: 10px 16px; }
  .menu-item { min-height: 48px; }
}
.sticky-play { position: fixed; z-index: 12; top: 72px; left: calc(var(--side-w) + 24px); display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--elev); box-shadow: 0 8px 28px rgba(0,0,0,.35); max-width: min(420px, 60vw); animation: page-in .2s ease; }
.sticky-play[hidden] { display: none; }
.sticky-play span { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); cursor: pointer; flex-shrink: 0; }
.sp-btn svg, .sp-btn .ic { width: 18px; height: 18px; }
@media (max-width: 768px) { .sticky-play { top: calc(64px + env(safe-area-inset-top)); left: 12px; } }
.mood-chips { margin: 4px 0 22px; }
.recent-q .section-h { display: flex; align-items: center; justify-content: space-between; }
.recent-q .chip { display: inline-flex; align-items: center; gap: 6px; }
.recent-q .chip svg, .recent-q .chip .ic { width: 14px; height: 14px; opacity: .7; }
.lib-hint { margin: 0 0 14px; }
.tabbar a span { white-space: nowrap; }
.toast.show .toast-undo { pointer-events: auto; }
.mood-chips .chip { display: inline-flex; align-items: center; gap: 6px; } .mood-chips .chip svg { width: 15px; height: 15px; }

/* ---------- Artist page themes ---------- */
.ap-art { position: absolute; z-index: -1; top: 10px; right: 0; width: min(300px, 42%); color: var(--ap); opacity: .85; pointer-events: none; }
.ap-art svg { width: 100%; height: auto; display: block; }
.artist-hero.has-banner ~ * .ap-art { opacity: .6; }
.ap[data-ap-theme="mysterious"] { --ap: #a98bea; --ap-bg: radial-gradient(120% 90% at 80% 0%, #3a2464 0%, #1a1030 45%, #0b0912 100%); }
.ap[data-ap-theme="girlpop"] { --ap: #ff62b0; --ap-bg: linear-gradient(135deg, #ff7ac0 0%, #b46bff 55%, #6a3fd0 100%); }
.ap[data-ap-theme="sadgirl"] { --ap: #8fb4ff; --ap-bg: linear-gradient(180deg, #2b4a86 0%, #1c2f5a 50%, #131b33 100%); }
.ap[data-ap-theme="summer"] { --ap: #f2d54b; --ap-bg: linear-gradient(135deg, #f6d65a 0%, #9ccf5a 50%, #3f8f55 100%); }
.ap[data-ap-theme="island"] { --ap: #ffa25c; --ap-bg: linear-gradient(180deg, #ff9a5a 0%, #ef5f7c 38%, #7b4aa0 66%, #1f6f8b 100%); }
.ap[data-ap-theme="summer"] .play-xl, .ap[data-ap-theme="summer"] .btn:not(.btn-ghost):not(.google-btn) { color: #1c2410; }
.ap[data-ap-theme="island"] .play-xl, .ap[data-ap-theme="island"] .btn:not(.btn-ghost):not(.google-btn) { color: #2a1206; }
.ap[data-ap-theme="girlpop"] .ap-art, .ap[data-ap-theme="summer"] .ap-art, .ap[data-ap-theme="island"] .ap-art { color: #fff; }
.ap:not([data-ap-theme="default"]) .artist-hero h1, .ap:not([data-ap-theme="default"]) .rh-meta, .ap:not([data-ap-theme="default"]) .ap-hero-tag { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
:root[data-theme="light"] .ap:not([data-ap-theme="default"]) .actions .icon-btn, :root[data-theme="light"] .ap:not([data-ap-theme="default"]) .actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
/* Gentle motion in the drawings */
.ap-art .tw { animation: ap-twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ap-art .d2 { animation-delay: .8s; } .ap-art .d3 { animation-delay: 1.6s; } .ap-art .d4 { animation-delay: 2.2s; }
.ap-art .rain { animation: ap-rain 1.6s linear infinite; }
.ap-art .fl { animation: ap-float 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ap-art .spin { animation: ap-spin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
.ap-art .sway { animation: ap-sway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.ap-art .wave { animation: ap-wave 3.5s ease-in-out infinite; }
@keyframes ap-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
@keyframes ap-rain { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes ap-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes ap-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
/* A little touch when pointing at a song */
.ap:not([data-ap-theme="default"]) .song-row { position: relative; }
.ap:not([data-ap-theme="default"]) .song-row:hover::after { content: ""; position: absolute; left: 36px; top: 3px; width: 18px; height: 18px; background: var(--ap-icon) center / contain no-repeat; animation: var(--ap-anim) .6s ease-out both; pointer-events: none; z-index: 2; }
.ap[data-ap-theme="mysterious"] { --ap-anim: ap-hov-twinkle; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9b3ff'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="girlpop"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff62b0'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="sadgirl"] { --ap-anim: ap-hov-drop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238fb4ff'%3E%3Cpath d='M12 2s7 8 7 13a7 7 0 0 1-14 0c0-5 7-13 7-13z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="summer"] { --ap-anim: ap-hov-sprout; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd36a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 22V11'/%3E%3Cpath d='M12 13c-1-4-5-6-8-5 1 4 5 6 8 5zM12 11c1-4 5-6 8-5-1 4-5 6-8 5z' fill='%237fd36a'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="island"] { --ap-anim: ap-hov-wave; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa25c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 14c3-3 6-3 9 0s6 3 9 0'/%3E%3Cpath d='M5 19c3-3 6-3 9 0s6 3 9 0' opacity='.6'/%3E%3Ccircle cx='17' cy='6' r='3' fill='%23ffa25c'/%3E%3C/svg%3E"); }
@keyframes ap-hov-twinkle { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 60% { transform: scale(1.3) rotate(10deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ap-hov-pop { 0% { transform: scale(0) translateY(4px); opacity: 0; } 50% { transform: scale(1.35) translateY(-3px); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ap-hov-drop { 0% { transform: translateY(-10px); opacity: 0; } 70% { transform: translateY(1px); opacity: 1; } 100% { transform: translateY(0); } }
@keyframes ap-hov-sprout { 0% { transform: scaleY(0); transform-origin: bottom; opacity: .4; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 1; } }
@keyframes ap-hov-wave { 0% { transform: translateX(-8px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ap-art * { animation: none !important; } }
@media (max-width: 700px) { .ap-art { width: 52%; opacity: .55; top: 0; } }
/* Theme picker */
.pe-themecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.pe-tc { position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; }
.pe-tc input { position: absolute; opacity: 0; }
.pe-tc:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pe-tc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pe-tc-prev { position: relative; display: block; height: 96px; border-radius: 10px; overflow: hidden; background: var(--ap-bg, linear-gradient(135deg, #22324f, #151b29)); isolation: isolate; }
.pe-tc-prev::before { display: none; }
.pe-tc-prev .ap-art { width: 62%; top: 4px; right: 4px; opacity: .9; }
.pe-tc-prev i { position: relative; display: block; height: 7px; margin: 0 0 6px 10px; border-radius: 4px; background: rgba(255,255,255,.75); width: 38%; }
.pe-tc-prev i:first-of-type { margin-top: 18px; width: 50%; height: 11px; }
.pe-tc-prev i:last-of-type { width: 24%; background: var(--ap); }
.pe-tc-text b { font-size: 15px; }
.pe-tc-text small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pe-tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(47,179,107,.2); color: #3fcf85; margin-left: 4px; }
.pe-tag.wait { background: rgba(232,180,60,.2); color: #e8b43c; }
.pe-tc-try { justify-self: start; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ap:not([data-ap-theme="default"]) .artist-hero .eyebrow, .ap:not([data-ap-theme="default"]) .rh-meta * { color: #fff; }
.ap:not([data-ap-theme="default"]) .artist-hero .eyebrow svg { color: #fff; }
/* Dark themes stay dark all the way down, whatever the visitor's light/dark setting. */
.ap[data-ap-theme="mysterious"], .ap[data-ap-theme="sadgirl"] { --text: #f4f6fb; --muted: #b9bfd0; --faint: #8a90a2; --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.1); --elev: rgba(255,255,255,.12); --line: rgba(255,255,255,.1); --hover: rgba(255,255,255,.08); color: var(--text); }
.ap[data-ap-theme="mysterious"]::before, .ap[data-ap-theme="sadgirl"]::before { height: auto !important; bottom: -48px; border-radius: 0 0 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; }
.ap[data-ap-theme="mysterious"] .song-row a, .ap[data-ap-theme="sadgirl"] .song-row a, .ap[data-ap-theme="mysterious"] .section-h, .ap[data-ap-theme="sadgirl"] .section-h { color: var(--text); }
/* ---------- More themes ---------- */
.ap[data-ap-theme="cyberpunk"] { --ap: #ff2bd6; --ap-bg: linear-gradient(180deg, #120022 0%, #1d0640 40%, #04202e 100%); }
.ap[data-ap-theme="cyberpunk"] .ap-art { color: #2ef2ff; filter: drop-shadow(0 0 6px #2ef2ff); }
.ap[data-ap-theme="cyberpunk"] .artist-hero h1 { text-shadow: 2px 0 0 #ff2bd6, -2px 0 0 #2ef2ff, 0 0 24px rgba(255,43,214,.5); }
.ap[data-ap-theme="classical"] { --ap: #d9b36c; --ap-bg: linear-gradient(180deg, #5a1520 0%, #3a0e16 55%, #1d0a0d 100%); }
.ap[data-ap-theme="classical"] .ap-art { color: #e8cf98; }
.ap[data-ap-theme="classical"] .artist-hero h1, .ap[data-ap-theme="classical"] .section-h { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.01em; }
.ap[data-ap-theme="pro"] { --ap: #c9a45a; --ap-bg: linear-gradient(180deg, #2a2d33 0%, #1b1d22 60%, #121317 100%); }
.ap[data-ap-theme="pro"] .ap-art { color: #c9a45a; }
.ap[data-ap-theme="anime"] { --ap: #ff7fb3; --ap-bg: linear-gradient(180deg, #8ec5ff 0%, #c7b5ff 45%, #ffc4dc 100%); }
.ap[data-ap-theme="anime"] .ap-art { color: #fff; }
.ap[data-ap-theme="bmusic"] { --ap: #46a8ee; --ap-bg: linear-gradient(135deg, #1d5fae 0%, #2a8fc9 50%, #33b7b7 100%); }
.ap[data-ap-theme="bmusic"] .ap-art { color: #fff; opacity: .55; }
.ap[data-ap-theme="custom"] .ap-art { color: var(--ap); }
.ap[data-ap-theme="cyberpunk"], .ap[data-ap-theme="classical"], .ap[data-ap-theme="pro"] { --text: #f4f6fb; --muted: #b9bfd0; --faint: #8a90a2; --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.1); --elev: rgba(255,255,255,.12); --line: rgba(255,255,255,.1); --hover: rgba(255,255,255,.08); color: var(--text); }
.ap[data-ap-theme="cyberpunk"]::before, .ap[data-ap-theme="classical"]::before, .ap[data-ap-theme="pro"]::before { height: auto !important; bottom: -48px; border-radius: 0 0 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; }
.ap[data-ap-theme="cyberpunk"] .section-h, .ap[data-ap-theme="classical"] .section-h, .ap[data-ap-theme="pro"] .section-h, .ap[data-ap-theme="cyberpunk"] .song-row a, .ap[data-ap-theme="classical"] .song-row a, .ap[data-ap-theme="pro"] .song-row a { color: var(--text); }
.ap[data-ap-theme="anime"] .play-xl, .ap[data-ap-theme="anime"] .btn:not(.btn-ghost):not(.google-btn), .ap[data-ap-theme="pro"] .play-xl, .ap[data-ap-theme="classical"] .play-xl { color: #1a1206; }
.ap-art .glitch { animation: ap-glitch 4s steps(1) infinite; }
.ap-art .bar { animation: ap-bar 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.ap-art .petal { animation: ap-petal 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ap-glitch { 0%, 92%, 100% { transform: none; opacity: 1; } 93% { transform: translateX(3px) skewX(-6deg); opacity: .7; } 95% { transform: translateX(-3px); } 97% { transform: none; opacity: .85; } }
@keyframes ap-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@keyframes ap-petal { 0% { transform: translate(0, -10px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-40px, 40px) rotate(220deg); opacity: 0; } }
.ap[data-ap-theme="cyberpunk"] { --ap-anim: ap-hov-glitch; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232ef2ff'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="classical"] { --ap-anim: ap-hov-note; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8cf98'%3E%3Cpath d='M9 18a3 3 0 1 1-2-2.8V4l12-2v12a3 3 0 1 1-2-2.8V6l-8 1.4z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="pro"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a45a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 14v-4M9 18V6M14 15V9M19 13v-2'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="anime"] { --ap-anim: ap-hov-petal; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8fbf'%3E%3Cpath d='M12 3c3 3 4 7 0 11-4-4-3-8 0-11zM5 10c4 0 7 2 7 7-5 0-7-3-7-7zm14 0c0 4-2 7-7 7 0-5 3-7 7-7z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="bmusic"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346a8ee' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M4 16v-4M9 18V8M14 18V4M19 16v-6'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="custom"] { --ap-anim: ap-hov-note; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 18a3 3 0 1 1-2-2.8V4l12-2v12a3 3 0 1 1-2-2.8V6l-8 1.4z'/%3E%3C/svg%3E"); }
@keyframes ap-hov-glitch { 0% { transform: translateX(-4px) skewX(20deg); opacity: 0; } 30% { transform: translateX(3px); opacity: 1; } 60% { transform: translateX(-2px) skewX(-10deg); } 100% { transform: none; } }
@keyframes ap-hov-note { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(-2px); opacity: 1; } }
@keyframes ap-hov-petal { 0% { transform: translate(-6px, -8px) rotate(-90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* Editor: sections and publish buttons */
.pe-sec { max-width: 760px; margin-bottom: 18px; }
.pe-sec h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.pe-pub { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pe-master { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn-big { height: 50px; padding: 0 26px; font-size: 16px; }
.pe-textnote { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin: 0 0 16px; }
.pe-textnote svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.pe-more { margin-top: 12px; }
.pe-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--surface-2); list-style: none; }
.pe-more summary::-webkit-details-marker { display: none; }
.pe-more summary svg { width: 16px; height: 16px; transition: transform .2s; }
.pe-more[open] summary svg { transform: rotate(180deg); }
.pe-custom { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.pe-custom[hidden] { display: none; }
.pe-custom-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pe-custom-row label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.pe-custom-row input[type=color] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; padding: 2px; cursor: pointer; }
.pe-gimg.wait { outline: 2px dashed #e8b43c; }
.pe-gwait { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(232,180,60,.9); color: #241a03; }
.pe-banner { position: relative; }
.pe-limit { max-width: 760px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pe-limit span { flex: 1; min-width: 200px; }
/* ---------- Analytics ---------- */
.prof-artist-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.ins-more { margin-left: auto; height: 34px; font-size: 13px; }
.insights h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.an-head .page-title { margin-bottom: 4px; }
.an-head p { margin: 0; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.an-tile { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.an-tile small { color: var(--muted); font-weight: 600; }
.an-tile b { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.an-tile span:last-child { color: var(--muted); font-size: 12.5px; }
.an-ch { font-size: 12.5px; font-weight: 800; justify-self: start; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.an-ch.up { color: #2fae6b; background: rgba(47,174,107,.14); }
.an-ch.down { color: #d9534f; background: rgba(217,83,79,.14); }
.an-note { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 8px 0 18px; }
.an-note svg { width: 15px; height: 15px; }
.an-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.an-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.an-card { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; min-width: 0; }
.an-grid2 .an-card, .an-grid3 .an-card { margin-bottom: 0; }
.an-card h2 { font-size: 16px; margin: 0 0 12px; }
.an-chart { position: relative; }
.an-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.an-grid { stroke: var(--line); stroke-width: 1; }
.an-axis { fill: var(--muted); font-size: 11px; }
.an-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area { fill: var(--accent); opacity: .12; }
.an-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.an-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.an-hit { fill: transparent; cursor: crosshair; }
.an-tip { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.an-tip[hidden] { display: none; }
.an-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.an-bars li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto 36px; align-items: center; gap: 8px; font-size: 13.5px; }
.an-bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bt { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.an-bt i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.an-bars small { color: var(--muted); text-align: right; }
.an-table-wrap { overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.an-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.an-table td:not(:first-child), .an-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.an-pages { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.an-pages li { display: flex; justify-content: space-between; gap: 10px; }
.an-pages a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.menu-btn:hover { background: rgba(0,0,0,.6); }
.menu-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .menu-btn { background: rgba(0,0,0,.08); color: var(--text); }
:root[data-theme="light"] .menu-btn:hover { background: rgba(0,0,0,.14); }
.menu-label { padding: 8px 14px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acct-switch.on { opacity: 1; cursor: default; }
.acct-switch.on > svg { width: 18px; height: 18px; margin-left: auto; color: var(--accent); }
@media (max-width: 760px) { .menu-btn { height: 32px; padding: 0 10px; } .menu-btn span { display: none; } }
.warn-box { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(232,180,60,.14); border: 1px solid rgba(232,180,60,.55); margin: 6px 0 10px; text-align: left; }
.warn-box > svg { width: 26px; height: 26px; flex-shrink: 0; color: #e8a93c; }
.warn-box > div > b { display: block; margin-bottom: 4px; }
.warn-box ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.an-match { display: block; margin-top: 6px; }
.an-match.ok { color: #2fae6b; font-weight: 700; }
#ask [data-ask="ok"]:disabled { opacity: .45; cursor: not-allowed; }
/* ---------- More, holiday and seasonal themes ---------- */
.pe-more summary small { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--surface); color: var(--muted); }
.ap[data-ap-theme="tech"] { --ap: #2ee6a8; --ap-bg: linear-gradient(180deg, #0b1a2e 0%, #0a2433 50%, #061016 100%); }
.ap[data-ap-theme="podcast"] { --ap: #ff4d4d; --ap-bg: linear-gradient(180deg, #3a2a24 0%, #261b17 55%, #141010 100%); }
.ap[data-ap-theme="podcast"] .ap-art { color: #ffb08a; }
.ap[data-ap-theme="cooking"] { --ap: #e2553b; --ap-bg: linear-gradient(180deg, #f3c27a 0%, #e08c5a 50%, #a8452f 100%); }
.ap[data-ap-theme="cooking"] .ap-art { color: #fff4e2; }
.ap[data-ap-theme="newyear"] { --ap: #d9b34a; --ap-bg: radial-gradient(120% 90% at 70% 0%, #3a2f12 0%, #14110a 50%, #070605 100%); }
.ap[data-ap-theme="valentines"] { --ap: #ff4d73; --ap-bg: linear-gradient(135deg, #ff8fa8 0%, #e8365d 50%, #8a1438 100%); }
.ap[data-ap-theme="valentines"] .ap-art { color: #fff; }
.ap[data-ap-theme="halloween"] { --ap: #ff7a1a; --ap-bg: linear-gradient(180deg, #2b1442 0%, #1a0d29 55%, #0c0612 100%); }
.ap[data-ap-theme="thanksgiving"] { --ap: #e8973c; --ap-bg: linear-gradient(180deg, #8a4a1f 0%, #5e3016 50%, #2e180c 100%); }
.ap[data-ap-theme="thanksgiving"] .ap-art { color: #f6c27a; }
.ap[data-ap-theme="christmas"] { --ap: #e2463f; --ap-bg: linear-gradient(180deg, #164a33 0%, #0f3324 55%, #081a12 100%); }
.ap[data-ap-theme="christmas"] .ap-art { color: #f3d27a; }
.ap[data-ap-theme="winter"] { --ap: #5fb2e8; --ap-bg: linear-gradient(180deg, #a9d8f5 0%, #6fa8d6 50%, #3e6f9e 100%); }
.ap[data-ap-theme="winter"] .ap-art { color: #fff; }
.ap[data-ap-theme="spring"] { --ap: #5cbf6a; --ap-bg: linear-gradient(135deg, #ffd1e3 0%, #b9eab0 50%, #6fc28a 100%); }
.ap[data-ap-theme="spring"] .ap-art { color: #fff; }
.ap[data-ap-theme="summertime"] { --ap: #ffb020; --ap-bg: linear-gradient(180deg, #5cc8ff 0%, #8ad9f0 45%, #ffd36b 100%); }
.ap[data-ap-theme="summertime"] .ap-art { color: #fff; }
.ap[data-ap-theme="fall"] { --ap: #e2682b; --ap-bg: linear-gradient(135deg, #f0a23c 0%, #d65a28 50%, #7a2a14 100%); }
.ap[data-ap-theme="fall"] .ap-art { color: #ffe0a8; }
.ap[data-ap-theme="tech"], .ap[data-ap-theme="podcast"], .ap[data-ap-theme="newyear"], .ap[data-ap-theme="halloween"], .ap[data-ap-theme="thanksgiving"], .ap[data-ap-theme="christmas"] { --text: #f4f6fb; --muted: #b9bfd0; --faint: #8a90a2; --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.1); --elev: rgba(255,255,255,.12); --line: rgba(255,255,255,.1); --hover: rgba(255,255,255,.08); color: var(--text); }
.ap[data-ap-theme="tech"]::before, .ap[data-ap-theme="podcast"]::before, .ap[data-ap-theme="newyear"]::before, .ap[data-ap-theme="halloween"]::before, .ap[data-ap-theme="thanksgiving"]::before, .ap[data-ap-theme="christmas"]::before { height: auto !important; bottom: -48px; border-radius: 0 0 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 92%, transparent 100%) !important; }
.ap[data-ap-theme="tech"] .section-h, .ap[data-ap-theme="podcast"] .section-h, .ap[data-ap-theme="newyear"] .section-h, .ap[data-ap-theme="halloween"] .section-h, .ap[data-ap-theme="thanksgiving"] .section-h, .ap[data-ap-theme="christmas"] .section-h,
.ap[data-ap-theme="tech"] .song-row a, .ap[data-ap-theme="podcast"] .song-row a, .ap[data-ap-theme="newyear"] .song-row a, .ap[data-ap-theme="halloween"] .song-row a, .ap[data-ap-theme="thanksgiving"] .song-row a, .ap[data-ap-theme="christmas"] .song-row a { color: var(--text); }
.ap[data-ap-theme="tech"] .ap-art { filter: drop-shadow(0 0 5px #2ee6a8); }
.ap[data-ap-theme="newyear"] .artist-hero h1 { text-shadow: 0 0 22px rgba(217,179,74,.55); }
.ap[data-ap-theme="tech"] .play-xl, .ap[data-ap-theme="newyear"] .play-xl, .ap[data-ap-theme="summertime"] .play-xl, .ap[data-ap-theme="spring"] .play-xl, .ap[data-ap-theme="thanksgiving"] .play-xl { color: #1a1206; }
/* hover touches */
.ap[data-ap-theme="tech"] { --ap-anim: ap-hov-glitch; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6a8' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="podcast"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3' fill='%23ff6b6b'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v4'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="cooking"] { --ap-anim: ap-hov-note; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2553b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 20c-3-4 3-6 0-10M13 20c-3-4 3-6 0-10M18 20c-3-4 3-6 0-10'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="newyear"] { --ap-anim: ap-hov-twinkle; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f2cf6a'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="valentines"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8365d'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="halloween"] { --ap-anim: ap-hov-pop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7a1a'%3E%3Cpath d='M12 6c-6 0-9 4-9 8s3 7 9 7 9-3 9-7-3-8-9-8zM12 6V3h2'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="thanksgiving"], .ap[data-ap-theme="fall"] { --ap-anim: ap-hov-petal; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2682b'%3E%3Cpath d='M12 2l2 5 5-2-2 5 5 2-5 2 2 5-5-2-2 5-2-5-5 2 2-5-5-2 5-2-2-5 5 2z'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="christmas"], .ap[data-ap-theme="winter"] { --ap-anim: ap-hov-drop; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fd3f5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M2 12h20M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="spring"] { --ap-anim: ap-hov-sprout; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cbf6a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 22V11'/%3E%3Cpath d='M12 13c-1-4-5-6-8-5 1 4 5 6 8 5zM12 11c1-4 5-6 8-5-1 4-5 6-8 5z' fill='%235cbf6a'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="summertime"] { --ap-anim: ap-hov-wave; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb020' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ffb020'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2'/%3E%3C/svg%3E"); }
.ap[data-ap-theme="spring"] .artist-hero h1, .ap[data-ap-theme="spring"] .artist-hero .eyebrow, .ap[data-ap-theme="spring"] .rh-meta, .ap[data-ap-theme="spring"] .rh-meta *, .ap[data-ap-theme="spring"] .ap-hero-tag, .ap[data-ap-theme="spring"] .artist-hero .eyebrow svg { color: #173a22; text-shadow: none; }
.ap[data-ap-theme="spring"] .actions .icon-btn, .ap[data-ap-theme="spring"] .actions .btn-ghost { color: #173a22; border-color: rgba(23,58,34,.35); }
.ap[data-ap-theme="spring"] .ap-art { color: #2f7d45; }
.ap[data-ap-theme="spring"] .actions .icon-btn, .ap[data-ap-theme="spring"] .actions .btn-ghost { color: #173a22 !important; border-color: rgba(23,58,34,.35) !important; }
/* ---------- Stickers ---------- */
.stk { display: inline-block; line-height: 0; pointer-events: auto; cursor: default; filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 5px 8px rgba(0,0,0,.28)); animation: stk-idle 4s ease-in-out infinite; transform-origin: center; }
.stk svg { width: 100%; height: 100%; display: block; overflow: visible; }
.artist-hero { position: relative; }
.artist-hero .rh-art { position: relative; }
.ap-about { position: relative; }
.stk-name { width: .62em; height: .62em; margin-left: .12em; vertical-align: .32em; rotate: 12deg; }
.stk-bg { position: absolute; right: 12%; bottom: 18px; width: 84px; height: 84px; rotate: -8deg; z-index: 1; animation-duration: 5s; }
.stk-photo { position: absolute; right: -6px; bottom: -4px; width: 30%; height: 30%; min-width: 44px; min-height: 44px; rotate: 10deg; z-index: 2; }
.stk-about { position: absolute; top: -18px; right: 18px; width: 54px; height: 54px; rotate: 8deg; }
.stk-songs { width: 30px; height: 30px; margin-left: 10px; vertical-align: -4px; rotate: -10deg; }
.section-h .stk-songs { display: inline-block; }
@keyframes stk-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.stk.go { animation: var(--stk-go) .85s ease both; }
.stk[data-stk-anim="pulse"] { --stk-go: stk-pulse; }
.stk[data-stk-anim="spin"] { --stk-go: stk-spin; }
.stk[data-stk-anim="wiggle"] { --stk-go: stk-wiggle; }
.stk[data-stk-anim="bounce"] { --stk-go: stk-bounce; }
.stk[data-stk-anim="float"] { --stk-go: stk-floatup; }
.stk[data-stk-anim="shake"] { --stk-go: stk-shake; }
.stk[data-stk-anim="flap"] { --stk-go: stk-flap; }
.stk[data-stk-anim="steam"] { --stk-go: stk-bounce; }
.stk[data-stk-anim="flicker"] { --stk-go: stk-flicker; }
.stk[data-stk-anim="twinkle"] { --stk-go: stk-twinkle; }
.stk[data-stk-anim="launch"] { --stk-go: stk-launch; }
.stk[data-stk-anim="steam"] .stk-steam { animation: stk-steam 2.4s ease-in-out infinite; }
@keyframes stk-pulse { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.3); } 50% { transform: scale(.95); } 75% { transform: scale(1.15); } }
@keyframes stk-spin { to { transform: rotate(360deg); } }
@keyframes stk-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
@keyframes stk-bounce { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14px) scale(1.06, .94); } 55% { transform: translateY(0) scale(1.08, .9); } 75% { transform: translateY(-5px); } }
@keyframes stk-floatup { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-6deg); } }
@keyframes stk-shake { 0%, 100% { transform: translateX(0); } 15%, 45%, 75% { transform: translateX(-5px) rotate(-4deg); } 30%, 60%, 90% { transform: translateX(5px) rotate(4deg); } }
@keyframes stk-flap { 0%, 100% { transform: scaleX(1); } 20%, 60% { transform: scaleX(.35); } 40%, 80% { transform: scaleX(1); } }
@keyframes stk-flicker { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.1, .9); } 40% { transform: scale(.92, 1.12); } 60% { transform: scale(1.08, .94); } 80% { transform: scale(.96, 1.06); } }
@keyframes stk-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 30% { transform: scale(.7) rotate(-15deg); opacity: .6; } 60% { transform: scale(1.25) rotate(10deg); opacity: 1; } }
@keyframes stk-launch { 0% { transform: translate(0, 0); } 40% { transform: translate(6px, -18px) rotate(8deg); } 55% { transform: translate(6px, -18px) rotate(8deg); opacity: 1; } 100% { transform: translate(0, 0); } }
@keyframes stk-steam { 0%, 100% { opacity: .4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .stk, .stk.go, .stk .stk-steam { animation: none !important; } }
@media (max-width: 700px) { .stk-bg { width: 60px; height: 60px; right: 6%; bottom: 12px; } .stk-about { width: 44px; height: 44px; } }
/* Editor + picker */
.pe-stk-list { display: grid; gap: 8px; margin-top: 12px; }
.pe-stk-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.pe-stk-prev { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-size: 12px; }
.pe-stk-prev svg { width: 36px; height: 36px; }
.pe-stk-label { flex: 1; min-width: 0; display: grid; }
.pe-stk-label small { color: var(--muted); }
.stk-picker { max-height: 52vh; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }
.stk-picker h4 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stk-opt { aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: var(--surface-2); padding: 8px; cursor: pointer; transition: transform .15s; }
.stk-opt:hover { transform: scale(1.08) rotate(-4deg); }
.stk-opt.on { border-color: var(--accent); }
.stk-opt svg { width: 100%; height: 100%; }
.stk-none { margin-top: 12px; width: 100%; justify-content: center; }
@media (max-width: 480px) { .stk-grid { grid-template-columns: repeat(4, 1fr); } }
/* ---------- Cookie card (small, bottom corner, never blocks the page) ---------- */
.cookie-card { position: fixed; left: 20px; bottom: calc(var(--player-h) + 16px); z-index: 55; width: min(380px, calc(100vw - 32px)); padding: 16px 16px 14px; border-radius: 16px; background: var(--surface, #1b1e27); color: var(--text); border: 1px solid var(--line, rgba(127,127,127,.18)); box-shadow: 0 14px 40px rgba(0,0,0,.3); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.cookie-card.show { opacity: 1; transform: none; }
.cookie-top { display: flex; gap: 12px; align-items: flex-start; }
.cookie-ico { font-size: 24px; line-height: 1; margin-top: 2px; }
.cookie-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.cookie-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cookie-card p a { color: inherit; text-decoration: underline; }
.cookie-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cookie-btns .btn { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.cookie-no { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 4px; cursor: pointer; }
.cookie-no:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 768px) { .cookie-card { left: 16px; right: 16px; width: auto; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--mini-h, 0px) + 14px); } }
@media (prefers-reduced-motion: reduce) { .cookie-card { transition: none; } }
.cookie-opts { display: grid; gap: 8px; margin-top: 12px; }
.cookie-opt { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.cookie-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cookie-opt[aria-checked="true"] { border-color: var(--accent); }
.cookie-opt[aria-checked="true"] b::after { content: " ✓"; color: var(--accent); }
#cookies .muted a { color: var(--accent); text-decoration: underline; }
/* ---------- Downloads (offline) ---------- */
.dl-mark { display: none; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: var(--accent); flex-shrink: 0; }
.dl-mark svg { width: 14px; height: 14px; stroke-width: 2.6; }
.song-row.is-dl .dl-mark { display: inline-block; }
.dl-btn.on { color: var(--accent); }
.dl-btn.on svg { stroke-width: 2.6; }
body.is-offline .song-row:not(.is-dl) { opacity: .45; }
body.is-offline .song-row:not(.is-dl) .sr-play { pointer-events: none; }
/* ---------- Phone polish ---------- */
@media (pointer: coarse) {
  .sr-end .icon-btn { width: 44px; height: 44px; }
  .sr-end { gap: 2px; }
  .song-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .song-row.held { background: var(--hover); transform: scale(.985); transition: transform .15s ease, background .15s ease; }
}
.np-art { position: relative; }
.np-heart-burst { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fff; pointer-events: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); animation: np-burst .85s ease forwards; z-index: 3; }
.np-heart-burst svg { width: 100%; height: 100%; fill: #ff4d7d; stroke: #ff4d7d; }
@keyframes np-burst { 0% { transform: scale(.2); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 35% { transform: scale(.95); } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.2) translateY(-30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .np-heart-burst { animation-duration: .01s; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; cursor: pointer; }
.switch-row span { display: grid; gap: 2px; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; }
/* Full-screen player on a phone turned sideways: artwork on the left, everything else on the right. */
@media (orientation: landscape) and (max-height: 500px) {
  .np-inner { max-width: 980px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 32px; align-content: center;
    padding: calc(4px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .np-head { grid-column: 1 / -1; }
  .np-art { grid-column: 1; grid-row: 2 / span 6; padding: 6px 0; align-self: center; }
  .np-art-inner { width: min(62vh, 40vw); }
  .np-info, .np-progress, .np-controls, .np-extra, .np-lyrics { grid-column: 2; }
  .np-info { margin-top: 4px; }
  .np-progress { margin-top: 6px; }
  .np-upnext { display: none !important; }
  .np-lyrics { margin-top: 8px; max-height: 76px; }
  .np-title { font-size: 21px; }
}
/* Waveform progress bar: the song's shape masks the bar */
.slider.has-wave { height: 26px; background-size: var(--pct) 100%, 100% 100%; -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat; mask: var(--wave) 0 0 / 100% 100% no-repeat; }
.slider.has-wave::-webkit-slider-runnable-track { height: 26px; }
.slider.has-wave::-webkit-slider-thumb { opacity: 0 !important; }
.slider.has-wave::-moz-range-thumb { opacity: 0 !important; }
.np .slider.has-wave, .np .slider.has-wave::-webkit-slider-runnable-track { height: 40px; }
.pl-progress .slider.has-wave { --fill: var(--accent); }
/* Uploading from a phone */
.mm-keep { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
@media (pointer: coarse) {
  .mm-drop { min-height: 96px; padding: 18px; }
  .mm-drop > .ic { width: 32px; height: 32px; }
  #mm-audio-label { border-width: 2px; }
}
@media (max-width: 768px) {
  body.is-uploading .mm-progress { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--mini-h, 0px) + 10px); z-index: 60; padding: 12px 14px; border-radius: 14px; background: var(--surface, #1b1e27); border: 1px solid var(--line, rgba(127,127,127,.2)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
}
/* Release share kit */
.kit-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0 0 20px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.kit-banner > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kit-banner small { color: var(--muted); }
.kit-pop { font-size: 30px; }
@media (max-width: 600px) { .kit-banner { flex-wrap: wrap; } .kit-banner > .btn { flex: 1; justify-content: center; } }
.kit-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; margin: 6px 0 14px; }
.kit-imgs figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.kit-imgs figcaption { font-size: 12.5px; color: var(--muted); }
.kit-prev { width: 100%; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.kit-prev.post { aspect-ratio: 1; }
.kit-prev.story { aspect-ratio: 9 / 16; max-height: 300px; width: auto; height: 300px; }
.kit-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-imgs .btn { width: 100%; justify-content: center; }
.kit-label { font-weight: 700; font-size: 13px; }
.kit-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kit-btns .btn { flex: 1; justify-content: center; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line, rgba(127,127,127,.3)); border-top-color: var(--accent); animation: spin .8s linear infinite; }
/* Analytics at a glance (phones): swipeable cards */
.an-glance { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 4px -16px 6px; padding: 4px 16px; }
.an-glance::-webkit-scrollbar { display: none; }
.an-gl { flex: 0 0 82%; scroll-snap-align: center; display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 26%, var(--surface-2)), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); min-height: 128px; align-content: center; }
.an-gl small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.an-gl small .ic { width: 16px; height: 16px; }
.an-gl b { font-size: 34px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-gl span { color: var(--muted); font-size: 14px; }
.an-glance-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.an-glance-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: width .2s, background .2s; }
.an-glance-dots i.on { width: 18px; border-radius: 3px; background: var(--accent); }
@media (min-width: 769px) { .an-glance, .an-glance-dots { display: none; } }
.kit-imgs .btn { padding: 8px 10px; font-size: 13.5px; gap: 6px; white-space: nowrap; }
@media (max-width: 480px) { .kit-btns { flex-direction: column; } .kit-btns .btn { white-space: nowrap; } }
