/* Kolna, the page.
 *
 * The palette, the type and the corner radii are the app's own - a page that
 * explains a thing should look like the thing. Motion is kept to what a real
 * hand would do: things arrive, nothing bounces, and anything that loops does so
 * slowly enough that you notice it only if you look for it.
 */

:root {
  --ac1: #7c3aed;
  --ac2: #ec4899;
  --accent: #a855f7;
  --grad: linear-gradient(120deg, var(--ac1), var(--ac2));

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --wrap: 1120px;
}

/* dark is the app's own skin, and the default here */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg2: #0f1219;
  --surface: #141824;
  --raised: #1b2130;
  --text: #f2f4f8;
  --dim: #9aa3b5;
  --faint: #667085;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(16, 19, 27, .72);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --aura: .5;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaff;
  --bg2: #f4f2fb;
  --surface: #ffffff;
  /* raised must differ from surface, or the player bar and the title bar
     vanish into the window they sit in: in dark they already do, and in light
     two whites are one white. */
  --raised: #f5f2fc;
  --text: #14161d;
  --dim: #5b6172;
  --faint: #8b90a0;
  --line: rgba(20, 22, 29, .1);
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 20px 50px rgba(80, 60, 140, .13);
  --aura: .38;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Rubik, system-ui, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot { opacity: .4; margin: 0 .45em; }

/* ---------------------------------------------------------------- aurora
 * Two soft fields that drift. Slow enough that the page feels alive without
 * anything visibly moving while you read.
 */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute;
  display: block;
  width: 62vw; height: 62vw;
  min-width: 520px; min-height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--aura);
  will-change: transform;
}
.aurora i:nth-child(1) {
  background: radial-gradient(circle, var(--ac1), transparent 68%);
  inset-inline-start: -18vw; top: -22vw;
  animation: drift1 26s var(--ease) infinite alternate;
}
.aurora i:nth-child(2) {
  background: radial-gradient(circle, var(--ac2), transparent 68%);
  inset-inline-end: -20vw; top: 12vw;
  animation: drift2 32s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, -5vw, 0) scale(1.1); } }

/* ---------------------------------------------------------------- bar */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.bar.stuck { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }

.bar-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.bar-nav a {
  text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.bar-nav a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .28s var(--ease);
}
.bar-nav a:hover { color: var(--text); }
.bar-nav a:hover::after { transform: scaleX(1); }

.bar-tools { display: flex; align-items: center; gap: 10px; }

.chip {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--dim);
  cursor: pointer;
  font: 700 12px/1 Rubik, system-ui, sans-serif;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
[data-theme="dark"] .chip .sun { display: none; }
[data-theme="light"] .chip .moon { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px;
  background: var(--grad);
  color: #fff; font-weight: 700; text-decoration: none;
  cursor: pointer;
  position: relative; isolation: isolate;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ac1) 32%, transparent);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, var(--ac2), var(--ac1));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--ac1) 42%, transparent); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------------------------------------------------------------- hero */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  padding: 68px 0 96px;
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.title { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; }
.title span { display: block; }
.lede { margin-top: 22px; font-size: 19px; color: var(--dim); max-width: 30em; }

.cta { margin-top: 36px; }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* -- the little window --
 * Not a screenshot. The rows, the bar and the moving progress are drawn here, so
 * it stays sharp at any size and can play by itself.
 */
.hero-art { perspective: 1200px; }
.window {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
  transition: transform .6s var(--ease);
}
.hero-art:hover .window { transform: rotateY(-2deg) rotateX(1deg); }
html[dir="rtl"] .window { transform: rotateY(7deg) rotateX(3deg); }
html[dir="rtl"] .hero-art:hover .window { transform: rotateY(2deg) rotateX(1deg); }

.win-bar {
  height: 34px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line);
}
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.win-bar i:first-child { background: color-mix(in srgb, var(--ac2) 65%, transparent); }

.win-body { padding: 14px 14px 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-sm);
  transition: background .35s var(--ease);
}
.rows li.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rows .rc {
  width: 34px; height: 34px; border-radius: 6px; flex: none;
  background: var(--grad); opacity: .85;
}
.rows li:nth-child(2n) .rc { background: linear-gradient(140deg, #2563eb, #06b6d4); }
.rows li:nth-child(3n) .rc { background: linear-gradient(140deg, #f59e0b, #ef4444); }
.rows .rt { flex: 1; min-width: 0; }
.rows .rt b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .rt span { display: block; font-size: 12px; color: var(--faint); }
.rows .rd { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.playbar {
  margin: 12px -14px 0; padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--raised);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  position: relative;
}
.pb-cover { width: 38px; height: 38px; border-radius: 7px; background: var(--grad); }
.pb-meta { min-width: 0; }
.pb-title { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-artist { display: block; font-size: 12px; color: var(--faint); }
.pb-controls { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.pb-controls svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pb-play {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--surface);
}
.pb-play svg { width: 13px; height: 13px; margin-inline-start: 1px; }
.pb-seek {
  position: absolute; inset-inline: 14px; bottom: 6px; height: 3px;
  border-radius: 3px; background: var(--line); overflow: hidden;
}
.pb-seek i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; }

/* ---------------------------------------------------------------- bands */
.band { padding: 84px 0; }
.band.alt { position: relative; }
.band.alt::before {
  content: ''; position: absolute; inset: 0 -50vw;
  background: var(--bg2); z-index: -1;
}

.band-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.band-inner.reverse .copy { order: 2; }
.band-head { max-width: 34em; margin-bottom: 44px; }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.copy h2, .band-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.copy p, .band-head p { margin-top: 18px; color: var(--dim); font-size: 17.5px; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--dim); font-size: 16px; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .5em;
  width: 16px; height: 9px;
  border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
  border-radius: 1px;
}

/* -- two machines in step -- */
.sync { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.dev {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px; box-shadow: var(--shadow);
  display: grid; gap: 12px; justify-items: center;
}
.dev-name { font-size: 13px; color: var(--faint); font-weight: 600; }
.dev-time { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.wave i {
  display: block; width: 4px; border-radius: 2px; background: var(--grad);
  height: 30%;
  animation: bob 1.4s var(--ease) infinite alternate;
}
.wave i:nth-child(2n) { animation-duration: 1.7s; }
.wave i:nth-child(3n) { animation-duration: 1.1s; }
.wave i:nth-child(4n) { animation-duration: 2s; }
@keyframes bob { to { height: 100%; } }

.link { position: relative; width: 54px; height: 2px; background: var(--line); border-radius: 2px; }
.link span {
  position: absolute; top: -3px; inset-inline-start: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: run 2.4s var(--ease) infinite;
}
@keyframes run {
  0% { inset-inline-start: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { inset-inline-start: calc(100% - 8px); opacity: 0; }
}

/* -- the library, as covers appearing -- */
.grid-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.tile span { position: absolute; inset: 0; opacity: .9; }
.tile:nth-child(1) span { background: linear-gradient(140deg, #7c3aed, #ec4899); }
.tile:nth-child(2) span { background: linear-gradient(140deg, #2563eb, #06b6d4); }
.tile:nth-child(3) span { background: linear-gradient(140deg, #f59e0b, #ef4444); }
.tile:nth-child(4) span { background: linear-gradient(140deg, #10b981, #3b82f6); }
.tile:nth-child(5) span { background: linear-gradient(140deg, #ec4899, #f59e0b); }
.tile:nth-child(6) span { background: linear-gradient(140deg, #8b5cf6, #22d3ee); }
.tile:nth-child(7) span { background: linear-gradient(140deg, #ef4444, #7c3aed); }
.tile:nth-child(8) span { background: linear-gradient(140deg, #06b6d4, #10b981); }
.tile:nth-child(9) span { background: linear-gradient(140deg, #f43f5e, #8b5cf6); }

/* they land one after another when the section is reached */
.reveal .tile { opacity: 0; transform: scale(.9); }
.reveal.in .tile { animation: pop .5s var(--ease) forwards; }
.reveal.in .tile:nth-child(1) { animation-delay: .00s; }
.reveal.in .tile:nth-child(2) { animation-delay: .05s; }
.reveal.in .tile:nth-child(3) { animation-delay: .10s; }
.reveal.in .tile:nth-child(4) { animation-delay: .15s; }
.reveal.in .tile:nth-child(5) { animation-delay: .20s; }
.reveal.in .tile:nth-child(6) { animation-delay: .25s; }
.reveal.in .tile:nth-child(7) { animation-delay: .30s; }
.reveal.in .tile:nth-child(8) { animation-delay: .35s; }
.reveal.in .tile:nth-child(9) { animation-delay: .40s; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow);
}
.ci {
  width: 26px; height: 26px; margin-bottom: 16px;
  fill: none; stroke: url(#g); stroke: var(--accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 18px; font-weight: 700; }
.card p { margin-top: 9px; color: var(--dim); font-size: 15.5px; }

/* ---------------------------------------------------------------- close */
.close { text-align: center; padding: 96px 0 110px; }
.close h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.close p { margin: 16px auto 32px; color: var(--dim); max-width: 32em; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  text-align: center; color: var(--faint); font-size: 14px;
}
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 0 68px; }
  .band-inner { grid-template-columns: 1fr; gap: 40px; }
  .band-inner.reverse .copy { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bar-nav { display: none; }
  .window { transform: none !important; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .sync { grid-template-columns: 1fr; }
  .link { width: 2px; height: 40px; margin: 0 auto; }
  .link span { animation: none; inset-inline-start: -3px; top: 50%; }
}



/* the live count of the shared library */
.live {
  display: none;
  align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: 15px; color: var(--dim);
}
.live.on { display: flex; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ok, #22c55e);
  box-shadow: 0 0 0 0 color-mix(in srgb, #22c55e 60%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.live-n {
  font-weight: 800; font-size: 19px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ================================================================ depth
 *
 * Everything below is about the page having a third axis rather than being a
 * flat sheet with shadows painted on it.
 *
 * Two rules keep it from becoming a gimmick: nothing tilts more than a few
 * degrees, and nothing tilts unless a pointer is actually over it. A page that
 * lurches as the mouse crosses it is worse than a page that sits still.
 */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s var(--ease);
}
[data-tilt].tracking { transition: transform .08s linear; }

/* The hero window gets real perspective and its parts stand off the glass. */
.hero-art { perspective: 1400px; }
.window { transform-style: preserve-3d; }
.win-body { transform-style: preserve-3d; }
.rows li.on { transform: translateZ(26px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.playbar { transform: translateZ(14px); }

/* A light that follows the pointer, so a surface looks lit rather than filled. */
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none; z-index: -1;
}
.glow:hover::after { opacity: 1; }

.cards { perspective: 1200px; }
.card { transform-style: preserve-3d; }

/* the library tiles stop being a flat grid */
.grid-art { perspective: 900px; transform-style: preserve-3d; }
.tile { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.grid-art:hover .tile { box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.grid-art:hover .tile:nth-child(2n) { transform: translateZ(22px); }
.grid-art:hover .tile:nth-child(3n) { transform: translateZ(40px); }

/* ================================================================ the demo */
.demo-band { padding-top: 40px; }

.demo {
  position: relative;
  max-width: 940px; margin: 0 auto;
  perspective: 1500px;
}

.demo-tag {
  position: absolute; top: -12px; inset-inline-start: 24px; z-index: 3;
  padding: 5px 14px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ac1) 40%, transparent);
}

.d-win {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.d-bar {
  height: 38px; display: flex; align-items: center; gap: 7px;
  padding: 0 16px; background: var(--raised); border-bottom: 1px solid var(--line);
}
.d-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.d-bar i:first-child { background: color-mix(in srgb, var(--ac2) 65%, transparent); }
.d-title { margin-inline-start: auto; font-size: 12px; font-weight: 700; color: var(--faint); }

.d-body {
  display: grid; grid-template-columns: 148px 1fr 176px;
  min-height: 268px;
}

.d-side {
  border-inline-end: 1px solid var(--line);
  padding: 12px 10px; display: grid; gap: 4px; align-content: start;
}
.d-nav {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 11px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--dim);
  font: 600 13.5px/1 Rubik, system-ui, sans-serif; cursor: pointer;
  text-align: start;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.d-nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-nav:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.d-nav.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }

.d-main { padding: 10px 8px; overflow: hidden; }
.d-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.d-rows li {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .2s var(--ease);
  animation: rowIn .4s var(--ease) backwards;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.d-rows li:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.d-rows li.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.d-rows .rc { width: 30px; height: 30px; border-radius: 6px; flex: none; }
.d-rows .rt { flex: 1; min-width: 0; }
.d-rows .rt b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-rows .rt span { display: block; font-size: 11.5px; color: var(--faint); }
.d-rows .rd { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.d-now {
  border-inline-start: 1px solid var(--line);
  padding: 18px 16px; display: grid; gap: 8px; align-content: start; justify-items: center;
  text-align: center;
}
.d-cover {
  width: 108px; height: 108px; border-radius: var(--r-md); overflow: hidden;
  position: relative; box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease);
}
.d-cover span { position: absolute; inset: 0; transition: background .5s var(--ease); }
.d-now.playing .d-cover { transform: translateZ(30px) scale(1.03); }
.d-now b { font-size: 14px; font-weight: 700; margin-top: 6px; }
.d-now > span { font-size: 12.5px; color: var(--faint); }

.d-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 4px; opacity: 0; transition: opacity .3s var(--ease); }
.d-now.playing .d-eq { opacity: 1; }
.d-eq i { width: 3px; border-radius: 2px; background: var(--grad); height: 25%; }
.d-now.playing .d-eq i { animation: eq .9s var(--ease) infinite alternate; }
.d-eq i:nth-child(2) { animation-duration: 1.3s; }
.d-eq i:nth-child(3) { animation-duration: .7s; }
.d-eq i:nth-child(4) { animation-duration: 1.1s; }
.d-eq i:nth-child(5) { animation-duration: 1.5s; }
@keyframes eq { to { height: 100%; } }

.d-play {
  border-top: 1px solid var(--line); background: var(--raised);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.d-btn {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.d-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.d-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.d-main-btn { width: 36px; height: 36px; background: var(--text); color: var(--surface); }
.d-main-btn:hover { background: var(--text); color: var(--surface); transform: scale(1.06); }
.d-main-btn svg { width: 14px; height: 14px; }
.d-main-btn .i-pause { display: none; }
.d-win.playing .d-main-btn .i-play { display: none; }
.d-win.playing .d-main-btn .i-pause { display: block; }

.d-time { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }

.d-seek {
  flex: 1; height: 16px; display: flex; align-items: center;
  cursor: pointer; position: relative; touch-action: none;
}
.d-seek::before {
  content: ''; position: absolute; inset-inline: 0; height: 4px; border-radius: 4px;
  background: var(--line);
}
.d-seek-fill {
  position: absolute; inset-inline-start: 0; height: 4px; width: 0;
  border-radius: 4px; background: var(--grad);
}
.d-seek-dot {
  position: absolute; inset-inline-start: 0; width: 11px; height: 11px; margin-inline-start: -5px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .2s var(--ease);
}
.d-seek:hover .d-seek-dot { opacity: 1; }
.d-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.d-seek:focus-visible .d-seek-dot { opacity: 1; }

.demo-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--faint); }

@media (max-width: 820px) {
  .d-body { grid-template-columns: 1fr; min-height: 0; }
  .d-side { display: flex; border-inline-end: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .d-nav { width: auto; white-space: nowrap; }
  .d-now { border-inline-start: 0; border-top: 1px solid var(--line); }
  .demo-tag { inset-inline-start: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-tilt] { transform: none !important; transition: none; }
  .d-rows li { animation: none; }
  .d-eq i, .d-now.playing .d-eq i { animation: none; }
  .grid-art:hover .tile { transform: none; }
  .rows li.on, .playbar { transform: none; }
  .d-now.playing .d-cover { transform: none; }
}

/* Somebody who has asked for less movement gets a page that simply sits there.
   Everything above is decoration; none of it carries meaning on its own. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .wave i, .link span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal .tile { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
