:root {
  --bg: #070708;
  --card: #121214;
  --card-2: #1a1a1d;
  --line: rgba(255,255,255,.10);
  --text: #f4f4f4;
  --muted: #8d8d92;
  /* 0.6.0 (#78): one red and one light grey, used everywhere instead of hard-coded near-duplicates. */
  --danger: #e15b64;
  --soft: #d8d8d8;
  --outline: rgba(255,255,255,.55);
  --radius-card: 12px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#bg {
  position: fixed;
  inset: 0;
  background:
    url("/logo-background-desktop.webp") center center / 152vw auto no-repeat,
    var(--bg);
  background:
    image-set(url("/logo-background-desktop.webp") type("image/webp")) center center / 152vw auto no-repeat,
    var(--bg);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
#app { position: relative; z-index: 1; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
img { display: block; max-width: 100%; }

.app-top {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(8px + var(--safe-top)) 16px 10px;
  background: rgba(7,7,8,.94);
  border-bottom: 1px solid var(--line);
}
.app-top h1 { font-size: 24px; }
.ptr-hint {
  position: fixed;
  top: calc(64px + var(--safe-top));
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  z-index: 11;
  pointer-events: none;
}
.wrap {
  padding: calc(88px + var(--safe-top)) 16px calc(150px + var(--safe-bottom));
  max-width: 1080px;
  margin: 0 auto;
  will-change: transform;
}
html.standalone .wrap {
  padding-top: calc(92px + var(--safe-top));
}
.wrap.auth { padding-bottom: calc(32px + var(--safe-bottom)); max-width: 420px; }

.topbar, .sheet-head, .row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
}
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.03em; }
h1 { font-size: 28px; }
.muted { color: var(--muted); }
.icon-btn, .btn, .ghost, .danger {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.86);
  line-height: 0;
}
/* 0.6.0 (#73-#77, his pick): every button is an outlined pill; it fills for a moment when tapped.
   .btn and .ghost look the same now (pairs match). Destructive buttons get the red outline. */
.btn, .ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--outline);
  font-weight: 650;
  transition: background-color .18s ease, color .18s ease;
}
.btn { width: 100%; }
.btn:active, .ghost:active, .btn.tap, .ghost.tap { background: var(--text); color: #111; }
.danger, .danger-outline, .ghost.danger-outline {
  min-height: 44px; border-radius: 999px; padding: 0 16px; background: transparent;
  color: var(--danger); border: 1px solid var(--danger); font-weight: 650;
  transition: background-color .18s ease, color .18s ease;
}
.danger:active, .danger-outline:active, .danger-outline.tap, .ghost.danger-outline.tap { background: var(--danger); color: #111; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn, .actions .ghost { width: auto; flex: 1; }

input, select, textarea {
  width: 100%;
  background: rgba(18,18,20,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 16px;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.form { display: grid; }
.search { margin: 12px 0; }

.artist-grid, .album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.artist-card {
  text-align: left;
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(160,160,165,.28);
  background: var(--card);
}
.artist-photo {
  aspect-ratio: 3 / 4.05;
  background: #161618;
  position: relative;
  overflow: hidden;
}
.artist-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
}
.artist-name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}
.artist-name strong { display: block; font-size: 16px; }
.artist-name span { color: var(--muted); font-size: 13px; }

.album-card {
  text-align: left;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  min-width: 0;
}
.album-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #161618;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.album-meta, .song-meta { padding: 8px 2px 0; }
.album-meta strong, .song-row strong { display: block; }
.album-meta span, .song-row span { color: var(--muted); font-size: 13px; }
.album-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-meta span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-list { display: grid; gap: 8px; }
.song-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-card);
  background: rgba(18,18,20,.82);
  border: 1px solid var(--line);
  text-align: left;
}
.song-thumb { width: 52px; height: 52px; border-radius: 10px; background: #161618; overflow: hidden; position: relative; }

.empty, .panel {
  background: rgba(12,12,14,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}
.panel { margin-top: 14px; }

.mini {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 46px 1fr 34px 34px 34px 34px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(16,16,18,.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  z-index: 8;
}
.mini-art { width: 46px; height: 46px; border-radius: 10px; background: #161618; overflow: hidden; position: relative; }
.mini button.meta { text-align: left; overflow: hidden; }
.mini strong, .mini span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(7,7,8,.94);
  border-top: 1px solid var(--line);
  z-index: 9;
}
.tab { min-height: 42px; border-radius: 12px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; }
.tab.on { background: #1c1c20; color: var(--text); }
.ui-icon { width: 22px; height: 22px; display: block; pointer-events: none; color: #fff; }
.now-title { display: flex; align-items: center; gap: 10px; }
.now-title h2 {
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.song-row button strong, .track-thin button, .recent-tile strong, .mini strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.wrap.now-view { padding-bottom: calc(24px + var(--safe-bottom)); }
.now-art {
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 24px;
  background: #161618 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.lyrics-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  overflow: auto;
  padding: 32% 20px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 18px;
}
.lyrics-overlay .sync-line {
  filter: blur(2px);
  opacity: 0.7;
  transition: filter .28s ease, opacity .28s ease;
}
.lyrics-overlay .sync-line.on {
  filter: none;
  opacity: 1;
}
.lyrics-overlay .sync-line.gap {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 1.4em;
  filter: none;
}
.lyrics-overlay .sync-line.gap i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.lyrics-overlay .sync-line.gap.on i {
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.lyrics-overlay .sync-line.gap.on i:nth-child(2) { animation-delay: .2s; }
.lyrics-overlay .sync-line.gap.on i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-pulse {
  0%, 100% { opacity: .28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.progress input { accent-color: var(--soft); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.controls { display: flex; justify-content: center; gap: 16px; align-items: center; }
.controls .icon-btn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.controls .ui-icon { width: 22px; height: 22px; }
.mini .icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.mini .ui-icon { width: 18px; height: 18px; }
.play-main { width: 70px !important; height: 70px !important; background: #1a1a1c; color: #fff; font-size: 22px; border: 1px solid #2a2a2e; }

.hidden { display: none !important; }
.print-frame { position: absolute; width: 0; height: 0; border: 0; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.back { margin-bottom: 14px; width: auto; }

.drawer-dim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 20;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 360px);
  height: 100dvh;
  background: #101012;
  border-left: 1px solid var(--line);
  z-index: 21;
  padding: calc(18px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer button {
  text-align: left;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
}
.drawer button:hover, .drawer button:active { background: #1c1c20; }
.menu-lines {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.86);
  border-radius: 999px;
}
.menu-lines i {
  display: block;
  width: 16px;
  height: 2px;
  background: #ececec;
  border-radius: 1px;
}
.wrap.sync-view { padding-top: 8px; padding-bottom: calc(88px + var(--safe-bottom)); }
.sync-board {
  height: calc(100dvh - 360px);
  max-height: calc(100dvh - 360px);
  overflow: auto;
  padding: 10px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sync-line { margin: 0 0 10px; color: var(--muted); line-height: 1.5; }
.sync-line.on { color: var(--text); font-size: 22px; font-weight: 650; }
.sync-line.done { color: var(--soft); }
.btn:active, .ghost:active, .icon-btn:active, .tab:active, .menu-lines:active,
.artist-card:active, .album-card:active, .song-row button:active, .drawer button:active {
  transform: scale(0.97);
  opacity: 0.72;
}
.btn[disabled], .ghost[disabled] { opacity: 0.45; }
.song-line {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.song-line .num { color: var(--muted); }
.studio-artist-row,
.studio-song-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.studio-song-row { grid-template-columns: 1fr 44px 72px; }
.studio-artist-row .line-title,
.studio-song-row .line-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.print-btn { width: auto; min-height: 44px; padding: 0 12px; }
.studio-album-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.studio-album-row strong, .studio-album-row em { display: block; }
.studio-album-row em { color: var(--muted); font-style: normal; font-size: 13px; }
.studio-album-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #161618;
  overflow: hidden;
  position: relative;
}
.studio-songs { padding: 0 0 8px 8px; }
.recent-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.recent-tile {
  width: 88px;
  flex: 0 0 auto;
  text-align: left;
}
.recent-art {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: #161618;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
}
.recent-tile strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sync-board, .sync-line, .sync-hold-wrap, .hold-copy {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.sync-hold-wrap {
  position: static;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  touch-action: none;
  pointer-events: auto;
}
.sync-hold-wrap .hold-circle,
.sync-save { pointer-events: auto; }
.sync-save { margin-top: 16px; }
.hold-circle {
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 50%;
  background: var(--danger);
  border: 0;
  box-shadow: 0 0 0 4px rgba(198,40,40,.25);
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.hold-circle.down { background: var(--danger); filter: brightness(1.15); transform: scale(0.96); }
.hold-copy { text-align: center; margin: 0; color: var(--text); font-size: 15px; }
.check { display: block; margin: 6px 0; }
.file-btn { width: auto; padding: 0 12px; }
.name-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-bottom: 8px; }
/* 0.5.10: the ▼ Chrome/Edge draw in a text box with suggestions (Artist, names) sat low on taller lines; center it. */
input[list]::-webkit-calendar-picker-indicator { line-height: 1; }
.written-by { display: block; text-align: center; margin-top: 18px; color: var(--muted); white-space: normal; font-size: 13px; }
.upload-track { height: 3px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 0 0 10px; }
.upload-track i { display: block; height: 100%; width: 0; background: var(--soft); }

.album-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: end;
  margin: 10px 0 8px;
}
.album-hero-art {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: #161618;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  overflow: hidden;
  position: relative;
  flex: 0 0 120px;
}
.album-hero h1 { font-size: 28px; letter-spacing: -.03em; margin: 0; }
.section-title {
  margin: 22px 0 10px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.empty-card {
  background: rgba(12,12,14,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}
.seg { display: flex; gap: 8px; margin: 14px 0 4px; }
.seg button {
  flex: 1;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.seg button.on { background: #ececec; color: #111; border-color: #ececec; font-weight: 700; }
.song-row.playing strong { color: #fff; }
.track-thin.playing button { color: #fff; font-weight: 700; }
.track-thin {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.track-thin.playing { grid-template-columns: 16px 1fr auto; }
.track-thin .eq { position: static; }
.track-thin button {
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 16px;
}
.song-row-lib {
  grid-template-columns: 44px 1fr auto 44px;
}
.song-row-lib .dur { color: var(--muted); font-size: 13px; min-width: 40px; text-align: right; }
.lib-index { display: grid; gap: 2px; margin-top: 8px; }
.lib-index button {
  text-align: left;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
}
.search-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: none;
}
.search-row strong, .search-row em { display: block; }
.search-row em { color: var(--muted); font-style: normal; font-size: 13px; }
.search-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #161618;
  overflow: hidden;
  position: relative;
}
.chev { color: var(--muted); font-size: 22px; }
.menu-sheet { z-index: 20; }

@media (min-width: 860px) {
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
  .album-grid { grid-template-columns: repeat(4, 1fr); }
  .wrap { padding-top: calc(24px + var(--safe-top)); }
  .mini { left: max(12px, calc(50vw - 360px)); right: max(12px, calc(50vw - 360px)); }
}
body.lock-scroll {
  overflow: hidden;
  height: 100%;
}
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: max(8px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: #070708;
  -webkit-overflow-scrolling: touch;
}
.player-handle {
  display: flex;
  justify-content: center;
  padding: 4px 0 6px;
  touch-action: none;
}
.desk-close { display: none; }
.player-handle i {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.icon-btn.on { background: #ececec; }
.icon-btn { color: #fff; }
.icon-btn.on .ui-icon { color: #111; filter: none; }
.icon-btn { position: relative; }
.rep-one {
  position: absolute;
  left: 16px;
  top: 11px;
  font-size: 9px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
button:active, .tab:active, .icon-btn:active, .ghost:active, .btn:active {
  transform: scale(.97);
  opacity: .82;
}
.text-link {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font: inherit;
}
.player-overlay { animation: sheet-up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
#seek { height: 4px; }
#seek:active { height: 10px; }
.eq {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
  z-index: 2;
}
.eq i {
  width: 2px;
  height: 5px;
  background: #fff;
  border-radius: 1px;
  transform-origin: bottom;
}
.eq.live i:nth-child(1) { animation: eq 0.42s ease-in-out infinite; }
.eq.live i:nth-child(2) { animation: eq 0.36s ease-in-out infinite .08s; height: 8px; }
.eq.live i:nth-child(3) { animation: eq 0.5s ease-in-out infinite .12s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}
.song-thumb, .recent-art { position: relative; }
.recent-tile span { display: block; color: var(--muted); font-size: 12px; }
.shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 14px;
  -webkit-overflow-scrolling: touch;
}
.shelf .album-card {
  flex: 0 0 148px;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
}
.social-row {
  display: flex;
  gap: 12px;
  margin: 22px 0 8px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18,18,20,.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icon { width: 22px; height: 22px; display: block; }

.now-art { width: min(100%, 420px); }
.now-row { display: flex; align-items: center; gap: 10px; }
.now-copy { flex: 1; min-width: 0; }
.now-copy h2 { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-copy p { margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sheet {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  max-height: 70%;
  overflow: auto;
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 18px;
  z-index: 5;
  padding: 8px;
}
.player-sheet button { width: 100%; text-align: left; min-height: 44px; }
.sheet-dim { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 4; }
.queue-head { display: grid; grid-template-columns: 52px 1fr 44px 44px; gap: 8px; align-items: center; }
.queue-art { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; }
.queue-modes { display: flex; gap: 8px; margin: 10px 0; }
.queue-list { max-height: 46vh; overflow: auto; }
.credits-block { white-space: pre-wrap; color: var(--muted); font: inherit; margin: 8px 12px; }
.lyrics-overlay.browsing .sync-line { filter: none; opacity: 1; }

.controls { justify-content: space-between; }
.now-row { align-items: center; }
.now-copy p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-overlay { padding-top: max(28px, calc(18px + env(safe-area-inset-top))); }
.now-art { margin-top: 10px; }
.now-row { margin-top: -2px; }
.player .progress { margin-top: 18px; }
.player .controls { margin-top: 22px; }

.now-row { min-width: 0; }
.now-row .icon-btn { flex: 0 0 44px; }
.now-copy { overflow: hidden; }
.now-copy h2.marquee { text-overflow: clip; }
.now-copy h2.marquee span { display: inline-block; white-space: nowrap; animation: title-marquee 9s linear infinite; }
@keyframes title-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.player .controls { width: 100%; gap: 8px; }
.player .controls .icon-btn { flex: 0 0 48px; width: 48px; height: 48px; }
.player .controls .play-main { flex: 0 0 68px; width: 68px !important; height: 68px !important; }

.now-album { margin: 0; }
.times span[data-plays] { color: var(--muted); }

.desk-artist { width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.desk-artist strong, .desk-artist em { display: block; }
.desk-artist em { color: var(--muted); font-style: normal; font-size: 13px; }
.wrap.sync-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 12px; }
.sync-top { display: flex; align-items: center; gap: 8px; }
.sync-top h1 { margin: 0; font-size: 22px; }
.sync-top .ghost { width: auto; }
.sync-board { flex: 1; height: auto; max-height: none; }
.sync-hold-wrap { position: sticky; bottom: 0; background: var(--bg); padding-top: 8px; }
.now-album.marquee, .now-copy h2.marquee { text-overflow: clip; }

.desk-song { padding: 12px 0; border-bottom: 1px solid var(--line); background: #101012; }
.desk-song .line-title { display: block; font-weight: 650; margin-bottom: 8px; }
.desk-actions { display: flex; gap: 8px; }
.desk-actions .ghost { flex: 1; white-space: nowrap; }
/* Lyrics Desk album rows: title left; Print + Export side by side, Video underneath spanning both */
.desk-track { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.desk-track .line-title { flex: 1; min-width: 0; padding: 11px 0; line-height: 22px; overflow-wrap: anywhere; }
.desk-track-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.desk-track-actions .ghost { width: 100%; min-width: 0; white-space: nowrap; }
.desk-track-actions [data-video] { grid-column: 1 / -1; }
.desk-album { margin: 16px 0 4px; color: var(--text); font-size: 13px; letter-spacing: 0; text-transform: none; }
.desk-artist, .panel, .form { background: #101012; }
.stack-actions { display: grid; gap: 10px; margin-top: 12px; }
.ghost, .btn, .file-btn { min-height: 44px; border-radius: 999px; }
input[type=file] { color: var(--text); }
input[type=file]::file-selector-button { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #1c1c1f; color: #fff; padding: 0 12px; }
input[type=checkbox] { accent-color: var(--muted); }
.form { display: grid; gap: 12px; padding-bottom: calc(96px + var(--safe-bottom)); }
.ok, .file-btn.ok { color: #3dd68c; }
.bad, .err { color: var(--danger); }
body.sync-screen .tabbar, body.sync-screen [data-mini-bar] { display: none; }
.sync-back { width: auto; align-self: start; margin: 8px 0; position: relative; z-index: 2; }

.song-line { grid-template-columns: 28px 1fr auto auto auto; align-items: center; }
.song-line .file-btn, .song-line .icon-btn { height: 44px; min-height: 44px; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.song-line .file-btn { width: auto; min-width: 108px; padding: 0 12px; }
.sync-top { display: grid; gap: 8px; margin-top: 8px; }
.sync-top h1 { margin: 0; font-size: 22px; }
.sync-tools { display: flex; gap: 8px; align-items: center; }
.sync-tools .ghost { width: auto; padding: 0 14px; }
.wrap.sync-view { padding-top: 76px; }

.song-line .icon-btn { border-radius: 12px; width: 44px; height: 44px; }
.song-line .file-btn { height: 44px; border-radius: 12px; }
.sync-back { display: inline-flex; align-items: center; width: auto; }

.song-line { align-items: center; }
.song-line .file-btn { height: 44px; min-height: 44px; max-height: 44px; line-height: 44px; padding: 0 12px; margin: 0; box-sizing: border-box; }
.song-line .file-btn input { display: none; }

.sync-top .sync-back { width: fit-content !important; max-width: 70%; }
.music-row { display: grid; grid-template-columns: 24px 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.music-row em { color: var(--muted); font-style: normal; font-size: 12px; }
.music-row .ghost { width: auto; padding: 0 10px; }

.picker { position: fixed; left: 16px; right: 16px; bottom: 92px; background: #161616; border: 1px solid var(--line); border-radius: 16px; padding: 8px; z-index: 30; }
.picker button { width: 100%; text-align: left; background: transparent; color: white; min-height: 44px; }
.music-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 36px; gap: 8px; align-items: center; }
.music-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-row .ghost { width: auto; }

.ready-note { color: #3dd68c; font-weight: 600; }
.music-row { grid-template-columns: 22px minmax(0, 1fr) auto auto 36px; }

.picker { position: fixed; left: 28px; right: 28px; top: 30%; background: #1c1c1e; border: 1px solid #333; border-radius: 16px; padding: 8px; z-index: 41; }
.panel.form input, .panel.form select { width: 100%; max-width: 100%; box-sizing: border-box; }
.panel.form .check { display: flex; align-items: center; gap: 10px; }
.panel.form { margin-bottom: 96px; }

.panel.form { overflow: hidden; }
.panel.form .check { display: flex; align-items: center; gap: 10px; width: 100%; }
.panel.form .check span { white-space: nowrap; }
.panel.form input[type="date"] { display: block; width: 100%; max-width: 100%; min-width: 0; }

.panel.form .check { display: flex; align-items: center; gap: 8px; width: auto; }
.panel.form .check input { width: 22px; min-width: 22px; height: 22px; flex: 0 0 22px; }
.panel.form label { display: block; max-width: 100%; }
.panel.form input[type="date"] { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }

.format-screen { position: fixed; inset: 0; background: #0d0d0d; z-index: 50; padding: 24px 16px 96px; overflow: auto; }
.row-pick { position: relative; overflow: hidden; }
.row-pick select { position: absolute; inset: 0; opacity: 0; }

.format-screen { top: 88px; }
.format-back { margin-top: 72px; }
.panel.form .check + .muted { margin-top: -6px; }

.date-field { position: relative; display: block; width: 100%; }
.date-field input[type="text"] { width: 100%; }
.date-field input[type="date"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 960px) {
  #bg {
    background:
      url("/logo-background-desktop.webp") center center / auto min(100vh, 980px) no-repeat,
      var(--bg);
    background:
      image-set(url("/logo-background-desktop.webp") type("image/webp")) center center / auto min(100vh, 980px) no-repeat,
      var(--bg);
  }
  .desk-close { display: inline-flex; position: absolute; top: 28px; right: 28px; z-index: 45; }
  .tabbar { z-index: 50; }
  .player-overlay { bottom: 72px; padding-bottom: 24px; }
  .wrap { max-width: 1180px; padding-top: calc(104px + var(--safe-top)); }
  .artist-grid { grid-template-columns: repeat(auto-fill, 220px); justify-content: center; }
  .album-grid { grid-template-columns: repeat(auto-fill, 180px); justify-content: start; }
  .artist-card { width: 220px; }
  .album-card { width: 180px; }
  .tabbar { left: 50%; right: auto; width: min(520px, 100%); transform: translateX(-50%); border-radius: 16px 16px 0 0; }
  .wrap:has(.album-hero) { display: block; }
  .album-hero { grid-template-columns: 280px 1fr; align-items: center; }
  .album-hero-art { width: 280px; height: 280px; flex-basis: 280px; }
  .panel.form { max-width: 680px; margin-left: auto; margin-right: auto; }
  .player-overlay { padding: 96px 48px 32px; }
  .player { max-width: 640px; grid-template-columns: 1fr; }
  .now-art { width: min(100%, 520px); overflow: hidden; }
  .lyrics-overlay { inset: 0; left: 0; width: auto; height: auto; scrollbar-width: none; }
  .lyrics-overlay::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .format-screen { top: 96px; left: 50%; right: auto; bottom: auto; width: min(640px, calc(100% - 48px)); transform: translateX(-50%); height: auto; max-height: calc(100vh - 140px); }
}

.desk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.desk-pair .btn, .desk-pair .ghost { width: 100%; min-width: 0; }
/* Finished lyric video card: Download and Delete stacked so both words fit in the narrow card */
.album-grid > .panel:has(> video) > .desk-pair { grid-template-columns: 1fr; gap: 8px; }
.album-grid > .panel:has(> video) > .desk-pair a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---- 0.5.0: accessibility, toasts, queue editing, trash ---- */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  z-index: 200; max-width: min(92vw, 520px);
  background: rgba(30, 30, 34, .96); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
.toast[hidden] { display: none; }
.queue-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.queue-row > button { text-align: left; min-width: 0; }
.queue-row > button strong, .queue-row > div strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-row > button span { display: block; opacity: .7; font-size: 13px; }
.queue-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.queue-tools .icon-btn[disabled] { opacity: .3; }
.studio-album-line { display: flex; align-items: center; gap: 6px; }
.studio-album-line .studio-album-row { flex: 1; min-width: 0; }
.soon-card, .soon-row { cursor: default; opacity: .85; }
.admin-user select { margin-left: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .now-copy h2.marquee span, .now-album.marquee span { animation: none !important; transform: none !important; }
}
.apply-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; margin: 8px 0; }

/* 0.5.1 People list */
.people-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.people-head h2 { margin: 0; }
.people-search { display: block; margin: 10px 0 6px; }
.people-search input { width: 100%; }
.people-group { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 8px; }
.people-group > summary { cursor: pointer; padding: 6px 0; list-style-position: inside; }
.people-group > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
.admin-user[hidden] { display: none; }
.full-access-toggle { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.full-access-toggle input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); vertical-align: middle; }
.credits-block .eyebrow:not(:first-child) { margin-top: 12px; }
.err.ok { color: #3dd68c; } .err.busy { color: var(--muted); }
/* 0.5.4: on desktop windows shorter than ~1000px the full player cut off its controls. Shrink the cover to fit (scroll only as a last resort). */
@media (min-width: 960px) {
  .player-overlay { --pt: clamp(28px, calc(100vh - 905px), 96px); padding-top: var(--pt); overflow-y: auto; }
  .now-art { width: min(100%, 520px, max(120px, calc(100vh - 385px - var(--pt)))); }
}
/* 0.5.4: tab bar under the open full player: desktop only, in the 72px strip the player already leaves free. */
.tabbar.over-player { display: none; }
@media (min-width: 960px) { .tabbar.over-player { display: grid; } }
/* 0.5.4: the menu drawer scrolls on short windows (Sign Out / Close were cut off below ~640px tall),
   and on desktop the menu and Export/song sheets sit above the tab bar, like on phones. */
.drawer { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 960px) { .drawer-dim { z-index: 51; } .drawer { z-index: 52; } }

/* ===== 0.5.6 beautify pass ===== */
/* 1. Cover-colour glow (full player + album header). Layers cross-fade by opacity only. */
.player-overlay { isolation: isolate; }
.tint-layer {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  transition: opacity .6s ease;
}
.player-overlay > .tint-layer { position: fixed; }

/* 2. Motion: the full player rises from the mini player and slides back down on close. */
.player-overlay { animation: sheet-up .42s cubic-bezier(.32,.72,0,1); will-change: transform; }
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.player-ghost { pointer-events: none; z-index: 39; animation: none; }
.art-img { transition: opacity .32s ease; }
.art-img.fade-wait { opacity: 0; }
.mini { animation: mini-in .32s cubic-bezier(.32,.72,0,1); }
@keyframes mini-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 3. Bolder album header: big cover, blurred cover behind, heavier title. */
.album-hero.album-hero-bold {
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: 18px; padding: 28px 18px 22px; margin: 10px 0 8px;
  border-radius: 22px; background: #0d0d0f;
}
.album-backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.album-backdrop .backdrop-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(40px) saturate(1.25) brightness(.7);
  transform: scale(1.4); opacity: .75;
}
.album-hero-bold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,8,.05) 0%, rgba(7,7,8,.25) 55%, rgba(7,7,8,.7) 100%);
}
.album-hero-bold .album-hero-art {
  width: min(66vw, 280px); height: auto; aspect-ratio: 1; flex: none;
  border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.55);
}
.album-hero-bold .album-hero-copy { min-width: 0; }
.album-hero-bold h1 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.album-hero-bold .eyebrow { color: rgba(255,255,255,.75); }
.album-hero-bold .muted { margin: 6px 0 0; color: rgba(255,255,255,.7); }
@media (min-width: 960px) {
  .album-hero.album-hero-bold {
    grid-template-columns: 300px 1fr; justify-items: start; text-align: left;
    align-items: end; gap: 28px; padding: 32px;
  }
  .album-hero-bold .album-hero-art { width: 300px; }
  .album-hero-bold h1 { font-size: 52px; }
}

/* 5. Artist hero, Latest Release, Top Songs. */
.artist-hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 260px; margin: 10px 0 12px; border-radius: 22px; background: #111113;
}
.artist-hero .hero-still, .artist-hero .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.artist-hero.is-portrait .hero-still { object-position: center 30%; }
.artist-hero .hero-video { opacity: 0; transition: opacity .6s ease; }
.artist-hero .hero-video.on { opacity: 1; }
.artist-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,8,0) 38%, rgba(7,7,8,.35) 62%, rgba(7,7,8,.86) 100%);
}
.artist-hero-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.artist-hero-copy .eyebrow { color: rgba(255,255,255,.78); }
.artist-hero-copy h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0,0,0,.35); overflow-wrap: anywhere;
}
@media (min-width: 960px) {
  .artist-hero { height: clamp(300px, 34vw, 420px); }
  .artist-hero-copy { left: 32px; right: 32px; bottom: 26px; }
  .artist-hero-copy h1 { font-size: 64px; }
}
.artist-top { display: grid; gap: 0; }
@media (min-width: 960px) {
  .artist-top.two { grid-template-columns: minmax(280px, 1fr) 2fr; gap: 24px; align-items: start; }
}
.latest-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  width: 100%; text-align: left; padding: 10px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(18,18,20,.86);
}
.latest-art { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; position: relative; background: #161618; }
.latest-copy { min-width: 0; }
.latest-copy strong { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-copy span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; text-transform: capitalize; }
.field-hint { display: block; font-size: 12px; color: var(--muted); opacity: .85; margin: 2px 0 4px; }
.hero-current { display: grid; gap: 8px; margin: 0 0 12px; }

/* 8. Consistency: radii, control heights, section headers, skeletons. */
.queue-art, .studio-album-art { border-radius: 10px; } /* every 52px thumbnail: 10px, like song rows */
.seg button { min-height: 44px; }
.panel h2, .section-title { letter-spacing: -.03em; }
.panel > h2:first-child, .panel > .row-between:first-child h2 { font-size: 20px; }
.section-title { font-weight: 700; }
.skel { background: #19191c; border-radius: 8px; animation: skel-pulse 1.1s ease-in-out infinite alternate; }
@keyframes skel-pulse { from { opacity: .55; } to { opacity: 1; } }
.skel-row { pointer-events: none; }
.skel-row .song-thumb { display: block; }
.skel-copy { display: grid; gap: 8px; padding: 4px 0; }
.skel-line { display: block; height: 12px; width: 62%; border-radius: 6px; }
.skel-line.short { width: 36%; height: 10px; }
.skel-card { display: block; border-radius: var(--radius-card); }
.skel-card.artist-photo { aspect-ratio: 3 / 4.05; }

@media (prefers-reduced-motion: reduce) {
  .player-overlay, .mini, .skel { animation: none !important; }
  .art-img.fade-wait { opacity: 1; }
  .artist-hero .hero-video { display: none; }
}
.skel-list { display: grid; gap: 8px; margin-top: 10px; }

/* ===== 0.5.7 signed-out landing page ===== */
.landing { position: relative; min-height: 100dvh; }
/* Phones only: the Bad Apples artist-card picture behind the whole page. Desktop keeps the logo background
   unless LANDING.desktopBackground is set in app.js (then .has-desk-bg turns it on there too). */
.landing-bg {
  display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,7,8,.42) 0%, rgba(7,7,8,.52) 35%, rgba(7,7,8,.82) 70%, rgba(7,7,8,.94) 100%),
    var(--landing-bg) center 20% / cover no-repeat,
    var(--bg);
}
@media (max-width: 959.98px) { .landing-bg { display: block; } }
@media (min-width: 960px) {
  .landing.has-desk-bg .landing-bg {
    display: block;
    background:
      linear-gradient(180deg, rgba(7,7,8,.30) 0%, rgba(7,7,8,.55) 50%, rgba(7,7,8,.9) 100%),
      var(--landing-bg-desk) center / cover no-repeat,
      var(--bg);
  }
}
.landing-top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(12px + var(--safe-top)) 16px 8px;
}
.landing-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.landing-brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.landing-brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.landing-signin { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.landing-signin .muted { color: rgba(255,255,255,.82); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.landing-main .section-title, .landing-about p, .landing-hero .eyebrow, .landing-foot { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.landing-signin-btn { padding: 0 16px; font-weight: 600; }
@media (max-width: 420px) { .landing-brand span { display: none; } }
.landing-main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px calc(40px + var(--safe-bottom)); }
.landing-hero { min-height: 58dvh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.landing-hero .eyebrow { color: rgba(255,255,255,.78); }
.landing-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-shadow: 0 2px 24px rgba(0,0,0,.45); max-width: 12em; }
@media (min-width: 960px) {
  .landing-top { padding: calc(20px + var(--safe-top)) 32px 8px; }
  .landing-main { padding: 0 32px 56px; }
  .landing-hero { min-height: 42vh; }
  .landing-hero h1 { font-size: 68px; }
}
.landing-section { margin-top: 30px; }
.landing-section > .section-title { margin-top: 0; }
.landing-about p { margin: 0; max-width: 680px; font-size: 17px; line-height: 1.55; color: rgba(244,244,244,.86); }
.landing-skel { height: 150px; }
.cd-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: rgba(18,18,20,.86);
  max-width: 640px;
}
.cd-art { width: 112px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: #161618; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.cd-copy { min-width: 0; }
.cd-title { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; overflow-wrap: anywhere; }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 2px; text-align: center; }
.cd-cell strong { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-cell span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
@media (max-width: 420px) { .cd-card { grid-template-columns: 88px 1fr; gap: 12px; } .cd-art { width: 88px; } .cd-cell strong { font-size: 19px; } }
.landing-listen.under-countdown { margin-top: 14px; }
.service-row { display: flex; gap: 12px; flex-wrap: wrap; }
.service-btn {
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: rgba(18,18,20,.9);
  display: inline-flex; align-items: center; justify-content: center;
}
.service-icon { width: 30px; height: 30px; display: block; }
.landing-releases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .landing-releases { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; } }
.landing-release { width: 100%; }
.landing-top5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.song-row.landing-song { grid-template-columns: 26px 52px 1fr; width: 100%; color: inherit; font: inherit; }
.landing-song .top-rank { font-size: 18px; font-weight: 800; color: var(--muted); text-align: center; }
.landing-song .song-thumb { display: block; }
.landing-song-copy { min-width: 0; }
.landing-song-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-song-copy span { display: block; }
.landing-socials { margin: 0; }
.landing-press-empty { margin-top: 0; max-width: 720px; }
.landing-press-empty p { margin: 0; }
.landing-press-list { display: grid; gap: 8px; max-width: 720px; }
.landing-press-item { display: block; margin-top: 0; text-decoration: none; color: inherit; }
.landing-foot { margin-top: 40px; text-align: center; font-size: 12px; }
.landing-sheet-wrap .drawer-dim { z-index: 60; }
.landing-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #101012; border: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + var(--safe-bottom));
  animation: landing-sheet-up .36s cubic-bezier(.32,.72,0,1);
}
@keyframes landing-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 960px) {
  .landing-sheet {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(440px, calc(100% - 48px)); max-height: calc(100vh - 64px);
    transform: translate(-50%, -50%); border-radius: 22px; padding: 26px 24px;
    animation: landing-pop .24s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes landing-pop { from { opacity: 0; transform: translate(-50%, -47%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
.landing-sheet h2 { font-size: 24px; font-weight: 800; padding-right: 52px; }
.landing-sheet > .muted { margin: 6px 0 0; }
.landing-sheet-close { position: absolute; top: 14px; right: 14px; }
.landing-sheet-note { margin: 12px 0 0; font-size: 14px; }
.landing-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; min-height: 32px; }
.landing-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.listen-head { display: flex; gap: 12px; align-items: center; padding-right: 52px; }
.listen-head h2 { padding-right: 0; font-size: 20px; }
.listen-head .muted { margin: 2px 0 0; }
.listen-list { display: grid; gap: 8px; }
.listen-link { display: flex; align-items: center; gap: 12px; padding: 0 14px; text-decoration: none; color: inherit; border-radius: 12px; }
.listen-link .service-icon { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .landing-sheet { animation: none !important; } }
.landing-sheet .form { padding-bottom: 0; }
.landing-sheet .err { margin: 0; }
.landing-sheet .err:empty { min-height: 0; }

/* 0.5.11 Up Next: compact one-line rows (thumb, title, artist, X); long text ends in an ellipsis */
.up-next-list { gap: 6px; }
.queue-row.up-next-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 5px 6px 5px 8px; border-radius: 12px; }
.up-next-row .song-thumb { width: 36px; height: 36px; border-radius: 8px; }
.queue-row.up-next-row > button[data-q-play] { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; padding: 0; }
.queue-row.up-next-row > button[data-q-play] strong { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-row.up-next-row > button[data-q-play] span { display: block; flex: 0 1000 auto; min-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-next-row > .icon-btn, .player-sheet .up-next-row > .icon-btn { width: 32px; height: 32px; min-height: 32px; }
.player-sheet .up-next-row > button[data-q-play] { min-height: 32px; align-items: center; align-self: center; }
/* 0.5.11 Admin > Play stats rows (inside the People-style collapsible groups) */
.stats-row { gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stats-row:last-child { border-bottom: 0; }
.stats-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 0.5.11 Promo: lyric lines to pick a range (list rows like the album track list) */
.promo-lines { margin-top: 14px; }
.promo-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.promo-line .promo-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.promo-line.in-range { background: rgba(255,255,255,.07); }
.promo-line.edge { background: rgba(255,255,255,.14); }
.promo-line.edge .promo-time { color: #fff; }
.promo-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.promo-nudge .ghost { min-height: 36px; padding: 0 12px; }
/* 0.5.11: the Up Next header cover stays inside its 52 px box (it was absolutely positioned against the whole sheet and blocked taps on the rows) */
.queue-art { position: relative; }

/* 0.5.11 Up Next header: title, then the artist in the muted style, on one line (like the Up Next rows) */
.queue-head > div { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.queue-head > div strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.queue-head > div span { flex: 0 1000 auto; min-width: 4.5em; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }

/* 0.5.12 Admin > Page Visits: a thin one-line panel at the top (wraps on narrow screens) */
.panel.visits-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 10px 16px; }
.panel.visits-row > h2:first-child { font-size: 15px; margin: 0; }
.visits-row .visits-stat { color: var(--muted); font-size: 14px; white-space: nowrap; }
.visits-row .visits-stat strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* 0.5.12: Menu > Landing (signed in): the back button takes the "Sign in here" spot in the landing header. */
.landing-top .landing-back { margin: 0; }

/* ---- 0.6.0 overhaul ---- */
/* #1: grouped menu with small section heads, badges, X close at the top, Sign Out at the bottom */
.drawer-top { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.drawer .drawer-top .sheet-close { min-height: 44px; width: 44px; padding: 0; border-radius: 50%; }
.drawer-group { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }
.drawer-group:first-of-type { border-top: 0; }
.drawer-head { margin: 6px 12px 2px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.drawer button { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--danger); color: #111; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.drawer-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer .drawer-foot .danger-outline { width: 100%; justify-content: center; text-align: center; border-radius: 999px; }
/* #92: drawn icons in place of typed glyphs */
.ghost.back { display: inline-flex; align-items: center; gap: 6px; }
.ghost.back .ui-icon { width: 18px; height: 18px; color: currentColor; }
.chev { display: inline-flex; align-items: center; color: var(--muted); }
.chev .ui-icon { width: 18px; height: 18px; color: currentColor; transition: transform .18s ease; }
.chev.open .ui-icon { transform: rotate(90deg); }
.icon-btn .ui-icon { color: currentColor; }
/* #76/#29 (his pick): round 44px row icon buttons; the big play button keeps its size */
.up-next-row > .icon-btn, .player-sheet .up-next-row > .icon-btn, .song-row > .icon-btn { width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; border-radius: 50%; }
/* #2: Admin "Action Needed" */
.action-needed h2 { margin-bottom: 10px; }
.action-needed .song-row { grid-template-columns: 1fr auto; }
.action-needed .song-row button span { color: var(--danger); }
/* #7: Settings section heads and Sign Out last */
.settings-head { font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 0; }
.settings-signout { margin: 26px 0 110px; }
.settings-signout .danger-outline { width: 100%; }
/* #34: offline banner */
.offline-banner { position: fixed; left: 12px; right: 12px; top: calc(64px + var(--safe-top)); z-index: 13; padding: 10px 14px; border-radius: var(--radius-card); background: #161618; border: 1px solid var(--line); color: var(--text); font-size: 14px; text-align: center; }
/* #71: inline retry */
.retry-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.retry-row .ghost { width: auto; }
/* #42: Studio hub tabs */
.hub-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.hub-tabs button[aria-current="page"] { border-color: var(--outline); color: var(--text); }
/* #43: Studio needs attention */
.needs-list .song-row { grid-template-columns: 1fr auto; }
/* #4: row menu sheet */
.row-sheet .song-list button { text-align: left; }
/* #70: the scrubber gets a bigger, labelled touch area */
.progress input[type=range] { min-height: 32px; }

/* #36: undo toast button */
.toast .toast-undo { margin-left: 10px; text-decoration: underline; color: inherit; font-weight: 650; }
.actions .danger-outline { width: auto; flex: 1; }
/* #83 (his pick): song rows are left-aligned everywhere (Promo, Admin, Studio lists included) */
.song-row > button { text-align: left; min-width: 0; }
.song-row > button span { display: block; }
.ghost .ui-icon, .btn .ui-icon { width: 18px; height: 18px; vertical-align: -3px; color: currentColor; }
/* 0.6.0 (#87): every sheet closes with the same round X, top right. */
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.menu-sheet > .sheet-x + *, .player-sheet > .sheet-x + * { margin-top: 44px; }
.menu-sub { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.track-thin.has-more { grid-template-columns: 1fr auto 44px; }
.track-thin.has-more.playing { grid-template-columns: 16px 1fr auto 44px; }
.track-thin .icon-btn { width: 44px; min-height: 44px; padding: 0; text-align: center; }
/* 0.6.0 (#28): in-app confirm sheet (same card + outlined buttons). */
.confirm-wrap { position: fixed; inset: 0; z-index: 90; }
.confirm-wrap .sheet-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.confirm-sheet { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom, 0px)); max-width: 520px; margin: 0 auto; background: #141416; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 16px 14px; }
.confirm-sheet p { margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.confirm-sheet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 0.6.0 (#29): 44pt hit areas without changing how things look. */
.queue-tools .icon-btn, .queue-list .icon-btn { min-width: 44px; min-height: 44px; }
.panel.form .check, label.check { min-height: 44px; align-items: center; }
.btn > .ui-icon, .ghost > .ui-icon { display: inline-block; margin: 0 6px 0 0; }
.confirm-wrap .sheet-dim { z-index: 0; } .confirm-wrap .confirm-sheet { z-index: 1; }

/* =====================================================================
   0.6.2 "Cinematic Glass" for Bad Apples (PREVIEW). Mechanics from the Personas glass system
   (/workspace/personas-review/glass-system), colors remapped to BAM: --bg / --card / --text / --muted.
   ACCENT SWITCH: the dawn rose-gold accent is ON by default. Turn it off with ACCENT_ON = false in app.js
   (or ?accent=off in the address bar to compare). Off = the same neutral greys the site used before.
   Spotify green (#1DB954) is used ONLY on the Pre-Save / Listen now button.
   ===================================================================== */
:root {
  --bg2: #0e0e10;
  --accent: #d4a27a;            /* Enough? dawn rose-gold (non-Spotify emphasis) */
  --accent-2: #8a6248;
  --on-accent: #140e0a;
  --accent-text: color-mix(in srgb, var(--accent) 62%, var(--text));
  --glass-1: color-mix(in srgb, var(--card) 72%, transparent);   /* cards */
  --glass-2: color-mix(in srgb, var(--bg2) 80%, transparent);    /* top bar, tab bar, mini player */
  --glass-3: color-mix(in srgb, var(--bg2) 92%, transparent);    /* sheets, drawer, menus */
  --glass-hover: color-mix(in srgb, var(--text) 8%, var(--glass-1));
  --glass-tint: color-mix(in srgb, var(--accent) 14%, transparent);
  --edge-hair: color-mix(in srgb, var(--text) 12%, transparent);
  --edge-strong: color-mix(in srgb, var(--text) 42%, var(--card));
  --edge-top-light: inset 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent);
  --blur-sm: 8px; --blur-md: 16px; --blur-lg: 24px; --sat: 140%;
  --glass-filter-sm: blur(var(--blur-sm)) saturate(var(--sat));
  --glass-filter-md: blur(var(--blur-md)) saturate(var(--sat));
  --glass-filter-lg: blur(var(--blur-lg)) saturate(var(--sat));
  --shadow-1: 0 4px 16px color-mix(in srgb, var(--bg) 60%, transparent);
  --shadow-2: 0 14px 40px color-mix(in srgb, var(--bg) 75%, transparent);
  --shadow-3: 0 24px 64px color-mix(in srgb, #000 55%, transparent);
  --glow-accent: 0 10px 40px color-mix(in srgb, var(--accent) 22%, transparent);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-text);
  --glass-backdrop:
    radial-gradient(1100px 620px at 78% -12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(800px 520px at -5% 105%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
/* Accent OFF: back to neutral greys (glass stays). */
html[data-accent=off] {
  --accent: #b8b8be; --accent-2: #5a5a60; --on-accent: #111;
  --accent-text: var(--text);
  --glass-tint: color-mix(in srgb, var(--text) 8%, transparent);
  --glow-accent: 0 10px 40px rgba(0,0,0,.35);
  --glass-backdrop: linear-gradient(180deg, var(--bg2), var(--bg));
}

/* ---- backdrop the glass sits on (library); the logo watermark stays on top of it ---- */
html, body { background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--glass-backdrop); pointer-events: none; }
#bg { background-color: transparent; }

/* ---- primitives ---- */
.glass { background: var(--glass-1); border: 1px solid var(--edge-hair); box-shadow: var(--edge-top-light), var(--shadow-1);
  -webkit-backdrop-filter: var(--glass-filter-md); backdrop-filter: var(--glass-filter-md); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---- chrome: top bar, tab bar, mini player (blurred: fixed layers only) ---- */
.app-top { background: var(--glass-2); border-bottom: 1px solid var(--edge-hair);
  -webkit-backdrop-filter: var(--glass-filter-lg); backdrop-filter: var(--glass-filter-lg); }
.tabbar { background: var(--glass-2); border-top: 1px solid var(--edge-hair);
  -webkit-backdrop-filter: var(--glass-filter-lg); backdrop-filter: var(--glass-filter-lg); }
.tab.on { background: var(--glass-hover); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.mini { background: var(--glass-3); border: 1px solid var(--edge-hair); box-shadow: var(--edge-top-light), var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-filter-lg); backdrop-filter: var(--glass-filter-lg); }

/* ---- drawer + sheets + menus ---- */
.drawer { background: var(--glass-3); border-left: 1px solid var(--edge-hair); box-shadow: var(--shadow-3);
  -webkit-backdrop-filter: var(--glass-filter-lg); backdrop-filter: var(--glass-filter-lg); overflow-y: auto; }
.drawer button:hover, .drawer button:active { background: var(--glass-hover); }
.drawer-head { color: var(--accent-text); }
.drawer-dim { background: rgba(0,0,0,.45); }
.player-sheet, .landing-sheet { background: var(--glass-3); border-color: var(--edge-hair); box-shadow: var(--shadow-3);
  -webkit-backdrop-filter: var(--glass-filter-lg); backdrop-filter: var(--glass-filter-lg); }

/* ---- cards (no blur on list rows: tint + edge only, cheap to scroll) ---- */
.artist-card { background: var(--glass-1); border: 1px solid var(--edge-hair); box-shadow: var(--edge-top-light), var(--shadow-1); }
.song-row { background: var(--glass-1); border-color: var(--edge-hair); box-shadow: var(--edge-top-light); }
.desk-artist, .panel, .form { background: var(--glass-1); }
.panel { border-color: var(--edge-hair); box-shadow: var(--edge-top-light), var(--shadow-1); }
.icon-btn { background: var(--glass-1); border-color: var(--edge-hair); }
input, select, textarea { background: var(--glass-2); border-color: var(--edge-strong); }
.search input { -webkit-backdrop-filter: var(--glass-filter-sm); backdrop-filter: var(--glass-filter-sm); }
.toast { background: var(--glass-3); border: 1px solid var(--edge-hair); }   /* solid-ish: no blur on toasts */
.eyebrow { color: var(--accent-text); }

/* ---- Now Playing chrome: art-tinted stage stays, controls sit on glass ---- */
.player-overlay { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 16%, var(--bg)) 0%, var(--bg) 60%); }
html[data-accent=off] .player-overlay { background: var(--bg); }

/* ---- performance tiers ---- */
html[data-glass=lite] { --blur-md: 8px; --blur-lg: 12px; --sat: 110%; }
html[data-glass=solid] { --glass-1: var(--card); --glass-2: var(--bg2); --glass-3: var(--bg2);
  --glass-filter-sm: none; --glass-filter-md: none; --glass-filter-lg: none; }
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-1: var(--card); --glass-2: var(--bg2); --glass-3: var(--bg2);
    --glass-filter-sm: none; --glass-filter-md: none; --glass-filter-lg: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-1: color-mix(in srgb, var(--card) 96%, var(--bg)); --glass-2: var(--bg2); --glass-3: var(--bg2); }
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --accent-text: var(--text); --glass-1: var(--card); --glass-2: var(--bg2); --glass-3: var(--bg2); --glass-hover: #1c1c20;
    --glass-tint: rgba(255,255,255,.06); --edge-hair: var(--line); --edge-strong: var(--muted); --glass-backdrop: var(--bg); }
}
@media (forced-colors: active) { .glass, .app-top, .tabbar, .mini, .drawer, .landing-sheet, .player-sheet { background: Canvas; border: 1px solid CanvasText; backdrop-filter: none; } }

/* =====================================================================
   0.6.2 landing: "Enough? Dawn"
   ===================================================================== */
body.landing-on #bg { display: none; }
body.landing-on::before { background: var(--bg); }
.landing-dawn { background: linear-gradient(180deg, #2a2420 0, var(--bg) 900px); }
.landing-dawn .landing-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding-bottom: 8px; }

.landing-dawn .landing-brand span { color: rgba(40,30,30,.72); text-shadow: none; }
/* The art: full width, its own aspect ratio, nothing drawn over the words. */
.landing-art { position: relative; z-index: 1; margin: 0; line-height: 0; }
.landing-art picture, .landing-art-img { display: block; width: 100%; height: auto; }
.landing-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg)); }   /* bottom edge only: grass, below the words */
@media (min-width: 768px) and (min-aspect-ratio: 1/1) { .landing-art-img { aspect-ratio: 1640 / 924; } }
.landing-dawn .landing-main { margin-top: -28px; position: relative; z-index: 2; }
.landing-era { margin-top: 0; }
.landing-era .cd-card { max-width: 640px; border-radius: 22px; padding: 14px; }
.landing-era .cd-title { font-size: 26px; margin: 0 0 10px; line-height: 1.1; }
.landing-era .cd-out { margin: 0; color: var(--muted); font-size: 15px; }
.accent-eyebrow { color: var(--accent-text); margin: 0 0 4px; }
.landing-era .cd-cell { background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--edge-hair); }
.landing-era .landing-listen { margin-top: 14px; }
.landing-era .service-btn { background: var(--glass-1); border-color: var(--edge-hair); }
.presave-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 12px 20px; min-height: 48px; width: 100%; max-width: 640px; box-sizing: border-box;
  border-radius: 999px; border: 0; background: #1DB954; color: #0a0a0a; font: inherit; font-weight: 700; font-size: 15px;
  letter-spacing: -.01em; text-decoration: none; line-height: 1.2; box-shadow: 0 10px 28px rgba(29, 185, 84, .22);
}
.presave-btn:hover { filter: brightness(1.06); }
.presave-btn:active { transform: scale(.985); }
.presave-btn .presave-glyph { flex: none; color: #0a0a0a; display: block; }
@media (max-width: 420px) { .presave-btn { font-size: 14px; padding: 12px 16px; gap: 8px; } }
.landing-dawn .landing-about p { max-width: 680px; }
.landing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.landing-foot-signin { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; padding: 0 4px; }
.landing-foot-signin:hover { color: var(--text); }

@media (min-width: 960px) {
  .landing-dawn .landing-main { margin-top: -64px; }
  .landing-era { display: grid; grid-template-columns: minmax(0, 640px); }
}
/* First screen = art + countdown + Pre-Save: the art gives up a little sky/grass (never the words, which sit at 35-60%). */
.landing-art-img { max-height: max(420px, calc(100svh - 236px)); object-fit: cover; object-position: 50% 40%; }
@media (min-width: 768px) and (min-aspect-ratio: 1/1) { .landing-art-img { max-height: max(420px, calc(100svh - 200px)); object-position: 50% 34%; } }
@media (min-width: 960px) {
  .landing-era { grid-template-columns: minmax(0, 640px) minmax(0, 340px); column-gap: 20px; align-items: end; }
  .landing-era .cd-card { grid-row: 1 / span 2; }
  .landing-era .presave-btn { margin-top: 0; align-self: end; }
  .landing-era .landing-listen { margin-top: 12px; align-self: start; }
}

/* 0.6.2 fixed Dawn background: the art sits behind the whole landing; the glass scrolls over it. */
.landing-dawn { background: transparent; }
body.landing-on::before { opacity: 0; }
.landing-dawn .landing-art { position: fixed; inset: 0; background: rgb(197, 173, 165); z-index: 0; height: 100vh; height: 100lvh; margin: 0; pointer-events: none; overflow: hidden; contain: strict; }
.landing-dawn .landing-art picture, .landing-dawn .landing-art-img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; }
.landing-dawn .landing-art::after { top: 0; height: auto; background: rgba(8, 6, 6, .62); opacity: var(--scrim, 0); transition: opacity .12s linear; }
.landing-dawn .landing-main { margin-top: 0; z-index: 2; }
.landing-words-spacer { height: calc(var(--words-bottom, 58vh) + 18px); }
.landing-dawn .landing-top { z-index: 3; }

.landing-dawn .landing-main > section:not(.landing-era), .landing-dawn .landing-foot { position: relative; }
@media (min-width: 768px) and (min-aspect-ratio: 1/1) { .landing-dawn .landing-art { background: rgb(205, 179, 171); } }

/* 0.6.2-146: footer sign-in readable over the bright grass of the fixed art (it was muted grey on pale art). */
.landing-dawn .landing-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  margin: 28px auto 0; padding: 10px 16px calc(10px + var(--safe-bottom)); max-width: 640px; border-radius: 18px;
  background: var(--glass-2, rgba(20,16,16,.62)); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--edge-hair, rgba(255,255,255,.12)); color: rgba(244,244,244,.78); text-shadow: none; }
.landing-dawn .landing-foot-signin { color: #f4f4f4; font-weight: 600; min-height: 44px; padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
html[data-glass="solid"] .landing-dawn .landing-foot { background: #161212; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 520px) { .landing-dawn .landing-foot-sep { display: none; } .landing-dawn .landing-foot { flex-direction: column; gap: 2px; } }

/* ===================== 0.6.3 player (Olivia items 1-6) ===================== */
.ui-play, .ui-pause, .ui-prev, .ui-next { overflow: visible; }
.desk-only { display: none !important; }
.q-tag { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 5px; vertical-align: 1px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1; color: var(--accent-text, var(--accent)); white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mini .mini-sub { display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 13px; }
.mini .mini-sub .mini-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini .mini-sub .q-tag { flex: none; }
.icon-btn.on, .love-btn.on, [data-love-now].on { color: var(--accent); }

/* phone mini: floating capsule, accent progress hairline */
.mini.player-bar { grid-template-columns: 1fr auto; padding: 8px 8px 9px; border-radius: 18px; left: 8px; right: 8px; overflow: hidden; }
.mini .bar-track { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.mini .bar-center { display: flex; align-items: center; }
.mini .bar-controls { display: flex; align-items: center; gap: 2px; }
.mini .bar-controls .icon-btn { width: 44px; height: 44px; }
.mini .play-btn .ui-icon { width: 24px; height: 24px; }
.mini-progress { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); pointer-events: none; }
.mini-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pos, 0%); background: var(--accent); border-radius: inherit; }

/* custom scrubber over a native range (keeps keyboard + screen reader support) */
.seekwrap { position: relative; height: 22px; display: flex; align-items: center; --pos: 0%; --buf: 0%; }
.seekwrap::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0 var(--pos), color-mix(in srgb, var(--text) 30%, transparent) var(--pos) var(--buf), color-mix(in srgb, var(--text) 14%, transparent) var(--buf));
  transition: height .15s ease; }
.seekwrap:hover::before, .seekwrap:focus-within::before { height: 6px; }
.seekwrap input[type=range] { position: relative; width: 100%; margin: 0; height: 22px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; min-height: 0; }
.seekwrap input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 22px; }
.seekwrap input[type=range]::-moz-range-track { background: transparent; }
.seekwrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #f4f4f4; box-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s; }
.seekwrap input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #f4f4f4; opacity: 0; }
.seekwrap:hover input::-webkit-slider-thumb, .seekwrap input:focus-visible::-webkit-slider-thumb, .seekwrap input:active::-webkit-slider-thumb { opacity: 1; }
.seekwrap:hover input::-moz-range-thumb, .seekwrap input:focus-visible::-moz-range-thumb { opacity: 1; }
@media (hover: none) { .seekwrap input[type=range]::-webkit-slider-thumb { opacity: 1; } .seekwrap::before { height: 5px; } }
.player .progress .seekwrap { height: 32px; }
.player .progress .seekwrap input[type=range] { height: 32px; }
.player .progress .seekwrap input[type=range]::-webkit-slider-thumb { margin-top: 10px; }

/* big play button: white circle, dark icon */
.play-btn { border-radius: 50% !important; }
.player .play-main { background: #f4f4f4 !important; color: #111 !important; border: 0 !important; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.player .play-main .ui-icon { width: 30px; height: 30px; }
.player .controls .icon-btn:not(.play-main) .ui-icon { width: 24px; height: 24px; }
.now-from { margin: 4px 0 10px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.now-sub { display: flex; align-items: center; flex-wrap: wrap; }
.now-tools { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 6px; }
.player .ui-icon { transition: transform .18s cubic-bezier(.16,1,.3,1); }
[data-toggle-play] .ui-icon { animation: play-morph .18s cubic-bezier(.16,1,.3,1); }
@keyframes play-morph { from { transform: scale(.72); opacity: .4; } to { transform: none; opacity: 1; } }

/* loading: shimmer on the progress bar + ring around the play button (after 300 ms of waiting) */
html.audio-loading .seekwrap::before, html.audio-loading .mini-progress {
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 10%, transparent) 0%, color-mix(in srgb, var(--accent) 55%, transparent) 45%, color-mix(in srgb, var(--text) 10%, transparent) 90%);
  background-size: 220% 100%; animation: bam-shimmer 1.1s linear infinite; }
html.audio-loading .mini-progress::after { opacity: 0; }
html.audio-loading [data-toggle-play] { position: relative; }
html.audio-loading [data-toggle-play]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: bam-spin .9s linear infinite; }
@keyframes bam-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes bam-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html.audio-loading .seekwrap::before, html.audio-loading .mini-progress { animation: none; background: color-mix(in srgb, var(--accent) 35%, transparent); }
  html.audio-loading [data-toggle-play]::after { animation: none; background: var(--accent); }
  [data-toggle-play] .ui-icon { animation: none; }
}

/* ---------- desktop: full-width bar + full-window Now Playing ---------- */
@media (min-width: 960px) {
  .desk-only { display: revert !important; }
  .phone-only { display: none !important; }
  .mini.player-bar { left: 0; right: 0; bottom: 0; height: calc(84px + var(--safe-bottom)); padding: 0 20px var(--safe-bottom); border-radius: 0; border-width: 1px 0 0;
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 640px) minmax(220px, 1fr); gap: 24px; z-index: 60; animation: none; }
  .mini .bar-track { grid-template-columns: 56px minmax(0, auto) auto; justify-content: start; }
  .mini .mini-art { width: 56px; height: 56px; border-radius: 8px; }
  .mini .meta strong { font-size: 14px; }
  .mini .bar-center { flex-direction: column; justify-content: center; gap: 2px; }
  .mini .bar-controls { gap: 10px; }
  .mini .bar-controls .icon-btn { width: 36px; height: 36px; color: color-mix(in srgb, var(--text) 82%, transparent); }
  .mini .bar-controls .icon-btn:hover { color: var(--text); }
  .mini .bar-controls .icon-btn.on { color: var(--accent); }
  .mini .play-btn { width: 40px !important; height: 40px !important; background: #f4f4f4; color: #111 !important; }
  .mini .play-btn .ui-icon { width: 20px; height: 20px; }
  .mini .bar-scrub { display: grid !important; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; width: 100%; }
  .mini .bar-scrub .t { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .mini .bar-scrub .t:first-child { text-align: right; }
  .mini .bar-right { display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; }
  .mini .bar-right .icon-btn { width: 36px; height: 36px; }
  .mini .seekwrap.vol { width: 96px; }
  .mini-progress { display: none; }
  html.has-bar .tabbar { bottom: calc(84px + var(--safe-bottom)); }
  html.has-bar .wrap { padding-bottom: calc(84px + 96px + var(--safe-bottom)); }

  .player-overlay { inset: 0 0 calc(84px + var(--safe-bottom)) 0; bottom: calc(84px + var(--safe-bottom)); padding: 56px clamp(32px, 5vw, 80px) 32px; overflow: hidden; animation: np-in .36s cubic-bezier(.16,1,.3,1); }
  @keyframes np-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .player-overlay .player-handle i { display: none; }
  .player-overlay .desk-close { top: 20px; right: 24px; }
  .player-overlay .player { max-width: 1240px; height: 100%; margin: 0 auto; display: grid; align-content: center; column-gap: clamp(32px, 5vw, 88px);
    grid-template-columns: minmax(260px, min(440px, calc(100vh - 84px - 260px))) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "art tabs" "art lyrics" "from lyrics" "copy lyrics"; }
  .player-overlay .now-art { display: contents; }
  .player-overlay .now-art > img.art-img { grid-area: art; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); align-self: end; }
  .player-overlay .now-from { grid-area: from; text-align: left; margin: 22px 0 4px; }
  .player-overlay .now-row { grid-area: copy; align-self: start; margin: 0; }
  .player-overlay .now-row h2 { font-size: 26px; }
  .player-overlay .now-album { display: none; }
  .player-overlay .now-tabs { grid-area: tabs; display: flex !important; gap: 6px; align-self: end; margin-bottom: 18px; }
  .now-tab { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; }
  .now-tab.on { color: var(--text); background: var(--glass-hover, rgba(244,244,244,.1)); }
  .player-overlay .lyrics-overlay { grid-area: lyrics; position: relative; inset: auto; width: auto; height: auto; max-height: min(58vh, 560px); align-self: start;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 40vh; overflow-y: auto; text-align: left;
    font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; line-height: 1.32; color: color-mix(in srgb, var(--text) 40%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 78%, transparent 100%); }
  .player-overlay .lyrics-overlay .sync-line { padding: 6px 0; transition: color .25s; cursor: pointer; }
  .player-overlay .lyrics-overlay .sync-line.on { color: var(--text); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent); font-size: inherit; } /* 155: same size as the other lines (the global .sync-line.on 22px made it smaller) */
  .player-overlay .progress, .player-overlay .controls, .player-overlay .now-tools { display: none; }
  .player-overlay:not(:has(.lyrics-overlay)) .player { grid-template-areas: "art tabs" "art none" "from none" "copy none"; }
}
/* 0.6.3 fixes: bar buttons are plain icons; desktop Now Playing art sits in its column; blurred cover backdrop */
.mini .icon-btn { background: transparent; border: 0; box-shadow: none; }
.mini .icon-btn.on { background: transparent; color: var(--accent); }
.mini .icon-btn.on .ui-icon, .player .icon-btn.on .ui-icon { color: inherit; }
.player .controls .icon-btn.on, .now-tools .icon-btn.on, .now-row .icon-btn.on { background: transparent; color: var(--accent); }
.player .controls .icon-btn:not(.play-main), .now-tools .icon-btn { background: transparent; border: 0; }
.mini .play-btn { background: #f4f4f4 !important; color: #111 !important; }
@media (max-width: 959px) { .mini .play-btn { width: 40px !important; height: 40px !important; } .mini .play-btn .ui-icon { width: 20px; height: 20px; } }
.player-overlay::before { content: ""; position: fixed; inset: -60px; z-index: -1; pointer-events: none; background: var(--np-cover, none) center / cover no-repeat;
  filter: blur(60px) saturate(130%) brightness(.55); opacity: .9; }
html[data-glass="solid"] .player-overlay::before, html[data-glass="lite"] .player-overlay::before { filter: none; opacity: 0; }
@media (min-width: 960px) {
  html.np-open .tabbar { display: none; }
  .player-overlay .now-art > img.art-img { position: relative !important; inset: auto !important; height: auto !important; max-width: 440px; }
  .player-overlay .lyrics-overlay { padding-top: 14vh; max-height: min(62vh, 600px); }
  .player-overlay .now-tabs, .player-overlay .lyrics-overlay { align-self: start; }
  .player-overlay .player { grid-template-rows: auto auto auto auto; align-content: center; }
  .player-overlay .player-sheet { z-index: 46; }
}
.seekwrap input[type=range] { border: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; outline-offset: 4px; }
/* 148: iPhone Safari: the bottom address bar covered Lyrics / Up Next in the full player.
   Size the player to the *visible* viewport (100dvh), keep it clear of the home indicator / toolbar,
   and shrink the cover on short screens so the controls row always fits. */
@media (max-width: 959px) {
  .player-overlay {
    top: 0; bottom: auto;
    height: 100vh; height: 100dvh;
    overflow-y: auto;
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .now-art { width: min(100%, 420px, max(140px, calc(100dvh - 430px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)))); margin-left: auto; margin-right: auto; }
  .player .controls { margin-bottom: 8px; }
}

/* =====================================================================
   149: approved fix list (mobile first). One glass recipe, calmer motion.
   ===================================================================== */
:root { --glass-card: var(--glass-1); --radius-card-149: 16px; --ease-out: cubic-bezier(.22,1,.36,1); --ease-sheet: cubic-bezier(.32,.72,0,1); }
html { scrollbar-gutter: stable; }                              /* #35: no sideways jump when a scrollbar appears */
.skel-gap { margin-top: 18px; }                                 /* index.html skeleton (was an inline style) */

/* #32 one glass style: cards, rows, panels, sign-in box, empty states */
.panel, .empty-card, .song-row, .artist-card, .search-row.glassy, .landing-sheet, .confirm-sheet, .player-sheet {
  border: 1px solid var(--edge-hair); border-radius: var(--radius-card-149);
  box-shadow: var(--edge-top-light), var(--shadow-1); }
.empty-card, .confirm-sheet, .landing-sheet { background: var(--glass-3); -webkit-backdrop-filter: var(--glass-filter-md); backdrop-filter: var(--glass-filter-md); }
.landing-dawn h1, .landing-dawn h2, .landing-dawn p, .landing-dawn .landing-brand span, .landing-dawn .countdown, .landing-dawn .landing-foot a {
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.4); }   /* white text on the pink photo */

/* #3 #9 #36 drawer: above the desktop player bar, slides in, even dim, icons */
.drawer-dim { z-index: 70 !important; background: rgba(0,0,0,.5); animation: dim-in .26s ease both; }
.drawer { z-index: 71 !important; animation: drawer-in .32s var(--ease-sheet) both; }
.drawer-dim[data-armed="0"] { pointer-events: none; }
/* the landing sign-in / listen sheet keeps its own stack (dim 60, sheet 61) */
.landing-sheet-wrap .drawer-dim { z-index: 60 !important; }
.menu-sheet.drawer { animation: sheet-rise .32s var(--ease-sheet) both; }
@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sheet-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .drawer-label { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-ic { display: inline-flex; width: 20px; height: 20px; flex: none; color: color-mix(in srgb, var(--text) 70%, transparent); }
.drawer-ic .ui-icon { width: 20px; height: 20px; color: currentColor; }
.drawer .drawer-foot .danger-outline { display: inline-flex; align-items: center; gap: 10px; }
.drawer .drawer-foot .drawer-ic { color: inherit; }

/* #10 the floating tab bar + mini player never cover the last rows */
@media (max-width: 959px) {
  .wrap { padding-bottom: calc(120px + var(--safe-bottom)); }
  html.has-bar .wrap { padding-bottom: calc(196px + var(--safe-bottom)); }
}

/* #11 phone Now Playing: an icon close on the left of the grab handle; the remaining time never clips */
.player-handle { position: relative; align-items: center; min-height: 40px; }
.player-handle .mob-close { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 40px; border-radius: 50%;
  background: var(--glass-1); border: 1px solid var(--edge-hair); -webkit-backdrop-filter: var(--glass-filter-sm); backdrop-filter: var(--glass-filter-sm); }
.player-handle .mob-close .ui-icon { width: 22px; height: 22px; }
.player .times { padding: 0 2px; font-variant-numeric: tabular-nums; gap: 8px; }
.player .times span { white-space: nowrap; flex: none; }
.player .times span[data-plays] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.player .progress { padding: 0 2px; overflow: visible; }
@media (min-width: 960px) { .player-handle .mob-close { display: none; } }

/* #4 the scrubber shows progress only (no buffered band that reads as progress) */
.seekwrap::before { background: linear-gradient(90deg, var(--accent) 0 var(--pos), color-mix(in srgb, var(--text) 16%, transparent) var(--pos)) !important; }

/* #31 bottom player: glass bar, clear active states, small art */
.mini { background: var(--glass-2); }
.mini .icon-btn { position: relative; transition: color .18s ease, transform .18s var(--ease-out); }
.mini .icon-btn.on { color: var(--accent) !important; }
.mini .icon-btn.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mini .icon-btn:hover { color: var(--text); }
.mini .icon-btn:active { transform: scale(.92); }

/* #25 Now Playing tabs: clear active tab; the lyrics column has a fixed home (no jump between songs) */
.now-tab { position: relative; transition: color .2s ease, background-color .2s ease; }
.now-tab.on { color: var(--on-accent) !important; background: var(--accent) !important; }
@media (min-width: 960px) {
  .player-overlay .player { align-content: start !important; padding-top: clamp(16px, 7vh, 84px); grid-template-rows: auto auto auto 1fr !important; }
  .player-overlay .now-tabs { align-self: start !important; margin: 0 0 18px; }
  .player-overlay .lyrics-overlay { height: min(62vh, 600px); max-height: none; padding-top: 6vh; }
  .player-overlay .now-art > img.art-img { align-self: start; }
  .player-overlay .no-lyrics, .player-overlay .lyrics-overlay .muted { font-size: 20px; }
}

/* #24 Up Next: a bottom sheet on phones, a side panel on desktop; drag grips, quiet remove buttons */
.queue-sheet { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px; max-height: 78%; overflow: hidden; animation: sheet-up-149 .34s var(--ease-sheet) both; }
@keyframes sheet-up-149 { from { transform: translateY(100%); } to { transform: none; } }
.queue-sheet .sheet-grabber { display: block; width: 40px; height: 5px; margin: 0 auto 2px; border-radius: 999px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.queue-sheet .sheet-x { top: 8px; right: 8px; width: 36px; height: 36px; min-height: 36px; border-radius: 50%; }
.queue-sheet > .sheet-x + * { margin-top: 0 !important; }
.queue-sheet .queue-head { padding-right: 40px; grid-template-columns: 44px minmax(0, 1fr) 40px 40px; }
.queue-sheet .queue-head .queue-art { width: 44px; height: 44px; }
.queue-sheet .queue-head .icon-btn { width: 40px; height: 40px; min-height: 40px; border-radius: 50%; }
.queue-modes { display: flex; gap: 6px; margin: 2px 0; }
.queue-modes .icon-btn { width: 40px !important; height: 40px; min-height: 40px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.queue-modes .icon-btn.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.queue-modes .icon-btn.on .ui-icon { color: var(--accent); }
.rep-one { position: absolute; right: 6px; bottom: 5px; font-size: 9px; font-weight: 800; line-height: 1; color: var(--accent); }
.queue-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
.queue-list::-webkit-scrollbar { width: 6px; }
.queue-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 22%, transparent); border-radius: 6px; }
.queue-list::-webkit-scrollbar-track { background: transparent; }
.up-next-list { display: grid; gap: 4px; }
.queue-row.up-next-row { grid-template-columns: 36px minmax(0, 1fr) 32px 32px !important; gap: 8px; padding: 4px 4px 4px 6px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; box-shadow: none; transition: background-color .18s ease, transform .18s var(--ease-out); }
.queue-row.up-next-row:hover { background: var(--glass-hover); }
.queue-row.up-next-row.dragging { background: var(--glass-3); border-color: var(--edge-hair); box-shadow: var(--shadow-2); transition: none; z-index: 2; position: relative; }
.up-next-row > .icon-btn, .player-sheet .up-next-row > .icon-btn { width: 32px !important; height: 32px !important; min-height: 32px !important; flex: none !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.up-next-row .q-remove { opacity: .4; transition: opacity .15s ease; }
.up-next-row .q-remove .ui-icon { width: 16px; height: 16px; }
.up-next-row:hover .q-remove, .up-next-row .q-remove:focus-visible { opacity: .9; }
.up-next-row .q-grip { cursor: grab; touch-action: none; opacity: .55; }
.up-next-row .q-grip:active { cursor: grabbing; }
.up-next-row .q-grip .ui-icon { width: 18px; height: 18px; }
@media (hover: none) { .up-next-row .q-remove { opacity: .6; } }
@media (min-width: 960px) {
  .player-overlay .queue-sheet { position: fixed; left: auto; top: 16px; right: 16px; bottom: calc(84px + 16px + var(--safe-bottom)); width: min(400px, 34vw); max-height: none;
    animation: panel-in .34s var(--ease-sheet) both; }
  .player-overlay .queue-sheet + .sheet-dim, .player-overlay .sheet-dim[data-close-queue] { background: rgba(0,0,0,.18); }
  .queue-sheet .sheet-grabber { display: none; }
  @keyframes panel-in { from { transform: translateX(calc(100% + 24px)); } to { transform: none; } }
}

/* #23 empty states */
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; }
.empty-card p { margin: 0; max-width: 32ch; }
.empty-ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.empty-ic .ui-icon { width: 22px; height: 22px; color: var(--accent-text); }
.empty-cta { margin-top: 4px; width: auto; min-width: 160px; }

/* #26 motion: skeletons that match, modal pop, Now Playing zoom; reduced motion turns it all off (global rule above) */
.player-overlay.np-zoom { animation: np-fade .3s ease both !important; }
.player-overlay.np-zoom .now-art { transform-origin: 0 0; }
@keyframes np-fade { from { opacity: 0; } to { opacity: 1; } }
.confirm-sheet { animation: sheet-rise .28s var(--ease-sheet) both; }
.confirm-wrap .sheet-dim, .sheet-dim { animation: dim-in .22s ease both; }
.skel-tile { pointer-events: none; }
.skel-tile .skel-line { display: block; height: 10px; margin-top: 8px; border-radius: 6px; width: 80%; }
.skel-tile .skel-line.short { width: 55%; margin-top: 6px; }
.skel-title { color: transparent !important; }
.skel-title::before { content: ""; display: inline-block; width: 90px; height: 16px; border-radius: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.recent-tile .art-img, .album-card .art-img { transition: opacity .32s ease, transform .3s var(--ease-out); }

/* #28 artist page: carousels without scrollbars, edge fade, glass Albums/Songs switch */
.shelf, .recent-rail { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
.shelf::-webkit-scrollbar, .recent-rail::-webkit-scrollbar { display: none; }
.seg:has([data-artist-tab]) { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass-1); border: 1px solid var(--edge-hair);
  -webkit-backdrop-filter: var(--glass-filter-md); backdrop-filter: var(--glass-filter-md); box-shadow: var(--edge-top-light); }
.seg [data-artist-tab] { flex: none; min-width: 96px; min-height: 36px; border: 0; background: transparent; color: var(--muted); transition: background-color .22s var(--ease-out), color .22s ease; }
.seg [data-artist-tab].on { background: color-mix(in srgb, var(--text) 92%, transparent); color: #111; }

/* #29 album page: numbers, hover / active rows, solid accent Play, bars in the number slot */
.track-thin.numbered { grid-template-columns: 28px minmax(0, 1fr) auto !important; gap: 10px; padding: 0 6px; border-radius: 10px; border-bottom-color: var(--edge-hair); transition: background-color .15s ease; }
.track-thin.numbered.has-more { grid-template-columns: 28px minmax(0, 1fr) auto 44px !important; }
.track-thin.numbered:hover { background: var(--glass-hover); }
.track-thin.numbered:active { background: color-mix(in srgb, var(--text) 12%, transparent); }
.track-thin .tn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 20px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.track-thin .tn .eq { position: static; margin: 0; }
.track-thin.numbered.playing button[data-play] { color: var(--accent-text); font-weight: 600; }
.track-thin.numbered button[data-play] { font-weight: 500; }
.btn[data-play-album] { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; font-weight: 700; }
.btn[data-play-album]:hover { filter: brightness(1.06); }

/* #30 Library index */
.lib-index { gap: 6px; }
.lib-index button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 60px; padding: 0 12px;
  border: 1px solid var(--edge-hair); border-radius: var(--radius-card-149); background: var(--glass-1); box-shadow: var(--edge-top-light); font-size: 17px; transition: background-color .15s ease; }
.lib-index button:hover { background: var(--glass-hover); }
.lib-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lib-ic .ui-icon { width: 20px; height: 20px; color: var(--accent-text); }
.lib-count { color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lib-index .chev, .lib-index .ui-icon:last-child { color: var(--muted); }

/* #34 Releasing Soon */
.section-title { margin: 22px 0 10px; }
.soon-card, .soon-row { opacity: 1; }
.soon-card .album-meta span, .soon-row .soon-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-date { display: block; margin-top: 2px; color: var(--accent-text); font-size: 12px; font-weight: 600; white-space: normal; }

/* #35 Search */
.search, input[type=search].search { width: 100%; box-sizing: border-box; padding: 0 14px; min-height: 46px; border-radius: 999px; }
input.search:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); border-color: transparent; }
input.search:focus-visible { outline: none; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-left: 8px; cursor: pointer; opacity: .7;
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23ffffff' fill-opacity='.22'/%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type=search]::-webkit-search-cancel-button:hover { opacity: 1; }
[data-search-results] .search-row { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 8px 4px; border-radius: 12px; }
[data-search-results] .search-row > button[data-play] { text-align: left; min-width: 0; }
[data-search-results] .search-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-search-results] .search-row .song-thumb, [data-search-results] .search-row .search-avatar { width: 44px; height: 44px; }

/* #37 Settings + Profile */
.wrap .panel { box-sizing: border-box; width: 100%; }
.profile-card { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 24%, var(--card)) center / cover no-repeat; color: var(--text); border: 1px solid var(--edge-hair); }
.role-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-dim, .queue-sheet, .confirm-sheet, .player-overlay.np-zoom, .sheet-dim { animation: none !important; }
}

/* 151: iPhone Safari's floating address bar clipped only the bottom Lyrics / Up Next row.
   Lift just that row; the cover and the rest of the player keep 149's layout. */
@media (max-width: 959px) {
  .player-overlay .now-tools { position: relative; top: -24px; }
}

/* =====================================================================
   152 (0.6.5)
   ===================================================================== */
/* #2 icon-only and round buttons: the icon sits dead center (the drawer's generic button rule
   was spreading the X to the left with justify-content: space-between; song-row ⋯ buttons were block). */
.drawer .icon-btn:not([hidden]), .drawer .drawer-top .sheet-close, .song-row .icon-btn:not([hidden]), .track-thin .icon-btn:not([hidden]), .search-row .icon-btn:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 0; text-align: center; line-height: 0; }
.icon-btn > .ui-icon { flex: none; margin: 0; }

/* #1 Synced Lyrics: a taller box that shows the line before (faint), the current line, and what is coming (dimmed). */
.sync-board { flex: none; height: clamp(170px, calc(100svh - 600px), 340px); max-height: none; scroll-behavior: smooth; }
.sync-board::before, .sync-board::after { content: ""; display: block; height: 38%; }
.sync-board .sync-line { opacity: .32; font-size: 17px; transition: opacity .3s var(--ease-out, ease), color .3s ease, font-size .25s var(--ease-out, ease); }
.sync-board .sync-line.on { opacity: 1; font-size: 22px; }
.sync-board .sync-line.on + .sync-line { opacity: .72; }
.sync-board .sync-line.on + .sync-line + .sync-line { opacity: .5; }
.sync-board .sync-line:has(+ .sync-line.on) { opacity: .45; }

/* A) B) album tools (owner only): icon buttons under Play / Shuffle; arrange mode swaps ⋯ for move / remove. */
.album-tools { display: flex; gap: 10px; margin: -4px 0 14px; }
.track-thin.arrange { grid-template-columns: 28px minmax(0, 1fr) auto; }
.track-thin.arrange .arrange-btns { display: inline-flex; gap: 6px; }
.track-thin.arrange .arrange-btns .icon-btn { width: 36px; height: 36px; min-height: 36px; }
.track-thin.arrange .arrange-btns .icon-btn:disabled { opacity: .3; }
.album-pick .search { margin: 44px 0 10px; }
.album-pick .song-list { max-height: 60svh; overflow: auto; }
.wrap.sync-view .sync-hold-wrap { position: static; }   /* 152: it was pinned over the bottom of the taller box */
/* ---- 153 ---- */
/* #9: the "add a song you already uploaded" panel is wider; one name per line, still … when long */
.drawer.album-pick { width: min(94vw, 520px); }
.album-pick .song-row { display: block; }
.album-pick .song-row button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-width: 0; padding: 8px 12px; }
.album-pick .song-row button strong, .album-pick .song-row button span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-pick .song-row button span { color: var(--muted); font-size: 13px; }
/* #2/#13: album tools inside Studio's open album */
.studio-songs .studio-album-tools { margin: 8px 0 6px; }
.studio-songs .track-thin.arrange .line-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-songs > .err { margin: 8px 0 0; }
.into-album { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.into-album .studio-album-art { width: 52px; height: 52px; flex: none; }
.into-album span { display: flex; flex-direction: column; min-width: 0; }
.into-album strong, .into-album em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.into-album em { font-style: normal; color: var(--muted); font-size: 13px; }
.add-song-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.add-song-actions > * { flex: 1 1 0; }
.song-line .line-title-input { min-width: 0; width: 100%; min-height: 40px; padding: 0 10px; font-size: 16px; text-overflow: ellipsis; }
.song-line .line-title-input.invalid, [aria-invalid="true"] { border-color: var(--danger); }
.field-err { display: block; margin-top: 6px; font-size: 13px; }
.song-line:has(.line-title-input) { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; }
.song-line .file-btn { min-width: 0; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.into-album { min-width: 0; max-width: 100%; }
.add-song-actions > .file-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-weight: 650; }
.form .add-song-actions > label.file-btn { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 52px; color: var(--text); font-size: 16px; }
/* 156: Windows app: no landing page behind Sign In (the app opens straight to it). */
html.bam-desktop body.landing-on [data-landing] { visibility: hidden; }
html.bam-desktop body.landing-on { background: #0b0b0c; }
html.bam-desktop body.landing-on .landing-sheet-close, html.bam-desktop body.landing-on .landing-sheet-wrap > .drawer-dim { display: none; }
html.bam-desktop body.landing-on [data-landing-sheet] { visibility: visible; }
.desktop-dl { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.18)); color: var(--text); text-decoration: none; font-weight: 600; }
