@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;
}

:root {
  color: #202124;
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #242326;
  --muted: #9f9ea6;
  --line: #ececef;
  --accent: #fe655d;
  --accent-mid: #fe7e77;
  --accent-soft: #ff9791;
  --accent-wash: #ffafab;
  --accent-deep: #e85750;
  --shadow: 0 12px 34px rgba(25, 25, 30, .055);
  --wave-on: #6f6d75;
  --wave-off: #e5e4e8;
  --cover-wave-on: #fe655d;
  --cover-wave-off: #e9e8ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.is-hidden { display: none !important; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.result-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
body.has-results .result-nav { flex: 0 0 auto; margin: 0 0 4px; }
.queue-link { height: 34px; padding: 0 14px 0 16px; display: inline-flex; align-items: center; gap: 6px; color: #765719; text-decoration: none; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(105deg, rgba(255,210,85,.08), rgba(199,66,4,.07)) padding-box, linear-gradient(105deg, #fff6dd, #ffece5) border-box; font-size: 14px; font-weight: 650; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.queue-link svg { width: 16px; height: 16px; fill: none; stroke: #9b7020; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.queue-link:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(176, 121, 35, .12); }
.back-button { height: 34px; padding: 0 15px 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dedde2; border-radius: 999px; background: #fff; color: #65636c; box-shadow: 0 4px 14px rgba(25,25,30,.035); font-size: 13px; font-weight: 650; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.back-button:hover { border-color: #ff9aa8; color: #d92a44; }
.back-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.history-button { height: 32px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dedde2; border-radius: 999px; background: #fff; color: #65636c; box-shadow: 0 4px 14px rgba(25,25,30,.035); font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.history-button:hover { border-color: #ff9aa8; color: #d92a44; }
.history-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { width: min(1180px, calc(100% - 56px)); margin: 54px auto 26px; flex: 1; }
.mode-tabs { position: relative; z-index: 2; width: fit-content; margin: 0 auto 24px; padding: 4px; display: flex; align-items: center; gap: 4px; border: 1px solid #e8e7eb; border-radius: 999px; background: #f7f7f8; box-shadow: 0 5px 18px rgba(25,25,30,.035); }
.mode-tab { min-width: 142px; height: 42px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: transparent; color: #8b8991; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .24s cubic-bezier(.22,1,.36,1), background .24s cubic-bezier(.22,1,.36,1), box-shadow .24s cubic-bezier(.22,1,.36,1), transform .24s cubic-bezier(.22,1,.36,1); }
.mode-tab:hover { color: #4f4d54; }
.mode-tab.is-active { color: #28272a; background: #fff; box-shadow: 0 3px 12px rgba(20,20,26,.08); }
.mode-tab:active { transform: scale(.98); }
.mode-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode-tab-icon { color: var(--accent); font-size: 17px; }
body.has-results .mode-tabs { display: none; }
.mode-row { position: relative; z-index: 2; }
.mode-social { position: absolute; z-index: 6; top: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 8px; }
body.has-results .mode-row { flex: 0 0 auto; display: flex; justify-content: flex-end; margin: 0 0 8px; }
body.has-results .mode-social { position: static; height: auto; }
body.cover-mode #resultsStack,
body.cover-mode #composer { display: none !important; }
body.cover-mode main { margin-top: 34px; }

.cover-root { animation: cover-fade .3s ease both; }
@keyframes cover-fade { from { opacity: 0; transform: translateY(7px); } }
.cover-upload-panel { min-height: 500px; padding: 46px 60px 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #f3dfe2; border-radius: 28px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.cover-kicker { padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffd0d7; border-radius: 999px; background: #fff1f3; color: #d92a44; font-size: 12px; font-weight: 650; }
.cover-upload-panel h1 { max-width: 720px; margin: 18px 0 8px; color: #171723; font-size: clamp(28px,3vw,43px); line-height: 1.14; letter-spacing: -.035em; }
.cover-upload-panel > p { margin: 0 0 28px; color: #87858e; font-size: 15px; }
.cover-dropzone { width: min(690px,100%); min-height: 242px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #efd6da; border-radius: 22px; background: linear-gradient(135deg,#fffdfd,#fff7f8); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cover-dropzone:hover,.cover-dropzone.is-dragging { border-color: #ff9aa8; box-shadow: 0 16px 38px rgba(252,62,87,.1); transform: translateY(-2px); }
.cover-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-disc { width: 66px; height: 66px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(252,62,87,.2); font-size: 28px; }
.cover-dropzone strong { color: #343239; font-size: 17px; }
.cover-dropzone > span:not(.upload-disc):not(.choose-file) { margin-top: 7px; color: #9a98a1; font-size: 12px; }
.cover-dropzone .choose-file { margin-top: 19px; padding: 10px 20px; border: 1px solid #ddd8e4; border-radius: 999px; background: #fff; color: #5d5864; font-size: 13px; font-weight: 650; }
.demo-audio-button { margin-top: 8px; padding: 6px 10px; border: 0; background: transparent; color: #d92a44; font-size: 11px; text-decoration: underline; cursor: pointer; }

.cover-workspace { display: grid; gap: 14px; }
.cover-results { display: grid; gap: 14px; }
.cover-editor,.cover-result-card { border: 1px solid #f3dfe2; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.cover-editor { padding: 20px; }
.visually-hidden-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.source-audio-card { min-height: 76px; padding: 11px 14px; display: grid; grid-template-columns: 52px minmax(0,1fr) 42px auto; gap: 10px; align-items: center; border: 1px solid #eceaef; border-radius: 16px; background: #fbfbfc; }
.history-source-upload { min-height: 76px; padding: 11px 14px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px dashed #d9d2e4; border-radius: 16px; background: linear-gradient(135deg,#fffdfd,#fff7f8); }
.history-source-upload .source-meta strong { color: #46424b; }
.history-source-upload .replace-file { padding-inline: 16px; }
.source-art { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: #fff; font-size: 22px; }
.source-meta { min-width: 0; display: grid; gap: 2px; }
.source-meta small { color: #9b99a2; font-size: 11px; }
.source-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.source-meta span { color: #89868f; font-size: 11px; }
.source-play { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #29282b; color: #fff; cursor: pointer; }
.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 { padding: 8px 12px; border: 1px solid #e1dfe5; border-radius: 10px; background: #fff; color: #66636d; font-size: 12px; cursor: pointer; }
.remove-file { padding: 8px 12px; border: 1px solid #f0d7d9; border-radius: 10px; background: #fff; color: #d65f65; font-size: 12px; cursor: pointer; }
.replace-file:hover { border-color: #bcb8c4; color: #29272e; }
.remove-file:hover { border-color: #e99da1; background: #fff7f7; }
.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 { position: relative; min-height: 144px; padding: 18px 18px 30px; border: 1px solid #eceaef; border-radius: 16px; background: #fff; }
.cover-field label { display: flex; align-items: baseline; gap: 9px; color: #aaa8b0; font-size: 12px; }
.cover-field label strong { color: #28272b; font-size: 15px; }
.cover-field textarea { width: 100%; height: 82px; margin-top: 13px; padding: 0; resize: none; border: 0; outline: 0; color: #3d3b42; background: transparent; font-size: 13px; line-height: 1.65; }
.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 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #ffd0d7; border-radius: 999px; background: #fff1f3; color: #d92a44; font-size: 12px; cursor: pointer; }
.recognize-button small { padding-left: 6px; border-left: 1px solid #ffc0ca; color: #b8727d; font-size: 10px; }
.recognize-button.is-loading { cursor: wait; opacity: .7; }
.recognize-button.is-loading > span:first-child { animation: spin .8s linear infinite; }
.cover-settings { padding: 18px; display: flex; flex-direction: column; gap: 19px; border: 1px solid #eceaef; border-radius: 16px; background: #fbfbfc; }
.cover-setting { display: grid; gap: 9px; }
.cover-setting > span { color: #504e56; font-size: 12px; font-weight: 650; }
.segmented { padding: 3px; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; border-radius: 11px; background: #eeeef1; }
.segmented button { min-height: 34px; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: #85838b; font-size: 11px; cursor: pointer; }
.segmented button.is-active { background: #fff; color: #27262a; box-shadow: 0 2px 8px rgba(20,20,25,.07); }
.cover-style-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.cover-style-choices button { padding: 7px 10px; border: 1px solid #e1dfe5; border-radius: 999px; background: #fff; color: #74717a; font-size: 11px; cursor: pointer; }
.cover-style-choices button.is-active { border-color: #ff9aa8; background: #fff1f3; color: #d92a44; }
.cover-setting input { width: 100%; padding: 10px 11px; border: 1px solid #e5e3e8; border-radius: 10px; background: #fff; outline: 0; font-size: 11px; }
.cover-setting input:focus { border-color: #ff9aa8; }
.segmented.strength { grid-template-columns: 1fr 1fr; }
.segmented.strength button { min-height: 56px; display: grid; align-content: center; gap: 2px; }
.segmented.strength strong { font-size: 11px; }
.segmented.strength small { font-size: 9px; }
.cover-actions { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cover-actions p { margin: 0 0 0 4px; color: #a09ea7; font-size: 11px; }
.cover-generate { height: 52px; min-width: 205px; }
.cover-result-card { min-height: 288px; padding: 26px 30px; display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.48fr); gap: 28px; animation: result-enter .4s cubic-bezier(.22,1,.36,1) both; }
.cover-result-main h2 { margin: 19px 0 7px; font-size: 19px; }
.cover-result-main > p { margin: 0; color: #89868f; font-size: 12px; }
.cover-result-card .candidate-list { margin-top: 24px; }
.cover-result-card .cover-result-lyrics { min-height: 220px; padding: 16px 18px; border: 1px solid #e7e5ea; border-radius: 17px; background: #fafafa; }
.cover-result-lyrics .lyrics-scroll { max-height: 195px; }
.cover-progress { margin-top: 28px; display: grid; gap: 8px; }
.cover-progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #eeeef1; }
.cover-progress-track i { width: 12%; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width .5s cubic-bezier(.22,1,.36,1); }
.cover-progress span { color: #8d8b94; font-size: 12px; }
.composer, .result-stage { position: relative; border: 1px solid #f3dfe2; border-radius: 26px; background: #fff; }
.composer { --composer-body-max-h: 620px; --collapse-preview-h: 52px; --collapse-phase-duration: .34s; --collapse-phase-ease: cubic-bezier(.55,0,.18,1); --expand-phase-duration: .42s; --expand-phase-ease: cubic-bezier(.22,1,.36,1); display: grid; overflow: hidden; box-shadow: var(--shadow); }
.composer-body, .collapse-preview { min-width: 0; grid-column: 1; grid-row: 1; }
.composer-body { max-height: var(--composer-body-max-h); padding: 18px 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 .17s cubic-bezier(.22,1,.36,1), transform .26s 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 .22s cubic-bezier(.22,1,.36,1) .1s, transform .34s var(--expand-phase-ease) .05s; }
.collapse-preview { position: relative; z-index: 2; width: 100%; height: 0; max-height: 0; padding: 0 22px; 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: 0; border-radius: 25px; background: #fff; text-align: left; pointer-events: none; cursor: pointer; 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 .15s cubic-bezier(.22,1,.36,1), transform .22s 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; gap: 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 .15s cubic-bezier(.22,1,.36,1), transform .24s var(--collapse-phase-ease); }
.composer.is-collapsed .collapse-preview { height: var(--collapse-preview-h); max-height: var(--collapse-preview-h); padding: 0 22px; 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 .22s cubic-bezier(.22,1,.36,1) .1s, transform .29s var(--expand-phase-ease) .07s, visibility 0s linear 0s; }

body.has-results { overflow: hidden; }
body.has-results .page-shell { height: 100vh; min-height: 0; overflow: hidden; }
body.has-results main { min-height: 0; margin-top: 10px; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
body.has-results .results-stack { flex: 0 1 auto; min-height: 0; margin: 0; padding: 6px 0 12px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-padding-top: 12px; }
body.has-results .results-stack > * { flex-shrink: 0; }
body.has-results .result-stage { box-shadow: 0 4px 12px rgba(25,25,30,.05); }
body.has-results .results-stack::-webkit-scrollbar { display: none; }
body.has-results .composer { --composer-body-max-h: 390px; flex: 0 0 auto; margin: 0 0 12px; }
body.has-results .composer-body { padding: 12px 16px 0; }
body.has-results .field-block { min-height: 80px; padding: 12px 16px 24px; border-radius: 13px; }
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; }
body.has-results .generate-button { height: 48px; border-radius: 31px; }

/* Cover history has its own result/editor stack rather than .results-stack.
   Restore document scrolling so every editor control remains reachable. */
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 main { min-height: auto; margin-bottom: 26px; display: block; overflow: visible; }
body.cover-history-view::-webkit-scrollbar { width: 10px; }
body.cover-history-view::-webkit-scrollbar-thumb { border: 2px solid #fff; border-radius: 999px; background: #c9c7ce; }
body.cover-history-view::-webkit-scrollbar-track { background: #fff; }

.field-block { position: relative; min-height: 148px; padding: 21px 22px 35px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.field-block + .field-block { margin-top: 13px; }
.field-block label { display: flex; align-items: baseline; gap: 10px; color: #a8a7ad; font-size: 13px; }
.field-block label strong { color: var(--ink); font-size: 16px; }
.field-block textarea { width: 100%; height: 78px; margin-top: 15px; padding: 0; resize: none; border: 0; outline: 0; color: #333239; background: transparent; font-size: 14px; line-height: 1.65; }
.lyrics-block { min-height: 218px; }
.lyrics-block textarea { height: 145px; }
textarea::placeholder { color: #c6c5cc; opacity: 1; }
.counter { position: absolute; right: 20px; bottom: 14px; color: #bebdc4; font-size: 12px; }
.composer-toolbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.options { display: flex; align-items: center; gap: 15px; }
.option-button { height: 38px; padding: 0 2px; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font-size: 14px; cursor: pointer; }
.option-button:hover { color: #d92a44; }
.option-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.generate-button { min-width: 194px; height: 55px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 36px; corner-shape: squircle; background: rgba(0, 0, 0, .8); color: #fff; cursor: pointer; box-shadow: inset 0 4px 4px 0 rgba(255, 255, 255, .25); }
.generate-button:hover { transform: translateY(-2px); }
.generate-button.is-submitting { opacity: .58; cursor: wait; pointer-events: none; }
.generate-button svg { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 1.4; }
.generate-copy { display: flex; flex-direction: column; line-height: 1.2; }
.generate-copy strong { font-size: 16px; }
.generate-copy small { font-size: 11px; font-weight: 450; color: #dddce1; }

.results-stack { margin-bottom: 54px; display: grid; grid-auto-rows: max-content; align-content: start; gap: 12px; }
.result-stage { min-height: 288px; padding: 25px 30px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .7fr); gap: 28px; box-shadow: var(--shadow); }
.generation-status { display: flex; align-items: center; gap: 13px; color: #121331; font-size: 16px; }
.spinner { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid #ffd0d7; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.generation-status.is-complete .spinner { border: 0; animation: none; }
.generation-status.is-complete .spinner::after { content: "✓"; color: #38a36d; font-weight: 800; }
.generation-status.is-failed { color: #b43c45; }
.generation-status.is-failed .spinner { border: 0; animation: none; }
.generation-status.is-failed .spinner::after { content: "×"; color: #d94f59; font-size: 21px; font-weight: 700; line-height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-copy h2 { margin: 21px 0 11px; font-size: 19px; font-weight: 650; }
.result-chips { min-height: 31px; display: flex; gap: 7px; flex-wrap: wrap; }
.result-chip { padding: 5px 10px; border: 1px solid #e1e0e5; border-radius: 999px; color: #74727b; font-size: 12px; }
.candidate-list { margin-top: 23px; display: grid; gap: 14px; }
.candidate { display: grid; grid-template-columns: 46px 48px minmax(140px, 1fr) 82px 38px; align-items: center; gap: 13px; }
.play-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #302f32; border-radius: 50%; background: #313033; color: #fff; cursor: pointer; }
.play-button:hover:not(:disabled) { transform: scale(1.03); }
.play-button:disabled { cursor: default; }
.play-button svg { width: 17px; height: 17px; fill: currentColor; }
.play-button.is-loading::before { content: ""; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.version { font-size: 15px; font-weight: 580; }
.wave-wrap { position: relative; height: 42px; min-width: 100px; cursor: pointer; }
.waveform { width: 100%; height: 42px; display: block; }
.candidate.is-loading .wave-wrap { height: 13px; border-radius: 999px; background: linear-gradient(90deg, #efeff1 25%, #fafafa 50%, #efeff1 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(239,239,241,.72) 25%, rgba(250,250,250,.86) 50%, rgba(239,239,241,.72) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; cursor: wait; }
.candidate.is-audio-loading .waveform { opacity: .32; }
@keyframes shimmer { to { background-position: -200% 0; } }
.duration { min-width: 82px; color: #77767e; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.download-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ececef; border-radius: 50%; background: #fff; color: #5d5c63; text-decoration: none; }
.download-button:hover { border-color: #cbc9d0; }
.download-button[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.download-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lyrics-only { min-height: 220px; padding: 16px 18px; border: 1px solid #e6e5e9; border-radius: 18px; background: #fafafa; overflow: hidden; }
.lyrics-title-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; color: var(--accent); font-weight: 650; border-bottom: 1px solid #ecebef; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button:hover { background: #eeeef1; }
.icon-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lyrics-scroll { max-height: 170px; padding-top: 11px; overflow: auto; color: #66656c; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }

.compact-spark { color: var(--accent); font-size: 21px; }
.compact-prompt { overflow: hidden; color: #4b4952; text-overflow: ellipsis; white-space: nowrap; }
.compact-status { padding: 8px 14px; border: 1px solid #ffd0d7; border-radius: 999px; color: var(--accent); font-size: 13px; white-space: nowrap; }

.result-stage.is-entering { animation: result-enter .36s cubic-bezier(.22,1,.36,1) both; transform-origin: 50% 0; }
@keyframes result-enter { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

.social-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dedde2; border-radius: 50%; background: #fff; color: #6d6b73; box-shadow: 0 4px 14px rgba(25, 25, 30, .035); cursor: pointer; text-decoration: none; transition: border-color .18s ease, color .18s ease; }
.social-button svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.wechat-anchor .social-button:hover,
.wechat-anchor.is-open .social-button { color: #07c160; border-color: #b7ebc9; }
#githubLink:hover { color: #181717; border-color: #c9c8ce; }
#discordLink:hover { color: #5865f2; border-color: #d4d7fb; }
.wechat-anchor { position: relative; }
html:not([lang="zh-CN"]) .wechat-anchor,
html:not([lang="zh-CN"]) .site-footer .social-wechat { display: none; }
.wechat-qr { position: absolute; z-index: 7; left: 50%; top: calc(100% + 11px); width: 188px; padding: 10px; border: 0; border-radius: 28px; background: #fff; filter: drop-shadow(0 1px 1px rgba(20, 20, 30, .08)) drop-shadow(0 14px 28px rgba(20, 20, 30, .16)); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.wechat-qr::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.wechat-tail { position: absolute; z-index: 1; top: -13px; left: 50%; width: 36px; height: 16px; display: block; overflow: visible; transform: translateX(-50%); fill: #fff; }
.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: 14px; }
.wechat-group { margin: 6px 0 2px; color: #36353a; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }

.picker-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(20, 20, 25, .18); backdrop-filter: blur(2px); }
.picker { position: fixed; z-index: 20; left: 50%; top: 50%; width: min(430px, calc(100% - 32px)); padding: 22px; transform: translate(-50%, -50%); border: 1px solid #e8e7eb; border-radius: 22px; background: #fff; box-shadow: 0 24px 80px rgba(20, 20, 30, .18); }
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 18px; }
.picker-close, #closeHistory { border: 0; background: transparent; color: #77757d; font-size: 26px; cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { padding: 12px 8px; border: 1px solid #e3e2e7; border-radius: 12px; background: #fff; cursor: pointer; }
.choice:hover, .choice.is-active { border-color: #ff9aa8; background: #fff1f3; color: #d92a44; }
.style-picker input { width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid #e3e2e7; border-radius: 12px; outline: 0; }
.style-picker input:focus { border-color: #ff9aa8; }
.confirm-dialog p { margin: -6px 0 22px; color: #6f6d75; font-size: 14px; line-height: 1.65; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-cancel, .confirm-ok { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 620; cursor: pointer; }
.confirm-cancel { border: 1px solid #e1dfe5; background: #fff; color: #5d5c63; }
.confirm-cancel:hover { border-color: #bcb8c4; color: var(--ink); }
.confirm-ok { border: 0; background: #29282b; color: #fff; }
.confirm-ok:hover { background: #151417; }

.drawer-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(17, 16, 20, .24); }
.history-drawer { position: absolute; top: 0; right: 0; width: min(520px, 100%); height: 100%; padding: 30px; background: #fff; box-shadow: -12px 0 60px rgba(20, 20, 28, .12); animation: slide-in .24s ease-out; overflow: auto; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0 0 5px; font-size: 24px; }
.drawer-head p { margin: 0; color: #a09fa6; font-size: 13px; }
.history-list { display: grid; gap: 12px; padding-top: 20px; }
.history-empty { margin-top: 80px; text-align: center; color: #aaa9b0; }
.history-item { width: 100%; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; text-align: left; border: 1px solid #e9e8ec; border-radius: 16px; background: #fff; cursor: pointer; }
.history-item:hover { border-color: #ffafb0; box-shadow: 0 8px 24px rgba(30, 30, 40, .05); }
.history-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { grid-column: 1; color: #9d9ca3; }
.history-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 5px 9px; border-radius: 999px; background: #f2f2f4; color: #77767d; font-size: 12px; }
.history-state.done { background: #eef9f3; color: #389267; }
.history-state.failed { background: #fff0f0; color: #d95c60; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 34px; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; transform: translateX(-50%); border-radius: 12px; background: #29282b; color: #fff; box-shadow: 0 10px 30px rgba(20, 20, 28, .2); font-size: 14px; }

/* ---------- example songs: cover marquee + bottom player ---------- */
.cover-strip { margin-top: 26px; padding: 12px 0 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cover-strip + main { margin-top: 10px; }
body.has-results .cover-strip { display: none; }
.cover-strip__track { width: max-content; padding: 0 8px; display: flex; gap: 18px; animation: strip-scroll 80s linear infinite; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }
.strip-item { position: relative; flex: 0 0 auto; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 6px 14px rgba(25,25,30,.14); cursor: pointer; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.strip-item:hover, .strip-item:focus-visible { transform: translateY(-4px) scale(1.05); outline: 0; }
/* the record: dark 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(255,255,255,.06) 0 1px, transparent 1px 5px), radial-gradient(circle at 50% 50%, #1f1e23 0 34%, #121114 35% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .3s 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,.5); transition: opacity .3s ease; }
.strip-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.35); }
.strip-item:hover { box-shadow: 0 10px 20px rgba(25,25,30,.18); }
.strip-item:hover .strip-disc { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.strip-item.is-active { box-shadow: 0 6px 16px rgba(255,115,118,.3); }
.strip-item.is-active .strip-disc { box-shadow: inset 0 0 0 2px var(--accent); animation: disc-spin 3.6s linear infinite paused; }
.strip-item.is-active .strip-disc img { opacity: .72; }
.strip-item.is-playing .strip-disc { animation-play-state: running; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.strip-btn { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); transition: background .2s ease, transform .25s ease; }
.strip-item:hover .strip-btn, .strip-item:focus-visible .strip-btn { background: var(--accent); filter: none; }
.strip-btn svg { width: 14px; height: 14px; 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; }
.fly-disc { position: fixed; z-index: 60; pointer-events: none; box-shadow: 0 0 18px rgba(25,25,30,.22); }

.player-bar { position: fixed; z-index: 18; left: 50%; bottom: 16px; width: min(1180px, calc(100% - 32px)); visibility: hidden; opacity: 0; transform: translate(-50%, calc(100% + 28px)); border: 1px solid #f3dfe2; border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: 0 18px 50px rgba(25,25,30,.14); backdrop-filter: blur(14px); transition: transform .4s cubic-bezier(.55,0,.18,1), opacity .25s ease, visibility 0s linear .4s; }
.player-bar.is-open { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .2s ease, visibility 0s; }
.player-bar.is-measuring { transition: none !important; }
.player-bar__inner { min-height: 72px; padding: 10px 14px 10px 12px; display: grid; grid-template-columns: 52px minmax(120px, 210px) auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; }
.player-disc { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 5px 12px rgba(25,25,30,.18); cursor: pointer; transition: box-shadow .3s ease; }
.player-bar.is-playing .player-disc { box-shadow: 0 5px 14px rgba(255,115,118,.3); }
.player-disc.is-waiting { visibility: hidden; }
.player-disc .strip-disc { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); animation: disc-spin 4s linear infinite paused; }
.player-disc .strip-disc::after { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.player-bar.is-playing .player-disc .strip-disc { box-shadow: inset 0 0 0 2px var(--accent); animation-play-state: running; }
.player-meta { min-width: 0; display: grid; gap: 3px; }
.player-meta strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-meta span { overflow: hidden; color: #d92a44; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.player-skip, .player-play, .player-close { display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.player-skip { width: 36px; height: 36px; border: 1px solid #e1dfe5; background: #fff; color: #5d5c63; }
.player-skip:hover { border-color: #bcb8c4; color: var(--ink); }
.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; border: 0; background: #29282b; color: #fff; box-shadow: 0 6px 16px rgba(20,20,25,.16); }
.player-play:hover { background: #151417; transform: scale(1.04); }
.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 { min-width: 0; display: flex; align-items: center; gap: 12px; }
.player-time { flex: 0 0 auto; min-width: 36px; color: #9b99a2; font-size: 11px; 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: 4px; margin-top: -2px; border-radius: 999px; background: #eeeef1; }
.player-track i { position: absolute; left: 0; top: 50%; width: 0%; height: 4px; margin-top: -2px; border-radius: 999px; background: var(--accent); }
.player-track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; opacity: 0; transition: opacity .2s ease; }
.player-track:hover i::after, .player-track:focus-visible i::after { opacity: 1; }
.player-track:focus-visible { outline: 0; }
.player-use { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(252,62,87,.24); font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.player-use:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(252,62,87,.32); }
.player-use:active { transform: scale(.98); }
.player-fills { display: flex; align-items: center; gap: 8px; }
.player-use svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-use--cover { border: 1px solid #ffd0d7; background: #fff; color: #d92a44; box-shadow: none; }
.player-use--cover:hover { border-color: #ff9aa8; background: #fff1f3; box-shadow: 0 6px 16px rgba(252,62,87,.12); }
.player-use.is-loading { opacity: .6; cursor: wait; pointer-events: none; }
.player-close { width: 34px; height: 34px; border: 1px solid #e1dfe5; background: #fff; color: #85838b; }
.player-close:hover { border-color: #ff9aa8; color: var(--accent); }
.player-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.has-player .page-shell { padding-bottom: 104px; }
body.has-player .toast { bottom: 112px; }
.composer.is-filled { animation: composer-filled 1.4s ease; }
@keyframes composer-filled { 0% { box-shadow: 0 0 0 0 rgba(252,62,87,.32), var(--shadow); } 30% { box-shadow: 0 0 0 7px rgba(252,62,87,.14), var(--shadow); } 100% { box-shadow: 0 0 0 14px rgba(252,62,87,0), var(--shadow); } }

@media (max-width: 860px) {
  .cover-strip { margin-top: 4px; padding-bottom: 22px; }
  .cover-strip__track { gap: 12px; animation-duration: 60s; }
  .strip-item { width: 72px; height: 72px; }
  .strip-btn { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .player-bar { bottom: 10px; width: calc(100% - 20px); border-radius: 18px; }
  .player-bar__inner { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "cover meta controls close" "progress progress use use"; gap: 8px 10px; padding: 10px 12px; }
  .player-disc { grid-area: cover; width: 44px; height: 44px; }
  .player-meta { grid-area: meta; }
  .player-controls { grid-area: controls; gap: 6px; }
  .player-progress { grid-area: progress; gap: 8px; }
  .player-fills { grid-area: use; justify-self: end; gap: 6px; }
  .player-use { height: 34px; padding: 0 12px; gap: 5px; font-size: 12px; }
  .player-close { grid-area: close; width: 30px; height: 30px; }
  .player-skip { width: 32px; height: 32px; }
  .player-play { width: 40px; height: 40px; }
  body.has-player .page-shell { padding-bottom: 136px; }
  body.has-player .toast { bottom: 142px; }
}

@media (max-width: 860px) {
  body.has-results { overflow: auto; }
  body.has-results .page-shell { height: auto; min-height: 100vh; overflow: visible; }
  body.has-results main { display: block; overflow: visible; }
  body.has-results .results-stack { overflow: visible; }
  body.has-results .composer { margin: 10px 0 18px; }
  .history-button { width: 32px; padding: 0; justify-content: center; }
  .history-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .queue-link { max-width: 100%; font-size: 13px; }
  main { width: calc(100% - 24px); margin-top: 24px; }
  .mode-tabs { width: 100%; margin-bottom: 18px; }
  .mode-row { display: flex; flex-direction: column-reverse; }
  .mode-social { position: static; height: auto; justify-content: flex-end; margin-bottom: 12px; }
  .mode-tab { min-width: 0; flex: 1; }
  .cover-upload-panel { min-height: 430px; padding: 34px 16px; border-radius: 22px; }
  .cover-upload-panel h1 { font-size: 28px; }
  .cover-dropzone { padding: 24px 16px; }
  .cover-editor { padding: 11px; border-radius: 22px; }
  .source-audio-card,.history-source-upload { grid-template-columns: 46px minmax(0,1fr) 38px; }
  .source-art { width: 46px; height: 46px; }
  .source-actions { grid-column: 2 / -1; justify-self: start; }
  .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-field label { flex-wrap: wrap; }
  .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; border-radius: 22px; }
  .composer { border-radius: 22px; }
  .composer-body { padding: 11px 11px 0; }
  .field-block { min-height: 158px; padding: 19px 16px 34px; border-radius: 14px; }
  .field-block textarea { height: 88px; margin-top: 14px; font-size: 14px; }
  .lyrics-block { min-height: 228px; }
  .lyrics-block textarea { height: 155px; }
  .composer-toolbar { min-height: 118px; align-items: stretch; flex-direction: column; padding: 10px 0 13px; }
  .options { padding: 0 7px; }
  .generate-button { width: 100%; min-width: 0; height: 53px; border-radius: 34px; }
  .results-stack { margin-bottom: 34px; }
  .result-stage { min-height: 0; padding: 24px 18px; grid-template-columns: 1fr; gap: 24px; border-radius: 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: -13px; font-size: 11px; text-align: left; }
  .download-button { grid-column: 4; grid-row: 1 / span 2; }
  .wave-wrap { height: 38px; }
  .lyrics-only { min-height: 235px; }
  .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); }
}

@media (max-height: 760px) and (min-width: 861px) {
  main { margin-top: 38px; }
  .field-block { min-height: 132px; }
  .field-block textarea { height: 64px; margin-top: 12px; }
  .lyrics-block { min-height: 190px; }
  .lyrics-block textarea { height: 118px; }
  .composer-toolbar { min-height: 66px; }
}

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

/* ===== landing content: intro, how it works, features, closing CTA ===== */
#studio,
.cover-editor { scroll-margin-top: 80px; }
#studio { overflow: visible; }
.studio-stage { position: relative; overflow: visible; }
.studio-glow { position: absolute; inset: -36px -48px; z-index: 0; border-radius: 72px; pointer-events: none; filter: blur(64px); background: linear-gradient(90deg, rgba(137, 231, 246, .42) 0%, rgba(189, 215, 248, .42) 13.888%, rgba(114, 144, 235, .42) 29.136%, rgba(205, 133, 247, .42) 39.908%, rgba(233, 167, 231, .42) 51.768%, rgba(220, 99, 92, .42) 65.565%, rgba(219, 89, 98, .42) 77.667%, rgba(228, 128, 85, .42) 96.875%); }
.studio-stage > .composer,
.studio-stage > .cover-root { position: relative; z-index: 1; }
body.has-results .studio-glow { display: none; }
body.has-results .studio-stage { display: contents; }
.page-intro { max-width: none; margin: 0 auto 30px; text-align: center; }
.page-intro h1 { margin: 0; color: #171723; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.fx-word { display: inline-block; }
.page-intro p { max-width: none; margin: 12px auto 0; color: #75737c; font-size: 15px; line-height: 1.65; }
body.has-results .page-intro { display: none; }

.page-section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 88px 0 0; }
.section-head { margin-bottom: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.section-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.page-section h2 { max-width: 640px; margin: 0; color: #171723; font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.section-side { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.section-side p { margin: 0; color: #84828b; font-size: 14px; line-height: 1.57; }
.section-cta { position: relative; height: 44px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 7px 19px color-mix(in srgb, var(--accent) 24%, transparent); transition: background .22s cubic-bezier(.22,1,.36,1); }
.section-cta::before { content: ""; position: absolute; inset: -7px -12px; z-index: -1; border-radius: inherit; pointer-events: none; filter: blur(12px); background: linear-gradient(90deg, rgba(137, 231, 246, .5), rgba(205, 133, 247, .42), rgba(220, 99, 92, .45)); }
.section-cta:hover { background: var(--accent-deep); }
.section-cta--small { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; box-shadow: none; }

.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-grid--bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-card { padding: 26px 26px 28px; border: 1px solid #f3dfe2; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.step-card--bench { grid-column: 1 / -1; min-width: 0; }
#how { scroll-margin-top: 112px; }
.step-num { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 999px; background: #242326; color: #fff; font-size: 12px; font-weight: 600; }
.step-card h3 { margin: 18px 0 8px; color: #242326; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.step-card p { margin: 0; color: #75737c; font-size: 14px; line-height: 1.57; }
.how-credit { margin: 10px 0 0 !important; color: #84828b !important; font-size: 13px !important; }
.page-about {
  width: min(1080px, 100%);
  margin: 28px auto 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  scroll-margin-top: 112px;
  transition: height .4s cubic-bezier(.22,1,.36,1);
}
.page-about-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #c8c6cd;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  text-align: center;
  user-select: none;
  transition: color .24s cubic-bezier(.22,1,.36,1), background-color .24s cubic-bezier(.22,1,.36,1);
}
.page-about-summary::-webkit-details-marker { display: none; }
.page-about-summary:hover,
.page-about[open] .page-about-summary { color: #84828b; background: rgba(23, 23, 35, .04); }
.page-about-summary:focus { outline: none; }
.page-about-summary:focus-visible { outline: 2px solid #c8c6cd; outline-offset: 2px; }
.page-about-chevron {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: currentColor;
  transition: transform .34s cubic-bezier(.22,1,.36,1);
}
.page-about-chevron svg { display: block; }
.page-about:not([open]) .page-about-chevron { animation: about-nudge 2.2s ease 1.1s 1; }
.page-about[open] .page-about-chevron { transform: rotate(180deg); }
@keyframes about-nudge {
  0%, 72%, 100% { transform: translateY(0); }
  82% { transform: translateY(3px); }
}
.page-about-body {
  padding: 6px 0 4px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s cubic-bezier(.22,1,.36,1), transform .34s cubic-bezier(.22,1,.36,1);
}
.page-about[open] .page-about-body {
  opacity: 1;
  transform: translateY(0);
}
.page-about-inner { width: min(680px, 100%); margin: 0 auto; }
.page-about-eyebrow {
  margin: 0 0 6px;
  color: #b0aeb6;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-about-heading {
  margin: 0 0 10px;
  color: #84828b;
  font-size: 15px;
  font-weight: 600;
}
.about-facts { margin: 0; display: grid; gap: 12px; }
.about-facts dt { margin: 0 0 4px; color: #84828b; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.about-facts dd { margin: 0; color: #9a98a1; font-size: 13px; line-height: 1.55; }
.about-links { margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; }
.about-links a { color: #84828b; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; transition: color .18s ease; }
.about-links a:hover { color: #4f4d54; }
.bench-figure { margin: 14px 0 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bench-figure-inner { min-width: 0; }
.bench-figure-link { display: block; cursor: zoom-in; }
.bench-figure img { display: block; width: 100%; height: auto; background: #fff; }
.bench-caption { margin: 0 0 12px !important; color: #84828b !important; font-size: 12px !important; line-height: 1.5 !important; }
.bench-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 10px; }
.bench-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bench-table th,
.bench-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f3dfe2; color: #242326; }
.bench-table th { color: #84828b; font-size: 12px; font-weight: 600; }
.bench-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bench-note { margin: 0 !important; color: #84828b !important; font-size: 12px !important; line-height: 1.5 !important; }
.step-card > .bench-note { margin-top: 10px !important; }
.bench-note a { margin-right: 12px; color: #171723; text-decoration: underline; text-underline-offset: 2px; }
.bench-note a:last-child { margin-right: 0; }

.feature-rows { display: grid; gap: 48px; }
.feature-row { padding: 0; display: grid; grid-template-columns: minmax(220px, .82fr) minmax(280px, 1.18fr); align-items: center; gap: 28px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.feature-row > * { min-width: 0; }
.feature-rows > .feature-row:nth-child(even),
.feature-row--flip { grid-template-columns: minmax(280px, 1.18fr) minmax(220px, .82fr); }
.feature-rows > .feature-row:nth-child(even) .feature-mock,
.feature-row--flip .feature-mock { order: -1; }
#deep-dive .feature-copy,
#deep-dive .feature-mock { min-width: 0; }
.feature-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feature-tag { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid #e1e1e1; border-radius: 999px; background: #fff; color: #171717; font-size: 12px; font-weight: 600; }
.feature-copy h3 { margin: 16px 0 8px; color: #171723; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.feature-copy p { margin: 0; color: #7d7d7d; font-size: 14px; line-height: 1.45; max-width: 34em; }
.feature-head + p { margin-top: 16px; }
.feature-copy p + p { margin-top: 8px; }

.feature-mock.lp-demo,
.lp-demo { padding: 0; display: flex; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #e1e1e1; border-radius: 32px; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .03); }
.lp-demo-main { flex: 1; min-width: 0; padding: 22px 18px 18px 24px; display: flex; flex-direction: column; }
.lp-demo-side { width: min(248px, 42%); flex: 0 0 auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.lp-label { color: #7d7d7d; font-size: 13px; font-weight: 500; }
.lp-prompt { margin: 10px 0 0; color: #171717; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }
.lp-lyrics { margin: 12px 0 0; max-height: 4.8em; overflow: hidden; color: #36353a; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.lp-demo-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lp-count { color: #aaa; font-size: 12px; }
.lp-gen { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 12px; background: #2f2d2c; color: #fff; font-size: 14px; font-weight: 500; }
.lp-voice { padding: 8px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 16px; }
.lp-voice.is-on { border-color: var(--accent); background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .04); }
.lp-avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; }
.lp-voice-meta { min-width: 0; display: grid; gap: 6px; }
.lp-voice-meta b { overflow: hidden; color: #36353a; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-tags span { height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 4px; background: #eff0f2; color: #7d7d7d; font-size: 10px; line-height: 1; white-space: nowrap; }
.lp-take { min-height: 40px; padding: 4px 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lp-take b { flex: 0 0 auto; color: #363538; font-size: 13px; font-weight: 500; }
button.lp-play { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #2f2d2c; color: #fff; font-size: 10px; cursor: pointer; }
.lp-play svg { width: 12px; height: 12px; fill: currentColor; display: block; }
.lp-time { min-width: 36px; color: #77767e; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.lp-wave { height: 36px; flex: 1; min-width: 64px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: none; }
.lp-wave i { width: 2px; height: 36%; border-radius: 5px; background: #e1e1e1; pointer-events: none; }
.lp-wave i:nth-child(3n) { height: 78%; }
.lp-wave i:nth-child(4n+1) { height: 54%; }
.lp-wave i:nth-child(5n+2) { height: 24%; }
.lp-wave i:nth-child(7n) { height: 92%; }
.lp-wave i.is-on { background: var(--accent); }
.lp-play:focus-visible,
.lp-clone-play:focus-visible,
.lp-wave:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.feature-mock.lp-demo.lp-demo--cover,
.feature-mock.lp-demo.lp-demo--score,
.feature-mock.lp-demo.lp-demo--hist,
.lp-demo--cover,
.lp-demo--score,
.lp-demo--hist { flex-direction: column; padding: 26px 24px 20px; gap: 12px; min-height: 0; }
.lp-flow { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-pair { display: flex; align-items: stretch; gap: 10px; }
#deep-dive .lp-pair { flex-wrap: wrap; }
#deep-dive .lp-orig,
#deep-dive .lp-clone { flex: 1 1 160px; }
.lp-orig { flex: 1 1 168px; min-width: 0; padding: 10px 12px; display: grid; gap: 4px; border: .9px solid #e1e1e1; border-radius: 16px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .03); }
.lp-orig-kicker { color: #7d7d7d; font-size: 11px; }
.lp-orig-row { display: flex; align-items: center; gap: 8px; }
.lp-orig b { overflow: hidden; color: #36353a; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-orig small { color: #9f9ea6; font-size: 11px; }
.lp-dash { width: 28px; flex: 0 0 auto; align-self: center; border-top: .9px dashed #bcbcbc; }
.lp-clone { flex: 1; min-width: 0; padding: 12px 16px; display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 6px; row-gap: 6px; border: 1px solid #97d5f7; border-radius: 16px; color: #fff; background: radial-gradient(ellipse at 25% 40%, rgba(113, 180, 252, .85) 0%, transparent 55%), radial-gradient(ellipse at 75% 65%, rgba(254, 101, 93, .6) 0%, transparent 45%), linear-gradient(135deg, #3a5a8c 0%, #6a90c0 30%, #c9a3cf 55%, #e0b090 100%); box-shadow: 3px 1px 8px rgba(151, 213, 247, .16), 1px 4px 8px rgba(254, 101, 93, .16); }
.lp-clone b { grid-column: 2; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-clone .lp-tags { grid-column: 2; }
.lp-clone .lp-tags span { background: rgba(239, 240, 242, .5); border: 1px solid rgba(255, 255, 255, .5); border-radius: 16px; color: #fff; }
button.lp-clone-play { grid-column: 1; grid-row: 1; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 9px; line-height: 16px; cursor: pointer; }
.lp-clone-play svg { width: 8px; height: 8px; fill: currentColor; display: block; }
.lp-clone .lp-wave { grid-column: 2; height: 20px; min-width: 48px; }
.lp-clone .lp-wave i { background: rgba(255, 255, 255, .4); }
.lp-clone .lp-wave i.is-on { background: #fff; }
.lp-cover-desc { padding: 12px 14px; border: 1px solid #eceaef; border-radius: 16px; background: #fff; }
.lp-cover-desc p { margin: 6px 0 0; color: #36353a; font-size: 13px; line-height: 1.5; }

.lp-staff { padding: 12px; display: grid; gap: 8px; min-width: 0; border: 1px solid #e1e1e1; border-radius: 16px; background: #fff; }
.lp-staff-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7d7d7d; font-size: 12px; font-weight: 500; }
.lp-bpm { margin-left: auto; color: #bcbcbc; font-size: 11px; }
.lp-edit-pill { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff1f3; color: var(--accent); font-size: 11px; font-weight: 650; }
.lp-chords { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lp-chords b { height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f4f3f6; color: #36353a; font-size: 12px; font-weight: 700; }
.lp-chords b.is-edit { background: #fff1f3; color: var(--accent); box-shadow: inset 0 0 0 1px #ffc4cc; }
.lp-roll { display: grid; grid-template-columns: 22px repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; }
.lp-roll--8 { grid-template-columns: 22px repeat(8, minmax(0, 1fr)); }
.lp-pitch { color: #bcbcbc; font-size: 10px; font-weight: 650; line-height: 1; text-align: left; }
.lp-roll i { height: 10px; border-radius: 3px; background: #f0eef2; }
.lp-roll i.on { background: #2f2d2c; }
.lp-roll i.edit { background: var(--accent); }
.lp-staff--mini { padding: 10px; align-self: center; min-width: 120px; }

.lp-hist { padding: 10px 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 10px 12px; align-items: center; border: 1px solid #e9e8ec; border-radius: 16px; background: #fff; }
.lp-hist-body { min-width: 0; display: grid; gap: 6px; }
.lp-hist-body b { overflow: hidden; color: #36353a; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-hist-body small { color: #9d9ca3; font-size: 11px; }
.lp-hist .lp-play { width: 28px; height: 28px; }
.lp-hist .lp-wave { height: 20px; min-width: 48px; }
.lp-album { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; background: #ececef; }
img.lp-avatar { width: 40px; height: 40px; }

.step-card--ui .lp-chords { margin: 12px 0 10px; }
.lp-style-shift { margin: 12px 0 10px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-clone--mini { display: flex; flex: 1; min-width: 0; padding: 8px 12px; font-size: 11px; line-height: 1.3; color: #fff; }

.cta-band { position: relative; z-index: 1; text-align: center; }
.feature-rows + .step-grid { margin-top: 18px; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.fact-chips li { padding: 5px 10px; border: 1px solid #e1e0e5; border-radius: 999px; background: #fff; color: #74727b; font-size: 12px; font-weight: 600; line-height: 1.3; }
.card-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-actions .stage-play,
.card-actions .section-cta { flex: 0 0 auto; margin-top: 0; }
.stage-play { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: #29282b; color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.stage-play:hover { background: #171723; transform: translateY(-1px); }
.faq-section { width: min(1080px, 100%); margin: 0 auto; padding: 88px 0 0; scroll-margin-top: 112px; }
.faq-heading { max-width: none; width: 100%; margin: 0 0 46px; text-align: center; font-weight: 600; font-size: 32px; line-height: 1.25; letter-spacing: 0; color: #171723; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { position: relative; border: 1px solid #e1e1e1; border-radius: 32px; clip-path: inset(0 round 32px); overflow: hidden; background: #fff; transition: height .4s cubic-bezier(.22,1,.36,1), background-color .3s cubic-bezier(.22,1,.36,1), border-color .3s cubic-bezier(.22,1,.36,1); }
.faq-item[open] { background: #f4f6f8; border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover { border-color: #cfcfcf; }
  .faq-item:hover .faq-icon { color: #8b9198; }
  .faq-item[open]:hover { border-color: transparent; }
}
.faq-question { list-style: none; cursor: pointer; display: block; position: relative; height: 86px; margin: 0; padding: 0; font-weight: 600; font-size: 18px; line-height: 1.25; color: #171723; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question-text { display: block; position: absolute; left: 82px; top: 50%; transform: translateY(-50%); width: calc(100% - 165px); }
.faq-icon { position: absolute; left: 29px; top: 50%; transform: translateY(-50%); width: 23px; height: 23px; color: #aeb4ba; line-height: 0; transition: color .24s cubic-bezier(.22,1,.36,1); }
.faq-icon svg { width: 23px; height: 23px; display: block; }
.faq-icon--plus { display: block; }
.faq-icon--minus { display: none; }
.faq-item[open] .faq-icon--plus { display: none; }
.faq-item[open] .faq-icon--minus { display: block; }
.faq-answer { margin: -14px 0 0 82px; width: calc(100% - 170px); padding: 0 0 28px; font-size: 14px; font-weight: 400; line-height: 1.57; color: #171723; opacity: 0; transition: opacity .3s cubic-bezier(.22,1,.36,1); }
.faq-item[open] .faq-answer { opacity: 1; }
div.faq-answer p { margin: 0; }
div.faq-answer p + p { margin-top: 10px; }
@media (max-width: 640px) {
  .faq-heading { margin-bottom: 40px; }
  .faq-question { min-height: 72px; height: auto; padding: 20px 24px 20px 68px; }
  .faq-question-text { position: static; transform: none; width: auto; }
  .faq-icon { left: 28px; }
  .faq-answer { margin: 0; width: auto; padding: 0 24px 20px 68px; }
}
/* mirrors the noiz-seo GlowCta button (src/components/shared/GlowCta.astro) */
.glow-cta { min-width: 288px; height: 98px; padding: 0 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 64px; corner-shape: squircle; background: rgba(0, 0, 0, .8); color: #fff; font-family: Poppins, Inter, "Helvetica Neue", Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-decoration: none; box-shadow: inset 0 4px 4px 0 rgba(255, 255, 255, .25); }
@media (max-width: 640px) {
  .glow-cta { min-width: 220px; height: 96px; padding: 0 32px; font-size: 18px; }
}

@media (min-width: 861px) {
  body.has-results .page-section,
  body.has-results .faq-section,
  body.has-results .page-about { display: none; }
}

/* the studio card must fit in the first screen under the header, strip and intro; shrink in steps as the viewport gets shorter */
@media (min-width: 861px) {
  .cover-strip { margin-top: 12px; padding-bottom: 18px; }
  body.cover-mode main { margin-top: 10px; }
  .page-intro { margin-bottom: 22px; }
  .page-intro p { margin-top: 8px; }
  .mode-tabs { margin-bottom: 18px; }
}
@media (min-width: 861px) and (max-height: 1000px) {
  /* the cover editor is ~100px taller than the text composer; the intro gives way once the visitor has picked Cover */
  body.cover-mode .page-intro { display: none; }
  .strip-item { width: 80px; height: 80px; }
  .page-intro h1 { font-size: clamp(28px, 3vw, 38px); }
  .field-block { min-height: 132px; }
  .field-block textarea { height: 64px; margin-top: 12px; }
  .lyrics-block { min-height: 190px; }
  .lyrics-block textarea { height: 118px; }
  .composer-toolbar { min-height: 66px; }
  .cover-upload-panel { min-height: 380px; padding: 30px 48px 34px; }
  .source-audio-card { min-height: 64px; padding: 8px 14px; }
  .cover-form-grid { margin-top: 12px; }
  .cover-lyrics-field { min-height: 160px; }
  .cover-lyrics-field textarea { height: 84px; }
  .cover-description-field { min-height: 104px; }
  .cover-description-field textarea { height: 40px; }
  .cover-settings { padding: 14px; gap: 12px; }
  .cover-actions { min-height: 0; padding-top: 10px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  .cover-strip { padding: 8px 0 12px; }
  .strip-item { width: 68px; height: 68px; }
  .page-intro { margin-bottom: 16px; }
  .page-intro h1 { font-size: 30px; }
  .page-intro p { font-size: 14px; }
  .field-block { min-height: 116px; padding-top: 16px; padding-bottom: 30px; }
  .field-block textarea { height: 50px; margin-top: 10px; }
  .lyrics-block { min-height: 160px; }
  .lyrics-block textarea { height: 92px; }
  .cover-upload-panel { min-height: 360px; padding: 26px 40px 30px; }
  .cover-lyrics-field { min-height: 150px; }
  .cover-lyrics-field textarea { height: 80px; }
  .cover-form-grid { margin-top: 10px; }
  .cover-settings { gap: 9px; }
}
@media (min-width: 861px) and (max-height: 740px) {
  .cover-strip { padding: 6px 0 8px; }
  .strip-item { width: 60px; height: 60px; }
  .page-intro h1 { font-size: 26px; }
  .field-block { min-height: 104px; }
  .field-block textarea { height: 40px; }
  .lyrics-block { min-height: 150px; }
  .lyrics-block textarea { height: 82px; }
  .composer-toolbar { min-height: 60px; }
  .cover-form-grid { margin-top: 8px; }
  .cover-settings { padding: 12px; gap: 8px; }
  .cover-lyrics-field textarea { height: 60px; }
  .cover-description-field textarea { height: 28px; }
  .cover-editor { padding: 16px; }
  .cover-generate { height: 48px; border-radius: 31px; }
  .cover-upload-panel { min-height: 320px; padding: 22px 36px 26px; }
}

@media (max-width: 860px) {
  .page-intro { margin-bottom: 22px; }
  .page-section { width: calc(100% - 24px); padding-top: 64px; }
  .section-head { align-items: flex-start; }
  .step-grid,
  .step-grid--bench { grid-template-columns: 1fr; gap: 12px; }
  .bench-figure-inner { min-width: 640px; }
  .page-about { width: calc(100% - 24px); }
  .feature-row { padding: 0; grid-template-columns: 1fr; gap: 22px; border-radius: 0; }
  .feature-rows > .feature-row:nth-child(even),
  .feature-row--flip { grid-template-columns: 1fr; }
  .feature-rows > .feature-row:nth-child(even) .feature-mock,
  .feature-row--flip .feature-mock { order: 0; }
  .lp-demo { flex-direction: column; min-height: 0; }
  .lp-demo-side { width: 100%; }
  .lp-pair { flex-direction: column; }
  .lp-dash { display: none; }
  .lp-orig,
  .lp-clone,
  .lp-staff--mini { flex: none; width: 100%; }
}

/* ===== noiz.ai site header + footer — mirrors noiz-seo Header.astro / Footer.astro ===== */
.site-header,
.site-footer {
  --color-surface: #f6f8fa;
  --color-text: #36353a;
  --color-muted: #7d7d7d;
  --color-line: #e1e1e1;
  --color-accent: #fe655d;
  --color-ink-strong: #000000;
  --radius-pill: 999px;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-header .shell,
.site-footer .shell { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.site-header ul,
.site-footer ul,
.site-footer p { margin: 0; }
.noiz-logo { width: auto; display: block; }

/* stays under the pickers (19/20), history drawer (30) and player bar (18) */
.site-header { position: sticky; top: 0; z-index: 17; min-height: 64px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px); }
.site-header .nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.site-header .site-brand { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.site-header .site-brand .noiz-logo { height: 18px; }
/* brand-logo.png carries ~10px of transparent padding on its left, hence the lopsided margins */
.site-header .site-brand-x { margin: 0 1px 0 12px; color: #8a8890; font-size: 20px; line-height: 1; }
.site-header .site-brand-yue2 { height: 43px; width: auto; display: block; }
/* noiz-seo centres this absolutely; here it sits in the flex flow so longer ja/es labels can never slide under the wider brand or the language menu */
.site-header .nav-center { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.site-header .nav-item { position: relative; display: inline-flex; }
.site-header .nav-link { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--radius-pill); clip-path: inset(0 round var(--radius-pill)); font-size: 15px; line-height: 18px; font-weight: 500; color: var(--color-ink-strong); text-decoration: none; white-space: nowrap; border: 0; background: transparent; font-family: inherit; cursor: pointer; transition: background 0.15s ease; }
.site-header .nav-link:hover,
.site-header .nav-item:hover .nav-link,
.site-header .nav-item:focus-within .nav-link { background: var(--color-surface); }
.site-header .dropdown { position: absolute; top: 100%; left: 0; width: max-content; padding-top: 6px; visibility: hidden; pointer-events: none; filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); transition: visibility 0s linear 0.32s, filter 0.32s ease; z-index: 30; }
.site-header .dropdown-inner { display: flex; align-items: stretch; gap: 0; min-height: 190px; padding: 22px 8px; border-radius: 26px; background: #ffffff; border: 0.5px solid var(--color-line); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); clip-path: inset(0 0 100% 0 round 26px); transition: clip-path 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease; }
.site-header .nav-item:hover .dropdown,
.site-header .nav-item:focus-within .dropdown,
.site-header .nav-item.is-open .dropdown { visibility: visible; pointer-events: auto; filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.18)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1)); transition: visibility 0s, filter 0.32s ease; }
.site-header .nav-item:hover .dropdown-inner,
.site-header .nav-item:focus-within .dropdown-inner,
.site-header .nav-item.is-open .dropdown-inner { clip-path: inset(0 0 0 0 round 26px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(0, 0, 0, 0.08); }
.site-header .menu-section { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 32px; min-width: 0; }
.site-header .menu-section + .menu-section { border-left: 1px solid var(--color-line); }
.site-header .menu-section--single { align-items: center; }
.site-header .menu-section--single .menu-heading,
.site-header .menu-section--single a { text-align: center; }
.site-header .menu-section--single .menu-groups ul { align-items: center; }
.site-header .menu-heading { margin: 0; font-size: 13px; line-height: 15.7px; font-weight: 500; color: var(--color-muted); text-align: left; }
.site-header .menu-groups { display: flex; gap: 24px; }
.site-header .menu-groups ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 100px; }
.site-header .menu-section a { display: inline-block; font-size: 16px; line-height: 19.4px; font-weight: 600; color: var(--color-ink-strong); text-decoration: none; white-space: nowrap; text-align: left; transition: color 0.15s ease; }
.site-header .menu-section a:hover { color: var(--color-accent); }
.site-header .nav-cta { display: flex; align-items: center; gap: 10px; }
.site-header .signup { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); clip-path: inset(0 round var(--radius-pill)); background: transparent; font-size: 16px; line-height: 19px; font-weight: 600; color: var(--color-ink-strong); text-decoration: none; }
.site-header .signup svg { flex-shrink: 0; }
.site-header .signup:hover { background: var(--color-surface); }
.site-header .lang-switch { width: 44px; height: 44px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-strong); cursor: pointer; transition: background 0.15s ease; }
.site-header .lang-switch:hover { background: var(--color-surface); }
.site-header .lang-menu { position: relative; display: inline-flex; }
.site-header .lang-menu-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--color-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.site-header .lang-menu.is-open .lang-menu-panel { display: block; }
.site-header .lang-menu.is-open .lang-switch { background: var(--color-surface); }
.site-header .start-wrap { position: relative; display: inline-flex; width: auto; min-width: 134px; height: 44px; flex: 0 0 auto; }
.site-header .start-glow { position: absolute; z-index: 0; top: 2px; left: 0; width: 49px; height: 42px; border-radius: 120px; background: #2f2d2c; box-shadow: 0 2px 20px rgba(254, 101, 93, 0.3); pointer-events: none; }
.site-header .start-glow::before,
.site-header .start-glow::after { content: ""; position: absolute; top: 0; height: 42px; border-radius: 120px; background: #2f2d2c; }
.site-header .start-glow::before { left: 43px; width: 56px; box-shadow: 0 2px 24px rgba(157, 87, 255, 0.4); }
.site-header .start-glow::after { left: 88px; width: 39px; box-shadow: 0 2px 20px rgba(86, 161, 255, 0.4); }
.site-header .start { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 134px; height: 44px; padding: 0 18px; white-space: nowrap; border-radius: 60px; clip-path: inset(0 round 60px); overflow: hidden; background: #000000; color: #ffffff; font-size: 16px; line-height: normal; font-weight: 600; text-decoration: none; box-shadow: inset 2px 4px 6px 0 rgba(255, 255, 255, 0.5); }

/* noiz-seo drops the centred nav at 1080px; the wider NOIZ × YuE2 mark and the language menu need more room */
@media (max-width: 1360px) {
  .site-header .nav-center--hide-tablet { display: none; }
}

@media (max-width: 760px) {
  .site-header .shell { width: calc(100% - 40px); }
  .site-header .nav { flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; min-height: 60px; padding: 8px 0; }
  .site-header .nav-center { position: static; transform: none; order: 3; width: 100%; flex-wrap: wrap; justify-content: center; overflow: visible; padding-top: 2px; scrollbar-width: none; }
  .site-header .nav-center::-webkit-scrollbar { display: none; }
  .site-header .nav-link { height: 36px; padding: 0 12px; font-size: 14px; line-height: 17px; }
  .site-header .nav-item { position: static; }
  .site-header .dropdown { position: absolute; top: 100%; left: 16px; right: 16px; width: auto; max-width: none; }
  .site-header .dropdown-inner { flex-direction: row; align-items: stretch; gap: 0; min-height: 0; max-height: min(70vh, 420px); padding: 20px 4px; border-radius: 22px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .site-header .dropdown-inner::-webkit-scrollbar { display: none; }
  .site-header .menu-section { flex: 0 0 auto; padding: 0 18px; }
  .site-header .menu-section + .menu-section { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid var(--color-line); }
  .site-header .menu-groups { flex-direction: column; gap: 16px; max-height: 144px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .site-header .menu-groups::-webkit-scrollbar { display: none; }
  .site-header .menu-groups ul { gap: 16px; min-width: 0; width: 100%; }
  .site-header .menu-heading,
  .site-header .menu-section a { white-space: nowrap; }
  .site-header .nav-cta .signup { display: none; }
  .site-header .lang-switch { width: 40px; height: 40px; }
  .site-header .start-wrap { width: auto; min-width: 118px; height: 40px; flex: 0 0 auto; border-radius: 60px; overflow: hidden; }
  .site-header .start-glow { inset: 0; width: 100%; height: 100%; border-radius: inherit; }
  .site-header .start-glow::before,
  .site-header .start-glow::after { display: none; }
  .site-header .start { height: 40px; width: auto; min-width: 118px; padding: 0 16px; font-size: 14px; line-height: 17px; white-space: nowrap; }
}

@media (max-width: 420px) {
  .site-header .site-brand .noiz-logo { height: 14px; }
  .site-header .site-brand-x { margin: 0 1px 0 9px; font-size: 16px; }
  .site-header .site-brand-yue2 { height: 34px; }
}

/* the rounded white footer reads against the same blurred rainbow the noiz-seo pages end on (GlowCta) */
.site-footer-glow { position: relative; height: 356px; margin-top: 40px; overflow: visible; pointer-events: none; }
.site-footer-glow::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(1288px, calc(100vw - 32px)); height: 269px; filter: blur(140px); border-radius: 600px; background: linear-gradient(90deg, rgba(137, 231, 246, 0.8) 0%, rgba(189, 215, 248, 0.8) 13.888%, rgba(114, 144, 235, 0.8) 29.136%, rgba(205, 133, 247, 0.8) 39.908%, rgba(233, 167, 231, 0.8) 51.768%, rgba(220, 99, 92, 0.8) 65.565%, rgba(219, 89, 98, 0.8) 77.667%, rgba(228, 128, 85, 0.8) 96.875%); }
.page-shell { overflow-x: clip; }
/* the desktop results view is a fixed one-screen layout with no page scroll, so the footer steps aside */
@media (min-width: 861px) {
  body.has-results .site-footer-glow,
  body.has-results .site-footer { display: none; }
}

.site-footer { margin-top: -174px; min-height: 572px; position: relative; z-index: 1; border-top-left-radius: 136px; border-top-right-radius: 136px; corner-shape: squircle; background: #fff; padding: 88px 0 69px; color: var(--color-text); }
.site-footer .shell { width: min(1304px, calc(100% - 136px)); }
.site-footer .footer-grid { display: grid; grid-template-columns: 166px 1fr; gap: 206px; align-items: start; }
.site-footer .lang-block { display: flex; flex-direction: column; gap: 12px; max-width: 166px; }
.site-footer .lang-label { font-weight: 500; font-size: 18px; line-height: 36px; color: var(--color-text); }
.site-footer .lang-picker { position: relative; }
.site-footer .lang-trigger { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; padding: 6px 12px; border: 1px solid var(--color-line); border-radius: 18px; font-size: 16px; line-height: 24px; background: #fff; cursor: pointer; color: var(--color-text); transition: border-color 0.15s ease, background 0.15s ease; }
.site-footer .lang-trigger-inner { display: flex; align-items: center; justify-content: space-between; width: 133px; gap: 10px; }
.site-footer .lang-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
:is(.site-header, .site-footer) .flag-icon { width: 18px; height: 12px; object-fit: cover; flex-shrink: 0; }
.site-footer .lang-name { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-footer .chev { flex-shrink: 0; color: #d9d9d9; transition: transform 0.2s ease; }
.site-footer .lang-dropdown { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 200px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--color-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); z-index: 100; }
.site-footer .lang-dropdown[data-open] { display: block; }
:is(.site-header, .site-footer) .lang-option { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-decoration: none; font-size: 15px; line-height: 22px; color: var(--color-text); text-align: left; cursor: pointer; transition: background 0.12s ease; }
:is(.site-header, .site-footer) .lang-option:hover { background: var(--color-surface); }
:is(.site-header, .site-footer) .lang-option.is-active { font-weight: 600; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
:is(.site-header, .site-footer) .lang-option-name { flex: 1; }
:is(.site-header, .site-footer) .lang-option .check { flex-shrink: 0; color: var(--color-accent); }
.site-footer .footer-cols { display: flex; flex-wrap: wrap; column-gap: 68px; row-gap: 32px; align-items: start; max-width: 100%; justify-content: end; justify-self: end; }
.site-footer .footer-col-group { display: flex; flex-direction: column; gap: 31px; }
.site-footer .col-heading { margin: 0 0 17px; font-weight: 600; font-size: 20px; line-height: 28px; text-transform: uppercase; color: var(--color-text); }
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col a { display: block; color: var(--color-text); text-decoration: none; font-size: 16px; line-height: 32px; }
.site-footer .footer-col a:hover { color: var(--color-accent); }
.site-footer .footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 94px; }
.site-footer .footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-footer .footer-brand .noiz-logo { height: 28px; }
.site-footer .copyright { margin: 0; color: var(--color-text); font-size: 16px; line-height: 36px; }
.site-footer .legal { margin: 0; display: inline-flex; gap: 8px; flex-wrap: wrap; font-size: 15px; line-height: 30px; font-weight: 500; }
.site-footer .legal a { color: var(--color-ink-strong); text-decoration: none; }
.site-footer .legal a:hover { text-decoration: underline; }
.site-footer .legal span { color: var(--color-ink-strong); }
.site-footer .socials { display: inline-flex; gap: 5px; margin-left: auto; }
.site-footer .socials a { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; color: var(--color-text); background: transparent; transition: background 0.15s ease; }
.site-footer .socials svg { display: block; width: 28px; height: 28px; }
.site-footer .socials a:hover { background: #0000000a; }
.site-footer .social-wechat { position: relative; display: inline-flex; }
.site-footer .social-wechat > button { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: background 0.15s ease; }
.site-footer .social-wechat > button:hover,
.site-footer .social-wechat.is-open > button { background: #0000000a; }
.site-footer .social-wechat > button svg { display: block; width: 28px; height: 28px; }
.site-footer .social-wechat-qr { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); width: 188px; padding: 10px; border-radius: 28px; background: #fff; filter: drop-shadow(0 1px 1px rgba(20, 20, 30, .08)) drop-shadow(0 14px 28px rgba(20, 20, 30, .16)); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.site-footer .social-wechat-qr::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.site-footer .social-wechat:hover .social-wechat-qr,
.site-footer .social-wechat:focus-within .social-wechat-qr,
.site-footer .social-wechat.is-open .social-wechat-qr { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.site-footer .social-wechat-qr img { display: block; width: 100%; height: auto; border-radius: 14px; }

@media (max-width: 1200px) {
  .site-footer .shell { width: min(1320px, calc(100% - 80px)); }
  .site-footer .footer-cols { gap: 32px 24px; }
}

@media (max-width: 980px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .site-footer-glow { height: 300px; }
  .site-footer-glow::before { width: min(1288px, calc(100vw - 16px)); height: 220px; filter: blur(120px); }
  .site-footer { margin-top: -120px; height: auto; border-top-left-radius: 48px; border-top-right-radius: 48px; padding: 48px 0 40px; }
  .site-footer .shell { width: calc(100% - 40px); }
  .site-footer .footer-grid { gap: 28px; }
  .site-footer .footer-cols { justify-content: start; column-gap: 40px; row-gap: 28px; }
  .site-footer .footer-bottom { margin-top: 48px; }
  .site-footer .socials { margin-left: 0; width: 100%; }
  .site-footer .social-wechat-qr { left: 0; transform: translate(0, 6px); }
  .site-footer .social-wechat:hover .social-wechat-qr,
  .site-footer .social-wechat:focus-within .social-wechat-qr,
  .site-footer .social-wechat.is-open .social-wechat-qr { transform: translate(0, 0); }
}
