/* The Meltify web player. Same colours and shapes as the app and the site. */
:root {
  color-scheme: dark;
  --ink: #0E0B09;
  --ink-2: #17120F;
  --glass: 0.72;              /* how solid the panels are; Settings changes it */
  --panel: rgb(28 22 18 / var(--glass));
  --panel-2: rgba(255, 244, 232, 0.07);
  --panel-3: rgba(255, 244, 232, 0.12);
  --line: rgba(255, 236, 220, 0.12);
  --text: #F6EFE6;
  --muted: #BDB1A4;
  --faint: #85796D;
  --melt: #E2462B;            /* the accent: a look's colour, or the colours of the cover playing */
  --melt-hi: color-mix(in srgb, var(--melt) 74%, white);
  --melt-glow: color-mix(in srgb, var(--melt) 65%, transparent);
  --c1: #E2462B; --c2: #8C2F1E; --c3: #E88A45;
  --bg-blur: 66px; --bg-bright: 0.53; --bg-speed: 48s;
  --ly-font: var(--display); --ly-weight: 800; --ly-gap: 1; --ly-align: left; --ly-case: none;
  --violet: #8C2F1E;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --r: 22px;
  --ly: 22px;                 /* lyric size in the side panel; Settings changes it */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.5 var(--body);
  overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--melt-hi); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--melt) 45%, transparent); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 236, 220, 0.18) transparent; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.solid { fill: currentColor; stroke: none; }

/* -- what is behind everything: drifting blobs of colour, the cover blurred, a gradient, or your own picture -- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.backdrop .pic {
  position: absolute; inset: -110px; background: center / cover no-repeat;
  filter: blur(var(--bg-blur)) saturate(1.45) brightness(var(--bg-bright)); transition: background-image 0.8s ease;
}
.backdrop .blobs {
  position: absolute; inset: -30%; filter: blur(calc(var(--bg-blur) * 1.5)) saturate(1.25) brightness(calc(var(--bg-bright) + 0.12));
  animation: turn var(--bg-speed) linear infinite;
}
.blob { position: absolute; border-radius: 50%; opacity: 0.9; transition: background-color 1.2s ease; }
.blob.b1 { left: 14%; top: 14%; width: 44%; height: 44%; background: var(--c1); }
.blob.b2 { right: 10%; top: 28%; width: 40%; height: 40%; background: var(--c2); }
.blob.b3 { left: 32%; bottom: 8%; width: 42%; height: 42%; background: var(--c3); }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate(-7%, -5%) scale(1); } to { transform: translate(9%, 7%) scale(1.16); } }
body[data-motion="drift"] .blobs { animation: none; }
body[data-motion="drift"] .blob { animation: drift calc(var(--bg-speed) * 0.35) ease-in-out infinite alternate; }
body[data-motion="drift"] .blob.b2 { animation-direction: alternate-reverse; animation-duration: calc(var(--bg-speed) * 0.45); }
body[data-motion="still"] .blobs, body[data-motion="still"] .blob { animation: none; }
body:not([data-bg="blobs"]) .blobs { display: none; }
body[data-bg="blobs"] .pic, body[data-bg="gradient"] .pic { display: none; }
body[data-bg="gradient"] .backdrop {
  background: radial-gradient(1100px 800px at 0% 0%, color-mix(in srgb, var(--c2) 75%, transparent), transparent 62%),
    radial-gradient(1000px 800px at 100% 100%, color-mix(in srgb, var(--c3) 38%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 70%, #000), #000 75%);
  filter: brightness(calc(var(--bg-bright) + 0.5));
}
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(14, 11, 9, 0.3); }

/* -- the frame ------------------------------------------------------------------------------ */
.app {
  position: relative; z-index: 1; height: 100dvh; display: grid; gap: 10px; padding: 10px;
  grid-template: "top top top" auto "side view now" minmax(0, 1fr) "bar bar bar" auto / 290px minmax(0, 1fr) 340px;
}
.top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 4px; }
.side, .view, .now, .bar {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
}
.side { grid-area: side; overflow-y: auto; padding: 16px 12px; }
.view { grid-area: view; container: view / inline-size; overflow-y: auto; padding: 28px 30px 40px; outline: none; scroll-behavior: smooth; }
.now { grid-area: now; display: flex; flex-direction: column; min-height: 0; padding: 14px; gap: 12px; }
.bar { grid-area: bar; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 10px 18px; }
.bar-end .ib { width: 38px; height: 38px; }
.tabs { display: none; }
.grow { flex: 1; }

/* -- top bar ---------------------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -0.02em; width: 150px; flex: none; }
.brand img { border-radius: 10px; }
.hist { display: flex; gap: 6px; }
.ib {
  width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  border: 0; background: var(--panel-2); color: var(--text); transition: background 0.15s, transform 0.15s, color 0.15s;
}
.ib:hover { background: var(--panel-3); }
.ib:active { transform: scale(0.94); }
.ib:disabled { opacity: 0.35; cursor: default; }
.ib[aria-pressed="true"], .ib.on { color: var(--melt-hi); }
.ib.bare { background: none; }
.ib.small { width: 34px; height: 34px; }
.ib.small svg { width: 18px; height: 18px; }
.ib.home { background: var(--melt); color: #fff; box-shadow: 0 8px 24px -8px var(--melt-glow); }
.find {
  flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); transition: border-color 0.15s, background 0.15s;
}
.find:focus-within { border-color: color-mix(in srgb, var(--melt-hi) 70%, transparent); background: var(--panel-3); }
.find input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font-size: 15px; }
.find input::placeholder { color: var(--muted); }
.find input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 0; background: var(--melt); color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 10px 28px -10px var(--melt-glow); transition: background 0.15s, transform 0.15s;
}
.pill:hover { background: var(--melt-hi); }
.pill:active { transform: scale(0.97); }
.pill:disabled { opacity: 0.5; cursor: default; }
.pill.ghost { background: var(--panel-2); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.pill.ghost:hover { background: var(--panel-3); }
.pill.small { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.pill svg { width: 18px; height: 18px; }

/* -- library (left) --------------------------------------------------------------------------- */
.side h2 { font: 700 16px/1 var(--body); padding: 4px 8px 14px; display: flex; align-items: center; justify-content: space-between; }
.side .pill { width: 100%; margin-bottom: 12px; }
.lib-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; }
.lib-item:hover { background: var(--panel-2); }
.lib-item.is-here { background: var(--panel-3); }
.lib-item.is-here b { color: var(--melt-hi); }
.lib-folder > summary { list-style: none; cursor: pointer; grid-template-columns: 48px minmax(0, 1fr) auto; }
.lib-folder > summary::-webkit-details-marker { display: none; }
.lib-folder .folder-art { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--panel-2); color: var(--melt-hi); }
.lib-folder .folder-art svg { width: 24px; height: 24px; }
.lib-folder .inside { padding-left: 22px; }
.art { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--panel-3); flex: none; }
.art.none { display: grid; place-items: center; color: var(--faint); }
.art.liked { display: grid; place-items: center; background: linear-gradient(135deg, #8C2F1E, var(--melt)); color: #fff; }
.art.mix { display: grid; grid-template: 1fr 1fr / 1fr 1fr; overflow: hidden; }
.art.mix img { width: 100%; height: 100%; object-fit: cover; }
.names { min-width: 0; display: flex; flex-direction: column; }
button.names { border: 0; background: none; padding: 0; text-align: left; cursor: default; }
.names b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.names span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- the middle: views ------------------------------------------------------------------------ */
.h1 { font: 800 clamp(30px, 4vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; }
.sub { color: var(--muted); margin-top: 6px; }
.section { margin-top: 34px; }
.section > h2 { font: 700 20px/1.2 var(--body); margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.section > h2 small { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; font-weight: 500; }
.chip:hover, .chip.on { background: var(--panel-3); border-color: color-mix(in srgb, var(--melt-hi) 55%, transparent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card { display: block; padding: 12px; border-radius: 18px; background: var(--panel-2); border: 1px solid transparent; text-align: left; color: inherit; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.card:hover { background: var(--panel-3); border-color: var(--line); transform: translateY(-2px); }
.card .art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; margin-bottom: 10px; }
.cards.row-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 168px); overflow-x: auto; scrollbar-width: none; }
.cards.row-scroll::-webkit-scrollbar { display: none; }
.cards.artists .card { text-align: center; background: none; }
.cards.artists .card:hover { background: var(--panel-2); }
.card b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.quick button { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0 12px 0 0; border: 0; border-radius: 14px; background: var(--panel-2); overflow: hidden; text-align: left; }
.quick button:hover { background: var(--panel-3); }
.quick .art { width: 56px; height: 56px; border-radius: 0; }
.chips.kinds { margin: 4px 0 18px; }
.find { width: min(100%, 380px); margin: 4px 0 16px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: inherit; font: inherit; font-size: 14px; }
.section h2 .more { float: right; font-size: 13px; font-weight: 600; opacity: 0.7; text-decoration: none; color: inherit; }

.hero { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.hero .art { width: 190px; height: 190px; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.hero .art.liked svg { width: 72px; height: 72px; }
.hero .about { min-width: 0; flex: 1 1 280px; }
.hero .kind { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--melt-hi); }
.hero .h1 { margin: 6px 0 8px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 138, 61, 0.12); border: 1px solid rgba(255, 138, 61, 0.3); color: #FFD9BD; font-size: 14px; }

.rows { margin-top: 22px; display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 30px 46px minmax(0, 1.5fr) minmax(0, 1fr) 52px 36px 36px; gap: 12px; align-items: center;
  padding: 7px 8px; border-radius: 14px; cursor: default; user-select: none;
}
.row:hover, .row:focus-within { background: var(--panel-2); }
.row .n { color: var(--faint); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.row .art { width: 46px; height: 46px; border-radius: 10px; }
.row .album, .row .dur { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .dur { text-align: right; font-variant-numeric: tabular-nums; }
.row .ib { opacity: 0; }
.row:hover .ib, .row:focus-within .ib, .row .ib.on { opacity: 1; }
.row.is-current .names b { color: var(--melt-hi); }
.row.is-current .n { color: var(--melt-hi); }
.row .tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--panel-3); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
@container view (max-width: 700px) {
  .row { grid-template-columns: 30px 46px minmax(0, 1fr) 52px 36px 36px; }
  .row .album { display: none; }
}
@container view (max-width: 460px) {
  .row { grid-template-columns: 46px minmax(0, 1fr) 36px 36px; }
  .row .n, .row .dur { display: none; }
}
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .pill { margin-top: 16px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 30px 4px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--panel-3); border-top-color: var(--melt-hi); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.box { padding: 22px; border-radius: calc(var(--r) * 0.9); background: var(--panel-2); border: 1px solid var(--line); }
.box + .box { margin-top: 14px; }
.box h3 { font: 600 17px/1.3 var(--body); margin-bottom: 4px; }
.box p { color: var(--muted); font-size: 14px; }
.field, .textarea {
  width: 100%; margin-top: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28);
  color: var(--text); outline: none; font-size: 15px;
}
.field:focus, .textarea:focus { border-color: color-mix(in srgb, var(--melt-hi) 70%, transparent); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline .field { margin-top: 0; flex: 1 1 220px; width: auto; }
.set { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.set:first-of-type { border-top: 0; }
.set > div { flex: 1; min-width: 0; }
.set b { display: block; font-weight: 600; }
.set span { color: var(--muted); font-size: 13.5px; }
.switch { width: 50px; height: 30px; flex: none; border-radius: 999px; border: 0; background: var(--panel-3); position: relative; transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.switch[aria-checked="true"] { background: var(--melt); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); align-self: flex-start; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
.set.tall { flex-wrap: wrap; }
.set.tall > div:first-child { flex: 1 1 100%; }
.seg.wrap { flex-wrap: wrap; border-radius: 18px; max-width: 100%; }
.slide { flex: 0 1 240px; }
input.slide::-webkit-slider-thumb { opacity: 1; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.look {
  position: relative; height: 92px; padding: 12px; border-radius: calc(var(--r) * 0.8); border: 2px solid transparent; text-align: left; color: #fff;
  display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--a), var(--b) 55%, var(--c)); overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55)); }
.look b { position: relative; z-index: 1; font-weight: 600; font-size: 14.5px; }
.look svg { position: absolute; top: 9px; left: 10px; z-index: 1; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #fff; color: #17120F; stroke-width: 3; }
.look:hover { transform: translateY(-2px); }
.look.on { border-color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.icons { display: flex; flex-wrap: wrap; gap: 6px; }
.icons .ico { display: grid; justify-items: center; gap: 4px; width: 74px; padding: 8px 0; border: 2px solid transparent; border-radius: 14px;
  background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.icons .ico:hover { background: var(--panel-2); }
.icons .ico.on { border-color: var(--melt); background: var(--panel-2); color: var(--text); }
.icons .ico img { width: 40px; height: 40px; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--ink) inset; }
.sw.pick { background: var(--panel-3); position: relative; overflow: hidden; }
.sw.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sw.pick svg { width: 16px; height: 16px; }
.chip.pair { display: inline-flex; padding: 0; overflow: hidden; }
.chip.pair button { border: 0; background: none; padding: 9px 6px 9px 16px; font: inherit; font-weight: 500; }
.chip.pair button + button { padding: 9px 12px 9px 4px; color: var(--muted); display: grid; place-items: center; }
.chip.pair button + button svg { width: 15px; height: 15px; }
.code { font: 800 clamp(44px, 9vw, 72px)/1 var(--display); letter-spacing: 0.08em; margin: 10px 0 4px; user-select: all; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.people span { padding: 6px 12px; border-radius: 999px; background: var(--panel-3); font-size: 13.5px; }
.limits { margin-top: 10px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.limits li { margin: 4px 0; }

/* -- now playing (right) ---------------------------------------------------------------------- */
.now-head { display: none; align-items: center; gap: 10px; }
.slot { width: 100%; aspect-ratio: 16 / 9; border-radius: calc(var(--r) * 0.75); background: linear-gradient(135deg, color-mix(in srgb, var(--melt) 55%, #000), color-mix(in srgb, var(--c2) 45%, #000)) center / cover no-repeat; flex: none; overflow: hidden; }
.now-meta { display: flex; align-items: center; gap: 10px; }
.now-meta .names { flex: 1; }
.now-meta .names b { font-size: 17px; }
.sheet-controls { display: none; }
#now-tabs { display: none; }
.lyrics, .upnext { flex: 1; min-height: 0; overflow-y: auto; border-radius: calc(var(--r) * 0.85); }
.lyrics {
  position: relative; padding: 18px 18px 40%; background: linear-gradient(160deg, color-mix(in srgb, var(--melt) 36%, transparent), color-mix(in srgb, var(--c2) 22%, transparent));
  border: 1px solid var(--line); scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 46px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 46px), transparent 100%);
}
.ly-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.ly-head .grow { flex: 1; }
.ly-head small { color: rgba(255, 255, 255, 0.6); font-weight: 400; font-size: 12px; white-space: nowrap; }
.ly-head .ib { width: 30px; height: 30px; }
.ln {
  display: block; width: 100%; padding: 7px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: var(--ly-weight) var(--ly)/1.28 var(--ly-font); letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.34);
  text-align: var(--ly-align); text-transform: var(--ly-case); padding-block: calc(7px * var(--ly-gap));
  transform-origin: var(--ly-align) center; transition: color 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
.ln:hover { color: rgba(255, 255, 255, 0.62); }
.ln.past { color: rgba(255, 255, 255, 0.22); }
.ln.on { color: rgba(255, 255, 255, 0.4); transform: scale(1.04); }
.ln .c { transition: color 0.14s linear, text-shadow 0.3s; }
.ln.on .c.lit { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.3); }
/* the five lyric styles (Settings): letters is the one above */
/* letters and karaoke: each word floats up a touch as it is sung and stays up for the line; a held
   note swells and glows while it lasts (as the app does) */
body:is([data-ly="letters"], [data-ly="karaoke"]) .ln .w { display: inline-block; white-space: pre;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.3s; transform-origin: center bottom; }
body:is([data-ly="letters"], [data-ly="karaoke"]) .ln.on .w.up { transform: translateY(-0.08em); }
body:is([data-ly="letters"], [data-ly="karaoke"]) .ln.on .w.held.sing { transform: translateY(-0.08em) scale(1.06);
  transition-duration: 1s; text-shadow: 0 0 22px rgba(255, 255, 255, 0.55); }
body[data-ly="karaoke"] .ln.on { color: rgba(255, 255, 255, 0.62); }
body[data-ly="karaoke"] .ln.on .c.lit { color: var(--melt-hi); text-shadow: none; }
body[data-ly="bounce"] .ln .w { display: inline-block; white-space: pre; transition: transform 0.16s cubic-bezier(0.3, 1.6, 0.5, 1); }
body[data-ly="bounce"] .ln.on .w.sing { transform: translateY(-0.14em) scale(1.07); }
body[data-ly="glow"] .ln.on { color: #fff; text-shadow: 0 0 26px color-mix(in srgb, var(--melt) 85%, white), 0 0 3px rgba(255, 255, 255, 0.5); }
body[data-ly="glow"] .ln.on .c { color: inherit; text-shadow: none; }
body[data-ly="line"] .ln.on { color: #fff; }
body[data-ly="line"] .ln.on .c { color: inherit; text-shadow: none; }
.ln.dots { justify-content: var(--ly-align); }
.ln .roma { display: block; margin-top: 2px; font: 500 0.6em/1.3 var(--body); letter-spacing: 0; color: inherit; opacity: 0.85; }
.ln .tr { display: block; margin-top: 2px; font: 500 0.55em/1.35 var(--body); letter-spacing: 0; color: inherit; opacity: 0.7; }
.ln .tr.it { font-style: italic; }
.ln .w.bv { opacity: 0.6; }
.ln.plain { cursor: default; color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: calc(var(--ly) * 0.8); }
.ln.dots { display: flex; gap: 8px; padding: 12px 0 12px 14px; cursor: default; }
/* an instrumental break: a glowing note, its ring filling up over the break (the app's 2026 design) */
.ln.dots .note {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; opacity: 0.5;
  background: color-mix(in srgb, var(--melt-hi) 16%, transparent); transition: opacity 0.3s;
  box-shadow: 0 0 18px 0 color-mix(in srgb, var(--melt-hi) 35%, transparent);
}
.ln.dots .note::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--melt-hi) calc(var(--done, 0) * 360deg), rgba(255, 255, 255, 0.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.ln.dots .note svg { width: 22px; height: 22px; color: #fff; }
.ln.dots.on .note { opacity: 1; animation: note-glow 2.2s ease-in-out infinite; }
@keyframes note-glow { 50% { transform: scale(1.1); box-shadow: 0 0 34px 6px color-mix(in srgb, var(--melt-hi) 70%, transparent); } }
body[data-reduce="1"] .ln.dots.on .note { animation: none; }
@keyframes breathe { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.ly-none { color: rgba(255, 255, 255, 0.7); padding: 30px 4px; text-align: center; }
.big-lyrics { --ly: clamp(30px, 4.2vw, 54px); height: 100%; background: none; border: 0; padding: 10px 6px 50%; }
.upnext { padding: 4px; }
.upnext .row, .view .row.compact { grid-template-columns: 46px minmax(0, 1fr) 36px; }
.upnext .row .ib { opacity: 1; }

/* -- the player bar --------------------------------------------------------------------------- */
.bar-song { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar-song .names { flex: 0 1 auto; }
.thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--panel-3); flex: none; }
.slot.dock { display: none; }
.bar-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.transport { display: flex; align-items: center; gap: 8px; }
.transport .ib { background: none; }
.transport .ib:hover { background: var(--panel-2); }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #17120F; display: grid; place-items: center; transition: transform 0.15s; }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(0.95); }
.play svg { fill: currentColor; stroke: none; }
.play.busy svg { animation: spin 0.9s linear infinite; fill: none; stroke: currentColor; }
.seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-end .ib { background: none; }
.bar-end .ib:hover { background: var(--panel-2); }
input[type="range"] {
  --v: 0%; -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 16px; background: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, 0.2) var(--v)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.15s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type="range"]:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--melt-hi) var(--v), rgba(255, 255, 255, 0.2) var(--v)); }
#volume, .bar-end input[type="range"] { flex: 0 0 96px; }

/* -- YouTube's player, laid over the slot that is showing ------------------------------------- */
.stage { position: fixed; z-index: 30; border-radius: calc(var(--r) * 0.75); overflow: hidden; background: #000; }
.stage iframe, .stage #yt { width: 100%; height: 100%; display: block; border: 0; }
.tap { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; }

/* -- pop-ups ---------------------------------------------------------------------------------- */
.menu { position: fixed; z-index: 60; min-width: 230px; max-width: 300px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: #211A15; border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9); }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14.5px; }
.menu button:hover, .menu button:focus-visible { background: var(--panel-3); }
.menu button svg { width: 18px; height: 18px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .label { padding: 8px 12px 4px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.veil { position: fixed; inset: 0; z-index: 70; background: rgba(8, 4, 12, 0.66); backdrop-filter: blur(4px); }
.dialog { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); padding: 24px; border-radius: 22px; background: #211A15; border: 1px solid var(--line); box-shadow: 0 40px 90px -20px #000; }
.dialog h3 { font: 700 20px/1.2 var(--body); }
.dialog p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.dialog .actions { justify-content: flex-end; }
/* -- Select many: ticks on the rows, the bar of actions -------------------------------------------- */
/* the tick sits on the song's cover (rows are a grid: it can't take a column of its own) */
.rows.picking .row { position: relative; --tick-x: 73px; }
.rows.picking .row::after { content: ""; position: absolute; left: calc(var(--tick-x) - 12px); top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.45); pointer-events: none; }
.rows.picking .row.picked::after { border-color: var(--melt); background: var(--melt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.rows.picking .row.picked { background: var(--panel-2); }
@container view (max-width: 460px) { .rows.picking .row { --tick-x: 31px; } }
.pickbar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding: 6px 10px;
  border-radius: 20px; background: rgba(24, 19, 16, 0.92); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px #000; backdrop-filter: blur(18px); }
.pickbar b { margin: 0 6px; font-size: 14px; }
.pickbar .all { color: var(--melt); background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.pickbar [data-pick]:not(.ib):not(.all) { display: grid; justify-items: center; gap: 2px; min-width: 58px; padding: 6px 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 11px; cursor: pointer; }
.pickbar [data-pick]:not(.ib):not(.all):hover { background: var(--panel-2); }
.pickbar svg { width: 20px; height: 20px; }
body[data-paper] .pickbar { background: rgba(243, 237, 226, 0.94); }
.dialog .choices { display: grid; gap: 6px; margin-top: 16px; max-height: min(52vh, 420px); overflow-y: auto; }
.dialog .choices button { display: grid; gap: 2px; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; font: inherit; cursor: pointer; }
.dialog .choices button:hover { background: var(--panel-3); }
.dialog .choices button[aria-pressed="true"] { border-color: var(--melt); }
.dialog .choices b { font-weight: 650; }
.dialog .choices span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 116px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(480px, calc(100% - 28px)); }
.toast { padding: 12px 18px; border-radius: 14px; background: #2C231C; border: 1px solid var(--line); box-shadow: 0 16px 40px -14px #000; font-size: 14.5px; text-align: center; animation: rise 0.25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* -- recap, mixes, artists ---------------------------------------------------------------------- */
.art.round { border-radius: 50%; }
.badged { position: relative; display: block; }
.badged i { position: absolute; left: 8px; bottom: 18px; padding: 1px 7px; border-radius: 6px; background: var(--melt); color: #fff; font: 700 10px/1.7 var(--body); letter-spacing: 0.08em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-top: 22px; }
.tile { padding: 18px; border-radius: calc(var(--r) * 0.8); background: var(--panel-2); border: 1px solid var(--line); }
.tile b { display: block; font: 800 34px/1.1 var(--display); letter-spacing: -0.02em; }
.tile span { color: var(--muted); font-size: 13.5px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 180px; padding-top: 4px; }
.week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.week i { width: 100%; max-width: 46px; min-height: 3px; height: calc((100% - 50px) * var(--h)); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--melt-hi), var(--melt)); }
.week b { font-size: 12px; font-weight: 600; color: var(--muted); min-height: 16px; }
.week span { font-size: 12.5px; color: var(--muted); }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ranks > * { display: grid; grid-template-columns: 22px 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--panel-2); text-align: left; color: inherit; }
.ranks > button:hover { background: var(--panel-3); }
.ranks.plain > * { grid-template-columns: 26px minmax(0, 1fr); }
.ranks .n { color: var(--faint); font-weight: 600; text-align: right; }
.hero .art.round { border-radius: 50%; }

/* -- your year in music: a story to tap through ------------------------------------------------ */
.story { position: relative; min-height: calc(100dvh - 250px); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2) 60%, #0E0B09); }
.story::before { content: ""; position: absolute; inset: 0; background: rgba(14, 11, 9, 0.4); }
.story .bars { position: relative; z-index: 4; display: flex; gap: 5px; padding: 14px 54px 0 16px; }
.story .bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.story .bars em { display: block; height: 100%; width: 0; background: #fff; }
.story .bars i.done em { width: 100%; }
.story .bars i.on em { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }
.story-x { position: absolute; right: 8px; top: 2px; z-index: 6; color: #fff; }
.slide { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px 28px 40px; }
.slide.in { animation: rise 0.45s ease; }
.slide small { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; opacity: 0.85; }
.slide h2 { font: 800 clamp(24px, 3.6vw, 38px)/1.12 var(--display); }
.slide .huge { font: 800 clamp(76px, 15vw, 160px)/0.95 var(--display); letter-spacing: -0.04em; }
.slide p { color: rgba(255, 255, 255, 0.86); font-size: 16.5px; }
.slide .art.cover { width: min(230px, 48vw); height: min(230px, 48vw); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.slide .art.cover.round { border-radius: 50%; }
.slide ol.top { list-style: none; margin: 8px 0 0; padding: 0; width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; text-align: left; counter-reset: n; }
.slide ol.top li { display: grid; grid-template-columns: 26px 48px minmax(0, 1fr); gap: 12px; align-items: center; counter-increment: n; }
.slide ol.top li::before { content: counter(n); font-weight: 800; font-size: 20px; text-align: right; }
.slide ol.top.plain { counter-reset: n 1; }
.slide ol.top.plain li { grid-template-columns: 26px minmax(0, 1fr); }
.slide .names span { color: rgba(255, 255, 255, 0.75); }
.slide .parts { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 8px; }
.slide .parts div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.slide .parts i { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.slide .parts em { display: block; height: 100%; background: #fff; border-radius: 10px; }
.slide canvas { width: min(230px, 52vw); height: auto; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); position: relative; z-index: 5; }
.slide .actions { position: relative; z-index: 5; justify-content: center; }
.story-nav { position: absolute; top: 34px; bottom: 0; width: 30%; z-index: 3; border: 0; background: none; cursor: pointer; }
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

/* -- Type along -------------------------------------------------------------------------------- */
.game-row { grid-template-columns: 46px minmax(0, 1fr) auto !important; }
.type { margin-top: 26px; }
.type-hud { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; }
.type-hud div b { display: block; font: 800 30px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.type-hud div span { color: var(--muted); font-size: 12.5px; }
.type-hud .pill { margin-left: auto; }
.type-line { margin-top: 36px; min-height: 130px; font: 800 clamp(28px, 4.2vw, 50px)/1.25 var(--display); letter-spacing: -0.01em; cursor: text; overflow-wrap: anywhere; }
.type-line span { color: rgba(255, 255, 255, 0.38); transition: color 0.08s; }
.type-line span.hit { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.3); }
.type-line span.missed { color: #FF7B7B; }
.type-line span.cur { color: #fff; box-shadow: 0 3px 0 var(--melt-hi); }
.type-line span.wait { color: var(--muted); font-weight: 600; font-size: 0.55em; }
.type-line.shake { animation: shake 0.18s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.type-next { margin-top: 14px; min-height: 1.3em; color: rgba(255, 255, 255, 0.3); font: 700 clamp(17px, 2.2vw, 24px)/1.3 var(--display); }
.type-pad { position: absolute; left: -200px; width: 1px; height: 1px; opacity: 0; }
.type-tip { margin-top: 26px; }
/* Play along (js/playalong.js) */
.pa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pa-head .art { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.pa-head .names b { font: 800 20px/1.2 var(--display); }
.pa-head .pa-src { font-size: 12px; color: var(--faint); }
.pa-head .pa-src a { color: inherit; }
.pa { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: 30px; }
.pa-choices { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pa-row { justify-content: center; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pa .chip { padding: 7px 14px; font-size: 13.5px; font-weight: 600; }
.pa .chip.on { background: var(--melt); border-color: var(--melt); color: #fff; }
.pa-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pa-toggle input { width: 18px; height: 18px; accent-color: var(--melt); }
.pa-capo { min-height: 1.2em; color: var(--melt-hi); font-weight: 700; font-size: 14px; }
.pa-chords { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 230px; }
.pa-now, .pa-next { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pa-next { opacity: 0.6; }
.pa-next small { color: var(--muted); font-weight: 600; }
.pa-name { font: 400 clamp(56px, 8vw, 80px)/1 var(--ly-font); min-height: 1em; }
.pa-name.small { font: 700 24px/1 var(--display); min-height: 1em; }
.pa-diagram { color: var(--text); overflow: visible; }
.pa-diagram .pa-mark { fill: currentColor; font-size: 12px; font-weight: 700; text-anchor: middle; opacity: 0.8; }
.pa-diagram .pa-fret { fill: currentColor; font-size: 11px; font-weight: 600; opacity: 0.6; }
.pa-notes, .pa-bass { margin-top: 6px; font-weight: 600; opacity: 0.85; }
.pa-pattern { display: flex; gap: 6px; justify-content: center; }
.pa-pattern span { width: 32px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2);
  font: 700 19px/1 var(--body); color: var(--muted); }
.pa-pattern span.on { background: color-mix(in srgb, var(--melt) 24%, transparent); color: var(--melt-hi); }
.pa-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; max-width: 900px; font: 800 clamp(24px, 3.4vw, 34px)/1.15 var(--display); }
.pa-line.after { font-size: clamp(17px, 2.3vw, 23px); opacity: 0.45; }
.pa-w { display: inline-flex; flex-direction: column; align-items: flex-start; white-space: pre; }
.pa-w i { font: 700 0.55em/1.3 var(--body); font-style: normal; color: var(--melt-hi); min-height: 1.3em; }
.pa-line:not(.after) .pa-w b { color: rgba(255, 255, 255, 0.42); transition: color 0.12s; }
.pa-line:not(.after) .pa-w.sung b { color: #fff; }
.results { text-align: center; }
.results .tiles { text-align: left; }
.results .actions { justify-content: center; }
.grade { font: 800 110px/1 var(--display); color: var(--melt-hi); text-shadow: 0 0 40px var(--melt-glow); }
.sheet-tools { display: none; }

/* -- a little motion: screens ease in, and bars dance on the song that is playing --------------- */
.view.enter > * { animation: rise 0.3s ease both; }
.view.enter > *:nth-child(2) { animation-delay: 0.04s; }
.view.enter > *:nth-child(3) { animation-delay: 0.08s; }
.view.enter > *:nth-child(n + 4) { animation-delay: 0.12s; }
body[data-reduce="1"] .view.enter > * { animation: none; }
.app.playing .row.is-current .n { position: relative; color: transparent; }
.app.playing .row.is-current .n::before {
  content: ""; position: absolute; right: 3px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--melt-hi), var(--melt-hi)) 0 100% / 3px 60% no-repeat,
    linear-gradient(var(--melt-hi), var(--melt-hi)) 50% 100% / 3px 100% no-repeat,
    linear-gradient(var(--melt-hi), var(--melt-hi)) 100% 100% / 3px 40% no-repeat;
  animation: bars 0.7s ease-in-out infinite alternate;
}
@keyframes bars { to { background-size: 3px 100%, 3px 35%, 3px 90%; } }

/* -- looks: the spinning-record cover, and a calmer page for slower devices -------------------- */
body[data-cover="vinyl"] .thumb { border-radius: 50%; animation: turn 8s linear infinite; animation-play-state: paused; }
body[data-cover="vinyl"] .app.playing .thumb { animation-play-state: running; }
/* -- the 2026 seek bar: the played part waves while the song plays and lies flat when it stops -- */
.seekwrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
body[data-wave="1"] .seekwrap::before, body[data-wave="1"] .seekwrap::after {
  content: ""; position: absolute; left: 0; top: 50%; width: var(--v, 0%); background: #fff; pointer-events: none; transition: opacity 0.3s;
}
body[data-wave="1"] .seekwrap::before {
  height: 10px; margin-top: -5px; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2010'%20preserveAspectRatio='none'%3E%3Cpath%20d='M-11%205Q-5.5%2011%200%205T11%205T22%205T33%205'%20fill='none'%20stroke='%23000'%20stroke-width='3'/%3E%3C/svg%3E") 0 50% / 22px 10px repeat-x; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2010'%20preserveAspectRatio='none'%3E%3Cpath%20d='M-11%205Q-5.5%2011%200%205T11%205T22%205T33%205'%20fill='none'%20stroke='%23000'%20stroke-width='3'/%3E%3C/svg%3E") 0 50% / 22px 10px repeat-x;
  animation: wave-run 1.45s linear infinite;
}
body[data-wave="1"] .seekwrap::after { height: 4px; margin-top: -2px; border-radius: 4px; opacity: 0; }
body[data-wave="1"] .seekwrap:hover::before, body[data-wave="1"] .seekwrap:hover::after { background: var(--melt-hi); }
body[data-wave="1"] .app:not(.playing) .seekwrap::before { opacity: 0; animation-play-state: paused; }
body[data-wave="1"] .app:not(.playing) .seekwrap::after { opacity: 1; }
body[data-wave="1"][data-reduce="1"] .seekwrap::before { animation: none; }
body[data-wave="1"] .seekwrap input::-webkit-slider-runnable-track,
body[data-wave="1"] .seekwrap input:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, transparent var(--v), rgba(255, 255, 255, 0.2) var(--v)); }
body[data-wave="1"] .seekwrap input::-moz-range-progress { background: transparent; }
body[data-paper][data-wave="1"] .seekwrap::before, body[data-paper][data-wave="1"] .seekwrap::after { background: var(--text); }
body[data-paper][data-wave="1"] .seekwrap input::-webkit-slider-runnable-track { background: linear-gradient(90deg, transparent var(--v), rgba(27, 23, 18, 0.18) var(--v)); }
@keyframes wave-run { to { -webkit-mask-position: 22px 50%; mask-position: 22px 50%; } }

/* -- the cover in the bar cut into a shape, like the app's full-screen one ----------------------- */
body[data-cover="cookie"] .thumb { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpolygon%20points='97.8,50.0%2097.0,52.1%2096.1,54.0%2095.5,56.0%2095.0,57.9%2094.8,59.9%2094.7,62.0%2094.8,64.1%2095.0,66.4%2095.0,68.6%2094.7,70.9%2094.2,73.0%2093.3,75.0%2092.0,76.8%2090.4,78.3%2088.6,79.6%2086.7,80.8%2084.7,81.8%2082.8,82.8%2081.0,83.8%2079.4,85.0%2077.9,86.4%2076.6,87.9%2075.3,89.7%2073.9,91.4%2072.5,93.2%2070.9,94.7%2069.1,96.0%2067.1,97.0%2065.0,97.5%2062.8,97.7%2060.5,97.5%2058.3,97.1%2056.1,96.6%2054.0,96.1%2052.0,95.8%2050.0,95.7%2048.0,95.8%2046.0,96.1%2043.9,96.6%2041.7,97.1%2039.5,97.5%2037.2,97.7%2035.0,97.5%2032.9,97.0%2030.9,96.0%2029.1,94.7%2027.5,93.2%2026.1,91.4%2024.7,89.7%2023.4,87.9%2022.1,86.4%2020.6,85.0%2019.0,83.8%2017.2,82.8%2015.3,81.8%2013.3,80.8%2011.4,79.6%209.6,78.3%208.0,76.8%206.7,75.0%205.8,73.0%205.3,70.9%205.0,68.6%205.0,66.4%205.2,64.1%205.3,62.0%205.2,59.9%205.0,57.9%204.5,56.0%203.9,54.0%203.0,52.1%202.2,50.0%201.4,47.9%200.8,45.7%200.6,43.5%200.8,41.3%201.3,39.2%202.3,37.2%203.6,35.4%205.0,33.6%206.6,32.0%208.0,30.4%209.3,28.8%2010.4,27.2%2011.3,25.4%2012.1,23.4%2012.7,21.4%2013.3,19.2%2014.1,17.1%2015.1,15.1%2016.3,13.3%2017.9,11.7%2019.7,10.5%2021.7,9.6%2023.8,9.0%2026.1,8.6%2028.3,8.3%2030.4,8.0%2032.5,7.6%2034.4,7.1%2036.2,6.3%2038.0,5.3%2039.8,4.1%2041.7,2.9%2043.6,1.7%2045.7,0.8%2047.8,0.2%2050.0,0.0%2052.2,0.2%2054.3,0.8%2056.4,1.7%2058.3,2.9%2060.2,4.1%2062.0,5.3%2063.8,6.3%2065.6,7.1%2067.5,7.6%2069.6,8.0%2071.7,8.3%2073.9,8.6%2076.2,9.0%2078.3,9.6%2080.3,10.5%2082.1,11.7%2083.7,13.3%2084.9,15.1%2085.9,17.1%2086.7,19.2%2087.3,21.4%2087.9,23.4%2088.7,25.4%2089.6,27.2%2090.7,28.8%2092.0,30.4%2093.4,32.0%2095.0,33.6%2096.4,35.4%2097.7,37.2%2098.7,39.2%2099.2,41.3%2099.4,43.5%2099.2,45.7%2098.6,47.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpolygon%20points='97.8,50.0%2097.0,52.1%2096.1,54.0%2095.5,56.0%2095.0,57.9%2094.8,59.9%2094.7,62.0%2094.8,64.1%2095.0,66.4%2095.0,68.6%2094.7,70.9%2094.2,73.0%2093.3,75.0%2092.0,76.8%2090.4,78.3%2088.6,79.6%2086.7,80.8%2084.7,81.8%2082.8,82.8%2081.0,83.8%2079.4,85.0%2077.9,86.4%2076.6,87.9%2075.3,89.7%2073.9,91.4%2072.5,93.2%2070.9,94.7%2069.1,96.0%2067.1,97.0%2065.0,97.5%2062.8,97.7%2060.5,97.5%2058.3,97.1%2056.1,96.6%2054.0,96.1%2052.0,95.8%2050.0,95.7%2048.0,95.8%2046.0,96.1%2043.9,96.6%2041.7,97.1%2039.5,97.5%2037.2,97.7%2035.0,97.5%2032.9,97.0%2030.9,96.0%2029.1,94.7%2027.5,93.2%2026.1,91.4%2024.7,89.7%2023.4,87.9%2022.1,86.4%2020.6,85.0%2019.0,83.8%2017.2,82.8%2015.3,81.8%2013.3,80.8%2011.4,79.6%209.6,78.3%208.0,76.8%206.7,75.0%205.8,73.0%205.3,70.9%205.0,68.6%205.0,66.4%205.2,64.1%205.3,62.0%205.2,59.9%205.0,57.9%204.5,56.0%203.9,54.0%203.0,52.1%202.2,50.0%201.4,47.9%200.8,45.7%200.6,43.5%200.8,41.3%201.3,39.2%202.3,37.2%203.6,35.4%205.0,33.6%206.6,32.0%208.0,30.4%209.3,28.8%2010.4,27.2%2011.3,25.4%2012.1,23.4%2012.7,21.4%2013.3,19.2%2014.1,17.1%2015.1,15.1%2016.3,13.3%2017.9,11.7%2019.7,10.5%2021.7,9.6%2023.8,9.0%2026.1,8.6%2028.3,8.3%2030.4,8.0%2032.5,7.6%2034.4,7.1%2036.2,6.3%2038.0,5.3%2039.8,4.1%2041.7,2.9%2043.6,1.7%2045.7,0.8%2047.8,0.2%2050.0,0.0%2052.2,0.2%2054.3,0.8%2056.4,1.7%2058.3,2.9%2060.2,4.1%2062.0,5.3%2063.8,6.3%2065.6,7.1%2067.5,7.6%2069.6,8.0%2071.7,8.3%2073.9,8.6%2076.2,9.0%2078.3,9.6%2080.3,10.5%2082.1,11.7%2083.7,13.3%2084.9,15.1%2085.9,17.1%2086.7,19.2%2087.3,21.4%2087.9,23.4%2088.7,25.4%2089.6,27.2%2090.7,28.8%2092.0,30.4%2093.4,32.0%2095.0,33.6%2096.4,35.4%2097.7,37.2%2098.7,39.2%2099.2,41.3%2099.4,43.5%2099.2,45.7%2098.6,47.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
body[data-cover="clover"] .thumb { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='7.16%207.16%2085.68%2085.68'%20preserveAspectRatio='none'%3E%3Ccircle%20cx='34.16'%20cy='34.16'%20r='27'/%3E%3Ccircle%20cx='34.16'%20cy='65.84'%20r='27'/%3E%3Ccircle%20cx='65.84'%20cy='34.16'%20r='27'/%3E%3Ccircle%20cx='65.84'%20cy='65.84'%20r='27'/%3E%3Ccircle%20cx='50'%20cy='50'%20r='17.60'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='7.16%207.16%2085.68%2085.68'%20preserveAspectRatio='none'%3E%3Ccircle%20cx='34.16'%20cy='34.16'%20r='27'/%3E%3Ccircle%20cx='34.16'%20cy='65.84'%20r='27'/%3E%3Ccircle%20cx='65.84'%20cy='34.16'%20r='27'/%3E%3Ccircle%20cx='65.84'%20cy='65.84'%20r='27'/%3E%3Ccircle%20cx='50'%20cy='50'%20r='17.60'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
body[data-cover="flower"] .thumb { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpolygon%20points='100.0,50.0%2099.8,52.2%2099.0,54.3%2097.7,56.3%2096.1,58.1%2094.2,59.8%2092.3,61.3%2090.6,62.8%2089.3,64.3%2088.3,65.9%2087.9,67.7%2087.8,69.7%2087.9,71.9%2088.2,74.3%2088.3,76.8%2088.2,79.3%2087.7,81.6%2086.7,83.7%2085.4,85.4%2083.7,86.7%2081.6,87.7%2079.3,88.2%2076.8,88.3%2074.3,88.2%2071.9,87.9%2069.7,87.8%2067.7,87.9%2065.9,88.3%2064.3,89.3%2062.8,90.6%2061.3,92.3%2059.8,94.2%2058.1,96.1%2056.3,97.7%2054.3,99.0%2052.2,99.8%2050.0,100.0%2047.8,99.8%2045.7,99.0%2043.7,97.7%2041.9,96.1%2040.2,94.2%2038.7,92.3%2037.2,90.6%2035.7,89.3%2034.1,88.3%2032.3,87.9%2030.3,87.8%2028.1,87.9%2025.7,88.2%2023.2,88.3%2020.7,88.2%2018.4,87.7%2016.3,86.7%2014.6,85.4%2013.3,83.7%2012.3,81.6%2011.8,79.3%2011.7,76.8%2011.8,74.3%2012.1,71.9%2012.2,69.7%2012.1,67.7%2011.7,65.9%2010.7,64.3%209.4,62.8%207.7,61.3%205.8,59.8%203.9,58.1%202.3,56.3%201.0,54.3%200.2,52.2%200.0,50.0%200.2,47.8%201.0,45.7%202.3,43.7%203.9,41.9%205.8,40.2%207.7,38.7%209.4,37.2%2010.7,35.7%2011.7,34.1%2012.1,32.3%2012.2,30.3%2012.1,28.1%2011.8,25.7%2011.7,23.2%2011.8,20.7%2012.3,18.4%2013.3,16.3%2014.6,14.6%2016.3,13.3%2018.4,12.3%2020.7,11.8%2023.2,11.7%2025.7,11.8%2028.1,12.1%2030.3,12.2%2032.3,12.1%2034.1,11.7%2035.7,10.7%2037.2,9.4%2038.7,7.7%2040.2,5.8%2041.9,3.9%2043.7,2.3%2045.7,1.0%2047.8,0.2%2050.0,0.0%2052.2,0.2%2054.3,1.0%2056.3,2.3%2058.1,3.9%2059.8,5.8%2061.3,7.7%2062.8,9.4%2064.3,10.7%2065.9,11.7%2067.7,12.1%2069.7,12.2%2071.9,12.1%2074.3,11.8%2076.8,11.7%2079.3,11.8%2081.6,12.3%2083.7,13.3%2085.4,14.6%2086.7,16.3%2087.7,18.4%2088.2,20.7%2088.3,23.2%2088.2,25.7%2087.9,28.1%2087.8,30.3%2087.9,32.3%2088.3,34.1%2089.3,35.7%2090.6,37.2%2092.3,38.7%2094.2,40.2%2096.1,41.9%2097.7,43.7%2099.0,45.7%2099.8,47.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpolygon%20points='100.0,50.0%2099.8,52.2%2099.0,54.3%2097.7,56.3%2096.1,58.1%2094.2,59.8%2092.3,61.3%2090.6,62.8%2089.3,64.3%2088.3,65.9%2087.9,67.7%2087.8,69.7%2087.9,71.9%2088.2,74.3%2088.3,76.8%2088.2,79.3%2087.7,81.6%2086.7,83.7%2085.4,85.4%2083.7,86.7%2081.6,87.7%2079.3,88.2%2076.8,88.3%2074.3,88.2%2071.9,87.9%2069.7,87.8%2067.7,87.9%2065.9,88.3%2064.3,89.3%2062.8,90.6%2061.3,92.3%2059.8,94.2%2058.1,96.1%2056.3,97.7%2054.3,99.0%2052.2,99.8%2050.0,100.0%2047.8,99.8%2045.7,99.0%2043.7,97.7%2041.9,96.1%2040.2,94.2%2038.7,92.3%2037.2,90.6%2035.7,89.3%2034.1,88.3%2032.3,87.9%2030.3,87.8%2028.1,87.9%2025.7,88.2%2023.2,88.3%2020.7,88.2%2018.4,87.7%2016.3,86.7%2014.6,85.4%2013.3,83.7%2012.3,81.6%2011.8,79.3%2011.7,76.8%2011.8,74.3%2012.1,71.9%2012.2,69.7%2012.1,67.7%2011.7,65.9%2010.7,64.3%209.4,62.8%207.7,61.3%205.8,59.8%203.9,58.1%202.3,56.3%201.0,54.3%200.2,52.2%200.0,50.0%200.2,47.8%201.0,45.7%202.3,43.7%203.9,41.9%205.8,40.2%207.7,38.7%209.4,37.2%2010.7,35.7%2011.7,34.1%2012.1,32.3%2012.2,30.3%2012.1,28.1%2011.8,25.7%2011.7,23.2%2011.8,20.7%2012.3,18.4%2013.3,16.3%2014.6,14.6%2016.3,13.3%2018.4,12.3%2020.7,11.8%2023.2,11.7%2025.7,11.8%2028.1,12.1%2030.3,12.2%2032.3,12.1%2034.1,11.7%2035.7,10.7%2037.2,9.4%2038.7,7.7%2040.2,5.8%2041.9,3.9%2043.7,2.3%2045.7,1.0%2047.8,0.2%2050.0,0.0%2052.2,0.2%2054.3,1.0%2056.3,2.3%2058.1,3.9%2059.8,5.8%2061.3,7.7%2062.8,9.4%2064.3,10.7%2065.9,11.7%2067.7,12.1%2069.7,12.2%2071.9,12.1%2074.3,11.8%2076.8,11.7%2079.3,11.8%2081.6,12.3%2083.7,13.3%2085.4,14.6%2086.7,16.3%2087.7,18.4%2088.2,20.7%2088.3,23.2%2088.2,25.7%2087.9,28.1%2087.8,30.3%2087.9,32.3%2088.3,34.1%2089.3,35.7%2090.6,37.2%2092.3,38.7%2094.2,40.2%2096.1,41.9%2097.7,43.7%2099.0,45.7%2099.8,47.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
body[data-cover="arch"] .thumb { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2050A50%2050%200%200%201%20100%2050V91Q100%20100%2091%20100H9Q0%20100%200%2091Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2050A50%2050%200%200%201%20100%2050V91Q100%20100%2091%20100H9Q0%20100%200%2091Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* -- Liquid Glass (the Liquid Glass look): clear glass, light catching the top-left corner and fading across it,
   a bright rim, a lip of light along the top edge. The app draws the same (widgets.liquid_glass), without the
   lip and the glow, which Flutter can't draw just inside an edge. -- */
body[data-glass="liquid"] { --lq: 0 0 0; }
body[data-glass="liquid"][data-paper] { --lq: 255 252 245; }
body[data-glass="liquid"] .side, body[data-glass="liquid"] .view, body[data-glass="liquid"] .now, body[data-glass="liquid"] .bar,
body[data-glass="liquid"] .find, body[data-glass="liquid"] .tabs {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.04) 22%, rgb(var(--lq) / calc(var(--glass) * 0.2)) 55%,
    rgb(var(--lq) / calc(var(--glass) * 0.34)));
  border: 1.2px solid rgb(255 255 255 / 0.32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 14px -4px rgb(255 255 255 / 0.22);
  backdrop-filter: blur(10px) saturate(1.8); -webkit-backdrop-filter: blur(10px) saturate(1.8);
}
body[data-glass="liquid"] .ib:not(.bare):not(.home) { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.42); }

body[data-reduce="1"] .side, body[data-reduce="1"] .view, body[data-reduce="1"] .now, body[data-reduce="1"] .bar { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* -- narrow screens: one column, tabs at the bottom, now playing as a sheet ------------------- */
@media (max-width: 999px) {
  /* the player and the dock float over the bottom of the page, which scrolls on under them (as in the app) */
  .app { grid-template: "top" auto "view" minmax(0, 1fr) / minmax(0, 1fr); gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .side, .hist, .ib.home, .tools .get, .bar-end, .bar .thumb, .bar #shuffle, .bar [data-act="shuffle"], .bar [data-act="repeat"], .bar [data-act="prev"], .bar .seek span { display: none; }
  .brand { width: auto; }
  .brand span { display: none; }
  .view { padding: 20px 16px 210px; border-radius: 20px; }
  .bar { grid-template: "dock names names" auto "dock like transport" 1fr / auto auto minmax(0, 1fr); gap: 2px 12px; padding: 8px 12px 12px 8px; border-radius: 20px; align-items: center;
    position: fixed; left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 15; }
  .bar-song, .bar-mid { display: contents; }
  .slot.dock { display: block; grid-area: dock; width: min(200px, 48vw); border-radius: 12px; }
  .bar #bar-names { grid-area: names; align-self: end; padding-top: 4px; cursor: pointer; }
  .bar #bar-names b { font-size: 15px; }
  .bar [data-act="like"] { grid-area: like; justify-self: start; margin-left: -8px; }
  .bar .transport { grid-area: transport; justify-self: end; gap: 4px; }
  .bar .seek { position: absolute; left: 14px; right: 14px; bottom: -3px; width: auto; max-width: none; }
  .bar .seek input { height: 8px; pointer-events: none; }
  body[data-wave="1"] .bar .seekwrap::before { display: none; }          /* the thin line under the phone bar stays a line */
  body[data-wave="1"] .bar .seekwrap::after { opacity: 1; }
  .bar .transport .ib, .bar .play { width: 44px; height: 44px; }
  .tools a[href="#/together"], .tools a[href="#/games"], .tools a[href="#/recap"] { display: none; }
  .sheet-tools { display: flex; justify-content: center; gap: 12px; }
  .story { min-height: calc(100dvh - 300px); }
  .app.idle .bar { display: none; }
  /* the dock: a glass pill floating over the bottom of the page, with the tabs in it (as in the app) */
  .tabs { display: flex; gap: 2px; align-items: stretch; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 15; height: 64px; padding: 5px 6px; border-radius: 32px; background: rgba(20, 16, 13, 0.72); border: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6); }
  .tabs .dockbar { display: contents; }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: auto; padding: 6px 0 4px;
    color: var(--muted); font-size: 11.5px; font-weight: 500; border-radius: 22px; transition: background 0.2s; }
  .tabs a.is-here { background: rgba(255, 255, 255, 0.13); color: var(--melt-hi); }
  .tabs a[data-tab="home"] { order: 1; }
  .tabs a[data-tab="search"] { order: 2; }
  .tabs a[data-tab="library"] { order: 3; }
  .tabs a[data-tab="together"] { order: 4; }
  .tabs a.is-here { color: var(--text); }
  .tabs a.is-here svg { color: var(--melt-hi); }
  .now { position: fixed; inset: 0; z-index: 20; border-radius: 0; border: 0; background: rgba(16, 12, 10, 0.9); padding: calc(10px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
  body[data-glass="liquid"] .now { background: rgba(16, 12, 10, 0.9); border: 0; box-shadow: none; }   /* a sheet, not a pane of glass */
  .app.sheet .now { opacity: 1; visibility: visible; }
  .app.sheet .slot.dock { visibility: hidden; }
  .now-head { display: flex; }
  .now-head b { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-controls { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .sheet-controls .seek { max-width: none; }
  .sheet-controls .play { width: 62px; height: 62px; }
  .sheet-controls .play svg { width: 28px; height: 28px; }
  .sheet-controls .transport { gap: 14px; }
  #now-tabs { display: inline-flex; align-self: center; }
  .row { grid-template-columns: 46px minmax(0, 1fr) 36px 36px; padding: 6px 4px; }
  .row .n, .row .album, .row .dur { display: none; }
  .rows.picking .row { --tick-x: 27px; }
  .row .ib { opacity: 1; }
  .hero { gap: 16px; }
  .hero .art { width: 132px; height: 132px; border-radius: 18px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick button { grid-template-columns: 48px minmax(0, 1fr); }
  .quick .art { width: 48px; height: 48px; }
  .toasts { bottom: calc(210px + env(safe-area-inset-bottom)); }
  .stage { border-radius: 12px; }
  .app.sheet ~ .stage { border-radius: 16px; z-index: 30; }
  .big-lyrics { --ly: 30px; }
  /* iPhones zoom the whole page in when a text box under 16px gets the focus */
  input:not([type="range"]):not([type="checkbox"]):not([type="color"]):not([type="file"]), textarea, select { font-size: 16px; }
  .now { touch-action: pan-y; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .app { grid-template-columns: 232px minmax(0, 1fr) 300px; }
  .brand { width: 118px; }
  .view { padding: 24px 20px 36px; }
  .bar { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) auto; gap: 12px; }
  .bar-end { gap: 2px; }
  .bar-end a[href="#/lyrics"] { display: none; }
  .bar-end input[type="range"] { flex-basis: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* -- Cream paper: the same choice as the app's Settings > Appearance (looks.js sets data-paper) -- */
body[data-paper] {
  color-scheme: light;
  --ink: #F3EDE2; --ink-2: #EDE5D6;
  --panel: rgb(255 252 245 / var(--glass));
  --panel-2: rgba(27, 23, 18, 0.06); --panel-3: rgba(27, 23, 18, 0.1); --line: rgba(27, 23, 18, 0.12);
  --text: #1B1712; --muted: #5C5247; --faint: #8A7E70;
  --melt-hi: color-mix(in srgb, var(--melt) 82%, black);
}
body[data-paper] * { scrollbar-color: rgba(27, 23, 18, 0.2) transparent; }
body[data-paper] .backdrop::after { background: rgba(243, 237, 226, calc(1 - var(--bg-bright) * 0.55)); }
body[data-paper] .lyrics { background: linear-gradient(160deg, color-mix(in srgb, var(--melt) 16%, transparent), color-mix(in srgb, var(--c2) 10%, transparent)); }
body[data-paper] .ly-head small, body[data-paper] .ly-none { color: rgba(27, 23, 18, 0.62); }
body[data-paper] .ln { color: rgba(27, 23, 18, 0.34); }
body[data-paper] .ln:hover { color: rgba(27, 23, 18, 0.6); }
body[data-paper] .ln.past { color: rgba(27, 23, 18, 0.24); }
body[data-paper] .ln.on { color: rgba(27, 23, 18, 0.42); }
body[data-paper] .ln.plain { color: rgba(27, 23, 18, 0.82); }
body[data-paper] .ln.on .c.lit { color: var(--text); text-shadow: none; }
body[data-paper][data-ly="karaoke"] .ln.on .c.lit { color: var(--melt); }
body[data-paper][data-ly="glow"] .ln.on, body[data-paper][data-ly="line"] .ln.on { color: var(--text); }
body[data-paper] .ln.dots .note svg { color: var(--text); }
body[data-paper] .play { background: var(--text); color: var(--ink); }
body[data-paper] .seg, body[data-paper] .field { background: rgba(27, 23, 18, 0.05); }
body[data-paper] .menu { background: #FBF6EE; box-shadow: 0 18px 40px -16px rgba(27, 23, 18, 0.35); }
body[data-paper] .toast { background: #FBF6EE; box-shadow: 0 16px 40px -14px rgba(27, 23, 18, 0.35); }
body[data-paper] .switch::after { box-shadow: 0 1px 3px rgba(27, 23, 18, 0.3); }
body[data-paper] .sw.on, body[data-paper] .look.on { border-color: var(--text); }
body[data-paper] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--text) var(--v), rgba(27, 23, 18, 0.18) var(--v)); }
body[data-paper] input[type="range"]::-moz-range-track { background: rgba(27, 23, 18, 0.18); }
body[data-paper] input[type="range"]::-moz-range-progress, body[data-paper] input[type="range"]::-moz-range-thumb,
body[data-paper] input[type="range"]::-webkit-slider-thumb { background: var(--text); }
body[data-paper] .type-line span { color: rgba(27, 23, 18, 0.36); }
body[data-paper] .type-line span.hit, body[data-paper] .type-line span.cur { color: var(--text); text-shadow: none; }
body[data-paper] .type-next { color: rgba(27, 23, 18, 0.32); }
body[data-paper] .pa-line:not(.after) .pa-w b { color: rgba(27, 23, 18, 0.4); }
body[data-paper] .pa-line:not(.after) .pa-w.sung b { color: var(--text); }
@media (max-width: 999px) {
  body[data-paper] .now { background: rgba(243, 237, 226, 0.94); }
  body[data-paper] .tabs { background: rgba(255, 252, 245, 0.82); border-color: rgba(27, 23, 18, 0.1); box-shadow: 0 14px 34px -16px rgba(27, 23, 18, 0.35); }
  body[data-paper] .tabs a.is-here { background: rgba(27, 23, 18, 0.08); }
}
