:root {
  --bg: #070708;
  --card: #121214;
  --card-2: #1a1a1d;
  --line: rgba(255,255,255,.10);
  --text: #f4f4f4;
  --muted: #8d8d92;
  --danger: #c97979;
  --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.png") center center / 152vw auto no-repeat,
    var(--bg);
  background:
    image-set(url("/logo-background-desktop.webp") type("image/webp"), url("/logo-background-desktop.png") type("image/png")) 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;
}
.btn {
  background: #d8d8d8;
  color: #111;
  font-weight: 700;
  width: 100%;
}
.ghost {
  background: rgba(18,18,20,.86);
  border: 1px solid var(--line);
}
.danger { color: var(--danger); border: 1px solid var(--line); }
.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: 22px;
  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: #b5b5b8; 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: 16px;
  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: 18px;
  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;
}
.heart-title { font-size: 22px; }

.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: #cfcfcf; }
.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;
}
.row-actions { display: flex; gap: 6px; }
.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: #bdbdbd; }
.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: #c62828;
  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: #ef5350; 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: #d8d8d8; }

.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: 18px;
  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; }
.nav-ghost {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.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-tools { display: flex; justify-content: space-between; align-items: center; }
.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: 12px; }
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: #8a8a8a; }
.form { display: grid; gap: 12px; padding-bottom: calc(96px + var(--safe-bottom)); }
.ok, .file-btn.ok { color: #3dd68c; }
.bad, .err { color: #e15b64; }
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; }

.pop-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); border: 0; z-index: 40; }
.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; }

.date-slot { display: block; width: 100%; max-width: 100%; overflow: hidden; }
.date-slot input { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.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; }
.date-slot input { text-align: left; }
.panel.form .check + .muted { margin-top: -6px; }

.date-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.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.png") center center / auto min(100vh, 980px) no-repeat,
      var(--bg);
    background:
      image-set(url("/logo-background-desktop.webp") type("image/webp"), url("/logo-background-desktop.png") type("image/png")) 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: 18px; }
.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; }
