@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   AudioShare — minimal dark UI, midnight purple gradients.
   Structure: flat surfaces, hairline dividers, a narrow centred
   column, and generous negative space. Gradients are reserved
   for the brand, the primary action, and progress.
   ============================================================ */

:root {
  /* Neutral greys only — the interface carries no hue of its own. */
  --bg:        #0a0a0a;
  --bg-soft:   #0f0f0f;
  --surface:   #141414;
  --raised:    #1a1a1a;
  --elevated:  #212121;

  /* Hairlines */
  --line:      #262626;
  --line-soft: #1c1c1c;
  --line-lit:  #383838;

  /* Text */
  --text:   #fafafa;
  --muted:  #a3a3a3;
  --dim:    #737373;
  --faint:  #525252;

  /* The single accent is plain white, used sparingly. */
  --accent:     #fafafa;
  --accent-ink: #0a0a0a;

  /* Kept for compatibility with existing rules, now greyscale. */
  --purple:        #a3a3a3;
  --purple-bright: #d4d4d4;
  --purple-pale:   #e5e5e5;
  --purple-deep:   #8a8a8a;
  --magenta:       #8a8a8a;

  --good: #4ade80;
  --warn: #fbbf24;
  --bad:  #f87171;

  --grad:      linear-gradient(100deg, #ffffff 0%, #e5e5e5 45%, #9a9a9a 100%);
  --grad-flat: #fafafa;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-btn: 10px;

  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-spring:cubic-bezier(.34,1.4,.64,1);

  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --col: 660px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  letter-spacing: -.003em;
  font-feature-settings: 'liga' 1, 'calt' 1, 'cv05' 1, 'cv08' 1;
  font-variant-ligatures: contextual;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A single soft purple wash behind the hero — no moving parts. */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 45% at 50% -10%, rgba(255,255,255,.035), transparent 70%);
}

/* ---------- Layout ---------- */
.wrap   { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(var(--col), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
  background: rgba(10,8,16,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 1.6rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-name {
  display: inline-block;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.028em;
  background: var(--grad); background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .25s var(--ease);
}
.brand:hover .brand-name { filter: brightness(1.15); }

.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: -.002em;
  transition: color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.spacer { flex: 1; }

main { flex: 1; width: 100%; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(3.5rem, 11vh, 7rem) 0 2.6rem; }
h1.wordmark {
  display: inline-block;
  font-size: clamp(2.7rem, 8.2vw, 3.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12;
  background: var(--grad); background-size: 150% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .6s var(--ease-out) both, drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { background-position: 100% 0; } }
.lede {
  color: var(--muted); font-size: 1rem; font-weight: 450; margin-top: .65rem;
  animation: rise .6s .07s var(--ease-out) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Drop zone ---------- */
.dropzone {
  position: relative; overflow: hidden;
  padding: clamp(1.8rem, 4.5vw, 2.4rem) 1.5rem;
  text-align: center; cursor: pointer;
  border: 1px dashed var(--line-lit);
  border-radius: var(--radius);
  background: rgba(255,255,255,.012);
  transition: border-color .25s, background .25s, transform .35s var(--ease-spring);
  animation: rise .6s .12s var(--ease-out) both;
}
.dropzone::after {
  /* Gradient aura that blooms on hover and drag */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 120% at 50% 0%, rgba(255,255,255,.07), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.dropzone:hover { border-color: var(--purple); background: rgba(255,255,255,.04); }
.dropzone:hover::after { opacity: 1; }
.dropzone.dragging {
  border-style: solid; border-color: var(--text);
  transform: scale(1.006);
  background: rgba(255,255,255,.035);
}
.dropzone.dragging::after { opacity: 1; }

.dz-icon {
  width: 42px; height: 42px; margin: 0 auto .9rem;
  display: grid; place-items: center;
  transition: transform .4s var(--ease-spring);
}
.dz-icon svg { width: 30px; height: 30px; stroke: var(--purple-bright); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone:hover .dz-icon { transform: translateY(-3px); }
.dropzone.dragging .dz-icon { transform: scale(1.14); }
.dz-title { font-size: 1.02rem; font-weight: 600; letter-spacing: -.012em; }
.dz-sub { color: var(--dim); font-size: .84rem; margin-top: .3rem; }
.dz-sub strong { color: var(--purple-pale); font-weight: 550; }
.dz-formats { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .32rem; justify-content: center; }

.chip {
  font-size: .66rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 6px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--dim);
  transition: color .2s, border-color .2s;
}
.dropzone:hover .chip { color: var(--muted); border-color: var(--line-lit); }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
  transform: translate(-50%,-50%) scale(0); animation: rippleOut .75s var(--ease-out) forwards;
}
@keyframes rippleOut { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

/* ---------- Hairline rows ---------- */
.settings { margin-top: 1.6rem; animation: rise .6s .18s var(--ease-out) both; }
.settings-head {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 550;
  cursor: pointer; transition: color .2s;
}
.settings-head:hover { color: var(--text); }
.settings-head > svg:first-child { width: 16px; height: 16px; stroke: var(--purple-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-head .caret { margin-left: auto; width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.settings[data-open="true"] .settings-head .caret { transform: rotate(180deg); }
.settings-body {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .4s var(--ease), opacity .28s, padding .35s;
}
.settings[data-open="true"] .settings-body { max-height: 400px; opacity: 1; padding: 1.2rem 0 .3rem; }

label.field { display: block; }
.field-label {
  display: block; font-size: .69rem; font-weight: 700; letter-spacing: .055em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .45rem;
}

select, input[type="text"], input[type="password"], input[type="number"] {
  width: 100%; padding: .6rem .75rem;
  font: inherit; font-size: .9rem; font-weight: 450; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6880' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 15px; padding-right: 2.1rem;
}
select:focus, input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
select option { background: var(--raised); color: var(--text); }
input::placeholder { color: var(--faint); }
input:disabled { opacity: .45; }

.switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s; flex: none; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform .3s var(--ease-spring), background .3s; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track .thumb { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(255,255,255,.26); }
.switch-text { font-size: .86rem; color: var(--muted); }
.switch-text small { display: block; color: var(--faint); font-size: .74rem; line-height: 1.4; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.1rem; font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: -.004em;
  border-radius: var(--radius-btn); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; color: var(--accent-ink); background: var(--accent);
  transition: transform .18s var(--ease-spring), background .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); background: #ffffff; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .shine { display: none; }
@keyframes shine { to { transform: translateX(120%); } }

.btn.ghost { background: transparent; border-color: var(--line-lit); color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); border-color: var(--purple); background: rgba(255,255,255,.07); box-shadow: none; }
.btn.light { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: linear-gradient(120deg, #fb7185, #be123c); }
.btn.sm { padding: .38rem .75rem; font-size: .83rem; border-radius: 8px; }
.btn.wide { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid transparent; background: transparent;
  color: var(--dim); cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.1); border-color: var(--line); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on { color: var(--purple-pale); }

/* ---------- Flat panel (replaces the old glass card) ---------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ---------- Upload queue: hairline rows ---------- */
.queue { margin-top: 1.4rem; }
.item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: .85rem; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
  animation: rise .45s var(--ease-out) both;
}
.item.card { border-radius: 0; background: none; border-left: 0; border-right: 0; border-top: 0; }
.item.done .item-name { color: var(--text); }
.item.failed .item-name { color: var(--muted); }

.item-art {
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
}
.item-art img { width: 100%; height: 100%; object-fit: cover; }
.item-art svg { width: 16px; height: 16px; stroke: var(--purple-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.item-name { font-weight: 550; font-size: .91rem; word-break: break-word; line-height: 1.35; }
.item-meta { font-size: .76rem; color: var(--dim); margin-top: .1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.item-meta .sep { opacity: .45; }
.item-meta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: -1px; }
.item-err { color: var(--bad); font-size: .78rem; margin-top: .15rem; }

.bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .45rem; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .25s var(--ease); position: relative; }
.bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: slide 1.2s linear infinite; }
.item.done .bar > i::after { animation: none; opacity: 0; }
@keyframes slide { to { transform: translateX(100%); } }

.pct { font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--dim); min-width: 2.9rem; text-align: right; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.12); animation: popIn .4s var(--ease-spring) both; }
.tick svg { width: 13px; height: 13px; stroke: var(--good); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s .1s var(--ease-out) forwards; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Result: the share link ---------- */
.result {
  padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--line-soft);
  display: grid; gap: .7rem; animation: rise .45s var(--ease-out) both;
}
.result.card { background: none; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.link-row { display: flex; gap: .45rem; align-items: center; }
.link-box {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .8rem; color: var(--purple-pale);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.link-box span { overflow: hidden; text-overflow: ellipsis; }
.link-box svg { width: 14px; height: 14px; flex: none; stroke: var(--faint); fill: none; stroke-width: 2; }
.copied { position: relative; }
.copied::after {
  content: "Copied"; position: absolute; top: -2rem; left: 50%; transform: translateX(-50%) translateY(5px);
  background: var(--good); color: #052e22; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 5px;
  opacity: 0; animation: copiedPop 1.5s var(--ease-out) forwards; pointer-events: none; white-space: nowrap;
}
@keyframes copiedPop { 15%,75% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; } }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: center; gap: .6rem;
  padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line);
  font-size: .69rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--dim);
}

/* ---------- Share page ---------- */
.player { padding: 0; }
.player-head { display: flex; gap: 1.1rem; align-items: center; padding: 2.2rem 0 1.4rem; }
.cover {
  width: clamp(72px, 16vw, 104px); aspect-ratio: 1; border-radius: var(--radius); flex: none; overflow: hidden;
  background: var(--elevated); border: 1px solid var(--line-lit);
  display: grid; place-items: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover svg { width: 38%; height: 38%; stroke: rgba(255,255,255,.95); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.track-title { font-size: clamp(1.18rem, 3.4vw, 1.6rem); font-weight: 650; letter-spacing: -.022em; line-height: 1.25; word-break: break-word; }
.track-sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.track-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }

.wave-wrap { position: relative; margin: .2rem 0 1rem; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.wave-wrap canvas { display: block; width: 100%; height: 88px; }
.wave-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: .76rem; color: var(--faint); }

.transport { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.play-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink); background: var(--accent);
  transition: transform .22s var(--ease-spring);
}
.play-btn:hover { transform: scale(1.06); filter: brightness(1.1); }
.play-btn:active { transform: scale(.95); }
.play-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.play-btn.playing { box-shadow: 0 0 0 4px rgba(255,255,255,.08); } 50% { box-shadow: 0 8px 24px -10px rgba(255,255,255,.95), 0 0 0 12px rgba(255,255,255,0); } }

.time { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vol { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 84px; height: 3px; border-radius: 999px; background: var(--line-lit); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--purple-bright); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--purple-bright); cursor: pointer; }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .9rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.detail .k { font-size: .67rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--faint); }
.detail .v { font-size: .9rem; font-weight: 550; margin-top: .1rem; }
.detail .v.warnish { color: var(--warn); }

/* ---------- Zip browser ---------- */
.zip-head { display: flex; align-items: center; gap: .55rem; padding: 1.5rem 0 .5rem; font-size: .9rem; }
.zip-head svg { width: 17px; height: 17px; stroke: var(--purple-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zip-head .chip { margin-left: auto; }
.folder-row {
  display: flex; align-items: center; gap: .45rem; width: 100%; text-align: left;
  padding: .6rem 0; border: 0; border-bottom: 1px solid var(--line-soft); background: none;
  color: var(--dim); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: color .2s;
}
.folder-row:hover { color: var(--text); }
.folder-row svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.folder[data-open="true"] .folder-row .chev { transform: rotate(90deg); }
.folder-items { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .25s; }
.folder[data-open="true"] .folder-items { max-height: 4000px; opacity: 1; }

.entry {
  display: grid; grid-template-columns: 30px 1fr auto auto; gap: .55rem; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--line-soft); transition: background .2s;
}
.entry:hover { background: rgba(255,255,255,.04); }
.entry.active .entry-name { color: var(--purple-pale); font-weight: 600; }
.entry-play {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--purple-pale); cursor: pointer;
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.entry-play:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.entry-play svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.entry-play.disabled { opacity: .3; cursor: default; }
.entry-play.disabled:hover { background: transparent; color: var(--purple-pale); }
.entry-name { font-size: .85rem; word-break: break-word; }
.entry-size { font-size: .75rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.eq i { width: 2.5px; background: var(--purple-pale); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .18s; } .eq i:nth-child(3) { animation-delay: .36s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 11px; } }

/* ---------- Lock / empty states ---------- */
.lock { text-align: center; padding: clamp(2.6rem, 8vh, 4.5rem) 1rem; }
.lock-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px; display: grid; place-items: center;
  background: var(--elevated); border: 1px solid var(--line-lit);
  animation: popIn .4s var(--ease-spring) both;
}
.lock-icon svg { width: 24px; height: 24px; stroke: var(--text); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lock h1, .lock h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; letter-spacing: -.024em; }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* ---------- FAQ-style disclosure rows ---------- */
.rows { border-top: 1px solid var(--line); }
.rows section { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.rows h2 { font-size: .97rem; font-weight: 600; letter-spacing: -.008em; margin-bottom: .32rem; }
.rows p { color: var(--muted); font-size: .89rem; line-height: 1.55; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100; display: grid; gap: .5rem; max-width: min(340px, calc(100vw - 2rem)); }
.toast {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--raised); border: 1px solid var(--line-lit);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.9);
  font-size: .85rem; animation: toastIn .35s var(--ease-spring) both; cursor: pointer;
}
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: .12rem; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.toast.ok  { border-color: rgba(52,211,153,.3); }  .toast.ok svg  { stroke: var(--good); }
.toast.err { border-color: rgba(251,113,133,.35); } .toast.err svg { stroke: var(--bad); }
.toast.info svg { stroke: var(--purple-bright); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(.96); } }

/* ---------- Modal ---------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5,3,9,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1.5rem; animation: fadeIn .2s both; }
.modal { width: min(420px, 100%); padding: 1.5rem; animation: rise .35s var(--ease-spring) both; }
.modal h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .35rem; }
.modal p { color: var(--muted); font-size: .86rem; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }

/* ---------- Footer ---------- */
footer.site { padding: 2.5rem 0 2.2rem; margin-top: 3.5rem; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
footer.site a { color: var(--dim); text-decoration: none; font-size: .82rem; transition: color .2s; }
footer.site a:hover { color: var(--purple-pale); }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin-bottom: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: .9rem 1rem; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat.card { background: none; border-radius: 0; border-top: 0; border-left: 0; }
.stat .n { display: inline-block; font-size: 1.4rem; font-weight: 750; letter-spacing: -.035em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: .67rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--faint); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th { text-align: left; font-size: .67rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--faint); padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.035); }
.badge { display: inline-block; font-size: .67rem; font-weight: 600; padding: .1rem .42rem; border-radius: 5px; background: rgba(255,255,255,.1); color: var(--muted); }
.badge.bad { background: rgba(251,113,133,.14); color: var(--bad); }
.badge.good { background: rgba(52,211,153,.14); color: var(--good); }
.badge.warn { background: rgba(251,191,36,.14); color: var(--warn); }
.log { font-family: var(--mono); font-size: .74rem; color: var(--muted); max-height: 300px; overflow-y: auto; padding: .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.log div { padding: .1rem 0; white-space: nowrap; }
.log .t { color: var(--faint); }
.log .e { color: var(--purple-pale); }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.mt { margin-top: 1.1rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skel 1.3s linear infinite; border-radius: 6px; }
@keyframes skel { to { background-position: -200% 0; } }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 1.8rem); }
  header.site .wrap { gap: 1rem; }
  .nav { gap: .9rem; }
  .nav a { font-size: .85rem; }
  .player-head { flex-direction: column; text-align: center; align-items: center; }
  .vol { margin-left: 0; width: 100%; justify-content: center; }
  .item { grid-template-columns: 30px 1fr; }
  .item > .pct, .item > .tick { grid-column: 2; justify-self: end; }
  .toasts { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Metadata viewer ---------- */
.meta { margin-top: .4rem; }
.meta-head {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 550;
  cursor: pointer; transition: color .2s;
}
.meta-head:hover { color: var(--text); }
.meta-head > svg:first-child { width: 16px; height: 16px; stroke: var(--purple-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta-head .chip { margin-left: auto; }
.meta-head .caret { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.meta[data-open="true"] .meta-head .caret { transform: rotate(180deg); }
.meta-body { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .45s var(--ease), opacity .3s; }
.meta[data-open="true"] .meta-body { max-height: 2400px; opacity: 1; }
.meta-inner { padding: 1.1rem 0 .3rem; display: grid; gap: 1.5rem; }

.meta-group-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--purple-pale); margin-bottom: .5rem;
}
.meta-list { margin: 0; }
.meta-row {
  display: grid; grid-template-columns: minmax(110px, 33%) 1fr; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line-soft);
  transition: background .18s;
}
.meta-row:last-child { border-bottom: 0; }
.meta-row:hover { background: rgba(255,255,255,.035); }
.meta-row dt { font-size: .82rem; color: var(--dim); }
.meta-row dd {
  margin: 0; font-size: .84rem; color: var(--text); font-weight: 450;
  word-break: break-word; font-variant-numeric: tabular-nums;
}
.meta-row dd.mono { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.meta-row dd.wrap { overflow-wrap: anywhere; }
.meta-foot { display: flex; justify-content: flex-end; }

/* ---------- Burn ---------- */
.burn-wrap { position: relative; }
.burn-canvas {
  position: absolute; left: 0; top: 0; z-index: 6;
  pointer-events: none; will-change: opacity;
}
.lock-icon.ember {
  background: linear-gradient(150deg, #ffb340, #ff5c1a 45%, #b4210a);
  box-shadow: 0 12px 38px -12px rgba(255,92,26,.85);
}
.lock-icon.ember svg { stroke: #fff2e0; }

/* ---------- Downloads dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .28rem;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .9rem; font-weight: 500;
  transition: color .18s;
}
.nav-drop-btn:hover, .nav-drop[data-open="true"] .nav-drop-btn { color: var(--text); }
.nav-drop-btn .caret { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav-drop[data-open="true"] .nav-drop-btn .caret { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + .7rem); left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(.97);
  min-width: 232px; padding: .35rem;
  background: var(--raised); border: 1px solid var(--line-lit); border-radius: var(--radius);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.9);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease-spring), visibility .2s;
  z-index: 60;
}
.nav-drop[data-open="true"] .nav-drop-menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nav-drop-menu::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--raised); border-left: 1px solid var(--line-lit); border-top: 1px solid var(--line-lit);
  border-radius: 2px 0 0 0;
}
.nav-drop-menu a {
  position: relative; display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem; border-radius: 9px; text-decoration: none;
  color: var(--muted); transition: background .18s, color .18s;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,.12); color: var(--text); }
.nav-drop-menu a svg { width: 19px; height: 19px; flex: none; stroke: var(--purple-bright); }
.nav-drop-menu a span { display: flex; flex-direction: column; font-size: .9rem; font-weight: 550; line-height: 1.25; }
.nav-drop-menu a small { color: var(--faint); font-size: .74rem; font-weight: 400; }

/* ---------- Download page ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin: 2rem 0; }
.dl-card {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-soft); display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .25s, transform .25s var(--ease);
}
.dl-card:hover { border-color: var(--line-lit); transform: translateY(-2px); }
.dl-card.recommended { border-color: rgba(255,255,255,.4); }
.dl-head { display: flex; align-items: center; gap: .7rem; }
.dl-head svg { width: 26px; height: 26px; stroke: var(--purple-bright); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dl-head h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.015em; }
.dl-head .chip { margin-left: auto; }
.dl-meta { font-size: .8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.dl-hash { font-family: var(--mono); font-size: .68rem; color: var(--faint); overflow-wrap: anywhere; }
.dl-note {
  font-size: .8rem; color: var(--muted); padding: .7rem .8rem;
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.2); border-radius: var(--radius-sm);
}
.dl-note strong { color: var(--warn); font-weight: 600; }
.dl-steps { font-size: .84rem; color: var(--muted); padding-left: 1.1rem; margin: 0; display: grid; gap: .3rem; }
.dl-steps code { font-family: var(--mono); font-size: .78rem; background: var(--surface); padding: .1rem .3rem; border-radius: 4px; color: var(--purple-pale); }

/* ---------- Completed upload: one row, carrying its own link ---------- */
.item.done {
  grid-template-columns: 34px 1fr;
  align-items: start;
  padding: 1rem 0 1.1rem;
}
.item-main { min-width: 0; display: grid; gap: .5rem; }
.item.done .item-name { font-weight: 600; }
.item-terms { color: var(--faint); font-size: .74rem; }
.item.done .link-row { margin-top: .1rem; }

/* File rows carry no thumbnail: the name and link are the content. */
.item { grid-template-columns: 1fr auto; }
.item.done { grid-template-columns: 1fr; }
.item-art { display: none; }
@media (max-width: 640px) {
  .item { grid-template-columns: 1fr auto; }
  .item > .pct, .item > .tick { grid-column: auto; }
}

/* ---------- Share page: quieter by default ---------- */
.player-head { align-items: center; gap: 1rem; padding: 2.4rem 0 1.5rem; }
.cover {
  width: clamp(56px, 11vw, 72px);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}
.track-title { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 650; letter-spacing: -.025em; }
.track-sub { color: var(--dim); font-size: .88rem; margin-top: .25rem; }

.wave-wrap { margin: .2rem 0 .5rem; background: transparent; }
.wave-wrap canvas { height: 104px; }
.wave-times { display: flex; justify-content: space-between; margin-bottom: 1.1rem; }
.wave-times .time { font-size: .76rem; color: var(--faint); }

.transport { gap: .7rem; padding-bottom: 0; border-bottom: 0; }
.transport .vol { margin-left: auto; opacity: .55; transition: opacity .2s; }
.transport .vol:hover { opacity: 1; }
.play-btn { width: 44px; height: 44px; }

.actions-row { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); gap: .5rem; }
.track-note { margin-top: 1rem; font-size: .78rem; color: var(--faint); }

/* The disclosure is the only place detail lives now. */
.meta { margin-top: 1.4rem; }

/* ---------------------------------------------------------------------------
   Share-link page, laid out the way untitled.stream lays out a project:
   the artwork is the page, the title sits under it with one quiet meta line
   and a single round play control, and the tracks are a numbered list rather
   than a row of cards. Nothing competes with the art.
   --------------------------------------------------------------------------- */
.release { padding: 2rem 0 .5rem; }

.release-art {
  width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.release-art svg, .release-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* The lock badge rides on the art, as a state rather than a separate panel. */
.release-art .badge-on-art {
  position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: 999px; font-size: .68rem; letter-spacing: .02em;
  background: rgba(10,10,10,.72); color: var(--text); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.release-art .badge-on-art svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

.release-head {
  display: flex; align-items: flex-start; gap: 1rem;
  max-width: 420px; margin: 1.3rem auto 0;
}
.release-head .text { min-width: 0; flex: 1; }
.release-title {
  font-size: clamp(1.45rem, 5vw, 1.95rem); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.15; word-break: break-word;
}
.release-meta {
  margin-top: .3rem; color: var(--dim); font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.release-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  display: grid; place-items: center; transition: transform .18s var(--ease-spring), opacity .2s;
}
.release-play:hover { transform: scale(1.06); }
.release-play:active { transform: scale(.97); }
.release-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* What the link permits, said once, under the title rather than as chips. */
.release-terms {
  max-width: 420px; margin: .9rem auto 0; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--muted); font-size: .76rem; line-height: 1.55;
}
.release-terms strong { color: var(--text); font-weight: 600; }

.tracklist { max-width: 420px; margin: 1.6rem auto 0; }
.tracklist-head {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding-bottom: .5rem;
}
.trk {
  display: grid; grid-template-columns: 22px 1fr auto; gap: .75rem; align-items: center;
  padding: .62rem .5rem; margin: 0 -.5rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .18s;
}
.trk:hover { background: rgba(255,255,255,.045); }
.trk-num {
  font-size: .76rem; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right;
}
.trk.active .trk-num { color: var(--text); }
.trk-name { font-size: .88rem; font-weight: 500; word-break: break-word; line-height: 1.3; }
.trk.active .trk-name { color: var(--text); font-weight: 650; }
.trk-sub { font-size: .72rem; color: var(--faint); margin-top: .12rem; font-variant-numeric: tabular-nums; }
.trk-end { display: flex; align-items: center; gap: .45rem; }
.trk-dl {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .18s, background .18s, color .18s;
}
.trk:hover .trk-dl, .trk-dl:focus-visible { opacity: 1; }
.trk-dl:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.trk-dl svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* A single-track link has no list, so its download sits beside the play control. */
.release-dl {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; display: grid; place-items: center; transition: all .18s var(--ease);
}
.release-dl:hover { background: var(--elevated); color: var(--text); border-color: var(--line-lit); }
.release-dl svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Plugins: the approval notice ---------- */
.approved {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1rem 1.1rem; margin: 0 0 1.6rem;
  border: 1px solid var(--line-lit); border-radius: 12px; background: var(--surface);
}
.approved-mark {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28);
}
.approved-mark svg { width: 17px; height: 17px; fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.approved-title { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.approved-sub { font-size: .78rem; color: var(--dim); margin-top: .25rem; line-height: 1.55; }

/* A command someone has to copy out of an install note. */
.dl-note code {
  font-family: var(--mono); font-size: .76rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: .12rem .34rem; border-radius: 4px; color: var(--text);
  white-space: nowrap; user-select: all;
}
