/* ============================================================
   Meet YuE2 — retro-minimal studio
   Tokens, type and motion follow the Noiz Lab design system
   (one ink, one paper, one accent · Bowlby One display · 2px borders ·
   hard shadows · a single easing curve). The page rhythm follows yueai.ai:
   nav → hero → marquee → studio → how it works → features → cta → footer.
   ============================================================ */

/* ---------- fonts (self-hosted, Latin ranges only) ---------- */
@font-face {
  font-family: "Bowlby One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/google/BowlbyOne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/google/Inter-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/google/Inter-latin-var.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: "Yellowtail"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/google/Yellowtail-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Yellowtail"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/google/Yellowtail-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;
}
/* CJK display face — only fetched when a heading actually contains CJK glyphs */
@font-face {
  font-family: "Alibaba PuHuiTi 3"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("assets/fonts/AlibabaPuHuiTi-3-105-Heavy.woff2") format("woff2");
  unicode-range: U+2E80-9FFF, U+3000-303F, U+3040-30FF, U+FF00-FFEF, U+3400-4DBF;
}

/* ---------- tokens ---------- */
:root {
  --navy: #14151b;
  --navy-2: #0d0e13;
  --cream: #f0ecd9;
  --cream-2: #e7e1c9;
  --red: #fc3e57;
  --red-deep: #d92a44;
  --ink-soft: rgba(240, 236, 217, 0.66);
  --navy-soft: rgba(20, 21, 27, 0.62);
  --line-cream: rgba(240, 236, 217, 0.28);
  --line-navy: rgba(20, 21, 27, 0.22);
  --line-faint: rgba(240, 236, 217, 0.12);
  --wash: rgba(240, 236, 217, 0.035);
  --wave-on: #fc3e57;
  --wave-off: rgba(240, 236, 217, 0.3);

  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1320px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);

  --font-display: "Bowlby One", "Alibaba PuHuiTi 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Impact, sans-serif;
  --font-script: "Yellowtail", cursive;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* No CSS scroll-behavior:smooth here — it desynchronises ScrollTrigger's
   measure-and-restore scroll during refresh(). Anchors smooth-scroll via JS. */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  min-width: 320px; min-height: 100vh;
  background: var(--navy); color: var(--cream);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--red); color: var(--cream); }
.is-hidden { display: none !important; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* grain — the retro print texture over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; background: var(--navy);
}
.loader__disc { width: min(40vw, 200px); height: min(40vw, 200px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.loader__svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; animation: loader-spin 2.2s linear infinite; }
.gsap-ready .loader__svg { animation: none; }
.loader__text { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
.loader__foot { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(70vw, 280px); }
.loader__word { font-family: var(--font-script); font-size: 32px; line-height: 1; color: var(--cream); }
.loader__bar { position: relative; width: 100%; height: 2px; background: var(--line-cream); border-radius: 2px; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--red); border-radius: 2px; }
.loader__pct { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
html.loading, html.loading body { overflow: hidden; }

/* ---------- type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase; }
/* element-level :lang so English brand lines (hero slogan, footer wordmark) marked lang="en" keep the tight Latin leading */
.display:lang(zh) { line-height: 1.18; letter-spacing: 0; font-weight: 900; text-wrap: balance; }
.eyebrow { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.tracked { letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  border: 1.5px solid var(--cream); color: var(--cream);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s var(--ease);
}
.btn:not(.is-magnetic):hover { transform: translateY(-2px); }
.btn--solid { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn--solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--cream { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--cream:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* ---------- page shell + nav ---------- */
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h); padding: 14px 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  transition: background 0.4s var(--ease);
}
.nav.scrolled { background: rgba(20, 21, 27, 0.86); backdrop-filter: blur(8px); }
.nav.scrolled.on-cream { background: rgba(240, 236, 217, 0.9); }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; grid-column: 1; justify-self: start; line-height: 0; transition: transform 0.25s var(--ease); }
.logo-mark {
  display: block; width: calc(30px * 2100 / 749); height: 30px; background: var(--cream);
  -webkit-mask: url("brand-logo.png") center / contain no-repeat; mask: url("brand-logo.png") center / contain no-repeat;
  transition: background 0.25s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo:hover .logo-mark { background: var(--red); }
.nav.on-cream .logo-mark { background: var(--navy); }
.nav.on-cream .logo:hover .logo-mark { background: var(--red); }
.nav-links { grid-column: 2; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); opacity: 0.82; transition: opacity 0.25s, color 0.25s;
}
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-links .explore svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav.on-cream .nav-links a { color: var(--navy); }
.nav.on-cream .nav-links a:hover { color: var(--red); }
.header-utilities { grid-column: 3; display: flex; align-items: center; gap: 8px; justify-self: end; }
.header-social { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--line-cream); border-radius: 999px; background: transparent; color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-pill:hover { border-color: var(--red); color: var(--red); }
.nav-pill--collapsible { min-width: 34px; padding: 0 8px; gap: 0; transition: border-color 0.2s, color 0.2s, background 0.2s, padding 0.35s var(--ease); }
.nav-pill--collapsible > span { max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.35s var(--ease), margin-left 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav-pill--collapsible:hover, .nav-pill--collapsible:focus-visible { padding: 0 12px 0 10px; }
.nav-pill--collapsible:hover > span, .nav-pill--collapsible:focus-visible > span { max-width: 180px; margin-left: 7px; opacity: 1; }
.nav-pill svg { width: 15px; height: 15px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-button { width: 34px; padding: 0; }
.social-button svg { fill: currentColor; stroke: none; }
.wechat-anchor { position: relative; }
html:not(:lang(zh)) .wechat-anchor { display: none; }
.wechat-anchor.is-open .social-button { border-color: var(--cream); background: var(--cream); color: var(--navy); }
.wechat-qr {
  position: absolute; z-index: 7; left: 50%; top: calc(100% + 12px); width: 188px; padding: 8px;
  border: 2px solid var(--cream); border-radius: 14px; background: #fff;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35));
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.wechat-qr::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.wechat-tail { position: absolute; z-index: 1; top: -15px; left: 50%; width: 36px; height: 16px; display: block; transform: translateX(-50%); fill: var(--cream); }
.wechat-anchor:hover:not(.is-dismissed) .wechat-qr,
.wechat-anchor.is-open .wechat-qr { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.wechat-qr img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* language: a translate glyph at rest; the 中 | EN segment unfolds on hover */
.language-toggle:hover, .language-toggle:focus-visible { padding: 0 4px 0 9px; }
.lang-seg { display: inline-grid; grid-template-columns: 30px 1px 34px; align-items: center; height: 26px; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.lang-seg i { width: 1px; height: 12px; background: var(--line-cream); }
.lang-seg span { height: 26px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-soft); transition: color 0.2s, background 0.2s; }
.language-toggle[data-language="zh"] .lang-zh,
.language-toggle[data-language="en"] .lang-en { color: var(--navy); background: var(--cream); }
.nav.on-cream .nav-pill { border-color: var(--line-navy); color: var(--navy); }
.nav.on-cream .nav-pill:hover { border-color: var(--red); color: var(--red); }
.nav.on-cream .lang-seg i { background: var(--line-navy); }
.nav.on-cream .lang-seg span { color: var(--navy-soft); }
.nav.on-cream .language-toggle[data-language="zh"] .lang-zh,
.nav.on-cream .language-toggle[data-language="en"] .lang-en { color: var(--cream); background: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(880px, calc(100svh - var(--nav-h)));
  display: flex; flex-direction: column;
  padding: 22px 0 96px; text-align: center;
}
.hero-inner { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: clamp(36px, 6vh, 64px); }
.hero .eyebrow { margin-bottom: 26px; }

/* cover marquee — the yueai-style strip of song covers riding across the top of the hero */
.cover-strip {
  width: 100%; overflow: hidden; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cover-strip__track { display: flex; gap: 18px; width: max-content; padding: 0 9px; animation: strip-scroll 75s linear infinite; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }
.strip-item {
  position: relative; flex: 0 0 auto; width: 118px; height: 118px; padding: 0; border-radius: 50%; color: var(--cream);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.strip-item:hover, .strip-item:focus-visible { transform: translateY(-5px) scale(1.04); outline: 0; }
/* the record: black vinyl, fine grooves, cover art as the centre label, spindle hole */
.strip-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(240, 236, 217, .07) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 50%, #12131a 0 34%, #0b0c10 35% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(240, 236, 217, .35), inset 0 0 0 6px rgba(240, 236, 217, .06);
  transition: box-shadow 0.3s var(--ease);
}
.strip-disc img { position: absolute; left: 21%; top: 21%; width: 58%; height: 58%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); transition: opacity 0.3s; }
.strip-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #0b0c10; box-shadow: 0 0 0 1.5px rgba(240, 236, 217, .28); }
.fly-disc { position: fixed; inset: auto; z-index: 160; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); }
.strip-item:hover .strip-disc { box-shadow: inset 0 0 0 1.5px var(--cream), inset 0 0 0 6px rgba(240, 236, 217, .08); }
.strip-item.is-active .strip-disc { box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 7px rgba(252, 62, 87, .12); }
.strip-item.is-active .strip-disc img { opacity: 0.6; }
.strip-item.is-playing .strip-disc { animation: disc-spin 3.6s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.strip-btn {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center; border-radius: 50%; background: transparent; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
  transition: background 0.2s var(--ease), transform 0.25s var(--ease);
}
.strip-item:hover .strip-btn, .strip-item:focus-visible .strip-btn { background: var(--red); }
.strip-btn svg { width: 16px; height: 16px; fill: currentColor; }
.strip-btn .ico-pause, .strip-item.is-playing .strip-btn .ico-play { display: none; }
.strip-item.is-playing .strip-btn .ico-pause { display: block; }
.hero-mark-wrap { margin: 6px 0 38px; line-height: 0; }
.hero-mark {
  display: block; width: clamp(150px, 19vw, 250px); aspect-ratio: 1; background: var(--cream);
  -webkit-mask: url("assets/yue2-mark.png") center / contain no-repeat; mask: url("assets/yue2-mark.png") center / contain no-repeat;
  transition: background 0.3s var(--ease);
}
.hero-mark:hover { background: var(--red); }
.hero .lead { max-width: 58ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-soft); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--red); color: var(--cream);
  border-top: 2px solid var(--cream); border-bottom: 2px solid var(--cream);
  padding: 15px 0; overflow: hidden; white-space: nowrap; user-select: none;
}
.marquee-track { display: inline-flex; animation: scroll-x 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.gsap-ready .marquee-track { animation: none; }
.marquee-track span { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 2.4vw, 28px); line-height: 1; }
.marquee-track span::after { content: "✺"; margin: 0 30px; font-size: 0.7em; vertical-align: middle; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 110px 0; }
.on-cream { background: var(--cream); color: var(--navy); }
.on-cream .lead { color: var(--navy-soft); }
.on-cream .eyebrow { color: var(--red); }
.section-head { margin-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 34ch); align-items: end; gap: 40px 56px; }
.section-head > div { min-width: 0; }
.section-head > div:only-child { grid-column: 1 / -1; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(36px, 5.6vw, 84px); }
.section-head p { color: var(--ink-soft); font-size: 16px; padding-bottom: 6px; }
.on-cream .section-head p { color: var(--navy-soft); }
.display .fx-word, .footer-big .fx-word { white-space: nowrap; }

/* ---------- how it works (3-up on cream) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-item {
  display: flex; flex-direction: column; gap: 14px;
  border: 2px solid var(--line-navy); border-radius: var(--radius-lg); padding: 28px 26px 30px;
  background: rgba(20, 21, 27, 0.02);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.cap-item:hover { transform: translateY(-4px); border-color: var(--navy); background: rgba(20, 21, 27, 0.05); box-shadow: 10px 12px 0 var(--red); }
.cap-num { font-family: var(--font-display); font-size: 14px; color: var(--red); letter-spacing: 0.16em; }
.cap-item h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; line-height: 1; color: var(--navy); }
.cap-item h3:lang(zh) { font-weight: 900; line-height: 1.2; }
.cap-item p { font-size: 14.5px; line-height: 1.55; color: var(--navy-soft); }

/* ---------- features (alternating rows, yueai rhythm) ---------- */
.feature-rows { display: grid; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center;
  padding: 60px 0; border-top: 2px solid var(--line-cream);
}
.feature:last-child { border-bottom: 2px solid var(--line-cream); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-tag {
  display: inline-flex; margin-bottom: 18px; padding: 6px 12px;
  border: 1.5px solid var(--red); border-radius: 999px; color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.feature h3 { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 18px; line-height: 0.95; }
.feature h3:lang(zh) { line-height: 1.18; }
.feature p { color: var(--ink-soft); font-size: 16px; max-width: 46ch; }
.mock {
  border: 2px solid var(--cream); border-radius: var(--radius-lg); background: var(--navy-2); overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.feature:hover .mock { box-shadow: 12px 14px 0 var(--red); transform: translate(-3px, -3px); }
.mock .demo-bar { margin: 0; }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-field { border: 1.5px solid var(--line-cream); border-radius: var(--radius); padding: 14px 16px; background: var(--wash); }
.mock-field small { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.mock-field p { font-size: 13px; line-height: 1.6; color: var(--cream); white-space: pre-line; }
.mock-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mock-chip { padding: 6px 11px; border: 1.5px solid var(--line-cream); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.mock-generate { margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--red); color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.mock-track, .mock-row { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line-cream); border-radius: var(--radius); padding: 12px 14px; background: var(--wash); }
.mock-track.is-result { border-color: rgba(252, 62, 87, 0.45); background: rgba(252, 62, 87, 0.08); }
.mock-art { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--radius); border: 1.5px solid var(--cream); font-size: 18px; }
.mock-art--red { background: var(--red); border-color: var(--red); }
.mock-meta { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mock-meta b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-meta small { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-soft); }
.mock-arrow { font-family: var(--font-display); font-size: 22px; color: var(--red); text-align: center; line-height: 1; }
.mock-play { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--cream); font-size: 11px; padding-left: 2px; }
.mock-state { padding: 5px 10px; border: 1.5px solid var(--line-cream); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.mock-state.is-done { background: var(--cream); border-color: var(--cream); color: var(--navy); }
/* tiny equalizer, borrowed from the lab product pages */
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave span { flex: 1; max-width: 5px; height: 20%; border-radius: 2px; background: var(--red); animation: wave 1.1s ease-in-out infinite; opacity: 0.5; }
.wave.live span { opacity: 1; }
.wave span:nth-child(2) { animation-delay: 0.08s; } .wave span:nth-child(3) { animation-delay: 0.16s; } .wave span:nth-child(4) { animation-delay: 0.24s; }
.wave span:nth-child(5) { animation-delay: 0.32s; } .wave span:nth-child(6) { animation-delay: 0.12s; } .wave span:nth-child(7) { animation-delay: 0.2s; }
.wave span:nth-child(8) { animation-delay: 0.28s; } .wave span:nth-child(9) { animation-delay: 0.04s; } .wave span:nth-child(10) { animation-delay: 0.36s; }
.wave span:nth-child(11) { animation-delay: 0.14s; } .wave span:nth-child(12) { animation-delay: 0.3s; }
@keyframes wave { 0%, 100% { height: 14%; } 50% { height: 92%; } }

/* ---------- persistent player (bottom bar) ---------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--navy-2); border-top: 2px solid var(--cream);
}
.player-bar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 32px; min-height: 76px;
  display: grid; grid-template-columns: 52px minmax(140px, 220px) auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
}
.player-disc { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); transition: filter 0.25s var(--ease); }
.player-disc:hover .strip-disc { box-shadow: inset 0 0 0 1.5px var(--cream), inset 0 0 0 5px rgba(240, 236, 217, .08); }
.player-bar.is-playing .player-disc .strip-disc { box-shadow: inset 0 0 0 1.5px var(--red), inset 0 0 0 5px rgba(252, 62, 87, .12); }
.player-disc .strip-disc::after { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.player-meta { min-width: 0; display: grid; gap: 2px; }
.player-meta strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta span { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.player-skip, .player-play { display: grid; place-items: center; border-radius: 50%; color: var(--cream); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.player-skip { width: 36px; height: 36px; border: 1.5px solid var(--line-cream); }
.player-skip:hover { border-color: var(--red); color: var(--red); }
.player-skip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-play { width: 44px; height: 44px; background: var(--red); border: 1.5px solid var(--red); }
.player-play:hover { background: var(--red-deep); border-color: var(--red-deep); transform: scale(1.05); }
.player-play svg { width: 18px; height: 18px; fill: currentColor; }
.player-play .ico-pause, .player-bar.is-playing .player-play .ico-play { display: none; }
.player-bar.is-playing .player-play .ico-pause { display: block; }
.player-progress { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-time { flex: 0 0 auto; min-width: 38px; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.player-time:last-child { text-align: right; }
.player-track { position: relative; flex: 1 1 auto; height: 18px; cursor: pointer; }
.player-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 999px; background: var(--line-cream); }
.player-track i { position: absolute; left: 0; top: 50%; height: 3px; width: 0%; margin-top: -1.5px; border-radius: 999px; background: var(--red); }
.player-track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--cream); border: 2px solid var(--navy-2); opacity: 0; transition: opacity 0.2s; }
.player-track:hover i::after, .player-track:focus-visible i::after { opacity: 1; }
.player-track:focus-visible { outline: 0; }
.player-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--line-cream); border-radius: 50%; color: var(--cream); transition: border-color 0.2s, color 0.2s; }
.player-close:hover { border-color: var(--red); color: var(--red); }
.player-close svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.has-player .page-shell { padding-bottom: 78px; }
body.has-player .toast { bottom: 96px; }
body.has-results.has-player .composer { margin-bottom: 92px; }

/* ---------- cta band ---------- */
.cta-band { background: var(--red); color: var(--cream); text-align: center; padding: 120px 0; }
.cta-band .eyebrow { color: var(--cream); }
.cta-band h2 { font-size: clamp(44px, 8.6vw, 140px); margin: 14px 0 24px; }
.cta-band .lead { color: rgba(240, 236, 217, 0.85); max-width: 44ch; margin: 0 auto; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--cream); padding: 80px 0 40px; border-top: 2px solid var(--line-cream); }
.footer-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 30px 34px; margin-bottom: 70px;
  border: 2px solid var(--line-cream); border-radius: var(--radius-lg); background: rgba(240, 236, 217, 0.04);
}
.footer-promo .eyebrow { margin-bottom: 10px; }
.footer-promo__text h3 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1; }
.footer-promo .btn { white-space: nowrap; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-top > div:first-child { flex: 1 1 auto; min-width: 0; }
.footer-cols { flex: 0 0 auto; }
.footer-logo { margin-bottom: 20px; }
.footer-big { font-size: clamp(48px, 10.4vw, 150px); line-height: 0.86; margin: 20px 0 50px; }
.footer-big .red { color: var(--red); }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; padding-top: 16px; flex: 0 0 auto; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; transition: color 0.25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); border-top: 2px solid var(--line-cream); padding-top: 24px; letter-spacing: 0.04em; }
.footer-bot a:hover { color: var(--red); }

/* ============================================================
   STUDIO — the tool itself
   ============================================================ */
.studio { padding: 72px 0 110px; }
.studio-wrap { max-width: 1180px; }

/* mode tabs */
.mode-tabs {
  width: fit-content; margin: 0 auto 22px; padding: 4px;
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line-cream); border-radius: 999px; background: var(--navy-2);
}
.mode-tab {
  min-width: 150px; height: 42px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; color: var(--ink-soft);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.mode-tab:hover { color: var(--red); }
.mode-tab.is-active { color: var(--navy); background: var(--cream); }
.mode-tab:active { transform: scale(0.98); }
.mode-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-tab-icon { font-size: 15px; color: var(--red); }
.mode-tab.is-active .mode-tab-icon { color: var(--red); }

/* back + queue row (visible only while reviewing results) */
.studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.has-results .studio-bar { margin-bottom: 12px; }
.back-button {
  height: 38px; padding: 0 16px 0 10px; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--cream);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.back-button:hover { border-color: var(--red); color: var(--red); }
.back-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.back-button:hover svg { transform: translateX(-3px); }
.queue-link {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1.5px solid var(--red); border-radius: 999px; color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.queue-link:hover { background: var(--red); color: var(--cream); transform: translateY(-1px); }

/* framed surfaces (the "demo window" of the lab pages) */
.composer, .result-stage, .cover-editor, .cover-result-card, .cover-upload-panel {
  position: relative; border: 2px solid var(--cream); border-radius: var(--radius-lg); background: var(--navy-2);
}
.demo-bar {
  display: flex; align-items: center; gap: 8px; margin: 0 -20px 18px; padding: 12px 20px;
  border-bottom: 2px solid var(--cream); color: var(--ink-soft);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--cream); }
.demo-bar .spacer { flex: 1; }

/* ---------- composer (text to song) ---------- */
.composer {
  --composer-body-max-h: 640px; --collapse-preview-h: 52px;
  --collapse-phase-duration: .28s; --collapse-phase-ease: cubic-bezier(.55, 0, .18, 1);
  --expand-phase-duration: .34s; --expand-phase-ease: var(--ease);
  display: grid; overflow: hidden;
}
.composer-body, .collapse-preview { min-width: 0; grid-column: 1; grid-row: 1; }
.composer-body {
  max-height: var(--composer-body-max-h); padding: 0 20px 0; overflow: hidden;
  opacity: 1; transform: translateY(0) scale(1); transform-origin: bottom center; will-change: max-height, opacity, transform;
  transition: max-height var(--collapse-phase-duration) var(--collapse-phase-ease), padding var(--collapse-phase-duration) var(--collapse-phase-ease), opacity .14s ease, transform .22s var(--collapse-phase-ease);
}
.composer:not(.is-collapsed) .composer-body { transition: max-height var(--expand-phase-duration) var(--expand-phase-ease), padding var(--expand-phase-duration) var(--expand-phase-ease), opacity .18s ease .08s, transform .28s var(--expand-phase-ease) .04s; }
.collapse-preview {
  position: relative; z-index: 2; width: 100%; height: 0; max-height: 0; padding: 0 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.992); transform-origin: top center;
  border-radius: 12px; background: var(--navy-2); text-align: left; pointer-events: none;
  will-change: height, opacity, transform;
  transition: height var(--collapse-phase-duration) var(--collapse-phase-ease), max-height var(--collapse-phase-duration) var(--collapse-phase-ease), opacity .12s ease, transform .18s var(--collapse-phase-ease), visibility 0s linear var(--collapse-phase-duration);
}
.composer.is-collapsed { cursor: pointer; }
.composer.is-collapsed .composer-body { max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(8px) scale(.985); pointer-events: none; transition: max-height var(--collapse-phase-duration) var(--collapse-phase-ease), padding var(--collapse-phase-duration) var(--collapse-phase-ease), opacity .12s ease, transform .2s var(--collapse-phase-ease); }
.composer.is-collapsed .collapse-preview { height: var(--collapse-preview-h); max-height: var(--collapse-preview-h); visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; transition: height var(--expand-phase-duration) var(--expand-phase-ease), max-height var(--expand-phase-duration) var(--expand-phase-ease), opacity .18s ease .08s, transform .24s var(--expand-phase-ease) .06s, visibility 0s linear 0s; }
.compact-spark { color: var(--red); font-size: 18px; }
.compact-prompt { overflow: hidden; color: var(--cream); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.compact-status { padding: 6px 12px; border: 1.5px solid var(--red); border-radius: 999px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* fields */
.field-block, .cover-field {
  position: relative; min-height: 148px; padding: 18px 20px 34px;
  border: 1.5px solid var(--line-cream); border-radius: var(--radius); background: var(--wash);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field-block:hover, .cover-field:hover { border-color: rgba(240, 236, 217, 0.5); }
.field-block:focus-within, .cover-field:focus-within { border-color: var(--red); background: rgba(252, 62, 87, 0.05); }
.field-block + .field-block { margin-top: 12px; }
.field-block label, .cover-field label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink-soft); font-size: 12px; }
.field-block label strong, .cover-field label strong { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.field-block textarea, .cover-field textarea {
  width: 100%; height: 78px; margin-top: 14px; padding: 0; resize: none; border: 0; outline: 0;
  background: transparent; color: var(--cream); font-size: 14px; line-height: 1.65;
  scrollbar-width: thin; scrollbar-color: var(--line-cream) transparent;
}
.field-block textarea::-webkit-scrollbar, .cover-field textarea::-webkit-scrollbar { width: 6px; }
.field-block textarea::-webkit-scrollbar-thumb, .cover-field textarea::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-cream); }
.lyrics-block { min-height: 218px; }
.lyrics-block textarea { height: 145px; }
textarea::placeholder, input::placeholder { color: rgba(240, 236, 217, 0.34); opacity: 1; }
.counter { position: absolute; right: 16px; bottom: 12px; color: rgba(240, 236, 217, 0.4); font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* toolbar */
.composer-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 0; }
.options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.option-button {
  height: 38px; padding: 0 14px 0 11px; display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--cream);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; transition: border-color 0.2s, color 0.2s;
}
.option-button:hover { border-color: var(--red); color: var(--red); }
.option-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.generate-button {
  min-width: 200px; height: 54px; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1.5px solid var(--red); border-radius: 999px; background: var(--red); color: var(--cream);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.generate-button:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cream); }
.generate-button svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.generate-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.generate-copy strong { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.generate-copy small { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(240, 236, 217, 0.72); }
.generate-button.is-upgrade { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.generate-button.is-upgrade small { color: var(--navy-soft); }
.generate-button.is-upgrade:hover { background: var(--red); border-color: var(--red); color: var(--cream); }
.generate-button.is-upgrade:hover small { color: rgba(240, 236, 217, 0.72); }
.generate-button.is-submitting { opacity: .55; cursor: wait; pointer-events: none; }

/* ---------- results ---------- */
.results-stack { margin-bottom: 14px; display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; }
.result-stage {
  min-height: 280px; padding: 26px 28px;
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .7fr); gap: 28px;
}
.result-stage.is-entering, .cover-result-card { animation: result-enter .5s var(--ease) both; transform-origin: 50% 0; }
@keyframes result-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.generation-status { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.spinner { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid var(--line-cream); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.generation-status.is-complete { color: var(--cream); }
.generation-status.is-complete .spinner { border: 0; animation: none; }
.generation-status.is-complete .spinner::after { content: "✓"; color: var(--red); font-weight: 800; }
.generation-status.is-failed { color: var(--red); }
.generation-status.is-failed .spinner { border: 0; animation: none; }
.generation-status.is-failed .spinner::after { content: "×"; color: var(--red); font-size: 22px; font-weight: 700; line-height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-copy h2, .cover-result-main h2 {
  margin: 18px 0 12px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.02; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.result-copy h2:lang(zh), .cover-result-main h2:lang(zh) { line-height: 1.25; }
.result-chips { min-height: 30px; display: flex; gap: 7px; flex-wrap: wrap; }
.result-chip { padding: 5px 11px; border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.candidate-list { margin-top: 22px; display: grid; gap: 14px; }
.candidate { display: grid; grid-template-columns: 44px 54px minmax(140px, 1fr) 92px 36px; align-items: center; gap: 12px; }
.play-button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--cream); border-radius: 50%; color: var(--cream);
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.play-button:hover:not(:disabled) { background: var(--red); border-color: var(--red); transform: scale(1.05); }
.play-button:disabled { cursor: default; opacity: .5; }
.play-button svg { width: 16px; height: 16px; fill: currentColor; }
.play-button.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--line-cream); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.version { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; }
.wave-wrap { position: relative; height: 42px; min-width: 100px; cursor: pointer; }
.waveform { width: 100%; height: 42px; display: block; }
.candidate.is-loading .wave-wrap { height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(240, 236, 217, .08) 25%, rgba(240, 236, 217, .2) 50%, rgba(240, 236, 217, .08) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; cursor: default; }
.candidate.is-audio-loading .wave-wrap { border-radius: 999px; background: linear-gradient(90deg, rgba(240, 236, 217, .05) 25%, rgba(240, 236, 217, .12) 50%, rgba(240, 236, 217, .05) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; cursor: wait; }
.candidate.is-audio-loading .waveform { opacity: .35; }
@keyframes shimmer { to { background-position: -200% 0; } }
.duration { min-width: 92px; color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.download-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--line-cream); border-radius: 50%; color: var(--cream); transition: border-color 0.2s, color 0.2s; }
.download-button:hover { border-color: var(--red); color: var(--red); }
.download-button[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.download-button.is-busy { opacity: .5; cursor: progress; animation: download-pulse 0.9s ease-in-out infinite alternate; }
@keyframes download-pulse { to { opacity: 1; } }
.download-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lyrics-only, .cover-result-lyrics { min-height: 220px; padding: 16px 18px; border: 1.5px solid var(--line-cream); border-radius: var(--radius); background: var(--wash); overflow: hidden; }
.lyrics-title-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1.5px solid var(--line-cream); color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.icon-button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); transition: background 0.2s, color 0.2s; }
.icon-button:hover { background: var(--cream); color: var(--navy); }
.icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lyrics-scroll { max-height: 190px; padding-top: 12px; overflow: auto; color: var(--ink-soft); font-size: 13px; line-height: 1.8; white-space: pre-wrap; scrollbar-width: thin; scrollbar-color: var(--line-cream) transparent; }

/* ---------- cover studio ---------- */
body.cover-mode #resultsStack, body.cover-mode #composer { display: none !important; }
.cover-root { animation: cover-fade .35s var(--ease) both; }
@keyframes cover-fade { from { opacity: 0; transform: translateY(8px); } }
.cover-upload-panel { min-height: 480px; padding: 46px 40px 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cover-kicker { padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--red); border-radius: 999px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.cover-upload-panel h1 { max-width: 760px; margin: 22px 0 12px; font-size: clamp(30px, 4.4vw, 60px); }
.cover-upload-panel > p { margin: 0 0 30px; color: var(--ink-soft); font-size: 15px; }
.cover-dropzone {
  width: min(690px, 100%); min-height: 240px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--red); border-radius: var(--radius); background: transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.cover-dropzone:hover, .cover-dropzone.is-dragging { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); background: rgba(252, 62, 87, 0.05); }
.cover-dropzone.is-uploading { cursor: progress; }
.visually-hidden-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-disc { width: 62px; height: 62px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(252, 62, 87, .45); color: var(--red); font-size: 26px; transition: transform 0.25s var(--ease); }
.cover-dropzone:hover .upload-disc { transform: scale(1.08); }
.cover-dropzone strong { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.cover-dropzone > span:not(.upload-disc):not(.choose-file) { margin-top: 8px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.04em; }
.cover-dropzone .choose-file { margin-top: 20px; padding: 10px 20px; border: 1.5px solid var(--cream); border-radius: 999px; color: var(--cream); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.cover-dropzone:hover .choose-file { background: var(--cream); color: var(--navy); }
.demo-audio-button { margin-top: 10px; padding: 4px 8px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; }

.cover-workspace { display: grid; gap: 14px; }
.cover-results { display: grid; gap: 14px; }
.cover-editor { padding: 0 20px 20px; }
.source-audio-card {
  min-height: 76px; padding: 11px 14px; display: grid; grid-template-columns: 50px minmax(0, 1fr) 40px auto; gap: 12px; align-items: center;
  border: 1.5px solid rgba(252, 62, 87, 0.4); border-radius: var(--radius); background: rgba(252, 62, 87, 0.08);
}
.history-source-upload {
  min-height: 76px; padding: 11px 14px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 13px; align-items: center;
  border: 2px dashed var(--line-cream); border-radius: var(--radius);
}
.history-source-upload .replace-file { padding-inline: 16px; }
.source-art { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius); background: var(--red); color: var(--cream); font-size: 20px; }
.source-meta { min-width: 0; display: grid; gap: 2px; }
.source-meta small { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.source-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.source-meta span { color: var(--ink-soft); font-size: 11px; }
.history-source-upload .source-meta small { color: var(--ink-soft); }
.source-play { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--cream); border-radius: 50%; color: var(--cream); transition: background 0.2s, border-color 0.2s; }
.source-play:hover, .source-play.is-playing { background: var(--red); border-color: var(--red); }
.source-play span { margin-left: 2px; font-size: 11px; }
.source-play.is-playing span { margin-left: 0; }
.source-actions { display: flex; gap: 7px; }
.replace-file, .remove-file { padding: 8px 12px; border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.replace-file:hover { border-color: var(--cream); background: var(--cream); color: var(--navy); }
.remove-file { color: var(--red); border-color: rgba(252, 62, 87, 0.5); }
.remove-file:hover { border-color: var(--red); background: var(--red); color: var(--cream); }
.cover-form-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 14px; }
.cover-form-main { display: grid; gap: 12px; }
.cover-field { min-height: 144px; padding: 18px 18px 30px; }
.cover-field textarea { height: 82px; margin-top: 13px; font-size: 13px; }
.cover-lyrics-field { min-height: 220px; }
.cover-lyrics-field textarea { height: 150px; }
.cover-description-field { min-height: 132px; }
.cover-description-field textarea { height: 68px; }
.cover-label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.recognize-button {
  flex: 0 0 auto; min-height: 32px; padding: 4px 12px; display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--red); border-radius: 999px; color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s, color 0.2s;
}
.recognize-button:hover { background: var(--red); color: var(--cream); }
.recognize-button small { padding-left: 6px; border-left: 1.5px solid currentColor; font-size: 10px; opacity: .8; }
.recognize-button.is-loading { cursor: wait; opacity: .7; }
.recognize-button.is-loading > span:first-child { display: inline-block; animation: spin .8s linear infinite; }
.cover-settings { padding: 18px; display: flex; flex-direction: column; gap: 20px; border: 1.5px solid var(--line-cream); border-radius: var(--radius); background: var(--wash); }
.cover-setting { display: grid; gap: 9px; }
.cover-setting > span { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.segmented { padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border: 1.5px solid var(--line-cream); border-radius: 999px; }
.segmented button { min-height: 32px; padding: 5px 7px; border-radius: 999px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; transition: color 0.2s, background 0.2s; }
.segmented button:hover { color: var(--red); }
.segmented button.is-active { background: var(--cream); color: var(--navy); }
.cover-style-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.cover-style-choices button { padding: 7px 11px; border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.cover-style-choices button:hover { border-color: var(--red); color: var(--red); }
.cover-style-choices button.is-active { border-color: var(--cream); background: var(--cream); color: var(--navy); }
.cover-setting input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-cream); border-radius: var(--radius); background: transparent; color: var(--cream); outline: 0; font-size: 12px; transition: border-color 0.2s; }
.cover-setting input:focus { border-color: var(--red); }
.segmented.strength { grid-template-columns: 1fr 1fr; border-radius: var(--radius); }
.segmented.strength button { min-height: 56px; display: grid; align-content: center; gap: 3px; border-radius: 7px; }
.segmented.strength strong { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.segmented.strength small { font-size: 9.5px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.cover-actions { min-height: 70px; margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cover-actions p { margin: 0 0 0 4px; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.02em; }
.cover-generate { height: 52px; min-width: 210px; }
.cover-result-card { min-height: 288px; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr); gap: 28px; }
.cover-result-card.is-failed { border-color: var(--red); }
.cover-result-main > p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.cover-result-card .candidate-list { margin-top: 24px; }
.cover-result-lyrics .lyrics-scroll { max-height: 195px; }
.cover-progress { margin-top: 28px; display: grid; gap: 8px; }
.cover-progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: var(--line-cream); }
.cover-progress-track i { width: 12%; height: 100%; display: block; border-radius: inherit; background: var(--red); transition: width .5s var(--ease); }
.cover-progress span { color: var(--ink-soft); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- focused results mode ----------
   Once a run exists the page turns into a fixed-height workspace: results
   scroll, the composer docks at the bottom, and the marketing sections leave. */
body.has-results { overflow: hidden; }
body.has-results .page-shell { height: 100vh; min-height: 0; overflow: hidden; }
body.has-results .hero, body.has-results .marquee, body.has-results #how, body.has-results #features,
body.has-results .cta-band, body.has-results .footer, body.has-results .mode-tabs { display: none; }
body.has-results .nav { flex: 0 0 auto; background: var(--navy); border-bottom: 2px solid var(--line-cream); }
body.has-results .nav-links a:not(.explore) { display: none; }
body.has-results .studio { flex: 1 1 auto; min-height: 0; padding: 14px 0 0; display: flex; flex-direction: column; overflow: hidden; }
body.has-results .studio-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.has-results .results-stack { flex: 1 1 auto; min-height: 0; margin: 0; padding: 4px 4px 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-padding-top: 12px; }
body.has-results .results-stack::-webkit-scrollbar { display: none; }
body.has-results .composer { --composer-body-max-h: 420px; flex: 0 0 auto; margin: 8px 4px 14px; }
body.has-results .composer-body { padding: 0 16px 0; }
body.has-results .demo-bar { margin: 0 -16px 12px; padding: 9px 16px; }
body.has-results .field-block { min-height: 80px; padding: 12px 16px 24px; }
body.has-results .field-block + .field-block { margin-top: 9px; }
body.has-results .field-block textarea { height: 32px; margin-top: 8px; line-height: 1.5; }
body.has-results .lyrics-block { min-height: 122px; }
body.has-results .lyrics-block textarea { height: 72px; }
body.has-results .counter { right: 15px; bottom: 8px; }
body.has-results .composer-toolbar { min-height: 58px; padding: 10px 0 12px; }
body.has-results .generate-button { height: 48px; }

/* Cover history renders its own stack; restore document scrolling there. */
body.cover-history-view { overflow-y: auto; scrollbar-gutter: stable; }
body.cover-history-view .page-shell { height: auto; min-height: 100vh; overflow: visible; }
body.cover-history-view .studio { min-height: auto; padding-bottom: 40px; display: block; overflow: visible; }
body.cover-history-view .studio-wrap { display: block; overflow: visible; }

/* ---------- pickers ---------- */
.picker-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(13, 14, 19, .62); }
.picker {
  position: fixed; z-index: 200; left: 50%; top: 50%; width: min(440px, calc(100% - 32px)); padding: 22px;
  transform: translate(-50%, -50%); border: 2px solid var(--cream); border-radius: var(--radius-lg); background: var(--navy-2);
  box-shadow: 12px 14px 0 var(--red);
}
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.picker-head strong { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.picker-close, #closeHistory { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); font-size: 26px; line-height: 1; transition: color 0.2s, background 0.2s; }
.picker-close:hover, #closeHistory:hover { color: var(--navy); background: var(--cream); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { padding: 11px 8px; border: 1.5px solid var(--line-cream); border-radius: 999px; font-size: 13px; font-weight: 600; text-align: center; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.choice:hover { border-color: var(--red); color: var(--red); }
.choice.is-active { border-color: var(--cream); background: var(--cream); color: var(--navy); }
.style-picker input { width: 100%; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--line-cream); border-radius: var(--radius); background: transparent; color: var(--cream); outline: 0; transition: border-color 0.2s; }
.style-picker input:focus { border-color: var(--red); }

/* ---------- history drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(13, 14, 19, .62); }
.history-drawer {
  position: absolute; top: 0; right: 0; width: min(520px, 100%); height: 100%; padding: 30px;
  background: var(--navy); border-left: 2px solid var(--cream); overflow: auto; animation: slide-in .32s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--line-cream) transparent;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--line-cream); }
.drawer-head h2 { margin: 0 0 6px; font-size: 30px; }
.drawer-head p { margin: 0; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.04em; }
.history-list { display: grid; gap: 10px; padding-top: 20px; }
.history-empty { margin-top: 80px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.history-item {
  width: 100%; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; text-align: left;
  border: 2px solid var(--line-cream); border-radius: var(--radius); color: var(--cream);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.history-item:hover { border-color: var(--cream); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.history-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.history-item small { grid-column: 1; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.04em; }
.history-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 5px 10px; border: 1.5px solid var(--line-cream); border-radius: 999px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.history-state.done { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.history-state.failed { border-color: var(--red); color: var(--red); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 500; left: 50%; bottom: 34px; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px;
  transform: translateX(-50%); border: 2px solid var(--navy); border-radius: var(--radius);
  background: var(--cream); color: var(--navy); box-shadow: 6px 6px 0 var(--red); font-size: 14px; font-weight: 600;
}

/* ---------- custom cursor ----------
   The Labs "card" pointer — a retro white arrow with a hard drop shadow — used
   as the one and only cursor. It hides over text fields so the native I-beam
   stands alone there. */
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.has-custom-cursor input, .has-custom-cursor textarea { cursor: text !important; }
.cursor { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; }
.cursor__pointer {
  position: fixed; top: 0; left: 0; width: 32px; height: 32px; opacity: 0; transition: opacity 0.18s;
  filter: drop-shadow(0 0 2px #0a0b0e) drop-shadow(0 1px 1px #0a0b0e);
}
.cursor__pointer svg { width: 100%; height: 100%; display: block; }
.cursor.is-visible .cursor__pointer { opacity: 1; }
.cursor.is-text .cursor__pointer { opacity: 0; }
.cursor-ping { position: fixed; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--red); transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .section-head p { padding-bottom: 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .player-bar__inner { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "cover meta controls side" "progress progress progress progress"; row-gap: 6px; padding: 10px 18px 12px; }
  .player-disc { grid-area: cover; width: 44px; height: 44px; }
  .player-meta { grid-area: meta; }
  .player-controls { grid-area: controls; }
  .player-progress { grid-area: progress; }
  .player-close { grid-area: side; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .footer-promo { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-cols { gap: 44px; }
}
@media (max-width: 860px) {
  body.has-results { overflow: auto; }
  body.has-results .page-shell { height: auto; min-height: 100vh; overflow: visible; }
  body.has-results .studio, body.has-results .studio-wrap { display: block; overflow: visible; }
  body.has-results .results-stack { overflow: visible; }
  body.has-results .composer { margin: 10px 0 18px; }
  .nav { padding: 12px 16px; }
  .wechat-qr { left: 0; transform: translateY(-6px); }
  .wechat-tail { left: 16px; }
  .wechat-anchor:hover:not(.is-dismissed) .wechat-qr, .wechat-anchor.is-open .wechat-qr { transform: translateY(0); }
  .studio { padding: 56px 0 80px; }
  .mode-tabs { width: 100%; margin-bottom: 16px; }
  .mode-tab { min-width: 0; flex: 1; padding: 0 10px; }
  .studio-bar { align-items: stretch; }
  .queue-link { max-width: 100%; height: auto; min-height: 38px; padding: 8px 14px; white-space: normal; text-align: center; }
  .composer-body { padding: 0 12px; }
  .demo-bar { margin: 0 -12px 14px; padding: 10px 12px; }
  .field-block { min-height: 158px; padding: 16px 14px 32px; }
  .field-block textarea { height: 88px; margin-top: 12px; }
  .lyrics-block { min-height: 228px; }
  .lyrics-block textarea { height: 155px; }
  .composer-toolbar { min-height: 0; align-items: stretch; flex-direction: column; padding: 12px 0 12px; }
  .generate-button { width: 100%; min-width: 0; }
  .result-stage { min-height: 0; padding: 22px 16px; grid-template-columns: 1fr; gap: 22px; }
  .candidate { grid-template-columns: 42px 42px minmax(80px, 1fr) 36px; gap: 9px; }
  .play-button { width: 42px; height: 42px; }
  .duration { grid-column: 3; min-width: 0; margin-top: -12px; font-size: 11px; text-align: left; }
  .download-button { grid-column: 4; grid-row: 1 / span 2; }
  .wave-wrap { height: 38px; }
  .composer { --collapse-preview-h: 48px; }
  .composer.is-collapsed .collapse-preview { grid-template-columns: auto minmax(0, 1fr); }
  .compact-status { display: none; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .cover-upload-panel { min-height: 430px; padding: 34px 16px; }
  .cover-dropzone { padding: 24px 16px; }
  .cover-editor { padding: 0 12px 12px; }
  .source-audio-card, .history-source-upload { grid-template-columns: 46px minmax(0, 1fr) 38px; }
  .source-art { width: 46px; height: 46px; }
  .source-actions, .history-source-upload .replace-file { grid-column: 2 / -1; justify-self: start; }
  .cover-form-grid { grid-template-columns: 1fr; }
  .cover-label-row { align-items: flex-start; flex-direction: column; }
  .cover-actions { align-items: stretch; flex-direction: column; padding: 12px 0 2px; }
  .cover-generate { width: 100%; min-width: 0; }
  .cover-result-card { padding: 22px 16px; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .hero { padding: 14px 0 84px; }
  .strip-item { width: 88px; height: 88px; }
  .cover-strip__track { gap: 12px; animation-duration: 60s; }
  .strip-btn { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .hero-mark { width: 140px; }
  .hero-mark-wrap { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav { padding: 12px 12px; gap: 10px; }
  .logo-mark { width: calc(22px * 2100 / 749); height: 22px; }
  .header-utilities { gap: 6px; }
  .footer-cols { gap: 30px; }
}
@media (max-width: 900px) {
  /* the bar is two rows tall on small screens */
  body.has-player .page-shell { padding-bottom: 100px; }
  body.has-player .toast { bottom: 118px; }
  body.has-results.has-player .composer { margin-bottom: 112px; }
}
@media (max-height: 820px) {
  /* short laptops: keep the whole hero (strip → CTAs) inside the first screen */
  .hero { padding-bottom: 64px; }
  .hero-inner { padding-top: clamp(20px, 4vh, 36px); }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero-mark { width: clamp(120px, 14vw, 180px); }
  .hero-mark-wrap { margin: 0 0 24px; }
  .hero-cta { margin-top: 24px; }
  .scroll-hint { bottom: 16px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  body.has-results .field-block { min-height: 72px; }
  body.has-results .lyrics-block { min-height: 104px; }
  body.has-results .lyrics-block textarea { height: 56px; }
}

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