/* samgod.world — Aether Zero theme
   Void black, emerald nebula, one diagonal slash borrowed from the A0 mark. */

@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --void: #050706;
  --deep: #0a1310;
  --emerald: #23da91;
  --mint: #b8ffe0;
  --teal: #0e5c45;
  --bone: #e9f2ec;
  --dim: #93a89e;
  --line: rgba(184, 255, 224, 0.14);
  --line-strong: rgba(184, 255, 224, 0.3);
  --glass: rgba(7, 15, 12, 0.72);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --voice: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4.4vw, 72px);
  --dock-space: 104px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  padding-bottom: var(--dock-space);
  background: transparent;
  color: var(--bone);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--emerald); color: #02130c; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--emerald); color: #02130c; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* ---------- background ---------- */
#nebula { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; background: radial-gradient(120% 90% at 85% 30%, #0b2a20 0, #06110d 45%, var(--void) 75%); }

/* ---------- the slash ---------- */
.slash { position: absolute; left: -4%; width: 108%; height: 0; pointer-events: none; transform: rotate(-13deg); }
.slash i { position: relative; display: block; height: 2px; margin-top: -1px; transform-origin: 0 50%; background: linear-gradient(90deg, transparent 0, rgba(35, 218, 145, 0.15) 12%, var(--emerald) 58%, var(--mint) 93%, #fff 100%); box-shadow: 0 0 22px 1px rgba(35, 218, 145, 0.5); }
.slash i::after { content: ""; position: absolute; right: 0; top: 50%; width: 72px; height: 72px; transform: translate(50%, -50%); background:
    linear-gradient(90deg, transparent, #fff, transparent) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent, #fff, transparent) center / 1.5px 100% no-repeat,
    radial-gradient(closest-side, rgba(184, 255, 224, 0.95), rgba(35, 218, 145, 0.35) 35%, transparent 70%) center / 46% 46% no-repeat; }
.js .slash i { transform: scaleX(0); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease); }
.nav.is-stuck { padding-block: 12px; background: linear-gradient(rgba(5, 7, 6, 0.82), rgba(5, 7, 6, 0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--display); letter-spacing: -0.01em; }
.nav-brand img { border-radius: 50%; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 14px; color: var(--dim); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--emerald); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.is-current { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 110px var(--pad) 36px; overflow: hidden; }
.hero-title { align-self: center; font-weight: 400; }
.hero-hello { display: block; margin: 0 0 clamp(6px, 1.2vw, 18px) clamp(0px, 2.6vw, 44px); font: italic 400 clamp(30px, 4.6vw, 76px)/1.05 var(--voice); color: var(--bone); }
.hero-hello strong { font: 600 0.62em/1 var(--display); letter-spacing: -0.03em; color: var(--mint); }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; font: 400 clamp(30px, 9.8vw, 190px)/1 var(--display); letter-spacing: -0.055em; text-transform: uppercase; white-space: nowrap; }
.hero-line > span { display: inline-block; background: linear-gradient(100deg, #f4faf6 0%, #a9c4b7 38%, #eef6f1 58%, #5fa487 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-line-2 { text-align: right; }
.hero-slash { top: 58%; z-index: -1; }
.js .hero-line > span { transform: translateY(108%); }
.js .hero-hello, .js .hero-foot, .js .nav, .js .dock { opacity: 0; }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 15, 12, 0.45); font-size: 14px; transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.35s var(--ease); }
.socials a svg { width: 17px; height: 17px; color: var(--emerald); transition: color 0.25s; }
.socials a:hover { border-color: var(--emerald); background: var(--emerald); color: #02130c; transform: translateY(-2px); }
.socials a:hover svg { color: #02130c; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.hero-scroll i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--mint); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- statement ---------- */
.statement { padding: clamp(110px, 22vh, 240px) var(--pad); }
.statement-text { margin-left: auto; margin-right: clamp(0px, 6vw, 110px); font: italic 400 clamp(32px, 5.2vw, 84px)/1.08 var(--voice); letter-spacing: -0.01em; max-width: min(100%, 1040px); }
.statement-text .w { display: inline-block; }
.js .statement-text .w { opacity: 0.14; }

/* ---------- chapters ---------- */
.chapter { position: relative; display: grid; align-content: center; gap: clamp(26px, 3.6vw, 52px); min-height: 100svh; padding: clamp(96px, 13vh, 170px) var(--pad); }
.era { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--emerald); }
.era::before { content: ""; width: 34px; height: 1px; background: currentColor; transform: rotate(-13deg); }
.chapter-title, .connect-title { font: 500 clamp(38px, 6.6vw, 112px)/1 var(--display); letter-spacing: -0.05em; }
.title-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.title-mask > span { display: block; }
.js .title-mask > span { transform: translateY(112%); }
.js [data-reveal] { opacity: 0; }
.voice { max-width: 26ch; font: italic 400 clamp(22px, 2.5vw, 36px)/1.22 var(--voice); color: #cfe0d7; }

.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--emerald); border-radius: 999px; background: var(--emerald); color: #02130c; font-weight: 600; font-size: 15px; transition: background 0.25s, color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; }
.button svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform 0.35s var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(35, 218, 145, 0.7); }
.button:hover svg { transform: translate(3px, -3px); }
.button-quiet { background: rgba(7, 15, 12, 0.5); color: var(--bone); border-color: var(--line-strong); font-weight: 500; }
.button-quiet:hover { border-color: var(--emerald); box-shadow: none; }
.chapter-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chapter-actions-center { justify-content: center; }

/* Aether Zero */
.chapter-a0 { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
.chapter-copy { display: grid; gap: clamp(18px, 2.2vw, 30px); justify-items: start; }
.a0-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 76svh); margin-inline: auto; perspective: 1100px; }
.a0-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 218, 145, 0.32), rgba(14, 92, 69, 0.2) 55%, transparent 72%); filter: blur(22px); }
.a0-orbit { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; transform: rotate(-24deg); }
.a0-orbit ellipse { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 9; }
.a0-moon { fill: var(--mint); stroke: none; filter: drop-shadow(0 0 8px var(--emerald)); }
.a0-logo { position: relative; width: 88%; height: auto; filter: drop-shadow(0 30px 60px rgba(4, 40, 27, 0.9)); will-change: transform; }
.facts { display: grid; gap: 0; width: 100%; max-width: 460px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); }
.facts dd { display: inline-flex; align-items: center; gap: 9px; text-align: right; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(35, 218, 145, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 10px rgba(35, 218, 145, 0); } }

/* clips */
.chapter-clips { justify-items: center; }
.chapter-head { width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; row-gap: 14px; }
.chapter-head .era { grid-column: 1 / -1; }
.stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 1.8vw, 26px); width: 100%; perspective: 1400px; }
.stage-wide { max-width: min(1180px, 118svh); }
.stage-frame { position: relative; overflow: hidden; border-radius: clamp(12px, 1.6vw, 22px); background: #030605; box-shadow: 0 0 0 1px var(--line-strong), 0 50px 130px -40px rgba(35, 218, 145, 0.5), 0 0 90px -30px rgba(35, 218, 145, 0.35); will-change: transform; }
.stage-wide .stage-frame { aspect-ratio: 16 / 9; }
.stage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.45s; }
.stage-frame iframe.is-ready { opacity: 1; }
.stage-wait { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 80% at 70% 30%, rgba(35, 218, 145, 0.16), transparent 70%); }
.stage-wait img { border-radius: 50%; opacity: 0.8; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.14); opacity: 1; } }
.stage-slash { top: 50%; z-index: 3; opacity: 0; }
.stage-arrow { display: grid; place-items: center; width: clamp(40px, 4vw, 56px); height: clamp(40px, 4vw, 56px); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--glass); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease); }
.stage-arrow:hover { background: var(--emerald); border-color: var(--emerald); color: #02130c; }
.stage-prev:hover { transform: translateX(-4px); }
.stage-next:hover { transform: translateX(4px); }
.stage-arrow:active { transform: scale(0.92); }

.stage-caption { display: grid; gap: 4px; justify-items: center; text-align: center; }
.stage-caption-left { justify-items: start; text-align: left; }
.stage-now { display: inline-flex; align-items: baseline; gap: 14px; }
.stage-now strong { font: 500 clamp(18px, 1.7vw, 24px)/1.2 var(--display); letter-spacing: -0.03em; }
.stage-now span { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 14px; }
.stage-hint { font-size: 14px; color: var(--dim); }

.picker { display: flex; gap: 10px; }
.picker-thumbs { width: 100%; max-width: min(1180px, 118svh); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.picker-thumbs .clip-pick { position: relative; display: block; overflow: hidden; border-radius: 12px; outline: 1px solid var(--line); outline-offset: -1px; transition: transform 0.4s var(--ease), outline-color 0.25s; }
.picker-thumbs img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.5; filter: saturate(0.7); transition: opacity 0.3s, filter 0.3s, transform 0.6s var(--ease); }
.picker-thumbs span { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(3, 6, 5, 0.92)); font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-thumbs .clip-pick:hover { transform: translateY(-4px); }
.picker-thumbs .clip-pick:hover img, .picker-thumbs .clip-pick[aria-current="true"] img { opacity: 1; filter: none; }
.picker-thumbs .clip-pick[aria-current="true"] { outline: 2px solid var(--emerald); outline-offset: -2px; box-shadow: 0 12px 34px -14px rgba(35, 218, 145, 0.8); }
.picker-pips .clip-pick { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; font: 500 14px/1 var(--display); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease); }
.picker-pips .clip-pick:hover { border-color: var(--emerald); transform: translateY(-3px); }
.picker-pips .clip-pick[aria-current="true"] { background: var(--emerald); border-color: var(--emerald); color: #02130c; }

.chapter-tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: stretch; }
.tall-copy { display: grid; gap: clamp(18px, 2.2vw, 28px); justify-items: start; }
.stage-tall { justify-self: center; grid-template-columns: auto auto auto; width: auto; }
.stage-stack { position: relative; }
.stage-tall .stage-frame { height: min(70svh, 660px); aspect-ratio: 9 / 16; }
.stage-ghost { position: absolute; inset: 4% 0; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(14, 92, 69, 0.42), rgba(5, 7, 6, 0.7)); }
.stage-ghost-a { transform: translateX(-17%) rotate(-7deg); }
.stage-ghost-b { transform: translateX(17%) rotate(7deg); }

/* ---------- connect ---------- */
.connect { display: grid; gap: clamp(18px, 2.4vw, 30px); padding: clamp(110px, 18vh, 200px) var(--pad) clamp(60px, 9vh, 110px); }
.connect-list { margin-top: clamp(12px, 2vw, 28px); border-top: 1px solid var(--line); }
.connect-list a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(14px, 2.2vw, 32px); padding: clamp(18px, 2.6vw, 34px) clamp(4px, 1vw, 16px); border-bottom: 1px solid var(--line); overflow: hidden; transition: color 0.3s, padding 0.5s var(--ease); }
.connect-list a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--emerald), #7dffc4); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: -1; }
.connect-list strong { font: 500 clamp(26px, 4.6vw, 72px)/1 var(--display); letter-spacing: -0.05em; }
.connect-list span { color: var(--dim); font-size: clamp(14px, 1.3vw, 18px); transition: color 0.3s; }
.connect-icon { width: clamp(24px, 2.6vw, 38px); height: clamp(24px, 2.6vw, 38px); color: var(--emerald); transition: color 0.3s; }
.connect-out { width: clamp(22px, 2.4vw, 34px); height: clamp(22px, 2.4vw, 34px); transition: transform 0.5s var(--ease); }
.connect-list a:hover, .connect-list a:focus-visible { color: #02130c; padding-inline: clamp(14px, 2.4vw, 36px); }
.connect-list a:hover::before, .connect-list a:focus-visible::before { transform: none; }
.connect-list a:hover span, .connect-list a:hover .connect-icon, .connect-list a:focus-visible span, .connect-list a:focus-visible .connect-icon { color: #02130c; }
.connect-list a:hover .connect-out { transform: translate(5px, -5px) rotate(0.001deg); }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px var(--pad) 30px; color: var(--dim); font-size: 14px; }

/* ---------- music dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 40; width: min(1120px, calc(100% - 24px)); margin-inline: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(35, 218, 145, 0.45); }
.dock-bar { position: relative; display: grid; grid-template-columns: auto minmax(110px, 1fr) auto minmax(180px, 1.5fr) auto; align-items: center; gap: clamp(10px, 1.6vw, 22px); padding: 10px 14px 10px 10px; }
.dock-art { position: relative; width: 50px; height: 50px; border-radius: 14px; overflow: hidden; outline: 1px solid var(--line); transition: transform 0.35s var(--ease); }
.dock-art:hover { transform: scale(1.06); }
.dock-art img { width: 100%; height: 100%; object-fit: cover; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 9px; background: linear-gradient(transparent 20%, rgba(3, 6, 5, 0.78)); opacity: 0; transition: opacity 0.3s; }
.bars i { width: 3px; height: 14px; border-radius: 2px; background: var(--mint); transform-origin: 50% 100%; animation: bars 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
body.playing .bars { opacity: 1; }
body:not(.playing) .bars i { animation-play-state: paused; }
.dock-meta { display: grid; min-width: 0; line-height: 1.25; }
.dock-meta strong { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-transport { display: flex; align-items: center; gap: 4px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #cfe0d7; transition: background 0.2s, color 0.2s, transform 0.2s; }
.icon-button:hover { background: rgba(184, 255, 224, 0.1); color: #fff; }
.icon-button:active { transform: scale(0.9); }
.icon-button:disabled { opacity: 0.35; cursor: default; }
.icon-button svg { width: 18px; height: 18px; }
.play-button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--emerald); color: #02130c; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.play-button:hover { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(35, 218, 145, 0.18); }
.play-button:active { transform: scale(0.94); }
.play-button svg { width: 20px; height: 20px; stroke-width: 2.4; }
.dock-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--dim); }
.dock-tools { display: flex; align-items: center; gap: 4px; }
.dock-state { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: var(--emerald); color: #02130c; font-size: 13.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
body[data-sound="waiting"] .dock:not(.is-open) .dock-state { opacity: 1; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, -4px); } }

.range { --fill: 0%; appearance: none; -webkit-appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--emerald) var(--fill), rgba(184, 255, 224, 0.16) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(184, 255, 224, 0.16); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--emerald); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(35, 218, 145, 0.4); transition: box-shadow 0.2s, transform 0.2s; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(35, 218, 145, 0.25); transform: scale(1.15); }
.range:disabled { opacity: 0.45; cursor: default; }
.volume { width: 84px; }

.dock-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.dock.is-open .dock-panel { grid-template-rows: 1fr; }
.dock-panel-inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; padding: 0 14px; opacity: 0; transition: opacity 0.3s, padding 0.55s var(--ease); }
.dock.is-open .dock-panel-inner { padding: 14px 14px 6px; opacity: 1; transition-delay: 0s, 0s; border-bottom: 1px solid var(--line); }
.now { display: grid; align-content: start; gap: 12px; min-width: 0; }
.cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #030605; outline: 1px solid var(--line); }
.cover .track-art, .cover .media-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .media-video { object-fit: contain; background: #000; }
.cover [hidden] { display: none; }
.cover-button { position: absolute; right: 8px; bottom: 8px; background: rgba(3, 6, 5, 0.7); }
.cover-button:disabled { display: none; }
.now-category { font-size: 13px; color: var(--emerald); }
.now-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: #cfe0d7; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip svg { width: 15px; height: 15px; }
.chip:hover:not(:disabled) { border-color: var(--line-strong); color: #fff; }
.chip[aria-pressed="true"] { background: rgba(35, 218, 145, 0.16); border-color: var(--emerald); color: var(--mint); }
.chip:disabled { opacity: 0.45; cursor: default; }
.queue { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; max-height: min(52svh, 430px); }
.queue-head { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px; }
.queue-head h2 { font: 500 17px/1 var(--display); letter-spacing: -0.03em; }
.queue-head span { font-size: 13px; color: var(--dim); }
.tracks { overflow-y: auto; display: grid; align-content: start; gap: 2px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(184, 255, 224, 0.3) transparent; }
.track-row { display: grid; grid-template-columns: 24px 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background 0.2s; }
.track-row:hover { background: rgba(184, 255, 224, 0.07); }
.track-row[aria-current="true"] { background: rgba(35, 218, 145, 0.14); }
.track-number { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--dim); text-align: right; }
.track-mini { width: 54px; height: 34px; overflow: hidden; border-radius: 7px; background: #030605; }
.track-mini img { width: 100%; height: 100%; object-fit: cover; }
.track-copy { display: grid; min-width: 0; line-height: 1.25; }
.track-copy strong { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-copy small { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row[aria-current="true"] .track-copy strong { color: var(--mint); }
.row-mark { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.row-mark i { width: 3px; height: 100%; border-radius: 2px; background: var(--emerald); transform-origin: 50% 100%; animation: bars 0.9s ease-in-out infinite; }
.row-mark i:nth-child(2) { animation-delay: -0.3s; }
.row-mark i:nth-child(3) { animation-delay: -0.6s; }
body:not(.playing) .row-mark i { animation-play-state: paused; }
.queue-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 4px 8px; font-size: 12.5px; color: var(--dim); }
.add-tracks { display: inline-flex; align-items: center; gap: 7px; color: var(--emerald); font-size: 13.5px; cursor: pointer; }
.add-tracks svg { width: 15px; height: 15px; }
.add-tracks:hover { color: var(--mint); }
#local-files:focus-visible + span { outline: 2px solid var(--mint); }

/* ---------- dialog, toast, cursor ---------- */
.discord-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: #07100d; color: var(--bone); box-shadow: 0 40px 120px -20px #000; }
.discord-dialog::backdrop { background: rgba(2, 5, 4, 0.72); backdrop-filter: blur(6px); }
.discord-dialog h2 { font: 500 24px/1.1 var(--display); letter-spacing: -0.04em; margin-bottom: 12px; }
.discord-dialog p { color: #cfe0d7; }
.discord-dialog ol { display: grid; gap: 6px; margin: 18px 0 0; padding-left: 20px; list-style: decimal; color: #cfe0d7; font-size: 14.5px; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--dim); }
.dialog-close:hover { background: rgba(184, 255, 224, 0.1); color: #fff; }
.presence-preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(184, 255, 224, 0.04); }
.presence-preview > img:first-child { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.presence-preview div { display: grid; min-width: 0; line-height: 1.3; }
.presence-preview small { color: var(--dim); font-size: 12.5px; }
.presence-preview strong, .presence-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-brand { border-radius: 50%; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-note { margin-top: 16px; font-size: 13px; color: var(--dim) !important; }

.toast { position: fixed; left: 50%; bottom: calc(var(--dock-space) + 8px); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #07100d; font-size: 14px; box-shadow: 0 18px 50px -14px #000; }
.toast[hidden] { display: none; }

.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(184, 255, 224, 0.75); border-radius: 50%; pointer-events: none; opacity: 0; transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(35, 218, 145, 0.14); border-color: var(--emerald); }
.cursor.is-away { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .chapter-a0, .chapter-tall { grid-template-columns: minmax(0, 1fr); }
  .a0-visual { width: min(100%, 440px); }
  .chapter-head { grid-template-columns: minmax(0, 1fr); }
  .picker-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock-bar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .dock-seek { grid-column: 1 / -1; grid-row: 2; }
  .volume, #mute-button { display: none; }
  :root { --dock-space: 132px; }
  .dock-panel-inner { grid-template-columns: minmax(0, 1fr); }
  .now .cover { display: none; }
  .dock.is-video .now .cover { display: block; }
  .queue { max-height: min(44svh, 380px); }
}
@media (max-width: 640px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding-top: 96px; }
  .hero-line { letter-spacing: -0.06em; }
  .hero-scroll { display: none; }
  .statement-text { margin-right: 0; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stage-wide .stage-frame, .stage-tall .stage-stack { grid-column: 1 / -1; grid-row: 1; }
  .stage-tall { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stage-tall .stage-stack { justify-self: center; }
  .stage-tall .stage-frame { height: min(64svh, 560px); }
  .stage-prev { justify-self: end; }
  .stage-next { justify-self: start; }
  .picker-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-list a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .connect-list span { grid-column: 2; grid-row: 2; }
  .connect-out { grid-row: 1 / span 2; grid-column: 3; }
  .connect-icon { grid-row: 1 / span 2; }
  .dock { bottom: 8px; width: calc(100% - 16px); border-radius: 18px; }
  .dock-bar { gap: 8px; padding: 8px 10px 8px 8px; }
  #previous-button { display: none; }
  .dock-art { width: 44px; height: 44px; border-radius: 12px; }
}

html.calm *, html.calm *::before, html.calm *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
