:root {
  color-scheme: dark;
  --bg: #090a0d;
  --surface: rgba(18, 20, 25, 0.84);
  --surface-soft: rgba(18, 19, 22, 0.6);
  --surface-strong: rgba(23, 25, 31, 0.96);
  --line: rgba(168, 182, 214, 0.24);
  --line-soft: rgba(90, 96, 110, 0.34);
  --text: #f4f2ee;
  --muted: #b5bac7;
  --dim: #7f8796;
  --blue: #8fb6ff;
  --cyan: #74e4ca;
  --gold: #f3c969;
  --green: #b8f478;
  --danger: #ff8a8a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(143, 182, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 20%, rgba(116, 228, 202, 0.14), transparent 24rem),
    linear-gradient(180deg, #101116 0%, #090a0d 100%);
  background-size: 86px 100%, auto, auto, auto;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.quick-studio-shell {
  min-height: 100vh;
  padding: 14px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: 100%;
  margin: 0 auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 19, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.3);
}

.brand,
.nav,
.actions,
.style-presets,
.settings-row,
.voice-row,
.generate-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-glyph {
  width: 32px;
  height: 32px;
}

.brand-wordmark {
  width: 96px;
  height: auto;
}

.nav {
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
}

.nav a.active,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(185, 206, 255, 0.1);
}

.actions {
  gap: 8px;
}

.actions .button {
  height: 38px;
  min-height: 38px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(168, 182, 214, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  min-width: 112px;
  border-color: rgba(143, 182, 255, 0.58);
  color: #08111d;
  background: linear-gradient(135deg, #e8efff 0%, #8fb6ff 100%);
  box-shadow: 0 18px 42px rgba(74, 129, 255, 0.28);
}

.button.app-button {
  min-width: 132px;
  gap: 8px;
  padding: 0 12px 0 9px;
  border-color: rgba(244, 242, 238, 0.2);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(5, 7, 10, 0.58);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-store-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-store-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.app-store-copy span {
  color: rgba(244, 242, 238, 0.64);
  font-size: 12px;
  font-weight: 860;
}

.app-store-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 920;
}

.mobile-primary-ios {
  flex: 0 0 auto;
}

.language-switch {
  min-width: 76px;
  gap: 0;
  padding: 4px;
  border-color: rgba(168, 182, 214, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
}

.language-switch span {
  min-width: 32px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: rgba(181, 186, 199, 0.84);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.language-switch .active {
  color: rgba(244, 242, 238, 0.92);
  background: rgba(185, 206, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(185, 206, 255, 0.16);
}

.home-layout {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 428px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 10px;
}

.stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(168, 182, 214, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    #101218;
  box-shadow: var(--shadow);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0.56) 45%, rgba(5, 7, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.05), rgba(5, 7, 10, 0.78));
  opacity: 0.9;
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 10, 0.24) 100%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-carousel,
.hero-carousel span {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: 0;
  overflow: hidden;
}

.hero-carousel span {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  animation: heroFade 24s linear infinite;
}

.hero-carousel span:nth-child(1) {
  background-image: image-set(url("/assets/homepage-index1/hero-1.webp") type("image/webp"), url("/assets/homepage-index1/hero-1.png") type("image/png"));
  animation-delay: 0s;
}

.hero-carousel span:nth-child(2) {
  background-image: image-set(url("/assets/homepage-index1/hero-2.webp") type("image/webp"), url("/assets/homepage-index1/hero-2.png") type("image/png"));
  animation-delay: 6s;
}

.hero-carousel span:nth-child(3) {
  background-image: image-set(url("/assets/homepage-index1/hero-3.webp") type("image/webp"), url("/assets/homepage-index1/hero-3.png") type("image/png"));
  animation-delay: 12s;
}

.hero-carousel span:nth-child(4) {
  background-image: image-set(url("/assets/homepage-index1/hero-4.webp") type("image/webp"), url("/assets/homepage-index1/hero-4.png") type("image/png"));
  animation-delay: 18s;
}

@keyframes heroFade {
  0%,
  100% {
    opacity: 0;
  }

  6%,
  25% {
    opacity: 1;
  }

  31% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel span {
    animation: none;
  }

  .hero-carousel span:first-child {
    opacity: 1;
  }
}

.stage-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 42px;
}

.headline {
  max-width: 720px;
  align-self: center;
}

.kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(116, 228, 202, 0.26);
  border-radius: 8px;
  background: rgba(116, 228, 202, 0.08);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

h1 {
  margin-top: 18px;
  max-width: 660px;
  font-size: 58px;
  line-height: 0.98;
  font-weight: 900;
}

.headline p {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(244, 242, 238, 0.76);
  font-size: 17px;
}

.studio-composer {
  position: sticky;
  top: 82px;
  isolation: isolate;
  min-height: calc(100vh - 100px);
  max-height: calc(100vh - 100px);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: auto;
  scrollbar-width: none;
}

.studio-composer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.studio-composer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(180px 140px at 22% 78%, rgba(116, 228, 202, 0.18), transparent 72%),
    radial-gradient(220px 160px at 74% 92%, rgba(143, 182, 255, 0.16), transparent 74%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.018) 100%);
  pointer-events: none;
}

.studio-composer::after {
  content: "";
  min-height: 8px;
}

.content-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.entry-card,
.compact-import,
.info-section,
.cost-panel {
  border-radius: 8px;
}

.entry-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.primary-entry {
  border: 1px solid rgba(185, 206, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(29, 31, 36, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.primary-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.entry-head,
.compact-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-icon,
.compact-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.entry-icon {
  width: 42px;
  height: 42px;
  color: #08101f;
  background: linear-gradient(135deg, #dbe6ff, #79a8ff);
  box-shadow: 0 12px 28px rgba(76, 141, 255, 0.18);
  font-size: 22px;
}

.entry-head h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 820;
}

.lyrics-box,
.style-input,
.reference-lyrics {
  position: relative;
  display: grid;
  gap: 8px;
}

.field-head,
.reference-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-head > span,
.style-input > span,
.voice-row > div > span,
.reference-label {
  min-width: 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.secondary-button,
.primary-button,
.choice {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 96, 110, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.secondary-button:hover,
.primary-button:hover,
.choice:hover {
  transform: translateY(-1px);
}

.secondary-button:disabled,
.primary-button:disabled,
.choice:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.choice.active {
  border-color: rgba(185, 206, 255, 0.42);
  background: linear-gradient(180deg, rgba(185, 206, 255, 0.16), rgba(185, 206, 255, 0.06));
  color: var(--text);
}

.primary-button {
  border-color: transparent;
  color: #08101f;
  background: linear-gradient(135deg, #d6e2ff, #4c8dff);
  font-weight: 820;
  box-shadow:
    0 14px 30px rgba(75, 142, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.compact {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 740;
}

.generation-price-badge {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid rgba(8, 16, 31, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #08101f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.generation-price-badge.free-first {
  border-color: rgba(99, 67, 0, 0.18);
  background: linear-gradient(180deg, #ffe8a4, #f1bf45);
  color: #3d2a04;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.lyrics-box textarea,
.style-input textarea,
.reference-lyrics textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(93, 100, 116, 0.56);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent),
    rgba(11, 12, 15, 0.34);
  outline: none;
  line-height: 1.5;
}

.lyrics-box textarea,
.style-input textarea {
  padding: 12px 34px 28px 12px;
  font-size: 14px;
}

.lyrics-box textarea {
  min-height: 126px;
}

.style-input textarea {
  min-height: 66px;
}

.reference-lyrics textarea {
  min-height: 72px;
  padding: 10px;
  font-size: 13px;
}

.subtitle-file-button {
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 11px;
}

.reference-lyrics.has-subtitle-file .subtitle-file-button,
.reference-lyrics.has-subtitle-file textarea {
  display: none;
}

.subtitle-file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border: 1px solid rgba(65, 71, 85, 0.72);
  border-radius: 8px;
  color: var(--text);
  background: rgba(11, 12, 15, 0.34);
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.subtitle-file-status[hidden] {
  display: none;
}

.subtitle-file-status span {
  color: inherit;
  font-size: inherit;
  font-weight: 760;
}

.subtitle-file-status em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.subtitle-file-actions {
  flex: 0 0 auto;
}

.subtitle-file-status button {
  border: 1px solid rgba(65, 71, 85, 0.72);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.lyrics-box textarea:focus,
.style-input textarea:focus,
.reference-lyrics textarea:focus {
  border-color: rgba(185, 206, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(185, 206, 255, 0.08);
}

.field-counter {
  position: absolute;
  right: 24px;
  bottom: 7px;
  z-index: 1;
  color: var(--dim);
  font-size: 11px;
  font-weight: 760;
  pointer-events: none;
}

.song-controls {
  display: grid;
  gap: 10px;
}

.song-controls > div {
  display: grid;
  gap: 8px;
}

.style-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.style-presets .choice {
  min-width: 0;
  overflow: hidden;
  padding-inline: 7px;
  text-overflow: ellipsis;
  font-size: 11px;
}

.voice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 14px;
  padding-top: 2px;
}

.voice-row > div {
  display: grid;
  gap: 9px;
}

.voice-row .settings-row {
  display: flex;
  gap: 8px;
}

.song-submit-button,
.import-actions .primary-button {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.compact-import {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 22, 0.6);
}

.compact-import::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(115, 231, 197, 0.44), transparent 72%);
}

.compact-head {
  gap: 9px;
}

.compact-head h2 {
  font-size: 16px;
  line-height: 1.2;
}

.compact-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
  background: rgba(173, 198, 255, 0.1);
  font-size: 16px;
}

.upload-file-control {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px dashed rgba(76, 82, 96, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: pointer;
}

.upload-file-control.has-file,
.upload-file-control.uploading,
.upload-file-control.uploaded {
  min-height: 68px;
  gap: 12px;
  padding: 10px 14px 15px 10px;
  border-style: solid;
  border-color: rgba(151, 169, 218, 0.62);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(23, 25, 31, 0.72);
  box-shadow: inset 0 0 0 1px rgba(151, 169, 218, 0.14);
}

.upload-file-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 157, 178, 0.22);
  border-radius: 7px;
  color: rgba(214, 222, 240, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
}

.upload-file-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.upload-file-copy strong,
.upload-file-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-copy strong,
.upload-file-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
}

.upload-file-copy em {
  color: rgba(157, 166, 188, 0.66);
  font-size: 12px;
  font-weight: 640;
}

.upload-file-delete {
  display: none;
}

.upload-file-control.has-file .upload-file-delete,
.upload-file-control.uploading .upload-file-delete,
.upload-file-control.uploaded .upload-file-delete {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 138, 138, 0.82);
  font-size: 12px;
  font-weight: 880;
}

.upload-file-control.uploaded .upload-file-icon,
.upload-file-control.upload-complete .upload-file-icon {
  border-color: rgba(116, 228, 202, 0.72);
  color: rgba(244, 242, 238, 0.8);
  background: linear-gradient(135deg, rgba(116, 228, 202, 0.92), rgba(143, 182, 255, 0.82));
  box-shadow: 0 12px 26px rgba(116, 228, 202, 0.16);
}

.upload-progress {
  display: none;
}

.upload-file-control.uploading .upload-progress,
.upload-file-control.uploaded .upload-progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress i {
  display: block;
  width: var(--upload-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -4px;
}

.home-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 231, 197, 0.26);
  border-radius: 8px;
  background: rgba(115, 231, 197, 0.07);
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.home-status:empty {
  display: none;
}

.home-status span {
  min-width: 0;
  flex: 1;
}

.home-status i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(115, 231, 197, 0.1);
}

.home-status.is-error {
  border-color: rgba(255, 138, 138, 0.3);
  background: rgba(255, 138, 138, 0.08);
  color: var(--text);
}

.home-status.is-error i {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 138, 138, 0.1);
}

.home-status-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-weight: 860;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(115, 231, 197, 0.38);
  text-underline-offset: 3px;
}

.split-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 12px;
  align-items: stretch;
}

.info-section,
.cost-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 22, 0.6);
}

.info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.14), transparent 48%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
  opacity: 0.36;
}

.info-section > *,
.cost-panel > * {
  position: relative;
  z-index: 1;
}

.compact-info {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.section-head {
  display: grid;
  gap: 8px;
}

.section-head.inline-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.section-head h2,
.cost-panel h2 {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.08;
}

.section-head h2 {
  margin-top: 8px;
}

.section-head p,
.cost-panel > p {
  color: rgba(244, 242, 238, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid rgba(168, 182, 214, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 9, 12, 0.34);
}

.flow-step {
  position: relative;
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border-left: 1px solid rgba(168, 182, 214, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.03) 34px 35px);
}

.flow-step:first-child {
  border-left: 0;
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
  transform: scaleX(0.28);
  transform-origin: left;
  opacity: 0.84;
}

.flow-step:nth-child(2)::after {
  transform: scaleX(0.46);
}

.flow-step:nth-child(3)::after {
  transform: scaleX(0.72);
}

.flow-step:nth-child(4)::after {
  transform: scaleX(1);
}

.flow-num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  color: #071014;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: translateY(1px);
}

.flow-head .flow-num {
  flex: 0 0 26px;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.flow-step strong,
.mini-card strong,
.scenario-row strong,
.cost-chip strong {
  display: block;
  color: var(--text);
}

.flow-step strong {
  font-size: 15px;
  line-height: 1.1;
}

.flow-step > span {
  display: block;
  color: rgba(181, 186, 199, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.flow-step .flow-num {
  display: inline-grid;
  place-items: center;
  color: #071014;
  font-size: 13px;
  line-height: 1;
}

.mini-grid,
.scenario-list,
.cost-grid,
.qa-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card,
.scenario-row,
.cost-chip {
  border: 1px solid rgba(168, 182, 214, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-card {
  min-height: 96px;
  padding: 12px;
}

.mini-card b,
.scenario-row b {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.mini-card strong,
.scenario-row strong,
.cost-chip strong {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.15;
}

.mini-card span,
.scenario-row span,
.cost-chip span {
  display: block;
  margin-top: 7px;
  color: rgba(181, 186, 199, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.scenario-list {
  grid-template-columns: 1fr 1fr;
}

.scenario-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 96px;
  padding: 9px;
}

.scenario-thumb {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.scenario-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cost-panel {
  background:
    linear-gradient(90deg, rgba(116, 228, 202, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 22, 0.6);
}

.cost-panel h2 {
  margin-top: 8px;
  max-width: 560px;
  font-size: 22px;
  line-height: 1.08;
}

.cost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.cost-chip {
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 12px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 10px;
  margin-top: 16px;
}

.blog-feature,
.blog-list-card {
  overflow: hidden;
  border: 1px solid rgba(168, 182, 214, 0.18);
  border-radius: 8px;
  background: rgba(18, 20, 25, 0.68);
}

.blog-feature {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 164px;
}

.blog-feature img,
.blog-list-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-feature div,
.blog-list-card div {
  padding: 14px;
}

.blog-meta {
  color: var(--gold);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.04em;
}

.blog-feature h3,
.blog-list-card h3 {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.08;
}

.blog-feature h3 {
  font-size: 18px;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 82px;
}

.blog-list-card h3 {
  font-size: 14px;
}

.blog-feature p,
.blog-list-card p {
  margin: 10px 0 0;
  color: rgba(181, 186, 199, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

.qa-list {
  gap: 10px;
}

.qa-item {
  border: 1px solid rgba(168, 182, 214, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.qa-item summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 860;
}

.qa-item p {
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(181, 186, 199, 0.84);
  font-size: 13px;
}

.mobile-footer-links {
  display: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(12px);
}

.auth-overlay.is-open {
  display: flex;
}

.auth-dialog {
  width: min(430px, calc(100vw - 28px));
  padding: 24px;
  border: 1px solid rgba(247, 239, 226, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    #111318;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.auth-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.auth-dialog h3 {
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

.auth-dialog p {
  margin-top: 8px;
  font-size: 14px;
}

.auth-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-google,
.auth-submit,
.auth-send-code {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}

.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #191b1f;
  background: #fff;
}

.auth-google.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.google-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.insufficient-credits-modal[hidden],
.billing-payment-modal[hidden] {
  display: none;
}

.insufficient-credits-modal,
.billing-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 5, 7, 0.62);
  backdrop-filter: blur(14px);
}

.insufficient-card,
.billing-payment-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(243, 201, 105, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(243, 201, 105, 0.1), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(18, 19, 22, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  padding: 18px;
}

.insufficient-head,
.insufficient-actions,
.billing-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insufficient-head span,
.insufficient-meter span,
.billing-payment-price span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.insufficient-card .icon-button,
.billing-payment-card .icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.insufficient-card h2 {
  font-size: 24px;
}

.insufficient-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.insufficient-meter div {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(90, 96, 110, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 12px;
}

.insufficient-meter strong {
  font-size: 22px;
  line-height: 1;
}

.insufficient-meter b {
  color: var(--gold);
}

.insufficient-actions {
  justify-content: flex-end;
}

.billing-provider-state,
.billing-qr-state,
.billing-success-state,
.billing-confirming-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.billing-provider-state strong,
.billing-qr-state strong,
.billing-success-state strong,
.billing-confirming-state strong {
  font-size: 15px;
}

.billing-provider-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.billing-provider-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(90, 96, 110, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 14px;
  text-align: left;
}

.billing-provider-button i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.billing-provider-button.wechat i {
  background: #19bf5d;
}

.billing-provider-button.alipay_qr i,
.billing-provider-button.alipay i {
  background: #1677ff;
}

.billing-provider-button.stripe i {
  background: rgba(243, 201, 105, 0.18);
  color: var(--gold);
}

.billing-provider-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 820;
}

.billing-provider-button b {
  color: var(--dim);
  font-size: 20px;
}

.billing-payment-price {
  display: grid;
  gap: 4px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 780;
}

.billing-payment-price b,
.billing-qr-state b,
.billing-success-state b,
.billing-confirming-state b {
  color: var(--gold);
  font-size: 20px;
}

.billing-qr-image,
.billing-qr-expired-box {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #fff;
}

.billing-qr-image {
  border: 8px solid rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

.billing-qr-expired-box {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 18px;
  font-weight: 900;
}

.billing-qr-state span,
.billing-qr-state em,
.billing-confirming-state span,
.billing-success-state span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.billing-qr-state .billing-qr-countdown {
  min-width: 138px;
  border: 1px solid rgba(243, 201, 105, 0.26);
  border-radius: 999px;
  background: rgba(243, 201, 105, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
  padding: 6px 10px;
}

.billing-payment-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-payment-actions .primary-button,
.billing-payment-actions .secondary-button {
  width: 100%;
  min-height: 42px;
}

.billing-qr-state:not(.expired) .billing-payment-actions {
  grid-template-columns: minmax(0, 1fr);
}

.billing-confirming-state i {
  width: 42px;
  height: 42px;
  animation: spin 900ms linear infinite;
  border: 4px solid rgba(243, 201, 105, 0.24);
  border-top-color: var(--gold);
  border-radius: 999px;
  background: transparent;
}

.billing-success-state i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(243, 201, 105, 0.14);
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.billing-success-state.failed i {
  color: var(--danger);
  background: rgba(255, 138, 138, 0.14);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(247, 239, 226, 0.12);
}

.auth-field {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(247, 239, 226, 0.18);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  font-weight: 800;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
  align-items: end;
}

.auth-send-code {
  border: 1px solid rgba(247, 239, 226, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-submit {
  color: #08111d;
  background: linear-gradient(135deg, #edf3ff 0%, #72a5ff 100%);
}

.auth-note {
  min-height: 20px;
  color: rgba(181, 186, 199, 0.84);
  font-size: 12px;
}

.auth-note.is-error {
  color: var(--danger);
}

@media (max-width: 1280px) {
  .split-info-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  body {
    min-width: 0;
  }

  .quick-studio-shell {
    padding: 12px;
  }

  .topbar {
    top: 12px;
    gap: 10px;
    padding: 8px 10px;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    width: 82px;
  }

  .nav {
    gap: 2px;
    font-size: 12px;
  }

  .nav a {
    padding: 8px 7px;
  }

  .actions {
    gap: 6px;
  }

  .language-switch {
    min-width: 70px;
  }

  .language-switch span {
    min-width: 29px;
  }

  .button.app-button {
    min-width: 132px;
  }

  .button.primary {
    min-width: 96px;
    padding-inline: 11px;
  }

  .home-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 12px;
  }

  .studio-composer {
    top: 78px;
    min-height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
  }

  .entry-card {
    padding: 16px;
  }

  .entry-head h2 {
    font-size: 24px;
  }

  .lyrics-box textarea {
    min-height: 112px;
  }

  .style-presets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .style-presets .choice {
    min-height: 32px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .voice-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .song-submit-button {
    width: 100%;
  }

  .stage {
    min-height: 560px;
  }

  .stage-content {
    min-height: 560px;
    padding: 30px;
  }

  .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(168, 182, 214, 0.13);
  }

  .flow-step:nth-child(4) {
    border-top: 1px solid rgba(168, 182, 214, 0.13);
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .headline p {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  body {
    min-width: 0;
  }

  .quick-studio-shell {
    padding: 10px;
  }

  .topbar,
  .home-layout,
  .split-info-row,
  .workflow-track,
  .cost-grid,
  .mini-grid,
  .scenario-list,
  .blog-layout,
  .blog-feature,
  .blog-list-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    top: 10px;
    z-index: 50;
    min-height: 54px;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 8px 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(9, 10, 13, 0.94);
  }

  .nav,
  .language-switch,
  .desktop-studio-button {
    display: none;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    width: 86px;
  }

  .actions {
    justify-content: flex-end;
    gap: 0;
  }

  .actions .app-button {
    height: 40px;
    min-height: 40px;
    min-width: 168px;
    padding: 0 16px;
    border-color: rgba(143, 182, 255, 0.62);
    color: #08111d;
    background: linear-gradient(135deg, #edf3ff 0%, #72a5ff 100%);
    box-shadow: 0 16px 36px rgba(74, 129, 255, 0.28);
  }

  .actions .app-store-mark {
    width: 19px;
    height: 19px;
    filter: invert(1);
  }

  .actions .app-store-copy span {
    color: rgba(8, 17, 29, 0.66);
  }

  .actions .app-store-copy strong {
    color: #08111d;
    font-size: 14px;
  }

  .studio-composer {
    display: none;
  }

  .home-layout {
    position: static;
    min-height: auto;
    max-height: none;
    padding-top: 12px;
  }

  .stage {
    min-height: 420px;
    max-height: 420px;
  }

  .stage::before {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.34) 0%, rgba(5, 7, 10, 0.3) 36%, rgba(5, 7, 10, 0.88) 100%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.72), rgba(5, 7, 10, 0.24));
  }

  .hero-carousel span {
    transform: scale(1);
  }

  .stage-content {
    min-height: 420px;
    padding: 24px;
  }

  .headline {
    align-self: center;
    max-width: 620px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .headline p {
    margin-top: 14px;
    font-size: 15px;
  }

  .section-head,
  .section-head.inline-head {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 130px;
    border-left: 0;
    border-top: 1px solid rgba(168, 182, 214, 0.13);
  }

  .flow-step:first-child {
    border-top: 0;
  }

  .mobile-footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 24px 0 10px;
    color: rgba(181, 186, 199, 0.78);
    font-size: 13px;
    font-weight: 760;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
  }
}
