:root {
  --bg: #efede8;
  --card: #fffefb;
  --ink: #1b1a1d;
  --soft: rgba(27, 26, 29, 0.58);
  --faint: rgba(27, 26, 29, 0.36);
  --line: rgba(27, 26, 29, 0.09);
  --accent: #5b3df5;
  --row: 38px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.sl { position: relative; width: min(320px, 100%); padding: 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 34px 54px -36px rgba(27, 26, 29, 0.55), 0 10px 18px -14px rgba(27, 26, 29, 0.22); }

.sl__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.sl__name { min-width: 0; display: grid; }
.sl__name b { font-size: 15px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; }
.sl__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); }
.sl__clock { flex: none; display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.sl__clock b { font-size: 19px; line-height: 21px; font-weight: 760; letter-spacing: -0.02em; }
.sl__clock span { font-size: 10.500px; line-height: 13px; font-weight: 580; color: var(--soft); }

.sl__now { position: relative; display: flex; align-items: center; gap: 11px; height: 50px; margin-top: 10px; padding: 0 12px; border-radius: 15px; background: var(--accent); color: #ffffff; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 22px -14px color-mix(in srgb, var(--accent) 80%, transparent); transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.sl.is-over .sl__now { background: var(--ink); box-shadow: none; }
/* the level bars beside the song: four rectangles that move with the music */
.sl__eq { flex: none; display: flex; align-items: flex-end; gap: 3px; width: 21px; height: 18px; transition: opacity 0.3s ease, width 0.4s ease, margin 0.4s ease; }
/* when the set is over the bars leave: four short bars at rest would read as dots */
.sl.is-over .sl__eq { opacity: 0; width: 0; margin-right: -11px; }
.sl__eq i { flex: 1 1 0; height: 100%; border-radius: 1.500px; background: #ffffff; transform-origin: 50% 100%; transform: scaleY(0.3); }
.sl__nowtext { flex: 1 1 auto; min-width: 0; display: grid; }
.sl__nowtext em { height: 13px; overflow: hidden; font-style: normal; font-size: 10.500px; line-height: 13px; font-weight: 640; opacity: 0.8; }
.sl__nowtext em span { display: block; }
.sl__nowroll { height: 20px; overflow: hidden; }
.sl__nowroll b { display: block; font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.75); transform: scaleX(0); transform-origin: 0 50%; }

/* four rows show: the list slides so the song being played stays second from the top */
.sl__view { height: calc(var(--row) * 4); margin-top: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.5), #000 9%, #000 90%, rgba(0, 0, 0, 0.6)); mask-image: linear-gradient(rgba(0, 0, 0, 0.5), #000 9%, #000 90%, rgba(0, 0, 0, 0.6)); }
.sl__list { list-style: none; will-change: transform; }
.sl__song { display: flex; align-items: center; gap: 9px; height: var(--row); padding: 0 4px; font-size: 13.500px; transition: color 0.3s ease, opacity 0.3s ease; }
.sl__song b { flex: 1 1 auto; min-width: 0; font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: filter 0.4s ease, opacity 0.4s ease; }
.sl__song em { flex: none; font-style: normal; font-size: 12px; font-weight: 560; color: var(--faint); font-variant-numeric: tabular-nums; transition: opacity 0.3s ease; }
.sl__mark { flex: none; width: 16px; height: 16px; }
.sl__mark svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.12s ease; }
.sl__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.32s ease 0.06s; }
.sl__song.is-done { color: var(--soft); }
.sl__song.is-done .sl__mark svg { opacity: 1; }
.sl__song.is-done .sl__mark path { stroke-dashoffset: 0; }
.sl__song.is-now b { font-weight: 740; color: var(--accent); }
/* the encore is on the list but covered: only the band knows it */
.sl__song.is-secret b { filter: blur(5px); opacity: 0.5; }
.sl__song.is-secret em { opacity: 0; }
.sl__split { display: flex; align-items: center; gap: 8px; height: var(--row); padding: 0 4px; font-size: 10.500px; font-weight: 680; letter-spacing: 0.04em; color: var(--faint); transition: color 0.4s ease; }
.sl__split::before, .sl__split::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }
.sl__split.is-on { color: var(--accent); }

.sl__go { display: block; width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--ink); color: #ffffff; font: inherit; font-size: 13.500px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -14px rgba(27, 26, 29, 0.7); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sl.is-over .sl__go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 26, 29, 0.2); }
.sl__go:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.sl__gotext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.sl__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .sl:not(.is-over) .sl__go:hover { background: #343238; } .sl.is-over .sl__go:hover { background: rgba(27, 26, 29, 0.05); } }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #1b1a1d; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(27, 26, 29, 0.3)); z-index: 5; }
