/* Nis1nqz studio: a music app in daylight Frutiger Aero. Sky ground, frosted glass panels, glossy aqua controls,
   era colors from Ye Tracker as the only other hues. One bright theme on purpose: Aero is a daylight look. */
/* Self-hosted variable fonts (Latin), so the page loads nothing from other sites */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/Nunito-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: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/NunitoSans-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; }
:root {
  --ink: #0b2d47;
  --ink-2: #33526a;
  --ink-3: #48657b;
  --aqua: #0a8fd3;
  --aqua-ink: #06537c;
  --up: #157f45;
  --down: #b33a3a;
  --line: rgba(0, 72, 120, .12);
  --glass: rgba(255, 255, 255, .7);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-edge: rgba(255, 255, 255, .95);
  --shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 12px 32px -18px rgba(0, 62, 112, .45);
  /* Bright highlight only above the label; everything behind white text stays at 4.6:1 or better */
  --gloss: linear-gradient(180deg, #7ccff4 0%, #0f7aba 30%, #0a6aa8 52%, #0b72b2 100%);
  --gloss-green: linear-gradient(180deg, #b4f3c6 0%, #43cc7c 45%, #1fae5b 55%, #4fd488 100%);
  --bar: linear-gradient(90deg, #1fb2ee, #3dd07c);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #a4e8ff 14%, #22aeea 58%, #0a83c4 100%);
  --head: #08385c; --gloss-edge: #08679f; --top-a: rgba(225, 245, 255, .92); --top-b: rgba(225, 245, 255, .7);
  --display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --text: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --rail: 248px;
  --player: 96px;
  --embed: 80px;   /* Spotify's compact episode player */
  --tabbar: 0px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  scrollbar-color: rgba(10, 110, 170, .35) transparent;
}
body {
  margin: 0; color: var(--ink); font: 15px/1.5 var(--text); font-variant-numeric: tabular-nums;
  background-color: #8fd6ff;
  background-image:
    radial-gradient(1100px 560px at 90% -10%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%),
    radial-gradient(340px 58px at 20% 15%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 72%),
    radial-gradient(200px 46px at 28% 11%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 70%),
    radial-gradient(420px 64px at 62% 24%, rgba(255, 255, 255, .66), rgba(255, 255, 255, 0) 72%),
    radial-gradient(230px 50px at 55% 19%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    radial-gradient(900px 480px at 0% 0%, rgba(140, 228, 255, .7), rgba(140, 228, 255, 0) 60%),
    radial-gradient(1300px 400px at 18% 114%, rgba(96, 205, 104, .92) 0 44%, rgba(96, 205, 104, 0) 66%),
    radial-gradient(1500px 440px at 84% 118%, rgba(132, 222, 116, .9) 0 44%, rgba(132, 222, 116, 0) 64%),
    linear-gradient(180deg, #74cbff 0%, #bde6ff 30%, #e7f7ff 60%, #eafaef 100%);
  background-attachment: fixed;
  caret-color: var(--aqua);
}
/* Album theme: the playing album's cover, huge and blurred, glowing behind the glass over its color.
   Kept faint so text on the ground still reads as measured against the era color. */
body::before {
  content: ""; position: fixed; inset: -80px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 700ms ease;
  background: var(--era-cover, none) center / cover no-repeat;
  filter: blur(56px) saturate(1.25);
}
:root[data-era] body::before { opacity: .28; }
/* Breathing light behind everything: three soft fields of light that swell and settle. Calm (9 s) when nothing plays;
   while a song plays, once every two bars at its tempo (app.js sets --breath). On your PC the bass also nudges it. */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --breath: 9s; }
.aura i { position: absolute; width: 74vmax; height: 74vmax; border-radius: 50%; opacity: .4; will-change: transform, opacity;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--era) 55%, #ffffff), rgba(255,255,255,0)); animation: breathe 9s ease-in-out infinite; }
.aura i:nth-child(1) { left: -24vmax; top: -32vmax; }
.aura i:nth-child(2) { right: -30vmax; top: 16vh; animation-delay: -3s; background: radial-gradient(closest-side, rgba(255,255,255,.8), rgba(255,255,255,0)); }
.aura i:nth-child(3) { left: 16vw; bottom: -42vmax; animation-delay: -6s; background: radial-gradient(closest-side, color-mix(in srgb, var(--era) 45%, #9ef2bc), rgba(158,242,188,0)); }
:root[data-playing] .aura i { animation-duration: var(--breath); }
/* On dark albums the light stays dimmer so white text on the ground keeps its contrast */
:root[data-tone="dark"] .aura { opacity: .55; }
@keyframes breathe { 0%, 100% { transform: scale(.84); opacity: .32; } 50% { transform: scale(1.08); opacity: .66; } }
@media (prefers-reduced-motion: reduce) { .aura i { animation: none; } }
/* Album color. While a song is loaded the whole site turns into its era color and fades between albums.
   app.js sets --era (the raw era color), --era-bg (the era color, nudged only as far as needed so text on it
   clears 5.2:1) and --on-era (white or ink, whichever reads on it). Registered as colors so they can fade. */
@property --era { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --era-bg { syntax: '<color>'; inherits: true; initial-value: #8fd6ff; }
@property --on-era { syntax: '<color>'; inherits: true; initial-value: #08385c; }
@property --tint { syntax: '<percentage>'; inherits: true; initial-value: 18%; }
:root { --era-hover: rgba(255,255,255,.55); --era-active: rgba(255,255,255,.5); transition: --era 700ms ease, --era-bg 700ms ease, --on-era 700ms ease, --tint 700ms ease; }
:root[data-tone="dark"] { --era-hover: rgba(255,255,255,.14); --era-active: rgba(0,0,0,.2); }
/* The ground: full era color fading in over the sky, under the blurred cover */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 700ms ease;
  background-color: var(--era-bg);
  background-image: radial-gradient(1100px 560px at 92% -12%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
}
:root[data-era] body::after { opacity: 1; }
/* Every surface takes the album too. --tint (set by app.js per album, up to 40%) is as much of the era as a panel can take
   while gray text and links on it keep 4.6:1, so light albums tint strongly and dark ones as far as is safe. */
:root[data-era] {
  --glass: color-mix(in srgb, var(--era-bg) var(--tint), #ffffff);
  --glass-strong: color-mix(in srgb, var(--era-bg) calc(var(--tint) * .7), #ffffff);
  --glass-edge: color-mix(in srgb, var(--era-bg) calc(var(--tint) + 12%), #ffffff);
  --ink-3: #33526a;   /* the lightest gray would fall to 4:1 on the darkest tints */
}
:root[data-era] .tt th { background: color-mix(in srgb, var(--era-bg) calc(var(--tint) * .8), #ffffff); }
:root[data-era] .search, :root[data-era] .field { background: color-mix(in srgb, var(--era-bg) calc(var(--tint) * .45), #ffffff); }
:root[data-era] .btn:not(.primary) { background: linear-gradient(180deg, color-mix(in srgb, var(--era-bg) calc(var(--tint) * .3), #fff) 0%, color-mix(in srgb, var(--era-bg) calc(var(--tint) * .6), #fff) 48%, color-mix(in srgb, var(--era-bg) calc(var(--tint) * .85), #fff) 52%, color-mix(in srgb, var(--era-bg) calc(var(--tint) * .55), #fff) 100%); }
/* The frame (sidebar, top bar, player, phone tab bar) is the album color itself, with white or ink on it like the ground */
:root[data-era] .rail, :root[data-era] .topbar::before, :root[data-era] .player, :root[data-era] .tabbar { background: var(--era-bg); border-color: color-mix(in srgb, var(--on-era) 18%, transparent); }
:root[data-era] .brand, :root[data-era] .nav a, :root[data-era] .nav a .ic, :root[data-era] .sound, :root[data-era] .sound[aria-pressed="false"],
:root[data-era] .conn, :root[data-era] .tab, :root[data-era] .p-wait { color: var(--on-era); }
:root[data-era] .nav a[aria-current="page"], :root[data-era] .tab[aria-current="page"] { color: var(--on-era); background: var(--era-active); box-shadow: none; }
:root[data-era] .nav a[aria-current="page"] .ic { color: var(--on-era); }
:root[data-era] .view > .view-head h1, :root[data-era] .view > .view-head p,
:root[data-era] .view > .sec-row, :root[data-era] .view > .sec-row h2, :root[data-era] .view > .sec-row .more,
:root[data-era] .view > .shelf .tile .t, :root[data-era] .view > .shelf .tile .s, :root[data-era] .view > .shelf .tile .p,
:root[data-era] .view > .tools .count, :root[data-era] .view > .tools .check,
:root[data-era] .view > .era-strip .era-btn:not([aria-pressed="true"]) span,
:root[data-era] .view > p.lede, :root[data-era] .view > p.lede a { color: var(--on-era); }
::selection { background: rgba(10, 143, 211, .22); color: var(--ink); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a, [role="button"], label.btn { touch-action: manipulation; }
button, .btn, .tile, .seg button, .tab, .nav a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: #fff; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
h1, h2, h3 { font-family: var(--display); color: var(--head); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; line-height: 1.1; }
h2 { font-size: 20px; font-weight: 800; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 800; }
p { margin: 0; }

/* Shell */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.rail {
  position: sticky; top: 0; height: 100dvh; padding: 20px 14px calc(var(--player) + 16px); display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.55)); border-right: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 8px 0 30px -24px rgba(0, 62, 112, .5);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; font: 900 22px var(--display); color: #08507f; text-decoration: none; }
.brand-orb { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 28%, #fff 0 16%, #9ef2bc 20%, #20b5e8 70%, #0a86c8 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 3px 10px rgba(0, 120, 190, .45); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.nav a[aria-current="page"] { color: var(--aqua-ink); background: rgba(255,255,255,.9); box-shadow: 0 1px 0 #fff inset, 0 4px 12px -6px rgba(0, 80, 140, .45); }
.nav a[aria-current="page"] .ic { color: var(--aqua); }
.rail-show { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); display: grid; gap: 10px; }
.rail-show h2 { font-size: 15px; }
.rail-show dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.rail-show dt { color: var(--ink-2); }
.rail-show dd { margin: 0; font-weight: 800; text-align: right; }
.sound { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 700 14px var(--text); cursor: pointer; }
.sound[aria-pressed="false"] { color: var(--ink-3); }

.main { min-width: 0; padding: 0 clamp(16px, 3vw, 40px) calc(var(--player) + var(--tabbar) + 32px); }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 14px 0; padding-top: max(14px, env(safe-area-inset-top)); }
.topbar::before { content: ""; position: absolute; inset: 0 calc(-1 * clamp(16px, 3vw, 40px)); z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--era) 14%, var(--top-a)), color-mix(in srgb, var(--era) 10%, var(--top-b))); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.8); }
.topbar .brand { display: none; padding: 0; }
.search { flex: 1 1 auto; min-width: 0; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 42px; border-radius: 999px; background: linear-gradient(180deg, #f3fbff, #fff); border: 1px solid rgba(0, 72, 120, .2); box-shadow: 0 2px 4px rgba(0, 60, 110, .1) inset; color: var(--ink-3); }
.search:focus-within { border-color: var(--aqua); box-shadow: 0 2px 4px rgba(0, 60, 110, .1) inset, 0 0 0 3px rgba(80, 200, 255, .3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: 600 16px var(--text); color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.conn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: #9fb3c2; box-shadow: 0 0 0 3px rgba(159, 179, 194, .25); }
.conn[data-on="true"] i { background: #2fc06b; box-shadow: 0 0 0 3px rgba(47, 192, 107, .22); }

/* Views */
.view { padding-top: 22px; display: grid; gap: 18px; }
.view[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .view.entering { animation: view-in 240ms var(--ease-out); }
  @keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .view.entering { animation: view-fade 160ms ease; }
  @keyframes view-fade { from { opacity: 0; } }
}
.view-head { display: grid; gap: 6px; }
.view-head p, .lede { color: var(--ink-2); max-width: 68ch; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.more { font-weight: 800; font-size: 14px; color: var(--aqua-ink); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--text); }
.panel { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); min-width: 0; }
/* The gloss band of Aero glass: brightest at the top edge, gone a third of the way down */
.panel { background-image: linear-gradient(180deg, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, .16) 40px, rgba(255, 255, 255, 0) 104px); }
.panel.pad { padding: 18px; }
.panel > h2 + p { margin: 4px 0 14px; color: var(--ink-2); font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(0, 72, 120, .2); background: linear-gradient(180deg, #fff 0%, #f1f9fd 48%, #e2f2fa 52%, #f3fafd 100%); color: var(--ink); font: 800 14px var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 0 #fff inset, 0 3px 8px -4px rgba(0, 80, 140, .4); transition: transform 120ms var(--ease-out), box-shadow 160ms ease; }
.btn.primary { background: var(--gloss); color: #fff; border-color: var(--gloss-edge); text-shadow: 0 1px 1px rgba(0, 60, 110, .45); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 12px -4px rgba(0, 110, 180, .7); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn .ic { width: 16px; height: 16px; }
.btn:active, .orb:active, .tile:active, .seg button:active, .nav a:active, .tab:active { transform: scale(.97); }
.orb { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid rgba(0, 100, 160, .5); display: inline-grid; place-items: center; cursor: pointer; color: #fff; background: var(--orb); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 12px -3px rgba(0, 100, 170, .7); transition: transform 120ms var(--ease-out), filter 160ms ease; }
.orb .ic { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 50, 90, .45)); }
.orb.sm { width: 32px; height: 32px; }
.orb.sm .ic { width: 13px; height: 13px; }
.orb[aria-pressed="true"] { border-color: rgba(20, 120, 60, .5); background: radial-gradient(circle at 50% 22%, #fff 0 9%, #c1f6d1 14%, #34c470 58%, #17984c 100%); }
.orb:disabled { cursor: default; filter: saturate(.2) opacity(.6); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.seg button { border: 0; background: none; padding: 7px 15px; border-radius: 999px; font: 800 13px var(--text); color: var(--ink-2); cursor: pointer; transition: transform 120ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--gloss); color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 110, .4); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 3px 8px -3px rgba(0, 110, 180, .7); }
.field { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0, 72, 120, .22); background: linear-gradient(180deg, #f3fbff, #fff); color: var(--ink); font: 600 16px var(--text); min-width: 0; box-shadow: 0 2px 4px rgba(0, 60, 110, .1) inset; }
.field:focus { outline: none; border-color: var(--aqua); box-shadow: 0 2px 4px rgba(0, 60, 110, .1) inset, 0 0 0 3px rgba(80, 200, 255, .3); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--aqua); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tools .count { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* Chips and pills */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 12px var(--text); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid rgba(0, 72, 120, .14); white-space: nowrap; }
.chip.good { color: #146b38; border-color: rgba(21, 127, 69, .35); background: #effbf3; }
.chip.warn { color: #9a2f2f; border-color: rgba(179, 58, 58, .35); background: #fdf0f0; }
.chip.done { color: var(--aqua-ink); border-color: rgba(10, 143, 211, .4); background: #e6f6fe; }
.pill { display: inline-block; font: 800 11px var(--text); padding: 3px 10px; border-radius: 999px; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.av-og { background: #d3f5e1; color: #0f6a39; } .av-full { background: #e1f6d7; color: #2c6a17; } .av-tagged { background: #fff1c2; color: #6e5100; }
.av-partial { background: #ffe3c6; color: #7f3e00; } .av-snip { background: #ffdcdc; color: #8f2020; } .av-stem { background: #d2f3f6; color: #0d5f66; }
.av-beat { background: #e0e7ff; color: #2b3f8f; } .av-none { background: #edf1f4; color: #5b6873; }
.q-lossless { background: #ece2ff; color: #5b2fb0; } .q-cd { background: #dcecff; color: #1c4f96; } .q-high { background: #dcf5e2; color: #1f6b37; }
.q-low { background: #fdedcf; color: #6f4c0e; } .q-none { background: #edf1f4; color: #5b6873; }
.st-live { background: var(--gloss); color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 110, .4); }
.st-soon { background: #fff0d6; color: #7d4b00; } .st-done { background: #e6e0ff; color: #4a3aa8; } .st-new { background: #edf1f4; color: #4d5b66; }
.st-pred { background: #fff; color: var(--ink); border: 1px solid var(--line); } .st-pred.up { color: var(--up); }

/* Covers */
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ph { display: flex; align-items: flex-end; padding: 8px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; word-break: break-word; font: 900 13px/1.05 var(--display); color: var(--c3, #08385c); background: linear-gradient(150deg, var(--c1, #2a8fd0), #e3f5ff); }

/* Home: the pick */
/* The pick takes its cover's era color, like an album header. All its text is full ink, so the tint can run at 40% on any era. */
.pick { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: center; max-width: 960px; padding: 20px; color: var(--ink); background: linear-gradient(90deg, color-mix(in srgb, var(--era, #ffffff) 40%, rgba(255,255,255,.8)) 0%, color-mix(in srgb, var(--era, #ffffff) 14%, var(--glass)) 100%); }
.pick .meta, .pick .pred span { color: var(--ink); }
.pick .art img, .pick .art .ph { width: 200px; height: 200px; border-radius: 14px; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 22px 40px -22px rgba(0, 70, 130, .7); font-size: 22px; padding: 14px; }
.pick-body { display: grid; gap: 10px; min-width: 0; }
.pick h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.02; overflow-wrap: anywhere; }
.pick .meta { color: var(--ink-2); }
.pick .pred { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pick .pred b { font: 900 34px var(--display); color: var(--up); }
.pick .pred span { color: var(--ink-2); font-size: 14px; }
.pick .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Shelves */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.tile { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 14px; border: 1px solid transparent; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 200ms ease; }
.tile .cover, .tile .ph { margin-bottom: 6px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 12px 24px -14px rgba(0, 70, 130, .6); }
.tile .t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .p { font-size: 13px; font-weight: 800; color: var(--up); }
.tile .p.flat { color: var(--ink-3); }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 8px; align-items: start; }

/* Track lists */
.list { width: 100%; border-collapse: separate; border-spacing: 0; }
.list th { text-align: left; font: 800 12px var(--text); color: var(--ink-3); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 8px 10px; vertical-align: middle; }
.list tbody tr { transition: background-color 120ms ease; }
.list tbody tr:nth-child(odd) td { background: rgba(255,255,255,.28); }
.list tbody td:first-child { border-radius: 10px 0 0 10px; }
.list tbody td:last-child { border-radius: 0 10px 10px 0; }
.list .num { text-align: right; }
.list .idx { width: 44px; text-align: center; color: var(--ink-3); font-weight: 700; }
.list .idx .orb { display: none; margin: 0 auto; }
.list tr.can-play .idx .orb { display: none; }
.list tr.playing .song .t { color: var(--aqua-ink); }
.list tr.playing .idx .n { display: none; }
.list tr.playing .idx .orb { display: inline-grid; }
.song { display: flex; align-items: center; gap: 12px; min-width: 0; }
.song img, .song .ph { width: 44px; height: 44px; flex: none; border-radius: 8px; font-size: 8px; padding: 4px; box-shadow: 0 6px 12px -8px rgba(0, 70, 130, .6); }
.song > div { min-width: 0; }
.song .t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .t small { font-weight: 700; color: var(--ink-3); margin-left: 6px; }
.song .s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .up { color: var(--up); font-weight: 800; }
.list .flat { color: var(--ink-3); font-weight: 800; }
.list .muted { color: var(--ink-2); }
.meter { display: grid; gap: 4px; min-width: 120px; }
.meter .bar { height: 6px; border-radius: 99px; background: rgba(0, 72, 120, .1); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 99px; background: var(--bar); }
.table-wrap { overflow-x: auto; padding: 4px 8px 8px; }
.empty { padding: 28px 10px; color: var(--ink-2); text-align: center; }
ol.tracks { list-style: none; margin: 0; padding: 6px; display: grid; }
ol.tracks li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; }
ol.tracks li:nth-child(odd) { background: rgba(255,255,255,.3); }
ol.tracks .n { color: var(--ink-3); font-weight: 700; text-align: center; }
ol.tracks .v { font-weight: 800; }

/* Bars */
.bars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.hb .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hb .l a { text-decoration: none; }
.hb .b { height: 12px; border-radius: 99px; background: rgba(0, 72, 120, .09); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 60, 110, .12) inset; }
.hb .b i { display: block; height: 100%; border-radius: 99px; background: var(--bar); }
.hb .b i.mute { background: linear-gradient(90deg, #9fd3ee, #aee6c4); }
.hb .v { font-weight: 800; text-align: right; }
.eff-b { position: relative; height: 12px; border-radius: 99px; background: rgba(0, 72, 120, .09); }
.eff-b::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.eff-b i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--gloss-green); }
.eff-b i.neg { background: linear-gradient(180deg, #ffb8b8, #e05555 50%, #cc3d3d 52%, #e66a6a); }
.effects .hb { grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 56px; }

/* Stats */
.figures { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.figures > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.figures > div:first-child { border-left: 0; }
.figures dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.figures dd { margin: 2px 0 0; font: 900 28px var(--display); color: var(--head); }
.figures dd small { display: block; font: 600 12px var(--text); color: var(--ink-3); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.method p { color: var(--ink-2); margin-bottom: 10px; max-width: 62ch; }

/* Ye Tracker */
.era-strip { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 2px 12px; scrollbar-width: thin; }
.era-btn { flex: none; width: 104px; padding: 6px; border-radius: 14px; border: 1px solid transparent; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.era-btn img, .era-btn .ph { width: 90px; height: 90px; border-radius: 10px; font-size: 10px; box-shadow: 0 8px 16px -10px rgba(0, 70, 130, .6); }
.era-btn span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 12px; font-weight: 800; line-height: 1.3; }
.era-btn[aria-pressed="true"] { background: var(--glass-strong); border-color: rgba(10, 143, 211, .55); box-shadow: var(--shadow); }
.era-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; border-radius: 16px 16px 0 0; color: var(--era-fg, #fff); background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.06) 48%, rgba(255,255,255,0) 52%), var(--era-bg, #2a8fd0); }
.era-head img, .era-head .ph { width: 112px; height: 112px; border-radius: 12px; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 10px 20px -10px rgba(0,0,0,.55); }
.era-head h2 { color: inherit; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.era-head .aka { font-size: 13px; opacity: .88; margin-top: 2px; }
.era-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.era-stats span { font: 800 12px var(--text); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); }
.search-head { padding: 16px 18px; border-radius: 16px 16px 0 0; background: var(--glass-strong); border-bottom: 1px solid var(--line); font-weight: 800; }
.tt-panel { border-radius: 16px; overflow: hidden; }
.tt-scroll { overflow: auto; max-height: 70vh; overscroll-behavior: contain; }
table.tt { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tt th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; background: #f4fbff; font: 800 12px var(--text); color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tt td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tt tbody tr { background: color-mix(in srgb, var(--row, #6fb8e0) 8%, rgba(255,255,255,.78)); }
.tt .nm { min-width: 260px; }
.tt .nm b { font-weight: 800; }
.tt .nm b a { text-decoration: none; text-underline-offset: 3px; }
.tt .nm b a:hover, .tt .nm b a:focus-visible { text-decoration: underline; }
.tt .nm b a::after { content: "↗"; margin-left: 4px; font-size: 12px; color: var(--ink-3); }
.tt .nm small { display: block; font-size: 12px; color: var(--ink-2); }
.erachip { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font: 800 11px var(--text); }

/* Library fallback when the local server isn't running */

/* Welcome page */
.hello { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; }
.hello-copy { display: grid; gap: 14px; justify-items: start; }
.hello h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1; }
.hello-lede { font-size: 18px; max-width: 52ch; color: var(--ink); }
.hello .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hello-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hello-facts dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hello-facts dd { margin: 2px 0 0; font: 900 30px var(--display); color: var(--head); }
.hello-list dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 10px 20px; }
.hello-list dt a { font-weight: 800; color: var(--aqua-ink); }
.hello-list dd { margin: 0; color: var(--ink-2); }
.hello-list p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }

/* Home while a song plays: the album it's from */
.album-now { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; }
.album-now img, .album-now .ph { width: 120px; height: 120px; border-radius: 12px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 16px 30px -16px rgba(0, 40, 80, .7); }
.album-now h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.album-now .meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.album-now .story { margin-top: 8px; max-width: 70ch; }

/* Ye Tracker tags, written out instead of emoji */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font: 800 11px var(--text); padding: 2px 8px; border-radius: 999px; background: #e3f4fd; color: var(--aqua-ink); }

/* Player: one bar along the bottom in the playing album's color. Your files (on your PC): cover, controls, seek and
   volume. Spotify (data-engine="spotify", for everyone else): Spotify's own compact player between the skip buttons. */
.player {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 6; height: var(--player);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 0 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(232,247,255,.82));
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--glass-edge); box-shadow: 0 -10px 30px -18px rgba(0, 62, 112, .5);
}
.p-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-art { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.6); box-shadow: 0 6px 14px -8px rgba(0, 70, 130, .6); }
.p-art img, .p-art .ph { width: 56px; height: 56px; border-radius: 10px; font-size: 8px; padding: 4px; }
.p-meta { min-width: 0; }
.p-title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-center { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.p-ctl { display: flex; align-items: center; gap: 14px; }
.p-prog { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.p-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--ink-2); }
.player input[type="range"] { flex: 1; min-width: 0; accent-color: var(--aqua); height: 18px; }
.p-side input[type="range"] { max-width: 120px; }
.p-line, .p-embed { display: none; }
.player[data-engine="spotify"] { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
.player[data-engine="spotify"] :is(.p-now, .p-side, .p-prog, #p-toggle) { display: none; }
.player[data-engine="spotify"] .p-ctl { width: 100%; max-width: 1180px; gap: 10px; }
.player[data-engine="spotify"] .p-embed { display: block; flex: 1; min-width: 0; }
.player[data-engine="spotify"] .p-ctl .icon-btn { width: 44px; height: 44px; flex: none; }
.player[data-engine="spotify"] .p-ctl .icon-btn .ic { width: 22px; height: 22px; }
/* Spotify sets the frame's size inline; the bar decides it instead so it fits PC and phone */
.player iframe { display: block; width: 100% !important; height: var(--embed) !important; border: 0; border-radius: 12px; }
.p-wait { text-align: center; font-weight: 700; color: var(--ink-2); }
:root[data-era] .player :is(.p-title, .p-sub, .p-prog, .p-side, .icon-btn) { color: var(--on-era); }
:root[data-era] .player input[type="range"] { accent-color: var(--on-era); }

/* Phone tab bar */
.tabbar { display: none; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
  :root[data-era] .nav a:hover { color: var(--on-era); background: var(--era-active); }
  .btn:hover { border-color: rgba(0, 120, 190, .45); box-shadow: 0 1px 0 #fff inset, 0 0 0 3px rgba(80, 200, 255, .22), 0 3px 10px -4px rgba(0, 80, 140, .45); }
  .orb:hover, .btn.primary:hover { filter: brightness(1.06); }
  .icon-btn:not(:disabled):hover { color: var(--ink); background: rgba(255,255,255,.7); }
  .tile:hover { background: var(--era-hover); border-color: var(--glass-edge); }
  .more:hover { text-decoration: underline; }
  .list tbody tr:hover td { background: rgba(255,255,255,.7); }
  .list tr.can-play:hover .idx .n { display: none; }
  .list tr.can-play:hover .idx .orb { display: inline-grid; }
  .tt tbody tr:hover { background: color-mix(in srgb, var(--row, #6fb8e0) 16%, rgba(255,255,255,.9)); }
  .era-btn:not([aria-pressed="true"]):hover { background: var(--era-hover); }
  .hb .l a:hover { text-decoration: underline; }
}
/* On touch screens the play button is always shown in place of the number */
@media (pointer: coarse) {
  .list tr.can-play .idx .n { display: none; }
  .list tr.can-play .idx .orb { display: inline-grid; }
}

@media (max-width: 1100px) {
  .split, .method { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom, 0px)); --player: 88px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .topbar .brand { display: flex; }
  .conn span { display: none; }
  .search { height: 40px; }
  .pick { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; }
  .pick .art img, .pick .art .ph { width: 104px; height: 104px; max-width: none; font-size: 12px; padding: 8px; }
  .pick h3, .pick .pred b { font-size: 26px; }
  .shelf { grid-auto-columns: 140px; gap: 10px; }
  .hide-sm { display: none; }
  .figures > div { border-left: 0; border-top: 1px solid var(--line); }
  .player { left: 8px; right: 8px; bottom: calc(var(--tabbar) + 6px); grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px; border-radius: 16px; border: 1px solid var(--glass-edge); }
  .player[data-engine="spotify"] { padding: 0 4px; }
  .p-art, .p-art img, .p-art .ph { width: 48px; height: 48px; }
  .p-center { display: contents; }
  #p-prev, .p-prog, .p-side { display: none; }
  .player[data-engine="spotify"] #p-prev { display: inline-grid; }
  .player[data-engine="spotify"] .p-ctl { gap: 2px; }
  /* Phones: Spotify's player gets the full width (squeezed, it shows scrollbars); the skip buttons sit in a slim row above */
  :root:has(#player[data-engine="spotify"]) { --player: 120px; }
  .player[data-engine="spotify"] { padding: 2px 6px 6px; }
  .player[data-engine="spotify"] .p-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 30px auto; gap: 0; }
  .player[data-engine="spotify"] #p-prev { grid-area: 1 / 1; }
  .player[data-engine="spotify"] #p-next { grid-area: 1 / 3; }
  .player[data-engine="spotify"] .p-embed { grid-area: 2 / 1 / 3 / 4; }
  .player[data-engine="spotify"] .p-ctl::before { content: "Skip"; grid-area: 1 / 2; align-self: center; text-align: center; font: 800 11px var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
  :root[data-era] .player[data-engine="spotify"] .p-ctl::before { color: var(--on-era); }
  .player[data-engine="spotify"] .p-ctl .icon-btn { width: 30px; height: 30px; }
  .player[data-engine="spotify"] .p-ctl .icon-btn .ic { width: 18px; height: 18px; }
  .p-line { display: block; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(0, 72, 120, .12); overflow: hidden; }
  .player[data-engine="spotify"] .p-line { display: none; }
  .p-line i { display: block; height: 100%; width: 0; background: var(--aqua); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(236,248,255,.92)); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-top: 1px solid var(--glass-edge); }
  .tab { display: grid; justify-items: center; align-content: center; gap: 2px; font: 800 11px var(--text); color: var(--ink-3); text-decoration: none; }
  .tab[aria-current="page"] { color: var(--aqua-ink); }
  .tab .ic { width: 22px; height: 22px; }
}

@media (max-width: 860px) {
  .hello { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .hello-list dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hello-list dd { margin-bottom: 10px; }
  .album-now { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .album-now img, .album-now .ph { width: 72px; height: 72px; }
  .album-now .story { display: none; }
}

/* Album and song pages */
.page { display: grid; gap: 16px; }
.page-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: 18px; color: var(--era-fg, #ffffff); background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.06) 48%, rgba(255,255,255,0) 52%), var(--era-bg, #2a8fd0); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
.page-head img, .page-head .ph { width: 160px; height: 160px; border-radius: 14px; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.page-head h1 { color: inherit; font-size: clamp(28px, 4vw, 46px); }
.page-head .meta { margin-top: 6px; opacity: .92; }
.page-head .meta a { color: inherit; font-weight: 800; }
.page-head .tags { margin-top: 10px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prose p { max-width: 70ch; margin-top: 6px; }
.prose h2 + p { margin-top: 6px; }
.prose h2:not(:first-child) { margin-top: 18px; }
.why { display: grid; gap: 4px; margin-top: 8px; }
.note { font-size: 13px; color: var(--ink-2); }
.table-title { padding: 16px 10px 4px; }
.kv { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 16px; }
.kv dt { font-weight: 800; }
.kv dd { margin: 0; color: var(--ink-2); }
.song-ep { display: grid; gap: 12px; }
.song-ep > h2 { margin-top: 6px; }
.song-ep .panel h3 + .note { margin: 4px 0 12px; }
.song-ep .chips { margin-top: 12px; }
.search-title { font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; }
.meter .range { font-size: 12px; color: var(--ink-2); }
.list .down, .surprises .down { color: var(--down); font-weight: 800; }
.surprises { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.surprises li { padding-left: 4px; }
.surprises a { font-weight: 800; margin-right: 8px; }
.surprises .up { color: var(--up); font-weight: 800; }
.song .t a { color: inherit; text-decoration: none; }
.imp { display: inline-flex; gap: 3px; }
.imp i { width: 14px; height: 6px; border-radius: 99px; background: rgba(0, 72, 120, .14); }
.imp i.on { background: var(--bar); }
@media (hover: hover) and (pointer: fine) { .song .t a:hover { text-decoration: underline; } }
@media (max-width: 860px) {
  .page-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .page-head img, .page-head .ph { width: 96px; height: 96px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
.panels > .wide { grid-column: 1 / -1; order: 2; }

/* Your own tools: only when the site runs on your PC with the Done folder */
:root:not([data-owner]) .owner-only { display: none !important; }
:root[data-owner] .fan-only { display: none !important; }
.row-acts { white-space: nowrap; }
.row-acts > * + * { margin-left: 6px; }

/* Spotify's own player on a song page */

/* Audacity steps */
.steps { margin: 8px 0 10px; padding-left: 22px; display: grid; gap: 6px; max-width: 75ch; }
.prose h3 { margin-top: 16px; }

/* Playlists */
.pl { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-side { display: grid; gap: 12px; }
.pl-list { display: grid; gap: 4px; }
.pl-item { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.pl-item .t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item .s { font-size: 13px; color: var(--ink-2); }
.pl-item[aria-pressed="true"] { background: var(--glass-strong); border-color: rgba(10, 143, 211, .45); box-shadow: var(--shadow); }
.pl-main { display: grid; gap: 14px; min-width: 0; }
.pl-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pl-name { flex: 1 1 240px; font-size: 20px; font-weight: 800; font-family: var(--display); }
.pl-head .actions { display: flex; gap: 8px; }
.pl-add { list-style: none; margin: 10px 0 0; padding: 0 4px 0 0; display: grid; gap: 6px; max-height: min(440px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.pl-add li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-add + * { margin-top: 0; }
.panel > .field { width: 100%; margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .pl-item:not([aria-pressed="true"]):hover { background: var(--era-hover); } }
@media (max-width: 860px) { .pl { grid-template-columns: minmax(0, 1fr); } }

/* Polls and your Spotify */
.poll { display: grid; gap: 10px; }
.poll .bars { margin: 4px 0 6px; }
.poll > .btn { justify-self: start; }
.poll-text { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font: 600 14px/1.6 var(--text); white-space: pre-wrap; }
#poll-maker .note + .note { margin-top: 10px; }
.sp-panel { display: grid; gap: 10px; }
.sp-panel .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-panel .field { flex: 1 1 260px; }
.sp-now { display: flex; gap: 14px; align-items: center; }
.sp-now img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(0,70,130,.6); }
.sp-now > div { display: grid; gap: 2px; min-width: 0; }
.sp-now .t, .sp-now a { font-weight: 800; }
.sp-now .s { font-size: 13px; color: var(--ink-2); }
.sp-now .tag { justify-self: start; }
.toast { position: fixed; z-index: 8; left: 50%; bottom: calc(var(--player) + var(--tabbar) + 16px); transform: translateX(-50%); max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 12px; background: #0b2d47; color: #ffffff; font-weight: 700; box-shadow: 0 12px 30px -12px rgba(0, 30, 60, .6); }

/* Cutting and chopping guides (your PC): waveform, step cards, chop pads */
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wave { display: block; width: 100%; height: 150px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); cursor: pointer; }
.wave.zoom { height: 120px; cursor: default; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: gs; }
.gstep { counter-increment: gs; position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); display: grid; gap: 6px; }
.gstep::before { content: counter(gs); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); color: #fff; background: var(--gloss); }
.gstep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gstep p { color: var(--ink-2); max-width: 75ch; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
kbd { font: 700 12px var(--text); padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid rgba(0, 72, 120, .25); box-shadow: 0 2px 0 rgba(0, 72, 120, .18); color: var(--ink); white-space: nowrap; }
.gstep .chips .chip { cursor: pointer; }
.pads { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.chop-pad { position: relative; height: 72px; padding: 0; border-radius: 12px; border: 1px solid rgba(0, 72, 120, .2); background: linear-gradient(180deg, #fff, #e8f5fc); cursor: pointer; overflow: hidden; transition: transform 100ms var(--ease-out), box-shadow 120ms ease; }
.chop-pad canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.pad-n { position: absolute; left: 6px; top: 4px; font: 900 13px var(--display); color: var(--ink); }
.chop-pad.on, .chop-pad:active { transform: scale(.96); box-shadow: 0 0 0 3px rgba(80, 200, 255, .45) inset; }
.patterns { display: grid; gap: 8px; }
.pattern { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pattern .btn { min-width: 168px; justify-content: flex-start; }
.seq { display: inline-flex; gap: 4px; }
.seq span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font: 800 12px var(--text); background: var(--glass-strong); border: 1px solid var(--line); }
@media (max-width: 860px) { .pads { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gstep { padding-left: 46px; } }

/* Accounts: sign-in button (your initial when signed in), the sign-in dialog, and the like heart */
.account-btn { flex: none; }
.account-btn.avatar { width: 36px; height: 36px; padding: 0; border-radius: 50%; font: 900 15px var(--display); color: #fff; background: var(--gloss); border-color: #08679f; }
dialog.account { width: min(92vw, 420px); padding: 22px; color: var(--ink); background: var(--glass-strong); }
dialog.account::backdrop { background: rgba(4, 30, 52, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.account h2 { margin-bottom: 6px; padding-right: 36px; }
dialog.account > .btn { width: 100%; margin-top: 14px; }
.acc-close { position: absolute; right: 12px; top: 12px; }
.acc-form { display: grid; gap: 6px; margin-top: 14px; }
.acc-form label { font: 800 13px var(--text); margin-top: 6px; }
.acc-form .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#acc-signed { margin-top: 12px; display: grid; gap: 10px; }
#acc-signed[hidden] { display: none; }
.like { width: 32px; height: 32px; }
.like .ic { width: 18px; height: 18px; }
.like[aria-pressed="true"] { color: #d12f5f; }
.acc-msg { min-height: 1.5em; font-size: 14px; font-weight: 700; color: var(--ink-2); }
/* When a phone blocks Spotify from starting on its own, its play button is highlighted until it's tapped */
.player.tap-play iframe { box-shadow: 0 0 0 3px #1ed760, 0 0 0 7px rgba(30, 215, 96, .25); }
@media (prefers-reduced-motion: no-preference) { .player.tap-play iframe { animation: tap-play 1.4s ease-in-out infinite; } }
@keyframes tap-play { 50% { box-shadow: 0 0 0 3px #1ed760, 0 0 0 11px rgba(30, 215, 96, .1); } }
/* Fans' home: what the site does, in three steps */
.explain h2 { margin-bottom: 12px; }
.explain-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.explain-steps li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.explain-steps .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #fff; background: var(--gloss); margin-bottom: 4px; }
.explain-steps b { font: 800 16px var(--display); }
.explain-steps span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) { .explain-steps { grid-template-columns: minmax(0, 1fr); } }
/* The drawn Audacity window in the guides */
.aud { display: block; width: 100%; height: 260px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .18); box-shadow: 0 12px 28px -18px rgba(0, 40, 80, .6); background: #e4e6eb; }
@media (max-width: 860px) { .aud { height: 230px; } }

/* Drops: release-day banner, Just dropped badge, release calendar */
.drop-banner { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 50%), linear-gradient(120deg, #0a6aa8, #1fb0e6 60%, #2fc06b); border-color: rgba(255,255,255,.7); }
.drop-banner img, .drop-banner .ph { width: 120px; height: 120px; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
.drop-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 6px 0 2px; }
.drop-banner p { opacity: .95; }
.drop-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; justify-self: start; font: 800 11px var(--text); letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #fff; color: #0a6aa8; }
.tile { position: relative; }
.tile .badge { position: absolute; left: 16px; top: 16px; background: #2fc06b; color: #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.cal-grid { display: grid; grid-template-columns: repeat(14, minmax(84px, 1fr)); gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
.cal-day { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 8px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); }
.cal-day.ahead { background: rgba(255,255,255,.45); border-style: dashed; }
.cal-day.today { border: 2px solid var(--aqua); }
.cal-wd { font: 800 11px var(--text); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.cal-d { font: 900 18px var(--display); line-height: 1; }
.cal-ep { display: block; width: 100%; text-align: left; font: 700 12px var(--text); line-height: 1.25; padding: 4px 6px; border-radius: 7px; border: 0; color: #fff; background: var(--gloss); cursor: pointer; overflow-wrap: anywhere; }
.cal-ep.soon { color: var(--aqua-ink); background: #e3f4fd; border: 1px dashed rgba(10, 143, 211, .5); cursor: default; }
/* Fan voting */
.vote .sec-row { margin: 0 0 4px; }
.vote-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vote-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 44px auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 12px; }
.vote-list li.mine { background: var(--glass-strong); box-shadow: 0 0 0 2px var(--aqua) inset; }
.vote-bar { height: 10px; border-radius: 99px; background: rgba(0, 72, 120, .1); overflow: hidden; }
.vote-bar i { display: block; height: 100%; background: var(--bar); transition: width 400ms var(--ease-out); }
.vote-n { font-weight: 800; text-align: right; }
@media (max-width: 860px) {
  .drop-banner { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .drop-banner img, .drop-banner .ph { width: 84px; height: 84px; }
  .vote-list li { grid-template-columns: minmax(0, 1fr) 44px auto; }
  .vote-list .vote-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* Growth charts (your Stats) */
.chart { width: 100%; height: auto; display: block; margin: 6px 0 14px; }
.chart .grid { stroke: rgba(0, 72, 120, .12); }
.chart .line { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: #fff; stroke: var(--aqua); stroke-width: 2.5; }
.chart .ax { font: 600 11px var(--text); fill: var(--ink-3); }
.chart .val { font: 800 13px var(--text); fill: var(--ink); }
/* Sampling page */
.yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; margin: 6px 0 10px; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 16px; margin: 10px 0 14px; border: 2px dashed rgba(10, 143, 211, .45); border-radius: 16px; background: var(--glass-strong); text-align: center; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.drop .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #fff; background: var(--gloss); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.over, .drop:focus-within { border-color: var(--aqua); background: #e3f4fd; }
.samp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.samp-ctl { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.samp-ctl .tempo { width: 92px; }
.samp-ctl input[type="range"] { width: 160px; accent-color: var(--aqua); }
.pads.sixteen { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.pad-k { position: absolute; right: 6px; top: 4px; font: 800 11px var(--text); color: var(--ink-3); }
.chop-pad:disabled { opacity: .35; cursor: default; }
@media (max-width: 860px) { .pads.sixteen { grid-template-columns: repeat(4, minmax(0, 1fr)); } .samp-ctl input[type="range"] { width: 120px; } }
/* Sampling: era styles and your sample library */
#samp-eras .tile.on { background: var(--glass-strong); box-shadow: 0 0 0 2px var(--aqua) inset; }
.samp-style h3 { margin-top: 12px; }
.samp-style .btn { margin-top: 12px; }
.style-pat { margin: 4px 0; }
.samp-q { width: min(100%, 360px); margin: 8px 0; }
.samp-lib { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 4px; }
.samp-lib li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.samp-item { flex: 1; min-width: 0; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; font: 700 14px var(--text); color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samp-item:hover, .samp-item:focus-visible { background: var(--glass-strong); border-color: var(--line); }
.samp-state { flex: none; font: 700 12px var(--text); color: var(--ink-3); }
.samp-state.ok { color: var(--up); }
/* Ye flips: half-beat chops are narrow, held ones wide, gaps faded; the era's own flip is highlighted */
.pattern { align-items: flex-start; }
.flip-txt { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.seq { flex-wrap: wrap; }
.seq span.half { width: 18px; font-size: 10px; }
.seq span.long { width: 56px; }
.seq span.rest { opacity: .45; }
.pattern.star { padding: 8px; margin: -8px; border-radius: 12px; background: var(--glass-strong); box-shadow: 0 0 0 2px var(--aqua) inset; }
/* Chopper: listen with a playhead, drag to select */
.wave-wrap { position: relative; }
.wave-wrap .wave { cursor: crosshair; touch-action: none; }
.playhead { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #b33a3a; border-radius: 2px; pointer-events: none; will-change: transform; }
.transport { align-items: center; }
.chopper .samp-controls .check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
/* Example beat */
.beat-out { display: grid; gap: 10px; margin-top: 10px; }
.arr { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: arr; }
.arr li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--line); }
.beat-pick { min-width: min(100%, 320px); }
/* Your drums: one row per part (name, sound, listen) */
.drum-pick { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 8px 12px; align-items: center; margin: 6px 0 14px; min-width: 0; max-width: 100%; }
.drum-pick .drum-name { font-weight: 700; }
.drum-pick select { width: 100%; min-width: 0; }
@media (max-width: 560px) {
  .drum-pick { grid-template-columns: minmax(0, 1fr) max-content; }
  .drum-pick .drum-name { grid-column: 1 / -1; margin-top: 4px; }
}

/* ---------- Visual extras (Nov 11, 2026) ---------- */
/* Mirror reflections under covers, the classic Aero glass floor. Only where the browser draws them (Chromium, Safari),
   so the extra room under shelf covers appears only there. */
@supports (-webkit-box-reflect: below) {
  .tile .cover, .tile .ph { margin-bottom: 30px; -webkit-box-reflect: below 3px linear-gradient(to bottom, rgba(255,255,255,.34), transparent 17%); }
  .album-now img, .album-now .ph { margin-bottom: 16px; -webkit-box-reflect: below 3px linear-gradient(to bottom, rgba(255,255,255,.3), transparent 13%); }
  .pick .art img, .pick .art .ph { -webkit-box-reflect: below 4px linear-gradient(to bottom, rgba(255,255,255,.3), transparent 12%); }
  .page-head img, .page-head .ph, .era-head img, .era-head .ph { -webkit-box-reflect: below 3px linear-gradient(to bottom, rgba(255,255,255,.26), transparent 11%); }
}
/* The play button glows with the music: on your PC with the bass of your own file (app.js sets --level and data-level),
   in Spotify's player (which can't be listened to) as a breath at the song's tempo. */
@property --level { syntax: '<number>'; inherits: true; initial-value: 0; }
:root[data-playing] #p-toggle { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 12px -3px rgba(0, 100, 170, .7), 0 0 calc(6px + var(--level) * 30px) calc(1px + var(--level) * 9px) color-mix(in srgb, var(--era) 55%, #3cc8ff); }
@media (prefers-reduced-motion: no-preference) { :root[data-playing]:not([data-level]) #p-toggle { animation: orb-glow var(--breath, 4s) ease-in-out infinite; } }
@keyframes orb-glow { 0%, 100% { --level: .08; } 50% { --level: .55; } }
/* Charts: a glossy fill under the line, which draws itself in when the page opens */
.chart .area-top { stop-color: var(--aqua); stop-opacity: .34; }
.chart .area-bottom { stop-color: var(--aqua); stop-opacity: 0; }
.chart .line { filter: drop-shadow(0 3px 5px rgba(10, 143, 211, .35)); }
@media (prefers-reduced-motion: no-preference) {
  .chart .line { stroke-dasharray: 1; animation: line-draw 1.2s var(--ease-out) both; }
  .chart .area, .chart .dot, .chart .val { animation: chart-fade .9s ease .35s both; }
}
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chart-fade { from { opacity: 0; } }

/* Followers per post (Stats): several episode names per row, with the dates below */
#fol-rows .hb { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 36px; align-items: start; }
#fol-rows .hb .l { white-space: normal; }
#fol-rows .hb .l small { display: block; font-weight: 400; color: var(--ink-2); }
#fol-rows .hb .b { margin-top: 4px; }
#fol-rows + .note { margin-top: 12px; }

/* ---------- Frutiger Aero pass (Nov 12, 2026) ---------- */
/* Glass bubbles rising through the sky, behind the frosted panels. Each is a sphere, not a disc: clear in the middle,
   a bright rim, one specular highlight top left, light bouncing back bottom right, a little meadow green underneath. */
.aura b {
  position: absolute; left: var(--x); bottom: -26vmin; width: calc(var(--s) * var(--k, 1)); height: calc(var(--s) * var(--k, 1)); border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .92); will-change: transform;
  /* tinted aqua, so a bubble still reads as a soft blue orb through the frosted panels in front of it */
  background:
    radial-gradient(ellipse 30% 19% at 32% 22%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 36% 22% at 66% 82%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 55%, rgba(110, 200, 255, .12) 0 40%, rgba(40, 160, 240, .4) 76%, rgba(255, 255, 255, .7) 100%);
  box-shadow: 0 0 0 1px rgba(30, 140, 215, .28), 0 -14px 26px -10px rgba(60, 200, 140, .5) inset, 0 14px 24px -12px rgba(30, 150, 235, .55) inset, 0 18px 34px -18px rgba(0, 80, 140, .45);
  animation: bubble-rise var(--t) linear var(--d) infinite;
}
@keyframes bubble-rise {
  0% { transform: translate3d(0, 0, 0) scale(.92); }
  50% { transform: translate3d(var(--sway), -72vh, 0) scale(1); }
  100% { transform: translate3d(0, -150vh, 0) scale(1.06); }
}
.aura b:nth-of-type(1) { --x: 3%; --s: 190px; --t: 46s; --d: -6s; --sway: 5vw; --y: 12%; }
.aura b:nth-of-type(2) { --x: 17%; --s: 84px; --t: 34s; --d: -21s; --sway: -3vw; --y: 58%; }
.aura b:nth-of-type(3) { --x: 31%; --s: 130px; --t: 52s; --d: -38s; --sway: 4vw; --y: 30%; }
.aura b:nth-of-type(4) { --x: 46%; --s: 60px; --t: 30s; --d: -11s; --sway: -2vw; --y: 76%; }
.aura b:nth-of-type(5) { --x: 56%; --s: 250px; --t: 64s; --d: -47s; --sway: 3vw; --y: 44%; }
.aura b:nth-of-type(6) { --x: 73%; --s: 100px; --t: 40s; --d: -27s; --sway: -4vw; --y: 18%; }
.aura b:nth-of-type(7) { --x: 82%; --s: 160px; --t: 56s; --d: -15s; --sway: 2vw; --y: 66%; }
.aura b:nth-of-type(8) { --x: 93%; --s: 70px; --t: 36s; --d: -31s; --sway: -3vw; --y: 38%; }
/* Phones: fewer and smaller, and no large bubble */
@media (max-width: 860px) { .aura b { --k: .7; } .aura b:nth-of-type(3), .aura b:nth-of-type(5), .aura b:nth-of-type(7) { display: none; } }
@media (prefers-reduced-motion: reduce) { .aura b { animation: none; bottom: var(--y); } }
/* Bars are lit from above too */
.hb .b i, .vote-bar i { box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 -3px 4px -2px rgba(0, 70, 120, .25) inset; }


/* ---------- Community (Nov 12, 2026): requests, reactions, the Friday vote, the version timeline ---------- */
.row-acts { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.row-acts .btn .ic { width: 15px; height: 15px; }
.tools select.field { max-width: 100%; }
/* Request button and its count, a small glass bead */
.req-btn { white-space: nowrap; }
.req-btn .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.req-btn .req-n { margin-left: 2px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--aqua-ink); font: 800 11px/18px var(--text); text-align: center; text-shadow: none; box-shadow: 0 1px 2px rgba(0, 60, 110, .25) inset; }
/* How many asked: a glass bubble with the number inside */
.req-count {
  min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--aqua-ink); font: 900 14px var(--display);
  border: 1px solid rgba(255, 255, 255, .95);
  background: radial-gradient(ellipse 34% 22% at 34% 22%, #fff, rgba(255, 255, 255, 0) 100%), radial-gradient(circle at 50% 62%, #eef9ff, #c3e8fb 68%, #9ed5f4);
  box-shadow: 0 1px 0 #fff inset, 0 -7px 10px -6px rgba(10, 120, 190, .4) inset, 0 6px 12px -8px rgba(0, 70, 130, .6);
}
.req-list { padding: 6px 0 0; }
.req-list li:nth-child(odd) { background: none; }
.req-list li + li:not(.req-note) { border-top: 1px solid var(--line); border-radius: 0; }
ol.tracks li.req-note { display: block; padding: 0 8px 9px 46px; font-size: 13px; color: var(--ink-2); }
.req-note q, .req-notes q { quotes: "“" "”"; color: var(--ink); }
.req-note .muted { margin-left: 8px; }
.req-board h3, .friday-start h3 { margin: 18px 0 4px; font: 800 16px var(--display); }
.req-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.req-form input.field { flex: 1 1 260px; }
.req-form select.field { flex: 0 1 200px; }
.req-notes { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.request h3 { margin: 16px 0 0; font: 800 16px var(--display); }
/* "You asked for it. It's out." Meadow-green gloss; every stop behind the white text holds 4.9:1 or better */
.req-dropped { display: grid; gap: 14px; color: #fff; border-color: rgba(255, 255, 255, .75); background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 44%), linear-gradient(120deg, #0c6b34, #128043 55%, #0a6aa8); }
.dropped-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
.dropped-row img, .dropped-row .ph { width: 84px; height: 84px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 12px 24px -14px rgba(0, 50, 25, .8); }
.dropped-row h2 { margin: 0 0 2px; color: #fff; text-shadow: 0 1px 2px rgba(0, 60, 30, .5); }
.dropped-row p { margin: 0 0 10px; }
.dropped-row .actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Reactions: three pressable pills, each with an orb like the play button (aqua at rest, green when it is yours) */
.reacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.react {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid rgba(0, 72, 120, .2); cursor: pointer;
  color: #0b2d47; font: 800 13px var(--text); background: linear-gradient(180deg, #fff 0%, #f1faff 48%, #e2f3fc 52%, #f3fbff 100%);
  box-shadow: 0 1px 0 #fff inset, 0 3px 8px -4px rgba(0, 80, 140, .4); transition: transform 120ms var(--ease-out), box-shadow 160ms ease, border-color 160ms ease;
}
.react:active { transform: scale(.97); }
.react-orb { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(0, 100, 160, .5); background: var(--orb); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 4px 8px -4px rgba(0, 90, 150, .7); }
.react-orb .ic { width: 15px; height: 15px; filter: drop-shadow(0 1px 1px rgba(0, 50, 90, .45)); }
.react-n { font: 900 14px var(--display); }
.react-l { color: #33526a; font-weight: 700; }
.react[aria-pressed="true"] { border-color: #17984c; box-shadow: 0 1px 0 #fff inset, 0 0 0 3px rgba(60, 200, 120, .3); }
.react[aria-pressed="true"] .react-orb { border-color: rgba(20, 120, 60, .5); background: radial-gradient(circle at 50% 22%, #fff 0 9%, #c1f6d1 14%, #34c470 58%, #17984c 100%); }
@media (hover: hover) and (pointer: fine) { .react:hover { border-color: rgba(10, 143, 211, .55); box-shadow: 0 1px 0 #fff inset, 0 0 0 3px rgba(80, 200, 255, .22); } }
.react-tally { display: inline-flex; gap: 12px; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.react-tally span { display: inline-flex; align-items: center; gap: 4px; }
.react-tally .ic { width: 14px; height: 14px; color: var(--aqua-ink); }
/* Friday vote */
.vote-list li.won { background: var(--glass-strong); box-shadow: 0 0 0 2px #2fb668 inset; }
.friday-start { margin-top: 16px; padding-top: 2px; border-top: 1px solid var(--line); }
.friday-start .note { margin: 0 0 12px; }
/* Version timeline: a glass tube with a bead per version, filled aqua where audio leaked */
.timeline { position: relative; list-style: none; margin: 14px 0 0; padding: 0 0 0 30px; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 4px; border-radius: 99px; background: linear-gradient(180deg, #8fd6ff, #b9ecc9); box-shadow: 0 1px 2px rgba(0, 60, 110, .25) inset; }
.timeline li { position: relative; min-width: 0; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 100, 160, .35); background: radial-gradient(ellipse 36% 24% at 36% 24%, #fff, rgba(255, 255, 255, 0) 100%), radial-gradient(circle at 50% 60%, #f6fcff, #cfeaf8); box-shadow: 0 3px 6px -3px rgba(0, 80, 140, .6); }
.timeline li.has-audio::before { border-color: rgba(0, 100, 160, .5); background: var(--orb); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-head b { font: 800 16px var(--display); }
.tl-head .erachip { margin-top: 0; }
.tl-date, .tl-len { color: var(--ink-2); font-size: 13px; }
.tl-who { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) {
  .req-list li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .req-list li > .btn, .req-list li > .pill, .req-list li > .react-tally { grid-column: 2 / -1; justify-self: start; }
  .vote-list li { grid-template-columns: minmax(0, 1fr) 44px auto; }
  .vote-list li .vote-bar { grid-column: 1 / -1; order: 5; }
}

/* Sampling: the parts the beat is made from */
.samp-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.part-chip { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--text); cursor: pointer; }
.part-chip .ic { width: 12px; height: 12px; }

/* Sampling: the beat cut into its parts (a row per part, like a DAW playlist) */
.lanes-box { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset; }
.lanes-names { display: grid; grid-template-rows: 24px; grid-auto-rows: 30px; align-content: start; padding: 0 12px; border-right: 1px solid var(--line); font: 800 12px var(--text); color: var(--ink-2); }
.lanes-names span { display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; }
.lanes-names small { font-weight: 700; color: var(--ink-3); }
.lanes-names .lanes-top { color: var(--ink-3); }
.lanes-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.lanes-inner { position: relative; }
.lanes { display: block; cursor: pointer; }
.beat-out h4 { margin: 8px 0 0; font: 800 16px var(--display); }

/* ---------- Your profile: who you are and what you have done here ---------- */
@media (max-width: 560px) { .avatar-orb { width: 64px; height: 64px; font-size: 30px; } }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.avatar-orb { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 900 38px var(--display); text-shadow: 0 1px 2px rgba(0, 40, 80, .5); background: var(--orb); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 22px -10px rgba(0, 60, 110, .7); }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-head .note { margin: 2px 0 10px; }
.profile-head .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.name-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.name-form .field { flex: 1 1 220px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 14px 0 0; }
.profile-stats div { padding: 10px 14px; border-left: 1px solid var(--line); }
.profile-stats div:first-child { border-left: 0; }
.profile-stats dt { font-size: 13px; color: var(--ink-2); }
.profile-stats dd { margin: 2px 0 0; font: 900 26px var(--display); color: var(--head); }
.profile-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }

/* ---------- Looks (Nov 17, 2026): the Frutiger family as color accents ----------
   The same daylight Aero everywhere; a look changes only its accents: the gloss of primary buttons and active segments,
   the play orb, links and focus, chart and progress bars, headings, and a light tint of the sky (look.js sets data-theme;
   the profile has the picker). While a song plays the album color takes over the ground as before, so the tint steps
   aside. Each look's tokens also apply to its card in the picker, which draws a small preview from them. */
.aura { background-image: var(--sky, none); }
:root[data-era] .aura { background-image: none; }
.look-card[data-look="aero"] {
  --aqua: #0a8fd3; --aqua-ink: #06537c; --head: #08385c; --gloss-edge: #08679f; --sky: none;
  --gloss: linear-gradient(180deg, #7ccff4 0%, #0f7aba 30%, #0a6aa8 52%, #0b72b2 100%); --bar: linear-gradient(90deg, #1fb2ee, #3dd07c);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #a4e8ff 14%, #22aeea 58%, #0a83c4 100%);
}
:root[data-theme="eco"], .look-card[data-look="eco"] {
  --aqua: #2f9e44; --aqua-ink: #17692c; --head: #0f3a1f; --gloss-edge: #166a2b; --sky: linear-gradient(180deg, rgba(120, 215, 90, .14), rgba(120, 215, 90, .24));
  --gloss: linear-gradient(180deg, #a9e59a 0%, #23883a 30%, #1a7430 52%, #1f7f35 100%); --bar: linear-gradient(90deg, #8ad13c, #1fa85a);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #c9f7b0 14%, #45b83f 58%, #1f8a36 100%);
}
:root[data-theme="aqua"], .look-card[data-look="aqua"] {
  --aqua: #0796a8; --aqua-ink: #05606d; --head: #06404a; --gloss-edge: #06606f; --sky: linear-gradient(180deg, rgba(30, 200, 210, .2), rgba(60, 220, 200, .14));
  --gloss: linear-gradient(180deg, #9fe9ee 0%, #0a7f92 30%, #086c7e 52%, #097688 100%); --bar: linear-gradient(90deg, #22c1d6, #2fd08a);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #b5f3f5 14%, #1fb8c9 58%, #0a8598 100%);
}
:root[data-theme="technozen"], .look-card[data-look="technozen"] {
  --aqua: #5a9a2f; --aqua-ink: #3a6f1c; --head: #1f2d20; --gloss-edge: #2d5c18; --sky: linear-gradient(180deg, rgba(244, 247, 236, .62), rgba(226, 236, 210, .5));
  --gloss: linear-gradient(180deg, #cfe9b0 0%, #3f7d22 30%, #356c1c 52%, #3a7520 100%); --bar: linear-gradient(90deg, #b5d98a, #5a9a2f);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #e3f4c8 14%, #7fb850 58%, #4c8a2a 100%);
}
:root[data-theme="aurora"], .look-card[data-look="aurora"] {
  --aqua: #0f9e86; --aqua-ink: #0a6b5c; --head: #073b3f; --gloss-edge: #075346; --sky: linear-gradient(180deg, rgba(20, 140, 130, .26), rgba(170, 230, 80, .2));
  --gloss: linear-gradient(180deg, #8ff5dc 0%, #0b7d69 30%, #096b5a 52%, #0a7462 100%); --bar: linear-gradient(90deg, #c9e84a, #3fe08a 50%, #35d4ff);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #c9ffe9 14%, #24c9a0 58%, #0b8a70 100%);
}
:root[data-theme="dark"], .look-card[data-look="dark"] {
  --aqua: #1e9e35; --aqua-ink: #136b22; --head: #0b1a0f; --gloss-edge: #050607; --sky: linear-gradient(180deg, rgba(14, 24, 18, .26), rgba(14, 24, 18, .14));
  --gloss: linear-gradient(180deg, #7a828c 0%, #24292f 30%, #111417 52%, #1b1f24 100%); --bar: linear-gradient(90deg, #1f8a2a, #3ddc4a 60%, #9ff58a);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #c8ffb8 14%, #3ddc4a 58%, #148a20 100%);
}
:root[data-theme="alba"], .look-card[data-look="alba"] {
  --aqua: #5b6b7c; --aqua-ink: #3a4856; --head: #1d2731; --gloss-edge: #444f5a; --sky: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .4));
  --gloss: linear-gradient(180deg, #eef1f4 0%, #5d6b79 30%, #4e5b68 52%, #566472 100%); --bar: linear-gradient(90deg, #b8c1ca, #5d6b79);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #eef1f4 14%, #9aa6b2 58%, #5d6b79 100%);
}
:root[data-theme="night"], .look-card[data-look="night"] {
  --aqua: #2f55d4; --aqua-ink: #1e3a9a; --head: #0c1a4a; --gloss-edge: #172f80; --sky: linear-gradient(180deg, rgba(20, 40, 120, .3), rgba(60, 90, 200, .1));
  --gloss: linear-gradient(180deg, #9fb6ff 0%, #2443b5 30%, #1c3797 52%, #213fa8 100%); --bar: linear-gradient(90deg, #2f55d4, #7aa2ff);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #d6e0ff 14%, #5b7cf0 58%, #1e3a9a 100%);
}
:root[data-theme="dorfic"], .look-card[data-look="dorfic"] {
  --aqua: #c2410c; --aqua-ink: #8f2f05; --head: #2a1300; --gloss-edge: #8f2f05; --sky: linear-gradient(180deg, rgba(255, 160, 60, .2), rgba(255, 200, 80, .14));
  --gloss: linear-gradient(180deg, #ffc9a0 0%, #c2410c 30%, #a83808 52%, #b53d0a 100%); --bar: linear-gradient(90deg, #ff922b, #e03131);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #ffd8b8 14%, #f76707 58%, #c2410c 100%);
}
:root[data-theme="garden"], .look-card[data-look="garden"] {
  --aqua: #d6336c; --aqua-ink: #a01a4d; --head: #16244a; --gloss-edge: #8a1840; --sky: linear-gradient(180deg, rgba(255, 150, 210, .16), rgba(190, 120, 255, .12));
  --gloss: linear-gradient(180deg, #ffb3cf 0%, #c2255c 30%, #a61e4d 52%, #b3214f 100%); --bar: linear-gradient(90deg, #ff922b, #e64980 55%, #be4bdb);
  --orb: radial-gradient(circle at 50% 22%, #fff 0 9%, #ffd0e0 14%, #f06595 58%, #c2255c 100%);
}
/* the picker: a card per look with a small preview (its sky, its play orb, its gloss) */
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.look-card { position: relative; display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 14px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform 120ms var(--ease-out), box-shadow 160ms ease; }
.look-card:active { transform: scale(.97); }
.look-card .look-img { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; margin-bottom: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset;
  background: var(--sky, linear-gradient(transparent, transparent)), linear-gradient(180deg, #74cbff 0%, #bde6ff 48%, #e7f7ff 72%, #9fdc7a 73%, #6fc04a 100%); }
.look-card .look-img::before { content: ""; position: absolute; left: 10px; bottom: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--orb); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 8px -4px rgba(0, 40, 80, .6); }
.look-card .look-img::after { content: ""; position: absolute; left: 48px; right: 10px; bottom: 14px; height: 20px; border-radius: 999px; background: var(--gloss); border: 1px solid var(--gloss-edge); }
.look-card[data-look="cycle"] .look-img { background: conic-gradient(from 20deg, #0a8fd3, #2f9e44, #0796a8, #5a9a2f, #0f9e86, #1b1f24, #9aa6b2, #2f55d4, #c2410c, #d6336c, #0a8fd3); }
.look-card[data-look="cycle"] .look-img::before, .look-card[data-look="cycle"] .look-img::after { display: none; }
.look-card b { font: 800 14px var(--text); }
.look-card span { font-size: 12px; color: var(--ink-2); }
.look-card[aria-checked="true"] { box-shadow: 0 0 0 3px var(--aqua), var(--shadow); }
.look-card[aria-checked="true"]::after { content: "In use"; position: absolute; top: 14px; right: 14px; padding: 2px 9px; border-radius: 999px; font: 800 11px var(--text); color: #fff; background: var(--gloss); border: 1px solid var(--gloss-edge); }
@media (hover: hover) and (pointer: fine) { .look-card:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--aqua) 55%, transparent), var(--shadow); } }
.look-cycle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
@media (max-width: 560px) { .look-card span { display: none; } }
