:root {
  --ink: #101427;
  --muted: #657086;
  --line: rgba(15, 23, 42, 0.13);
  --paper: #f7fbff;
  --white: #ffffff;
  --coral: #ff486f;
  --aqua: #00c8ff;
  --mint: #34e59b;
  --lemon: #ffe45c;
  --blue: #3157ff;
  --violet: #8a5cff;
  --brand-red: #ff4f8b;
  --brand-blue: #2f6fff;
  --brand-violet: #8b5cf6;
  --brand-cyan: #20bde9;
  --grad-action: linear-gradient(135deg, #ff4f8b 0%, #8b5cf6 48%, #2f6fff 100%);
  --grad-icon: linear-gradient(145deg, #ff6ba7 0%, #8b5cf6 52%, #2f6fff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 79, 139, 0.18), rgba(139, 92, 246, 0.18), rgba(47, 111, 255, 0.18));
  --grad-line: linear-gradient(135deg, rgba(255, 79, 139, 0.56), rgba(139, 92, 246, 0.58), rgba(47, 111, 255, 0.56));
  --sm-item-error-text: #ef3f68;
  --sm-item-error-border: rgba(244, 63, 94, 0.18);
  --sm-item-error-bg:
    linear-gradient(90deg, rgba(255, 79, 139, 0.025), rgba(139, 92, 246, 0.018)),
    rgba(255, 255, 255, 0.76);
  --sm-item-error-pill-border: rgba(244, 63, 94, 0.22);
  --sm-item-error-pill-bg: rgba(255, 245, 248, 0.68);
  --sm-item-error-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.025);
  --brand-glow: 0 14px 28px rgba(139, 92, 246, 0.18), 0 7px 18px rgba(255, 79, 139, 0.12);
  --shadow: 0 22px 70px rgba(13, 23, 54, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f7fbff;
}

body {
  scroll-snap-type: y mandatory;
}

main {
  position: relative;
  z-index: auto;
}

body.player-open .intro-shell,
body.player-open .create-layout,
body.player-open .history-layout,
body.player-open .how-section .content-shell,
body.player-open .qa-layout,
body.player-open .site-footer {
  transform-origin: top center;
  transform: translateY(-6px) scale(0.968);
  transition: transform 0.28s ease;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 27%, rgba(255, 72, 111, 0.15), transparent 15%),
    radial-gradient(circle at 12% 33%, rgba(0, 200, 255, 0.22), transparent 18%),
    radial-gradient(circle at 82% 52%, rgba(52, 229, 155, 0.2), transparent 17%),
    radial-gradient(circle at 18% 72%, rgba(138, 92, 255, 0.18), transparent 18%),
    radial-gradient(circle at 72% 88%, rgba(255, 228, 92, 0.22), transparent 17%),
    linear-gradient(
      180deg,
      #f7fbff 0%,
      #fff8f4 24%,
      #f4fbff 42%,
      #f9f7ff 62%,
      #effcff 80%,
      #fff8ee 100%
    );
}

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

select:focus,
select:focus-visible {
  outline: none;
  box-shadow: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.24);
  outline-offset: 2px;
}

button {
  cursor: pointer;
}

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

.track-row.has-error,
.library-song-row.has-error {
  border-color: var(--sm-item-error-border);
  background: var(--sm-item-error-bg);
  box-shadow: var(--sm-item-error-shadow);
}

.track-row.has-error:hover,
.library-song-row.has-error:hover {
  border-color: var(--sm-item-error-border);
  background: var(--sm-item-error-bg);
}

.queue-error,
.track-error,
.status-label.is-error,
.expiry-pill.is-expired,
.expiry-pill.is-error,
.track-row.has-error .expiry-pill,
.library-song-row.has-error .expiry-pill {
  color: var(--sm-item-error-text) !important;
}

.track-row.has-error .expiry-pill,
.library-song-row.has-error .expiry-pill,
.expiry-pill.is-expired,
.expiry-pill.is-error {
  border-color: var(--sm-item-error-pill-border);
  background: var(--sm-item-error-pill-bg);
}

.track-row.has-error .expiry-pill svg,
.library-song-row.has-error .expiry-pill svg,
.expiry-pill.is-expired svg,
.expiry-pill.is-error svg {
  color: var(--sm-item-error-text) !important;
  stroke: currentColor;
}

.global-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.cursor-glow {
  display: none;
}

@media (max-width: 768px) {
  .global-canvas {
    display: none;
  }
}

.motif-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.music-motif {
  position: absolute;
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 76px;
  padding: 15px 18px;
  border: 1px solid rgba(49, 87, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 36px rgba(13, 23, 54, 0.06);
  backdrop-filter: blur(10px);
  opacity: 0.44;
}

.page-section > .content-shell,
.intro-shell,
.create-layout,
.history-layout,
.qa-layout,
.site-footer {
  position: relative;
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.28s ease;
}

.page-section > .motif-field {
  z-index: 0;
}

.music-motif span {
  width: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--coral), var(--aqua));
  opacity: 0.68;
  transform-origin: bottom;
  animation: cornerBars 1.37s infinite ease-in-out alternate;
}

.music-motif span:nth-child(1) { height: 24px; animation-duration: 1.13s; animation-delay: -0.18s; }
.music-motif span:nth-child(2) { height: 34px; animation-duration: 1.71s; animation-delay: -0.64s; }
.music-motif span:nth-child(3) { height: 52px; animation-duration: 1.29s; animation-delay: -0.36s; }
.music-motif span:nth-child(4) { height: 41px; animation-duration: 1.92s; animation-delay: -0.82s; }
.music-motif span:nth-child(5) { height: 61px; animation-duration: 1.48s; animation-delay: -0.51s; }

.motif-a {
  left: clamp(210px, 26vw, 370px);
  bottom: clamp(30px, 6vh, 72px);
  transform: scale(0.58) rotate(-2deg);
  opacity: 0.22;
}

.motif-b {
  right: clamp(210px, 24vw, 340px);
  top: clamp(92px, 12vh, 122px);
  transform: scale(0.44) rotate(4deg);
  opacity: 0.18;
}

.motif-b span:nth-child(1) { height: 42px; animation-duration: 1.46s; animation-delay: -0.38s; }
.motif-b span:nth-child(2) { height: 25px; animation-duration: 1.08s; animation-delay: -0.74s; }
.motif-b span:nth-child(3) { height: 62px; animation-duration: 1.82s; animation-delay: -0.22s; }
.motif-b span:nth-child(4) { height: 36px; animation-duration: 1.31s; animation-delay: -0.91s; }
.motif-b span:nth-child(5) { height: 49px; animation-duration: 1.63s; animation-delay: -0.57s; }

.motif-c {
  right: clamp(220px, 28vw, 410px);
  bottom: clamp(34px, 7vh, 84px);
  transform: scale(0.46) rotate(2deg);
  opacity: 0.17;
}

.motif-c span:nth-child(1) { height: 31px; animation-duration: 1.76s; animation-delay: -0.52s; }
.motif-c span:nth-child(2) { height: 56px; animation-duration: 1.24s; animation-delay: -0.2s; }
.motif-c span:nth-child(3) { height: 38px; animation-duration: 1.57s; animation-delay: -0.86s; }
.motif-c span:nth-child(4) { height: 64px; animation-duration: 1.11s; animation-delay: -0.43s; }
.motif-c span:nth-child(5) { height: 28px; animation-duration: 1.94s; animation-delay: -0.67s; }

.motif-d {
  left: clamp(22px, 5vw, 70px);
  top: clamp(12px, 4vh, 36px);
  transform: scale(0.62) rotate(-4deg);
  opacity: 0.2;
}

.motif-d span:nth-child(1) { height: 54px; animation-duration: 1.2s; animation-delay: -0.71s; }
.motif-d span:nth-child(2) { height: 39px; animation-duration: 1.88s; animation-delay: -0.31s; }
.motif-d span:nth-child(3) { height: 22px; animation-duration: 1.36s; animation-delay: -0.95s; }
.motif-d span:nth-child(4) { height: 58px; animation-duration: 1.69s; animation-delay: -0.16s; }
.motif-d span:nth-child(5) { height: 45px; animation-duration: 1.07s; animation-delay: -0.48s; }

.motif-e {
  right: clamp(24px, 6vw, 86px);
  top: clamp(18px, 4vh, 36px);
  bottom: auto;
  transform: scale(0.62) rotate(5deg);
  opacity: 0.2;
}

.motif-e span:nth-child(1) { height: 28px; animation-duration: 1.41s; animation-delay: -0.29s; }
.motif-e span:nth-child(2) { height: 47px; animation-duration: 1.18s; animation-delay: -0.63s; }
.motif-e span:nth-child(3) { height: 33px; animation-duration: 1.78s; animation-delay: -0.45s; }

.motif-f {
  left: clamp(18px, 4vw, 64px);
  bottom: clamp(42px, 9vh, 96px);
  transform: scale(0.66) rotate(3deg);
  opacity: 0.26;
}

.motif-g {
  right: clamp(20px, 4vw, 68px);
  top: clamp(96px, 14vh, 140px);
  transform: scale(0.78) rotate(-3deg);
  opacity: 0.24;
}

.motif-h {
  right: clamp(92px, 14vw, 190px);
  bottom: clamp(28px, 7vh, 72px);
  transform: scale(0.52) rotate(7deg);
  opacity: 0.22;
}

.motif-i {
  left: clamp(18px, 4vw, 60px);
  top: clamp(4px, 2vh, 18px);
  transform: scale(0.46) rotate(-5deg);
  opacity: 0.16;
}

.motif-j {
  right: clamp(26px, 6vw, 86px);
  top: clamp(8px, 3vh, 28px);
  transform: scale(0.5) rotate(4deg);
  opacity: 0.16;
}

@keyframes cornerBars {
  0% {
    transform: scaleY(0.5) translateY(2px);
  }
  42% {
    transform: scaleY(1.05) translateY(-3px);
  }
  to {
    transform: scaleY(0.72) translateY(1px);
    opacity: 0.92;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 34px rgba(13, 23, 54, 0.08);
  backdrop-filter: blur(22px);
}

.brand,
.header-actions,
.main-nav,
.hero-metrics,
.panel-head,
.mode-tabs,
.option-row,
.submit-row,
.section-title-row,
.billing-toggle,
.footer-bottom {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--grad-icon);
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: var(--brand-glow);
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  color: #101427;
  font-weight: 900;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  text-shadow: none;
}

.main-nav a:hover {
  color: var(--blue);
  background: rgba(49, 87, 255, 0.08);
}

.menu-toggle {
  display: none;
  place-items: center;
  justify-self: start;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 84, 255, 0.24);
  border-radius: 8px;
  color: var(--brand-blue);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--grad-line) border-box;
  box-shadow: var(--brand-glow);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.language-button,
.ghost-button,
.solid-button,
.generate-button,
.mode-tab,
.style-chip,
.play-small,
.billing-toggle button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  color: #6b5bff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.78)) padding-box,
    var(--grad-line) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(79, 93, 255, 0.08);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 72px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #1b2440;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.8)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 8px 18px rgba(79, 93, 255, 0.08);
}

.language-button span {
  font-size: 13px;
  font-weight: 900;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 12px 4px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 10px 24px rgba(79, 93, 255, 0.1);
}

.account-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: var(--grad-icon);
  font-weight: 950;
}

.account-avatar {
  width: 34px;
  height: 34px;
}

.account-label {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.account-label strong {
  max-width: 104px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-label small {
  max-width: 118px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.ghost-button {
  color: #4e46d9;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(247, 245, 255, 0.78)) padding-box,
    var(--grad-line) border-box;
  border: 1px solid transparent;
}

.solid-button,
.generate-button {
  color: #fff;
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
}

button:disabled:not(.track-main):not(.record-cover),
button[aria-disabled="true"]:not(.track-main):not(.record-cover),
a[aria-disabled="true"],
.is-disabled {
  cursor: not-allowed !important;
  color: #8790a3 !important;
  border-color: rgba(100, 116, 139, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(226, 232, 240, 0.9)) padding-box,
    linear-gradient(135deg, rgba(148, 163, 184, 0.42), rgba(203, 213, 225, 0.34)) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
  filter: grayscale(1) saturate(0.32);
  opacity: 1 !important;
  pointer-events: none;
}

.icon-button:disabled svg,
.record-cover:disabled svg,
.generate-button:disabled svg,
.solid-button[aria-disabled="true"] svg,
.ghost-button[aria-disabled="true"] svg,
.is-disabled svg {
  color: #94a3b8;
  stroke: currentColor;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(16, 20, 39, 0.18);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(320px, calc(100vw - 42px));
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 255, 0.92)),
    linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(255, 72, 111, 0.08));
  border-right: 1px solid rgba(49, 87, 255, 0.16);
  box-shadow: 24px 0 70px rgba(13, 23, 54, 0.18);
  backdrop-filter: blur(24px);
  transform: translateX(-104%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.26s ease,
    visibility 0s linear 0.26s;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-nav,
.drawer-actions {
  display: grid;
  gap: 10px;
}

.drawer-nav {
  margin-top: 12px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 900;
}

.drawer-nav a:hover {
  color: var(--blue);
  background: rgba(49, 87, 255, 0.08);
}

.drawer-actions {
  margin-top: auto;
}

.drawer-actions .ghost-button,
.drawer-actions .solid-button,
.drawer-actions .language-button {
  justify-content: center;
  width: 100%;
}

.drawer-actions .ghost-button {
  min-height: 42px;
  gap: 8px;
}

.drawer-profile-link,
.drawer-logout-link {
  display: none;
}

body.is-authenticated .drawer-profile-link,
body.is-authenticated .drawer-logout-link {
  display: inline-flex;
}

body.is-authenticated .drawer-actions .auth-link {
  display: none;
}

body.has-generated-songs .start-gate-button,
.start-gate-button[hidden] {
  display: none !important;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .mobile-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.26s ease,
    visibility 0s linear 0s;
}

.auth-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.auth-modal-shell[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 200, 255, 0.18), transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(255, 72, 111, 0.16), transparent 34%),
    rgba(16, 20, 39, 0.32);
  backdrop-filter: blur(8px);
}

.auth-modal {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 255, 0.9)),
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(255, 72, 111, 0.08));
  box-shadow: 0 28px 90px rgba(13, 23, 54, 0.24);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}

.auth-modal-shell[aria-hidden="false"] .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.auth-modal-mark {
  display: flex;
  margin-bottom: 16px;
}

.auth-modal h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.auth-modal-copy,
.auth-modal-foot {
  color: var(--muted);
  line-height: 1.7;
}

.auth-modal-copy {
  margin-bottom: 20px;
}

.auth-provider-list {
  display: grid;
  gap: 10px;
}

.auth-provider-reserved[hidden] {
  display: none;
}

.auth-provider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-align: left;
}

.auth-provider.primary {
  color: #fff;
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
}

.auth-provider:disabled {
  color: rgba(16, 20, 39, 0.45);
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.46);
}

.auth-provider em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.auth-modal-foot {
  margin: 16px 0 0;
  font-size: 12px;
}

body.auth-modal-open {
  overflow: hidden;
}

.app-dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.app-dialog-shell[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.app-dialog-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 200, 255, 0.16), transparent 32%),
    radial-gradient(circle at 72% 78%, rgba(255, 72, 111, 0.14), transparent 34%),
    rgba(16, 20, 39, 0.26);
  backdrop-filter: blur(7px);
}

.app-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: min(380px, 100%);
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.92)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 24px 70px rgba(13, 23, 54, 0.22), 0 12px 34px rgba(139, 84, 255, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.app-dialog-shell[aria-hidden="false"] .app-dialog {
  transform: translateY(0) scale(1);
}

.app-dialog-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grad-icon);
  box-shadow: var(--brand-glow);
}

.app-dialog-mark img {
  width: 26px;
  height: 26px;
}

.app-dialog-copy {
  min-width: 0;
}

.app-dialog-copy .section-kicker {
  margin-bottom: 4px;
}

.app-dialog h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.app-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.app-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.app-dialog-actions .ghost-button,
.app-dialog-actions .solid-button {
  min-height: 36px;
  padding: 0 16px;
}

.app-dialog-actions .solid-button {
  min-width: 86px;
}

body.app-dialog-open {
  overflow: hidden;
}

.global-loading-shell {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.global-loading-shell[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.global-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 24%, rgba(139, 84, 255, 0.16), transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(0, 200, 255, 0.14), transparent 34%),
    rgba(12, 15, 31, 0.42);
  backdrop-filter: blur(8px);
}

.global-loading-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(340px, 100%);
  padding: 24px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 28px 90px rgba(13, 23, 54, 0.26), 0 12px 34px rgba(139, 84, 255, 0.14);
  text-align: center;
}

.global-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(139, 84, 255, 0.18);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: globalLoadingSpin 0.82s linear infinite;
}

.global-loading-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.global-loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

body.global-loading-open {
  overflow: hidden;
}

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

.page-section {
  position: relative;
  z-index: auto;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 96px clamp(18px, 4vw, 56px) 42px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
}

body.player-open .page-section {
  padding-bottom: max(42px, 88px);
}

.page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(49, 87, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55));
}

.intro-page {
  background: transparent;
}

.intro-page::before {
  background-image:
    linear-gradient(rgba(49, 87, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 62%, transparent 100%);
}

.intro-shell {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.intro-shell .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.intro-actions {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px;
}

.hero-cta {
  min-height: 68px;
  padding: 0 42px;
  border-radius: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.intro-shell .hero-metrics {
  justify-content: center;
}

.hero {
  position: relative;
  min-height: 91vh;
  overflow: hidden;
  padding: 112px clamp(18px, 4vw, 56px) 36px;
  background:
    linear-gradient(120deg, rgba(0, 200, 255, 0.16), transparent 32%),
    linear-gradient(300deg, rgba(255, 72, 111, 0.16), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 56%, #fff6ec 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 87, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 54%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, #ffffff);
}

.tech-field {
  position: absolute;
  inset: 82px 0 0;
  pointer-events: none;
  z-index: 0;
}

.signal-panel {
  position: absolute;
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 54px rgba(0, 200, 255, 0.13);
  backdrop-filter: blur(12px);
  opacity: 0.56;
}

.signal-panel span {
  width: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--coral), var(--aqua));
  animation: signalPulse 1.2s infinite ease-in-out alternate;
}

.signal-panel span:nth-child(1) { height: 28px; }
.signal-panel span:nth-child(2) { height: 62px; animation-delay: 0.12s; }
.signal-panel span:nth-child(3) { height: 42px; animation-delay: 0.24s; }
.signal-panel span:nth-child(4) { height: 76px; animation-delay: 0.36s; }
.signal-panel span:nth-child(5) { height: 36px; animation-delay: 0.48s; }
.signal-panel span:nth-child(6) { height: 54px; animation-delay: 0.6s; }

.panel-a {
  right: clamp(14px, 3vw, 52px);
  top: clamp(118px, 14vh, 158px);
  transform: scale(0.66) rotate(2deg);
}

.panel-b {
  left: clamp(18px, 4vw, 58px);
  bottom: clamp(42px, 8vh, 96px);
  transform: scale(0.56) rotate(-3deg);
  opacity: 0.34;
}

.sound-rings {
  position: absolute;
  left: clamp(14px, 3vw, 44px);
  top: clamp(8px, 3vh, 30px);
  width: 132px;
  height: 132px;
  opacity: 0.28;
}

.sound-rings span {
  position: absolute;
  border: 1px solid rgba(138, 92, 255, 0.28);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-18deg);
}

.sound-rings span:nth-child(1) {
  inset: 0;
  border-color: rgba(255, 72, 111, 0.28);
}

.sound-rings span:nth-child(2) {
  inset: 30px;
  border-color: rgba(0, 200, 255, 0.34);
}

.sound-rings span:nth-child(3) {
  inset: 56px;
  border-color: rgba(52, 229, 155, 0.36);
}

.album-stack {
  position: absolute;
  right: clamp(12px, 3vw, 44px);
  bottom: clamp(42px, 8vh, 98px);
  width: 126px;
  height: 126px;
  opacity: 0.38;
}

.album-stack span {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(13, 23, 54, 0.16);
}

.album-stack span:nth-child(1) {
  left: 0;
  top: 22px;
  background: linear-gradient(135deg, var(--lemon), var(--coral));
  transform: rotate(-12deg);
}

.album-stack span:nth-child(2) {
  left: 24px;
  top: 4px;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  transform: rotate(8deg);
}

.album-stack span:nth-child(3) {
  left: 38px;
  top: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent),
    linear-gradient(135deg, var(--mint), var(--violet));
  transform: rotate(18deg);
}

@keyframes signalPulse {
  to {
    transform: scaleY(0.48);
    filter: hue-rotate(34deg);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 540px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  font-weight: 950;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
}

.hero-subtitle {
  max-width: 580px;
  color: #293247;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span {
  padding: 10px 14px;
  border: 1px solid rgba(16, 20, 38, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(13, 23, 54, 0.08);
}

.hero-metrics strong {
  color: var(--coral);
}

.studio-panel {
  position: relative;
  height: 100%;
  padding: clamp(14px, 2vh, 20px);
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(255, 72, 111, 0.1));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.create-page {
  background: transparent;
}

.create-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  height: min(620px, calc(100vh - 132px));
  min-height: 500px;
  max-height: calc(100vh - 132px);
}

.create-layout > .studio-panel,
.create-layout > .style-lab-panel {
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: none;
}

.create-layout.no-history {
  grid-template-columns: minmax(420px, 560px);
  justify-content: center;
}

.create-layout.no-history .result-panel {
  display: none;
}

.result-panel,
.style-lab-panel,
.lyrics-stage-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  max-height: calc(100vh - 150px);
  overflow: hidden;
  padding: clamp(14px, 2vh, 18px);
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.88));
  box-shadow: 0 18px 48px rgba(13, 23, 54, 0.08);
}

.style-lab-panel {
  gap: clamp(10px, 1.4vh, 14px);
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(255, 79, 139, 0.14), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(47, 111, 255, 0.14), transparent 34%);
}

@media (min-width: 681px) {
  .create-page {
    padding-top: clamp(76px, 10vh, 92px);
    padding-bottom: clamp(18px, 3vh, 28px);
  }

  .create-layout {
    height: min(650px, calc(100svh - 110px));
    min-height: 0;
    max-height: calc(100svh - 110px);
    gap: clamp(18px, 3vw, 42px);
  }

  .create-layout > .studio-panel,
  .create-layout > .style-lab-panel {
    min-height: 0;
    overflow: hidden;
  }

  .style-lab-panel {
    gap: clamp(7px, 1vh, 10px);
    padding: clamp(12px, 1.6vh, 16px);
    overflow: hidden;
  }

  .style-lab-panel h3 {
    margin-bottom: 4px;
    font-size: clamp(21px, 2vw, 24px);
  }

  .style-lab-panel p {
    font-size: 12px;
    line-height: 1.38;
  }

  .style-lab-panel .chips-group {
    gap: 7px;
    margin-bottom: 0;
  }

  .style-lab-panel .style-chip,
  .style-lab-panel .instrument-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .style-lab-panel .mood-map {
    min-height: clamp(138px, 22vh, 172px);
  }

  .style-lab-panel .mood-readout {
    gap: 8px;
  }

  .style-lab-panel .mood-readout span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .style-lab-panel .right-control-grid {
    gap: 9px;
  }

  .style-lab-panel .field-block {
    gap: clamp(10px, 2svh, 18px);
    margin-bottom: 0;
  }

  .style-lab-panel select {
    height: 40px;
  }

  .style-submit-row {
    gap: 7px;
  }

  .style-submit-row .generate-button {
    min-height: 40px;
  }

  .style-submit-row .cost-note {
    font-size: 11px;
    line-height: 1.35;
  }
}

.style-lab-panel h3,
.lyrics-stage-panel h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.style-lab-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.style-lab-chips {
  margin-bottom: 0;
}

.field-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.text-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.96), rgba(139, 92, 246, 0.94), rgba(39, 177, 255, 0.96)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)) border-box;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.text-tool-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 79, 139, 0.18), 0 10px 24px rgba(39, 177, 255, 0.16);
}

.text-tool-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.inspiration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.inspiration-tags:empty {
  display: none;
}

.inspiration-tag {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #2f3654;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.84)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 139, 0.55), rgba(139, 92, 246, 0.5), rgba(39, 177, 255, 0.5)) border-box;
  box-shadow: 0 8px 18px rgba(49, 87, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.inspiration-tag:hover {
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

.mood-map {
  position: relative;
  min-height: 178px;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 251, 255, 0.68)) padding-box,
    radial-gradient(circle at 82% 18%, rgba(255, 79, 139, 0.15), transparent 34%) padding-box,
    radial-gradient(circle at 20% 82%, rgba(32, 189, 233, 0.16), transparent 36%) padding-box,
    linear-gradient(135deg, rgba(255, 79, 139, 0.36), rgba(139, 92, 246, 0.34), rgba(47, 111, 255, 0.34)) border-box;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(49, 87, 255, 0.06);
  touch-action: none;
  user-select: none;
}

.mood-map:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.24);
  outline-offset: 3px;
}

.mood-map::before,
.mood-map::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.mood-map::before {
  inset: 0;
  background:
    linear-gradient(0deg, rgba(47, 111, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(139, 92, 246, 0.2) calc(50% - 0.5px), rgba(139, 92, 246, 0.2) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(139, 92, 246, 0.2) calc(50% - 0.5px), rgba(139, 92, 246, 0.2) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}

.mood-map::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 6px;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.18) 50%, transparent 72%);
  opacity: 0.72;
  animation: moodBreath 4.6s ease-in-out infinite;
}

.mood-axis {
  position: absolute;
  z-index: 2;
  color: rgba(39, 49, 74, 0.66);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.mood-axis-x {
  left: 50%;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
  white-space: nowrap;
}

.mood-axis-y {
  left: 10px;
  top: 50%;
  display: grid;
  width: 44px;
  height: 112px;
  grid-template-rows: repeat(4, auto);
  place-items: center;
  align-content: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  line-height: 1.05;
  transform: translateY(-50%);
}

.mood-axis-y em {
  display: grid;
  width: 100%;
  color: rgba(39, 49, 74, 0.76);
  font-style: normal;
  text-align: center;
}

.mood-axis-y b {
  display: grid;
  width: 100%;
  font-style: normal;
  text-align: center;
}

.mood-axis-y i {
  display: grid;
  width: 100%;
  font-style: normal;
  justify-items: center;
  text-align: center;
  line-height: 1;
}

.mood-axis-x em {
  color: rgba(39, 49, 74, 0.76);
  font-style: normal;
}

.mood-axis-x b,
.mood-axis-x i {
  font-style: normal;
}

.mood-quadrant {
  position: absolute;
  z-index: 1;
  display: none;
  padding: 0;
  color: rgba(39, 49, 74, 0.3);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.mood-quadrant.top-left { top: 12px; left: 64px; }
.mood-quadrant.top-right { top: 12px; right: 14px; }
.mood-quadrant.bottom-left { bottom: 42px; left: 64px; }
.mood-quadrant.bottom-right { right: 14px; bottom: 42px; }

.mood-trace {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 28px rgba(255, 79, 139, 0.035),
    0 0 0 56px rgba(47, 111, 255, 0.026);
  opacity: 0.78;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.18s ease, top 0.18s ease;
  animation: moodTraceBreath 3.4s ease-in-out infinite;
}

.mood-dot {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--grad-action);
  box-shadow:
    0 0 0 5px rgba(139, 92, 246, 0.08),
    0 8px 18px rgba(139, 92, 246, 0.24),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: left 0.16s ease, top 0.16s ease, box-shadow 0.16s ease;
  animation: moodPulse 2.4s ease-in-out infinite;
}

.mood-map.is-dragging {
  cursor: grabbing;
}

.mood-map.is-dragging .mood-dot {
  box-shadow:
    0 0 0 8px rgba(255, 79, 139, 0.12),
    0 10px 24px rgba(255, 79, 139, 0.24),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  transition: none;
  animation: none;
}

@keyframes moodBreath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.82; }
}

@keyframes moodTraceBreath {
  0%, 100% { box-shadow: 0 0 0 24px rgba(255, 79, 139, 0.03), 0 0 0 48px rgba(47, 111, 255, 0.02); }
  50% { box-shadow: 0 0 0 34px rgba(255, 79, 139, 0.045), 0 0 0 66px rgba(47, 111, 255, 0.03); }
}

@keyframes moodPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.08), 0 8px 18px rgba(139, 92, 246, 0.24), 0 2px 0 rgba(255, 255, 255, 0.7) inset; }
  50% { box-shadow: 0 0 0 9px rgba(47, 111, 255, 0.06), 0 10px 22px rgba(255, 79, 139, 0.2), 0 2px 0 rgba(255, 255, 255, 0.7) inset; }
}

.mood-map {
  position: relative;
  isolation: auto;
  min-height: 178px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(57, 191, 255, 0.09), rgba(255, 79, 139, 0.09)),
    linear-gradient(0deg, rgba(84, 91, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 91, 120, 0.08) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  box-shadow: none;
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.mood-map::before,
.mood-map::after {
  content: "";
  position: absolute;
  z-index: auto;
  background: rgba(49, 87, 255, 0.18);
  pointer-events: none;
  animation: none;
}

.mood-map::before {
  left: 50%;
  top: 12px;
  right: auto;
  bottom: 12px;
  width: 1px;
  height: auto;
  border: 0;
  border-radius: 0;
}

.mood-map::after {
  left: 12px;
  right: 12px;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  opacity: 1;
}

.mood-axis {
  position: absolute;
  z-index: 1;
  color: rgba(39, 49, 74, 0.62);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.mood-axis-x {
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  transform: none;
  white-space: normal;
}

.mood-axis-y {
  left: 12px;
  top: 16px;
  display: grid;
  width: auto;
  min-width: 40px;
  min-height: 0;
  gap: 2px;
  justify-items: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.05;
  transform: none;
}

.mood-axis-y em {
  display: block;
  width: auto;
  margin-bottom: 2px;
  color: rgba(39, 49, 74, 0.72);
  font-style: normal;
  text-align: left;
}

.mood-axis-y b {
  display: block;
  width: auto;
  font-style: normal;
  text-align: left;
}

.mood-axis-y i {
  display: block;
  width: auto;
  font-style: normal;
  text-align: center;
}

.mood-axis-x em,
.mood-axis-x b,
.mood-axis-x i {
  font-style: normal;
}

.mood-quadrant,
.mood-trace {
  display: none;
}

.mood-dot {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--grad-action);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.3);
  cursor: crosshair;
  transform: translate(-50%, -50%);
  transition: left 0.16s ease, top 0.16s ease, box-shadow 0.16s ease;
  animation: none;
}

.mood-map.is-dragging {
  cursor: crosshair;
}

.mood-map.is-dragging .mood-dot {
  box-shadow: 0 12px 34px rgba(255, 79, 139, 0.28);
  transition: none;
  animation: none;
}

.mood-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mood-readout span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  color: #33394a;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.mood-readout b {
  color: var(--blue);
}

.right-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.style-submit-row {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.range-field {
  margin-bottom: 0;
}

.range-field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range-field b {
  color: var(--blue);
}

.range-field input[type="range"] {
  accent-color: var(--brand-violet);
}

.structure-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.structure-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #33394a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.structure-chip.active {
  color: #ffffff;
  border-color: transparent;
  background: var(--grad-action);
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.18);
}

.mood-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-suggestions span {
  padding: 6px 9px;
  border: 1px solid rgba(47, 111, 255, 0.14);
  border-radius: 999px;
  color: #27314a;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.history-page {
  background: transparent;
}

.history-layout {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  height: min(620px, calc(100vh - 132px));
  min-height: 430px;
  max-height: calc(100vh - 132px);
}

.history-layout > .result-panel,
.history-layout > .lyrics-stage-panel {
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: none;
}

.lyrics-stage-panel {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 250, 255, 0.86));
}

.history-prompt-box {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 79, 139, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.07), rgba(139, 92, 246, 0.07), rgba(47, 111, 255, 0.07)),
    rgba(255, 255, 255, 0.66);
}

.history-prompt-box span {
  color: var(--brand-violet);
  font-size: 12px;
  font-weight: 950;
}

.history-prompt-box div {
  min-height: 0;
  overflow-y: auto;
  color: #465168;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
  white-space: pre-wrap;
}

.synced-lyrics {
  display: grid;
  gap: 8px;
  min-height: 0;
  flex: 2 1 0;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.synced-lyrics p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #647086;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.75;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.synced-lyrics p.active {
  color: #111827;
  background:
    linear-gradient(90deg, rgba(255, 79, 139, 0.12), rgba(139, 92, 246, 0.12), rgba(47, 111, 255, 0.12));
  transform: none;
}

.synced-lyrics.has-timed-lyrics::after {
  content: "";
  display: block;
  min-height: var(--synced-lyrics-tail-space, 120px);
  pointer-events: none;
}

.result-panel h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.history-mini {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.history-mini h3,
.history-mini p {
  margin: 0;
}

.history-mini p {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(49, 87, 255, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.empty-state p {
  margin: 0;
  line-height: 1.55;
}

.studio-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.28), transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 72, 111, 0.22), transparent) 0 0 / 1px 100% no-repeat;
}

.panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #7d4100;
  background: #fff0b8;
  font-size: 13px;
  font-weight: 900;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  color: #3d4354;
  background: #f2f5f8;
  font-weight: 850;
}

.mode-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.field-block {
  display: grid;
  gap: 7px;
  margin-bottom: clamp(9px, 1.4vh, 14px);
}

.field-block span,
.field-label {
  color: #33394a;
  font-size: 13px;
  font-weight: 900;
}

textarea,
select,
input[type="text"],
input[type="range"] {
  width: 100%;
}

textarea,
select,
input[type="text"] {
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input[type="text"] {
  height: 44px;
  padding: 0 14px;
  font-weight: 750;
}

textarea {
  min-height: clamp(76px, 12vh, 108px);
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

.clear-studio-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(116, 126, 148, 0.24);
  border-radius: 999px;
  color: #69738b;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(235, 239, 247, 0.76));
  box-shadow: 0 8px 16px rgba(80, 91, 120, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.clear-studio-button:hover {
  color: #3e485f;
  border-color: rgba(116, 126, 148, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 242, 0.86));
}

.clear-studio-button svg {
  width: 14px;
  height: 14px;
}

select {
  height: 44px;
  padding: 0 12px;
}

.hidden {
  display: none;
}

.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(9px, 1.4vh, 14px);
}

.style-chip,
.instrument-chip {
  min-height: 30px;
  padding: 0 10px;
  color: #2f3546;
  background: #eef3f0;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.style-chip.active,
.instrument-chip.active {
  color: #04252b;
  background: linear-gradient(135deg, #bdf4ef, #e8ff87);
  border-color: rgba(32, 197, 216, 0.42);
}

.instrument-chip {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.84)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 139, 0.42), rgba(139, 92, 246, 0.38), rgba(39, 177, 255, 0.38)) border-box;
}

.instrument-chip.active {
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.14);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-row {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}

.toggle-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #3b4253;
  font-size: 13px;
  font-weight: 800;
}

.submit-row {
  justify-content: space-between;
  gap: 12px;
}

.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 0 18px;
  font-weight: 950;
}

.generate-button:disabled {
  cursor: not-allowed;
}

.cost-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.content-shell {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.queue-band,
.gallery-section,
.pricing-section {
  padding: 72px 0;
}

.queue-band {
  background:
    linear-gradient(180deg, #ffffff, #f5fbff);
}

.result-page {
  min-height: calc(100vh - 72px);
  padding-top: 140px;
}

.back-button {
  margin-top: 18px;
}

.queue-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 36px;
  align-items: center;
}

.queue-layout p {
  color: var(--muted);
  line-height: 1.7;
}

.queue-list {
  display: grid;
  flex: 1;
  gap: 12px;
  align-content: start;
  grid-auto-rows: 76px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(49, 87, 255, 0.36) transparent;
}

.queue-list:has(> .empty-state:only-child) {
  display: flex;
  padding-right: 0;
}

.queue-list:has(> .empty-state:only-child) > .empty-state {
  flex: 1;
  justify-content: center;
  min-height: 160px;
}

.track-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(148px, auto);
  gap: 10px;
  align-items: center;
  height: 76px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.track-row.has-error {
  border-color: var(--sm-item-error-border);
  background: var(--sm-item-error-bg);
  box-shadow: var(--sm-item-error-shadow);
}

.track-row.has-error .record-cover,
.track-row.has-error .track-actions {
  align-self: center;
}

.track-row:hover {
  border-color: rgba(49, 87, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.track-row.is-playing {
  border-color: rgba(139, 84, 255, 0.5);
  background:
    linear-gradient(90deg, rgba(255, 76, 125, 0.1), rgba(139, 84, 255, 0.1), rgba(34, 103, 255, 0.1)),
    rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 3px 0 0 rgba(107, 91, 255, 0.88),
    0 12px 30px rgba(49, 87, 255, 0.12);
}

.playing-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
  font-size: 10px;
  font-weight: 950;
}

.record-cover {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)) padding-box,
    var(--grad-icon) border-box;
  background-position: center;
  background-size: cover;
}

.record-cover:disabled,
.track-main:disabled,
.track-save:disabled,
.track-favorite:disabled,
.track-share:disabled,
.track-delete:disabled {
  cursor: default;
  opacity: 0.64;
}

.track-main:disabled {
  color: inherit !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none;
}

.record-cover:disabled {
  color: #8a94a7 !important;
  border-color: rgba(148, 163, 184, 0.38) !important;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.86), rgba(230, 236, 245, 0.78)) padding-box,
    linear-gradient(135deg, rgba(148, 163, 184, 0.32), rgba(203, 213, 225, 0.28)) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  filter: grayscale(0.55) saturate(0.72);
  opacity: 1;
}

.track-row.is-expired .track-main,
.library-song-row.is-expired .track-main {
  color: #6f7a90;
}

.track-row.is-expired .expiry-pill.is-expired,
.library-song-row.is-expired .expiry-pill.is-expired,
.expiry-pill.is-expired {
  color: var(--sm-item-error-text) !important;
  border-color: var(--sm-item-error-pill-border);
  background: var(--sm-item-error-pill-bg);
}

.queue-error,
.track-error,
.status-label.is-error,
.expiry-pill.is-expired,
.expiry-pill.is-error,
.track-row.has-error .expiry-pill,
.library-song-row.has-error .expiry-pill {
  color: var(--sm-item-error-text) !important;
}

.track-row.has-error .expiry-pill,
.library-song-row.has-error .expiry-pill,
.expiry-pill.is-error {
  border-color: var(--sm-item-error-pill-border);
  background: var(--sm-item-error-pill-bg);
}

.track-row.has-error .expiry-pill svg,
.library-song-row.has-error .expiry-pill svg,
.expiry-pill.is-expired svg,
.expiry-pill.is-error svg {
  color: var(--sm-item-error-text) !important;
  stroke: currentColor;
}

.record-cover svg {
  width: 26px;
  height: 26px;
}

.track-main {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
}

.track-main strong,
.track-main span,
.track-main small,
.track-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-main strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 950;
}

.track-title-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #172035, #29324a);
  box-shadow: 0 6px 14px rgba(18, 28, 48, 0.16);
  font-size: 10px !important;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: lowercase;
}

.track-main span,
.track-main small {
  color: var(--muted);
  font-size: 12px;
}

.track-date-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.track-date-line time {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expiry-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(74, 111, 255, 0.18);
  border-radius: 999px;
  color: #3557d8;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.expiry-pill svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.expiry-pill.is-expired {
  border-color: var(--sm-item-error-pill-border);
  color: var(--sm-item-error-text);
  background: var(--sm-item-error-pill-bg);
}

.track-main em:not(.track-error) {
  color: #b4233c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.track-side-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex: 1 1 118px;
  max-width: 180px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 139, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #c92a4b;
  font-size: clamp(10px, 1.8vw, 12px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.track-error svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.track-save,
.track-favorite,
.track-share,
.track-delete {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-color: rgba(49, 87, 255, 0.12);
  color: #667086;
  background: rgba(255, 255, 255, 0.72);
}

.track-save.active {
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--brand-violet);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 139, 0.08), 0 8px 18px rgba(139, 92, 246, 0.08);
}

.track-favorite.active {
  color: #ff2f66;
  background: rgba(255, 72, 111, 0.12);
}

.track-share:hover:not(:disabled) {
  color: var(--brand-violet);
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(247, 244, 255, 0.92);
}

.history-library-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 34px;
  margin: -6px 0 2px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.84), rgba(139, 92, 246, 0.84), rgba(47, 111, 255, 0.84)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.15);
  font-size: 12px;
  font-weight: 950;
}

.history-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.history-panel-head h3 {
  margin-bottom: 0;
}

.history-panel-head .history-library-link {
  flex: 0 0 auto;
  margin: 0 0 4px;
}

.history-library-link svg {
  width: 15px;
  height: 15px;
}

.track-delete:hover {
  color: #b4233c;
  background: rgba(255, 72, 111, 0.1);
}

.track-wave {
  width: 40px;
  justify-content: center;
}

.track-progress {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(190px, 100%);
  margin-top: 2px;
}

.track-progress span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.13);
}

.track-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-action);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.26);
  transition: width 0.24s ease;
}

.track-progress b {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.track-progress-inline {
  align-self: center;
}

.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 255, 0.96));
  box-shadow: 0 12px 34px rgba(13, 23, 54, 0.06);
}

.queue-item h3,
.queue-item p {
  margin: 0;
}

.queue-item p {
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
}

.status-dot.working {
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(255, 95, 104, 0.14);
}

.status-dot.complete {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(52, 229, 155, 0.14);
}

.status-dot.error {
  background: #ff3055;
  box-shadow: 0 0 0 6px rgba(255, 48, 85, 0.13);
}

.status-label {
  color: var(--blue);
  font-weight: 900;
}

.song-player,
.queue-error {
  grid-column: 2 / -1;
}

.song-player {
  width: 100%;
  height: 40px;
}

.global-player {
  position: fixed;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: 54px minmax(170px, 0.55fr) minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.97)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 60px rgba(13, 23, 54, 0.16), 0 12px 34px rgba(139, 84, 255, 0.12);
  backdrop-filter: blur(18px);
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 22px));
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.global-player.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--grad-icon);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.58), 0 8px 18px rgba(49, 87, 255, 0.14);
  animation: playerDiscSpin 18s linear infinite;
  animation-play-state: paused;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(16, 20, 39, 0.08);
  transform: translate(-50%, -50%);
}

.global-player.is-playing .player-cover {
  animation-play-state: running;
}

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

.player-track {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.player-track strong,
.player-track span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track strong {
  font-size: 14px;
  font-weight: 950;
}

.player-track span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.player-play {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.player-skip,
.player-mode {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.76), rgba(139, 92, 246, 0.78), rgba(47, 111, 255, 0.76));
  box-shadow: 0 9px 18px rgba(139, 92, 246, 0.14);
}

.player-mode.active {
  color: #ffffff;
  border-color: transparent;
  background: var(--grad-action);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2), 0 7px 16px rgba(255, 79, 139, 0.14);
}

.player-progress-wrap {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 10px;
  align-items: center;
  justify-self: center;
  width: min(100%, 620px);
  color: #657086;
  font-size: 12px;
  font-weight: 850;
}

.player-progress-wrap input[type="range"] {
  accent-color: var(--brand-violet);
}

.song-share-popover {
  position: fixed;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 18px;
  border: 1px solid rgba(91, 105, 140, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 64px rgba(24, 32, 54, 0.2);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.song-share-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.song-share-popover.is-measuring {
  visibility: hidden;
  transition: none;
}

.song-share-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.song-share-popover-head > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.song-share-popover-head span {
  color: #68738a;
  font-size: 12px;
  font-weight: 800;
}

.song-share-popover-head strong {
  overflow: hidden;
  color: #11131a;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-share-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #566176;
  border-color: rgba(91, 105, 140, 0.18);
  background: rgba(246, 248, 252, 0.94);
}

.song-share-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 12px);
  min-width: 0;
}

.song-share-channel {
  display: grid;
  grid-template-rows: 54px 18px;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #202534;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.song-share-channel[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.42;
}

.song-share-channel > span:last-child {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-share-channel-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.08);
}

.song-share-channel-icon img {
  width: 27px;
  height: 27px;
}

.song-share-whatsapp { background: #25d366; }
.song-share-telegram { background: #229ed9; }
.song-share-facebook { background: #1877f2; }
.song-share-x { background: #050505; }
.song-share-reddit { background: #ff4500; }

.song-share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 4px 5px 4px 14px;
  border: 1px solid rgba(91, 105, 140, 0.3);
  border-radius: 8px;
  background: #fff;
}

.song-share-link-row input {
  min-width: 0;
  height: 40px;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: #303645;
  background: transparent;
  font-size: 13px;
  text-overflow: ellipsis;
}

.song-share-link-row button {
  min-width: 58px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(91, 105, 140, 0.22);
  border-radius: 8px;
  color: #202534;
  background: #f8f9fc;
  font-size: 13px;
  font-weight: 850;
}

.song-share-link-row button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.player-queue-panel {
  position: absolute;
  right: 14px;
  bottom: calc(100% + 10px);
  width: min(420px, calc(100vw - 36px));
  max-height: 360px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.92)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 54px rgba(13, 23, 54, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-queue-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.player-queue-head strong {
  font-size: 14px;
  font-weight: 950;
}

.player-queue-head span,
.player-queue-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.player-queue-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow-y: auto;
  padding-right: 3px;
}

.player-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.player-queue-row.active {
  border-color: rgba(139, 92, 246, 0.46);
  background: var(--grad-soft);
}

.player-queue-row > button:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
}

.player-queue-row strong,
.player-queue-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-queue-row strong {
  font-size: 13px;
  font-weight: 950;
}

.player-queue-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.player-queue-row .icon-button {
  width: 32px;
  height: 32px;
}

.queue-error {
  margin: -4px 0 0;
  color: #b4233c;
  font-size: 13px;
  font-weight: 800;
}

.mini-wave {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 54px;
  height: 24px;
}

.mini-wave span {
  width: 6px;
  border-radius: 6px;
  background: var(--aqua);
  animation: wave 0.9s infinite ease-in-out alternate;
}

.mini-wave span:nth-child(1) { height: 8px; }
.mini-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.mini-wave span:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.mini-wave span:nth-child(4) { height: 13px; animation-delay: 0.3s; }
.mini-wave span:nth-child(5) { height: 19px; animation-delay: 0.4s; }

@keyframes wave {
  to { transform: scaleY(0.45); }
}

.section-title-row {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.song-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.song-card,
.price-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.song-card {
  color: #101426;
}

.gallery-section {
  background:
    linear-gradient(120deg, rgba(255, 72, 111, 0.09), transparent 38%),
    linear-gradient(300deg, rgba(0, 200, 255, 0.1), transparent 42%),
    #ffffff;
}

.song-card.coral { background: #ffd5d3; }
.song-card.aqua { background: #c8f3f5; }
.song-card.yellow { background: #ffeca8; }

.song-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(16, 20, 39, 0.13);
  border-radius: 8px;
}

.cover-art {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.cover-art svg {
  width: 38px;
  height: 38px;
}

.song-card p {
  color: #3d4354;
}

.play-small {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  color: #fff;
  background: var(--grad-action);
}

.pricing-section {
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 79, 139, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(47, 111, 255, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 255, 0.92), rgba(244, 249, 255, 0.94));
}

.pricing-page {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(78px, 10vh, 104px) 0 clamp(18px, 3vh, 30px);
}

.pricing-page > .content-shell {
  position: relative;
  z-index: 4;
}

.pricing-hero {
  max-width: 760px;
  margin-bottom: clamp(12px, 2.4vh, 22px);
}

.pricing-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4.2vw, 50px);
}

.pricing-hero p {
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
}

.pricing-title-row {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.pricing-title-row h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(249, 247, 255, 0.84)) padding-box,
    var(--grad-line) border-box;
  border: 1px solid transparent;
}

.billing-toggle button {
  min-height: 34px;
  padding: 0 13px;
  color: #5d6380;
  background: transparent;
  font-weight: 850;
}

.billing-toggle button span {
  color: inherit;
  font-size: 11px;
  font-weight: 950;
}

.billing-toggle button.active {
  color: #fff;
  background: var(--grad-action);
}

.pricing-selector {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.price-option {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 128px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.82)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 139, 0.2), rgba(139, 92, 246, 0.24), rgba(47, 111, 255, 0.22)) border-box;
  box-shadow: 0 12px 30px rgba(13, 23, 54, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.price-option:hover,
.price-option.active {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.14), 0 12px 28px rgba(255, 79, 139, 0.08);
}

.price-option.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 255, 0.88)) padding-box,
    var(--grad-line) border-box;
}

.price-option strong {
  font-size: 19px;
  font-weight: 950;
}

.option-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.option-price b {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0;
}

.option-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.pricing-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.74fr);
  gap: clamp(16px, 2.4vw, 28px);
  min-height: clamp(250px, 34vh, 330px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid transparent;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 79, 139, 0.12), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(47, 111, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.9)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 54px rgba(13, 23, 54, 0.1);
}

.pricing-detail-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pricing-detail-copy h3,
.payment-box h3 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 32px);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 2px 0 0;
}

.detail-price span {
  color: #15192d;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 1000;
  line-height: 0.95;
}

.detail-price small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 950;
}

.pricing-detail-copy p,
.payment-box p,
.payment-box small {
  color: var(--muted);
  line-height: 1.6;
}

.detail-feature-list {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 820;
}

.payment-box {
  display: grid;
  align-content: end;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.07), rgba(139, 92, 246, 0.08), rgba(47, 111, 255, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.payment-box .solid-button {
  min-height: 42px;
  width: 100%;
}

.price-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
  min-height: clamp(420px, 58vh, 560px);
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid transparent;
  color: var(--ink);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 16px 42px rgba(13, 23, 54, 0.08);
}

.price-card.is-disabled,
.price-card[aria-disabled="true"],
.disabled-panel,
.disabled-card {
  color: #7d8798;
  border-color: rgba(100, 116, 139, 0.3);
  background:
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.08) 0 8px, rgba(255, 255, 255, 0.18) 8px 16px),
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.72)) padding-box,
    linear-gradient(135deg, rgba(148, 163, 184, 0.5), rgba(203, 213, 225, 0.44)) border-box;
  box-shadow: 0 10px 26px rgba(100, 116, 139, 0.08);
  filter: grayscale(0.85) saturate(0.45);
}

.price-card.is-disabled::before,
.price-card[aria-disabled="true"]::before,
.disabled-panel::before,
.disabled-card::before {
  opacity: 0.22;
}

.price-card.is-disabled .plan-tag,
.price-card[aria-disabled="true"] .plan-tag,
.disabled-panel .plan-tag,
.disabled-card .plan-tag {
  color: #64748b;
  background: rgba(226, 232, 240, 0.82);
}

.price-card.is-disabled p,
.price-card.is-disabled li,
.price-card[aria-disabled="true"] p,
.price-card[aria-disabled="true"] li,
.disabled-panel p,
.disabled-card p {
  color: #8790a3;
}

.price-card.is-disabled li::before,
.price-card[aria-disabled="true"] li::before,
.disabled-panel li::before,
.disabled-card li::before {
  color: #94a3b8;
}

.pricing-grid {
  align-items: stretch;
}

.price-card h3 {
  margin: 12px 0 4px;
  font-size: clamp(23px, 2.2vw, 30px);
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.plan-free::before {
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 111, 255, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 246, 255, 0.8));
}

.price-card.featured {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 255, 0.9)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 48px rgba(139, 92, 246, 0.16);
}

.plan-creator::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 79, 139, 0.13), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(139, 92, 246, 0.15), transparent 34%);
}

.plan-studio::before {
  background:
    radial-gradient(circle at 84% 14%, rgba(139, 92, 246, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 242, 255, 0.85));
}

.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.5;
}

.price-card.featured p,
.price-card.featured li {
  color: var(--muted);
}

.price {
  margin: 16px 0 8px;
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 950;
}

.price span {
  letter-spacing: 0;
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.price-card ul {
  display: grid;
  align-self: start;
  gap: 10px;
  margin: 16px 0 20px;
  padding-left: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 23px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 950;
}

.price-card .ghost-button,
.price-card .solid-button {
  align-self: end;
  min-height: 42px;
  width: 100%;
}

.pricing-carousel {
  position: relative;
}

.pricing-page-button,
.pricing-dots {
  display: none;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5a4ad8;
  background: rgba(139, 92, 246, 0.1);
  font-size: 12px;
  font-weight: 950;
}

.how-section {
  background: transparent;
}

.how-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.how-head h2 {
  margin-bottom: 14px;
}

.how-head p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.how-steps article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 260px;
  padding: 40px 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.95)) padding-box,
    linear-gradient(135deg, rgba(255, 76, 125, 0.2), rgba(139, 84, 255, 0.26), rgba(34, 103, 255, 0.2)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 44px rgba(13, 23, 54, 0.07);
  text-align: center;
}

.how-steps span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #26344e, var(--blue));
  font-size: 20px;
  font-weight: 950;
}

.how-steps h3 {
  margin-bottom: 16px;
  font-size: 21px;
}

.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.qa-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
  color: var(--ink);
  background: transparent;
}

.tool-page,
.library-page {
  background:
    linear-gradient(120deg, rgba(0, 200, 255, 0.12), transparent 34%),
    linear-gradient(300deg, rgba(255, 72, 111, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.78);
}

.library-page {
  align-items: stretch;
  height: 100vh;
  min-height: 100vh;
  padding-top: clamp(84px, 11vh, 106px);
  padding-bottom: clamp(18px, 3vh, 28px);
  overflow: hidden;
}

.profile-page {
  min-height: 100vh;
  padding: 122px clamp(18px, 4vw, 56px) 56px;
}

.profile-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.profile-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 64px);
}

.profile-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.profile-root {
  display: grid;
  gap: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) repeat(2, minmax(180px, 0.7fr));
  gap: 16px;
}

.profile-card,
.profile-section,
.profile-loading,
.profile-empty,
.payment-empty {
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(13, 23, 54, 0.08);
  backdrop-filter: blur(18px);
}

.profile-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 22px;
}

.account-card {
  grid-row: span 2;
}

.profile-person {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  box-shadow: 0 16px 34px rgba(49, 87, 255, 0.18);
}

.profile-person h2,
.profile-person p {
  margin: 0;
}

.profile-person h2 {
  font-size: 24px;
}

.profile-person p,
.profile-card p,
.payment-empty p,
.profile-empty p {
  color: var(--muted);
  line-height: 1.65;
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(49, 87, 255, 0.1);
}

.profile-meta dt,
.profile-meta dd {
  margin: 0;
}

.profile-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-meta dd {
  font-weight: 950;
}

.profile-card-head,
.metric-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.vip-card.active {
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 200, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #101427, #182660 52%, #532fb2);
}

.vip-card.active p,
.vip-card.active .profile-meta dt {
  color: rgba(255, 255, 255, 0.76);
}

.metric-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 46px;
  line-height: 1;
}

.profile-section {
  padding: 24px;
}

.profile-loading,
.profile-empty,
.payment-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px;
  text-align: center;
}

.profile-loading svg,
.profile-empty svg,
.payment-empty svg {
  width: 38px;
  height: 38px;
  color: var(--blue);
}

.payment-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.7fr 0.9fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-top: 1px solid rgba(49, 87, 255, 0.1);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.payment-row:first-child {
  border-top: 0;
}

.payment-head {
  color: var(--muted);
  background: rgba(244, 251, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.split-tool {
  display: grid;
  grid-template-columns: minmax(380px, 520px) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.lyrics-output-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.lyrics-output-panel .lyrics-create-button {
  width: auto;
  min-width: 168px;
  align-self: center;
  margin-top: 16px;
  padding: 0 28px;
}

#lyricsInspirationTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.lyrics-output {
  flex: 1;
  min-height: 390px;
  max-height: min(56vh, 620px);
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  color: #26344e;
  background: rgba(255, 255, 255, 0.74);
  overflow: auto;
  resize: vertical;
  white-space: pre-wrap;
  line-height: 1.75;
}

.library-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 2vh, 18px);
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.library-head {
  max-width: 760px;
}

.library-head h1 {
  margin-bottom: 6px;
}

.library-head p {
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.48;
}

.library-grid {
  min-height: 0;
}

.library-empty {
  padding: 18px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(13, 23, 54, 0.08);
}

.library-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(12px, 2vh, 16px);
  height: 100%;
  min-height: 0;
  max-height: none;
}

.library-dashboard.is-single {
  grid-template-columns: minmax(0, min(760px, 100%));
  justify-content: center;
}

.library-empty h3,
.library-empty p {
  margin: 0;
}

.library-empty p {
  color: var(--muted);
  line-height: 1.65;
}

.library-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 14px;
}

.album-panel,
.library-song-panel,
.library-detail-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: clamp(14px, 2vh, 18px);
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(13, 23, 54, 0.08);
  backdrop-filter: blur(14px);
}

.library-collection-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: clamp(12px, 2vh, 16px);
}

.album-panel {
  max-height: clamp(136px, 21vh, 178px);
}

.library-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vw, 16px);
  min-height: 0;
}

.library-bottom-grid.has-detail {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
}

.library-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.library-section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
}

.album-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  width: min(260px, 42vw);
  margin-bottom: 0;
}

.album-create input {
  height: 40px;
}

.album-create .icon-button {
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--grad-icon);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.album-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 76, 125, 0.16), transparent 34%) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.78)) padding-box,
    var(--grad-line) border-box;
}

.album-card.active {
  border-color: rgba(139, 84, 255, 0.55);
  box-shadow: inset 3px 0 0 rgba(107, 91, 255, 0.86), 0 12px 26px rgba(49, 87, 255, 0.12);
}

.album-cover {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--grad-icon);
}

.album-card strong,
.album-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card small,
.library-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.library-song-list {
  display: grid;
  flex: 1;
  grid-auto-rows: 76px;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.library-song-list:has(> .library-empty.compact:only-child) {
  display: flex;
  padding-right: 0;
}

.library-song-list:has(> .library-empty.compact:only-child) > .library-empty.compact {
  flex: 1;
  width: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.library-detail-panel {
  gap: 12px;
}

.mobile-library-head {
  display: none;
}

.library-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.library-detail-head h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
}

.library-detail-head .icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.library-detail-lyrics p {
  margin: 0;
  color: #465168;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.library-song-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(120px, 160px) auto auto;
  gap: 10px;
  align-items: center;
  height: 76px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.library-song-row.is-playing {
  border-color: rgba(139, 84, 255, 0.52);
  background:
    linear-gradient(90deg, rgba(255, 76, 125, 0.1), rgba(139, 84, 255, 0.1), rgba(34, 103, 255, 0.1)),
    rgba(255, 255, 255, 0.95);
  box-shadow: inset 3px 0 0 rgba(107, 91, 255, 0.9), 0 12px 30px rgba(49, 87, 255, 0.12);
}

.library-song-row.has-error {
  border-color: var(--sm-item-error-border);
  background: var(--sm-item-error-bg);
  box-shadow: var(--sm-item-error-shadow);
}

.library-album-select {
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.library-empty.compact {
  align-content: center;
  min-height: 180px;
}

.qa-layout {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 22px;
}

.qa-copy p {
  color: var(--muted);
  line-height: 1.75;
}

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

.qa-list article {
  padding: 18px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 38px rgba(13, 23, 54, 0.07);
}

.qa-list h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.qa-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  color: var(--ink);
  background: transparent;
}

.footer-shell {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 22px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.footer-column a {
  color: var(--muted);
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--blue);
}

.footer-bottom {
  justify-content: space-between;
  gap: 18px;
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(49, 87, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.share-page {
  min-height: 100vh;
  padding-bottom: 36px;
}

.share-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: clamp(16px, 2.8vw, 28px);
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 138px));
  margin: 0 auto;
}

.share-player-panel,
.share-side-panel,
.share-info-block,
.share-cta-panel,
.share-guardrail-note {
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.82)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 54px rgba(13, 23, 54, 0.1);
  backdrop-filter: blur(16px);
}

.share-player-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
}

.share-cover-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
}

.share-cover-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 228, 92, 0.5), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(0, 200, 255, 0.4), transparent 30%),
    linear-gradient(135deg, rgba(255, 79, 139, 0.92), rgba(139, 92, 246, 0.92), rgba(47, 111, 255, 0.92));
  box-shadow: 0 26px 70px rgba(49, 87, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.share-cover-art img {
  width: clamp(86px, 30%, 124px);
  height: clamp(86px, 30%, 124px);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 42px rgba(13, 23, 54, 0.22);
}

.share-cover-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.share-cover-bars span {
  width: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform-origin: bottom;
  animation: cornerBars 1.18s infinite ease-in-out alternate;
}

.share-cover-bars span:nth-child(1) { height: 22px; animation-delay: -0.3s; }
.share-cover-bars span:nth-child(2) { height: 40px; animation-delay: -0.7s; }
.share-cover-bars span:nth-child(3) { height: 31px; animation-delay: -0.1s; }
.share-cover-bars span:nth-child(4) { height: 50px; animation-delay: -0.5s; }
.share-cover-bars span:nth-child(5) { height: 27px; animation-delay: -0.9s; }

body:not(.share-audio-playing) .share-cover-bars span {
  animation-play-state: paused;
}

.share-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-status-pill,
.share-mini-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(49, 87, 255, 0.13);
  border-radius: 999px;
  color: #4e46d9;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.share-status-pill.is-soft {
  color: #176b7e;
  background: rgba(236, 253, 245, 0.78);
}

.share-info-block b {
  color: #26344e;
  font-weight: 950;
}

.share-track-area {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.share-track-area h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
}

.share-track-subtitle {
  margin: -6px 0 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.share-player-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.share-play-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
}

.share-progress-area {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.share-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.share-player-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-progress-area input[type="range"] {
  width: 100%;
  accent-color: var(--brand-violet);
}

.share-primary-actions,
.share-social-grid,
.share-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-primary-actions .solid-button,
.share-primary-actions .ghost-button,
.share-cta-actions .solid-button,
.share-cta-actions .ghost-button {
  min-height: 44px;
}

.share-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  color: #26344e;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.share-social-button:hover {
  color: var(--brand-blue);
  border-color: rgba(49, 87, 255, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

.share-side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(246, 249, 255, 0.52)) padding-box,
    var(--grad-line) border-box;
}

.share-info-block,
.share-cta-panel,
.share-guardrail-note {
  padding: 16px;
}

.share-info-block h2,
.share-cta-panel h2 {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.15;
}

.share-info-block p,
.share-cta-panel p,
.share-guardrail-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.65;
}

.share-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.share-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 999px;
  color: #4e46d9;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.share-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.share-lyrics-text {
  color: #26344e !important;
}

.share-cta-panel {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 228, 92, 0.24), transparent 32%) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 247, 255, 0.82)) padding-box,
    var(--grad-line) border-box;
}

.share-guardrail-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.share-guardrail-note svg {
  display: grid;
  place-self: start center;
  margin-top: 2px;
  color: var(--brand-blue);
}

.share-guardrail-note p {
  margin: 0;
  font-size: 13px;
}

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

  .site-header > .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-grid,
  .queue-layout,
  .split-tool,
  .song-grid,
  .library-grid,
  .share-shell,
  .share-player-panel,
  .profile-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .share-shell {
    min-height: 0;
  }

  .share-cover-card {
    max-width: min(420px, 100%);
    justify-self: center;
  }

  .library-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: none;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    max-height: none;
  }

  .library-song-list {
    max-height: none;
  }

  .library-bottom-grid.has-detail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.84fr);
  }

  .account-card {
    grid-row: auto;
  }

  .payment-row {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
  }

  .payment-row span:nth-child(3),
  .payment-row span:nth-child(5) {
    display: none;
  }

  .how-steps {
    gap: 14px;
  }

  .how-steps article {
    min-height: 250px;
    padding: 32px 18px;
  }

  .hero {
    min-height: auto;
  }

  .tech-field {
    opacity: 0.42;
  }

  .hero-copy {
    padding-top: 18px;
  }
}

@media (max-height: 760px) and (min-width: 681px) {
  .page-section {
    padding-top: 78px;
    padding-bottom: 24px;
  }

  .create-layout {
    max-height: calc(100vh - 102px);
    gap: 20px;
  }

  .history-layout {
    height: calc(100vh - 102px);
    min-height: 360px;
    max-height: calc(100vh - 102px);
    gap: 20px;
  }

  .mood-map {
    min-height: 138px;
  }

  .panel-head h2 {
    font-size: 23px;
  }

  .section-kicker {
    margin-bottom: 6px;
    font-size: 12px;
  }

  textarea {
    min-height: 66px;
    padding: 10px 12px;
    line-height: 1.45;
  }

  select {
    height: 38px;
  }

  input[type="text"] {
    height: 38px;
  }

  .style-chip,
  .instrument-chip {
    min-height: 28px;
    padding: 0 9px;
  }

  .credit-pill,
  .cost-note {
    font-size: 12px;
  }

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

  .pricing-page {
    padding-top: 78px;
    padding-bottom: 18px;
  }

  .pricing-hero {
    margin-bottom: 12px;
  }

  .pricing-hero h1 {
    font-size: clamp(28px, 4.2vw, 42px);
  }

  .pricing-hero p {
    font-size: 14px;
    line-height: 1.45;
  }

  .pricing-title-row {
    margin-bottom: 10px;
  }

  .price-card {
    min-height: 268px;
    padding: 16px;
  }

  .price {
    margin: 4px 0;
    font-size: 30px;
  }

  .price-card p,
  .price-card li {
    line-height: 1.35;
    font-size: 13px;
  }

  .price-card ul {
    gap: 4px;
    margin: 8px 0 12px;
  }

  .plan-tag {
    min-height: 22px;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-header-space: 88px;
    --mobile-page-gap: 14px;
    --mobile-page-bottom: 32px;
    --mobile-player-reserve: 104px;
    --keyboard-cover-height: 0px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
    font-size: 22px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-actions .ghost-button,
  .header-actions .icon-button,
  .header-actions .language-button {
    display: none;
  }

  .hero {
    padding: 92px 14px 28px;
  }

  .page-section {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding: var(--mobile-header-space) 22px var(--mobile-page-bottom);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .create-page,
  .history-page {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
  }

  .intro-page {
    align-items: start;
    padding-top: calc(var(--mobile-header-space) + 68px);
  }

  .intro-shell {
    width: min(100%, 460px);
    text-align: left;
  }

  .intro-actions,
  .intro-shell .hero-metrics {
    justify-content: flex-start;
  }

  .intro-actions {
    margin-top: 38px;
  }

  .hero-cta {
    width: auto;
    min-width: 168px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 11px;
    font-size: 20px;
  }

  .intro-shell .eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .intro-shell .hero-subtitle {
    margin-top: 18px;
    line-height: 1.75;
  }

  .panel-a,
  .panel-b,
  .sound-rings,
  .album-stack {
    display: none;
  }

  h1 {
    max-width: 9.5em;
    font-size: 40px;
    line-height: 1.08;
  }

  .studio-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    overflow-y: auto;
    padding: 12px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .create-layout {
    height: auto;
    min-height: 0;
    gap: var(--mobile-page-gap);
    max-height: none;
    align-items: start;
    overflow: visible;
  }

  .history-layout {
    height: auto;
    min-height: 0;
    max-height: none;
    gap: var(--mobile-page-gap);
    align-items: start;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .qa-page {
    padding-bottom: 0;
  }

  .qa-layout {
    align-content: center;
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    width: min(100%, calc(100% - 28px));
    padding-top: 0;
  }

  .qa-copy {
    display: grid;
    gap: 6px;
  }

  .qa-copy h2 {
    margin: 0;
    font-size: 26px;
  }

  .qa-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .qa-list {
    gap: 10px;
  }

  .qa-list article {
    padding: 13px 14px;
  }

  .qa-list h3 {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .qa-list p {
    font-size: 13px;
    line-height: 1.45;
  }

  .site-footer {
    display: none;
  }

  .music-motif {
    opacity: 0.18;
  }

  .mode-tabs,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .create-layout,
  .history-layout,
  .qa-layout,
  .footer-shell,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .library-page {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: var(--mobile-header-space) 12px 0;
    overflow: visible;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .library-shell {
    height: auto;
    min-height: 0;
    gap: 0;
  }

  .library-head {
    display: grid;
    gap: 3px;
    flex: 0 0 auto;
    padding: 0 0 8px;
  }

  .library-head h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.1;
  }

  .library-head p {
    display: none;
  }

  .library-dashboard {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .album-panel,
  .library-song-panel,
  .library-detail-panel {
    padding: 10px;
  }

  .library-collection-panel,
  .library-detail-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 34px);
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 34px);
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 34px);
    margin: 0;
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .library-collection-panel {
    overflow: hidden;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .album-panel {
    flex: 0 0 auto;
    max-height: 166px;
    min-height: 150px;
  }

  .library-detail-panel {
    margin-top: var(--mobile-page-bottom);
    overflow: hidden;
  }

  .style-lab-panel,
  .lyrics-stage-panel,
  .result-panel {
    position: relative;
    z-index: 5;
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    overflow: hidden;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .studio-panel,
  .style-lab-panel,
  .result-panel,
  .lyrics-stage-panel {
    margin-bottom: var(--mobile-page-gap);
  }

  .style-lab-panel {
    overflow-y: auto;
  }

  .style-lab-panel,
  .lyrics-stage-panel,
  .result-panel {
    padding: 12px;
  }

  .studio-panel .panel-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .studio-panel .panel-head h2,
  .style-lab-panel h3,
  .lyrics-stage-panel h3,
  .result-panel h3 {
    font-size: 21px;
  }

  .field-block {
    gap: 0;
    margin-bottom: 8px;
  }

  .field-block span,
  .field-label {
    font-size: 12px;
  }

  .field-line {
    gap: 8px;
  }

  .text-tool-button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .credit-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  input[type="text"],
  select {
    height: 38px;
    padding-inline: 11px;
  }

  textarea {
    min-height: 72px;
    max-height: 18svh;
    padding: 10px 11px;
    line-height: 1.45;
  }

  .lyrics-field textarea {
    min-height: 88px;
    max-height: 20svh;
  }

  .inspiration-tags {
    gap: 6px;
  }

  .inspiration-tag {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .clear-studio-button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .mood-map {
    min-height: 142px;
  }

  .mood-quadrant {
    display: none;
  }

  .mood-axis-y {
    left: 8px;
    top: 8px;
    display: inline-flex;
    width: auto;
    height: 24px;
    min-height: 0;
    grid-template-rows: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    line-height: 1;
    transform: none;
    white-space: nowrap;
  }

  .mood-axis-y em,
  .mood-axis-y b,
  .mood-axis-y i {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
  }

  .mood-axis-x {
    bottom: 8px;
  }

  .mood-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mood-readout span {
    padding: 7px 8px;
    font-size: 11px;
  }

  .right-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .how-section .content-shell {
    display: flex;
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    flex-direction: column;
    justify-content: center;
  }

  .how-head {
    margin-bottom: 14px;
  }

  .how-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.18;
  }

  .how-head p {
    font-size: 14px;
    line-height: 1.5;
  }

  .how-steps {
    gap: 10px;
  }

  .how-steps article {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
    align-items: center;
    align-content: center;
    min-height: 0;
    padding: 14px 16px;
    text-align: left;
  }

  .how-steps span {
    width: 34px;
    height: 34px;
    margin: 0 12px 0 0;
    font-size: 16px;
  }

  .how-steps h3 {
    margin: 0;
    font-size: 18px;
  }

  .how-steps p {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
  }

  .profile-hero {
    display: grid;
    align-items: start;
  }

  .page-section {
    min-height: 100svh;
    height: auto;
    overflow: visible;
  }

  .submit-row,
  .section-title-row,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .generate-button {
    width: 100%;
  }

  .queue-item {
    grid-template-columns: auto 1fr;
  }

  .track-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(122px, auto);
  }

  .track-actions {
    gap: 7px;
  }

  .track-side-status {
    flex-basis: 88px;
    max-width: 132px;
    padding: 4px 6px;
  }

  .library-song-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: minmax(0, 34px) 32px 26px;
    gap: 5px 7px;
    height: 116px;
    min-height: 116px;
    align-items: center;
    padding: 8px 9px;
  }

  .library-song-list {
    grid-auto-rows: 116px;
  }

  .library-song-row .record-cover {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
  }

  .library-song-row .track-main {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    gap: 2px;
  }

  .library-song-row .track-favorite {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .library-song-row .track-share {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .library-song-row .track-delete {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .library-song-row .track-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    display: grid;
    grid-template-columns: repeat(3, 30px);
    gap: 6px;
  }

  .library-song-row .track-favorite,
  .library-song-row .track-share,
  .library-song-row .track-delete {
    width: 30px;
    height: 30px;
  }

  .library-song-row .track-side-status {
    grid-column: 1 / -1;
    order: 3;
    justify-self: end;
    max-width: 104px;
    padding: 3px 6px;
    font-size: 10px;
    line-height: 1.1;
  }

  .library-song-row .track-main span,
  .library-song-row .track-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.28;
  }

  .library-song-row .track-main span {
    color: #536078;
  }

  .library-album-select {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    width: min(100%, 210px);
    height: 24px;
    padding: 0 24px 0 10px;
    border-radius: 999px;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.72);
  }

  .library-song-row .expiry-pill {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .album-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 46vw);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 4px 0;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .album-grid::-webkit-scrollbar {
    height: 4px;
  }

  .album-card {
    scroll-snap-align: start;
    min-height: 66px;
    padding: 8px;
  }

  .record-cover {
    width: 48px;
    height: 48px;
  }

  .track-wave,
  .track-row > .status-dot {
    display: none;
  }

  .global-player {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas: "cover track controls";
    gap: 9px;
    min-height: 62px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 34px rgba(13, 23, 54, 0.13), 0 -4px 18px rgba(139, 84, 255, 0.1);
  }

  .player-queue-panel {
    right: 10px;
    bottom: calc(100% + 8px);
    left: 10px;
    width: auto;
    max-height: min(46svh, 320px);
    z-index: 2;
  }

  .player-queue-list {
    max-height: min(34svh, 242px);
  }

  body.player-open .intro-shell,
  body.player-open .create-layout,
  body.player-open .history-layout,
  body.player-open .how-section .content-shell,
  body.player-open .qa-layout,
  body.player-open .site-footer {
    transform: none;
  }

  body.player-open .page-section {
    padding-bottom: var(--mobile-page-bottom);
  }

  body.player-open .studio-panel,
  body.player-open .style-lab-panel,
  body.player-open .library-collection-panel,
  body.player-open .lyrics-stage-panel,
  body.player-open .result-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  .player-cover {
    grid-area: cover;
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .player-track {
    grid-area: track;
    gap: 2px;
  }

  .player-track strong {
    font-size: 13px;
  }

  .player-track span {
    font-size: 11px;
  }

  .player-progress-wrap {
    position: absolute;
    top: 6px;
    right: 12px;
    left: 12px;
    display: block;
    width: auto;
    height: 3px;
    font-size: 0;
    pointer-events: none;
  }

  .player-progress-wrap span {
    display: inline;
    font-size: 0;
  }

  .player-progress-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 79, 139, 0.78), rgba(139, 92, 246, 0.76), rgba(47, 111, 255, 0.74));
    pointer-events: none;
  }

  .player-progress-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    border: 0;
  }

  .player-progress-wrap input[type="range"]::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
  }

  .player-progress-wrap input[type="range"]::-moz-range-track {
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: transparent;
  }

  .player-controls {
    grid-area: controls;
    justify-content: end;
    gap: 6px;
  }

  #globalPlayerLoop,
  #globalPlayerVolume,
  #globalPlayerPrev {
    display: none;
  }

  .player-skip,
  .player-mode {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .player-play {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .song-share-popover {
    gap: 14px;
    padding: 16px;
  }

  .song-share-channel {
    grid-template-rows: 44px 18px;
    font-size: 10px;
  }

  .song-share-channel-icon {
    width: 44px;
    height: 44px;
  }

  .player-queue-panel {
    right: 8px;
    bottom: calc(100% + 8px);
    left: 8px;
    width: auto;
    max-height: min(420px, 46svh);
  }

  .player-queue-list {
    max-height: min(340px, 36svh);
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .pricing-page {
    align-items: start;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding: 86px 16px 18px;
  }

  .pricing-page .content-shell {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
  }

  .pricing-hero {
    margin-bottom: 8px;
  }

  .pricing-hero h1 {
    margin-bottom: 5px;
    font-size: 25px;
    line-height: 1.18;
  }

  .pricing-hero p {
    font-size: 12px;
    line-height: 1.42;
  }

  .pricing-title-row {
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
  }

  .pricing-title-row h2 {
    font-size: 19px;
  }

  .billing-toggle {
    justify-content: stretch;
  }

  .billing-toggle button {
    flex: 1;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pricing-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .price-option {
    min-height: 86px;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 9px;
  }

  .price-option .plan-tag {
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
  }

  .price-option strong {
    font-size: 14px;
  }

  .option-price b {
    font-size: 25px;
  }

  .option-price small {
    font-size: 11px;
  }

  .pricing-detail-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
    border-radius: 10px;
  }

  .pricing-detail-copy {
    gap: 6px;
  }

  .pricing-detail-copy h3,
  .payment-box h3 {
    font-size: 20px;
  }

  .detail-price span {
    font-size: 42px;
  }

  .detail-price small {
    font-size: 13px;
  }

  .pricing-detail-copy p,
  .payment-box p,
  .detail-feature-list,
  .payment-box small {
    font-size: 12px;
    line-height: 1.38;
  }

  .detail-feature-list {
    gap: 3px;
    margin: 0;
  }

  .payment-box {
    padding: 12px;
  }

  .payment-box .solid-button {
    min-height: 36px;
  }

  .pricing-carousel {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    padding: 0 2px 34px;
  }

  .pricing-grid {
    display: flex;
    height: 100%;
    gap: 0;
    transition: transform 0.28s ease;
    will-change: transform;
  }

  .price-card {
    flex: 0 0 100%;
    min-height: 0;
    height: 100%;
    padding: 15px 16px;
    grid-template-rows: auto auto auto auto 1fr auto;
  }

  .price-card h3 {
    margin: 4px 0 0;
    font-size: 19px;
  }

  .price {
    margin: 8px 0 4px;
    font-size: 31px;
  }

  .price-card p,
  .price-card li {
    font-size: 13px;
    line-height: 1.4;
  }

  .price-card ul {
    gap: 4px;
    margin: 8px 0 12px;
  }

  .pricing-page-button {
    display: grid;
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-color: transparent;
    background: var(--grad-action);
    box-shadow: var(--brand-glow);
    transform: translateY(-50%);
  }

  .pricing-prev {
    left: 8px;
  }

  .pricing-next {
    right: 8px;
  }

  .pricing-dots {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
  }

  .pricing-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.22);
  }

  .pricing-dots button.active {
    width: 22px;
    background: var(--grad-action);
  }

  .profile-page {
    padding: 96px 14px 36px;
  }

  .profile-card,
  .profile-section {
    padding: 18px;
  }

  .account-button {
    padding-right: 5px;
  }

  .account-label {
    display: none;
  }

  .mini-wave,
  .status-label {
    grid-column: 2;
  }

  .create-page,
  .history-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: var(--mobile-header-space) 22px var(--mobile-page-bottom);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .create-layout,
  .history-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-page-gap);
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-items: start;
  }

  .studio-panel,
  .style-lab-panel,
  .result-panel,
  .lyrics-stage-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    margin: 0 0 var(--mobile-page-gap);
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .create-layout > .studio-panel,
  .create-layout > .style-lab-panel,
  .history-layout > .result-panel,
  .history-layout > .lyrics-stage-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
  }

  .studio-panel,
  .style-lab-panel {
    overflow-y: auto;
  }

  .result-panel,
  .lyrics-stage-panel {
    overflow: hidden;
  }

  .queue-list {
    min-height: 0;
    overflow-y: auto;
  }

  .synced-lyrics,
  .history-prompt-box div {
    min-height: 0;
    overflow-y: auto;
  }

  body.player-open .studio-panel,
  body.player-open .style-lab-panel,
  body.player-open .library-collection-panel,
  body.player-open .result-panel,
  body.player-open .lyrics-stage-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  body.player-open .create-layout > .studio-panel,
  body.player-open .create-layout > .style-lab-panel,
  body.player-open .history-layout > .result-panel,
  body.player-open .history-layout > .lyrics-stage-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  html.mobile-keyboard-open,
  body.mobile-keyboard-open {
    scroll-snap-type: none;
  }

  body.mobile-keyboard-open .create-layout > :not(.keyboard-focus-panel),
  body.mobile-keyboard-open .history-layout > :not(.keyboard-focus-panel) {
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-keyboard-open .keyboard-focus-panel {
    overflow-y: auto;
    padding-bottom: calc(12px + var(--keyboard-cover-height));
    scroll-padding-bottom: var(--keyboard-cover-height);
    overscroll-behavior: contain;
  }

  body.mobile-keyboard-open .keyboard-focus-section::after {
    content: "";
    display: block;
    height: var(--keyboard-cover-height);
  }

  .library-page .library-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    overflow: visible;
  }

  .library-page .library-collection-panel,
  .library-page .library-detail-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 58px);
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 58px);
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom) - 58px);
    margin: 0 0 var(--mobile-page-gap);
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .library-page .library-collection-panel {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  body.player-open .library-page .library-collection-panel,
  body.player-open .library-page .library-detail-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve) - 58px);
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve) - 58px);
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve) - 58px);
  }

  .library-page .library-detail-panel {
    overflow: hidden;
  }

  .library-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: var(--mobile-header-space) 22px var(--mobile-page-bottom);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .library-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0;
  }

  .library-head {
    display: none;
  }

  .mobile-library-head {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    margin-bottom: 8px;
  }

  .mobile-library-head h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.1;
  }

  .library-page .library-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--mobile-page-gap);
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-items: start;
  }

  .library-page .library-dashboard.is-single {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-content: stretch;
  }

  .library-page .library-collection-panel,
  .library-page .library-detail-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
    margin: 0 0 var(--mobile-page-gap);
    padding: 12px;
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .library-page .library-collection-panel {
    gap: 8px;
    overflow: hidden;
  }

  .library-page .library-detail-panel {
    overflow: hidden;
  }

  body.player-open .library-page .library-collection-panel,
  body.player-open .library-page .library-detail-panel {
    height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    min-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
    max-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  /* Mobile page contract: every tool/history/library panel uses the same snap page geometry. */
  :root {
    --mobile-panel-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
  }

  body.player-open {
    --mobile-panel-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  .create-page,
  .history-page,
  .library-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: var(--mobile-header-space) 22px calc(var(--mobile-page-bottom) + var(--mobile-header-space));
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  body.player-open .create-page,
  body.player-open .history-page,
  body.player-open .library-page {
    padding-bottom: calc(var(--mobile-player-reserve) + var(--mobile-header-space));
  }

  .create-layout,
  .history-layout,
  .library-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--mobile-page-gap);
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-items: start;
  }

  .create-layout > .studio-panel,
  .create-layout > .style-lab-panel,
  .history-layout > .result-panel,
  .history-layout > .lyrics-stage-panel,
  .library-dashboard > .library-collection-panel,
  .library-dashboard > .library-detail-panel {
    height: var(--mobile-panel-height);
    min-height: var(--mobile-panel-height);
    max-height: var(--mobile-panel-height);
    margin: 0 0 var(--mobile-page-gap);
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .library-page {
    padding-inline: 12px;
  }

  .library-dashboard.is-single {
    grid-template-rows: auto;
  }

  .library-dashboard > .library-collection-panel {
    gap: 8px;
    overflow: hidden;
  }

  .library-dashboard > .library-detail-panel,
  .history-layout > .lyrics-stage-panel,
  .history-layout > .result-panel {
    overflow: hidden;
  }

  /* Mobile fit contract: outer panels must stay one viewport tall.
     Only history/library item lists scroll inside their own list areas. */
  .style-lab-panel,
  .studio-panel,
  .lyrics-output-panel,
  .profile-card,
  .profile-section,
  .pricing-grid .price-card {
    min-height: 0;
    overflow: hidden;
  }

  .style-lab-panel {
    display: grid;
    grid-template-rows: auto minmax(118px, 0.9fr) auto auto auto auto;
    align-content: stretch;
    gap: clamp(6px, 1.35svh, 10px);
  }

  .style-lab-panel > div:first-child {
    min-height: 0;
  }

  .style-lab-panel .section-kicker,
  .style-lab-panel h3,
  .style-lab-panel p {
    margin-block: 0;
  }

  .style-lab-panel p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .style-lab-panel .mood-map {
    width: 100%;
    min-height: 0;
    height: clamp(112px, 25svh, 156px);
  }

  .style-lab-panel .chips-group {
    min-height: 0;
    gap: 6px;
    overflow: hidden;
  }

  .style-lab-panel .style-chip,
  .style-lab-panel .instrument-chip {
    min-height: 25px;
    padding: 0 9px;
    font-size: 11px;
  }

  .style-lab-panel .mood-readout span {
    min-height: 28px;
  }

  .style-lab-panel .right-control-grid {
    min-height: 0;
  }

  .style-lab-panel .field-block {
    min-height: 0;
    margin-bottom: 0;
  }

  .style-lab-panel select {
    height: 34px;
  }

  .style-submit-row {
    min-height: 0;
    gap: 5px;
  }

  .style-submit-row .generate-button {
    min-height: 40px;
  }

  .style-submit-row .cost-note {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .record-list,
  .library-song-list {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Softer song surface and stationary lyric emphasis. */
.public-share-card {
  position: relative;
  isolation: isolate;
  --default-record-art:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 9%, rgba(139, 92, 246, 0.48) 9.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(53, 61, 112, 0.08) 0 1px, transparent 1px 4px),
    conic-gradient(from 24deg, #ff8fb8, #b796ed 22%, #789cf0 46%, #63c8dc 68%, #a88de7 84%, #ff8fb8);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.public-lyric-line {
  position: relative;
  isolation: isolate;
  background: transparent;
  transform: none;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.public-lyric-line.active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.public-lyric-line.active::before {
  content: "";
  position: absolute;
  inset: 5px 10%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.58) 0 24%, var(--song-color-a) 48%, var(--song-color-b) 66%, transparent 82%);
  opacity: 0.78;
  pointer-events: none;
}

.share-audio-playing .public-lyric-line.active,
.share-audio-playing .public-lyric-line.active strong {
  animation: none;
  filter: none;
  transform: none;
}

/* Satin titanium plinth with a restrained, grooved default vinyl. */
.public-share-card {
  --default-record-art:
    radial-gradient(circle at 50% 50%, rgba(245, 241, 232, 0.94) 0 12%, rgba(171, 161, 160, 0.88) 12.5% 21%, transparent 21.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    conic-gradient(from 28deg, #171a22, #302d3a 19%, #1b3038 38%, #25283a 57%, #3a2831 76%, #171a22);
}

.public-share-cover.public-turntable {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 122, 173, 0.13), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(55, 176, 232, 0.12), transparent 32%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.7), transparent 31%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.13) 0 1px, rgba(61, 72, 88, 0.025) 1px 4px),
    linear-gradient(145deg, #f4f1f7 0%, #d9dce8 48%, #f2f8fa 100%);
  box-shadow:
    0 30px 68px rgba(46, 56, 75, 0.16),
    0 12px 26px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 5px rgba(65, 76, 92, 0.12);
}

.public-share-cover.public-turntable::before {
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.42), transparent 34% 70%, rgba(82, 93, 110, 0.06)),
    radial-gradient(circle at 80% 18%, rgba(139, 92, 246, 0.055), transparent 28%);
  opacity: 0.82;
}

.public-platter-shadow {
  background:
    radial-gradient(circle, rgba(32, 38, 50, 0.14) 0 56%, rgba(255, 255, 255, 0.46) 57% 65%, rgba(61, 72, 88, 0.08) 66% 70%, transparent 71%);
  box-shadow:
    0 22px 38px rgba(35, 43, 58, 0.18),
    inset 0 0 0 7px rgba(255, 255, 255, 0.34),
    inset 0 0 28px rgba(31, 41, 55, 0.08);
}

.public-record-disc {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055) 0 1px, rgba(7, 10, 16, 0.1) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #11141b, #292633, #142b33, #31252f, #171a24, #11141b);
  box-shadow:
    0 18px 36px rgba(19, 24, 35, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 32px rgba(255, 255, 255, 0.055);
}

.public-record-disc::before {
  inset: 4%;
  border: 0;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.2), transparent 24% 72%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.public-turntable.has-default-art .public-record-art {
  inset: 8%;
  width: 84%;
  height: 84%;
  background: var(--default-record-art);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 9px rgba(4, 7, 13, 0.22);
}

.public-record-art::before {
  opacity: 0.24;
}

.public-record-label {
  width: 15%;
  border: 0;
  background: radial-gradient(circle, #f7f4ec 0 34%, #a39da1 36% 66%, #262a35 68% 100%);
  box-shadow: 0 4px 12px rgba(7, 10, 18, 0.3);
}

.public-record-label::before {
  display: none;
}

.public-record-label::after {
  content: "";
  position: absolute;
  display: block;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(238, 241, 245, 0.98);
  box-shadow:
    0 0 0 2px rgba(28, 33, 43, 0.2),
    inset 0 1px 2px rgba(28, 33, 43, 0.18);
}

.public-player-record {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    conic-gradient(from 12deg, #11141b, #292633, #142b33, #31252f, #171a24, #11141b);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(19, 24, 35, 0.18);
  animation: playerDiscSpin 18s linear infinite;
  animation-play-state: paused;
}

.public-player-record-art {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: var(--default-record-art);
  background-position: center;
  background-size: cover;
}

.public-player-record::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 2;
  border-radius: 50%;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 28% 72%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.public-player-record::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 247, 245, 0.98);
  box-shadow: 0 0 0 2px rgba(21, 26, 37, 0.24);
  transform: translate(-50%, -50%);
}

.public-player-record.has-cover-art .public-player-record-art {
  inset: 5%;
}

.share-audio-playing .public-player-record {
  animation-play-state: running;
}

@media (max-width: 680px) {
  /* HARD RULE: mobile outer panels must fit one viewport.
     Do not make outer panels scroll; compress controls at low heights instead.
     Approved internal scrollers are repeated item lists only. See docs/MOBILE_LAYOUT_RULES.md. */
  :root {
    --mobile-panel-height: calc(100svh - var(--mobile-header-space) - var(--mobile-page-bottom));
  }

  body.player-open {
    --mobile-panel-height: calc(100svh - var(--mobile-header-space) - var(--mobile-player-reserve));
  }

  .page-section,
  .pricing-page,
  .profile-page {
    max-height: 100svh;
    overflow: hidden;
  }

  .create-page,
  .history-page,
  .tool-page,
  .library-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: var(--mobile-header-space) 22px calc(var(--mobile-page-bottom) + var(--mobile-header-space));
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  body.player-open .create-page,
  body.player-open .history-page,
  body.player-open .tool-page,
  body.player-open .library-page {
    padding-bottom: calc(var(--mobile-player-reserve) + var(--mobile-header-space));
  }

  .create-layout,
  .history-layout,
  .split-tool,
  .library-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--mobile-page-gap);
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-items: start;
  }

  .create-layout > .studio-panel,
  .create-layout > .style-lab-panel,
  .history-layout > .result-panel,
  .history-layout > .lyrics-stage-panel,
  .split-tool > .studio-panel,
  .split-tool > .lyrics-output-panel,
  .library-dashboard > .library-collection-panel,
  .library-dashboard > .library-detail-panel {
    height: var(--mobile-panel-height);
    min-height: var(--mobile-panel-height);
    max-height: var(--mobile-panel-height);
    margin: 0 0 var(--mobile-page-gap);
    scroll-margin-top: var(--mobile-header-space);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .studio-panel,
  .style-lab-panel,
  .result-panel,
  .lyrics-stage-panel,
  .lyrics-output-panel,
  .library-collection-panel,
  .library-detail-panel,
  .profile-card,
  .profile-section,
  .pricing-grid .price-card {
    min-height: 0;
    overflow: hidden;
  }

  .queue-list,
  .record-list,
  .library-song-list,
  .player-queue-list,
  textarea {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .tool-page .split-tool {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .lyrics-output-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .lyrics-output-panel .section-kicker,
  .lyrics-output-panel h3 {
    margin: 0;
  }

  .lyrics-output {
    min-height: 0;
    max-height: none;
    resize: none;
  }

  .lyrics-output-panel .lyrics-create-button {
    min-height: 38px;
    margin-top: 0;
  }

  .profile-page {
    display: block;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: var(--mobile-header-space) 14px var(--mobile-page-bottom);
    overflow: hidden;
  }

  .profile-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    min-height: 0;
  }

  .profile-hero {
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .profile-hero h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
  }

  .profile-hero p {
    display: none;
  }

  .profile-hero .ghost-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .profile-root {
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
  }

  .profile-card {
    min-height: 0;
    padding: 10px;
  }

  .account-card {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .profile-person {
    gap: 10px;
  }

  .profile-avatar {
    width: 42px;
    height: 42px;
  }

  .profile-person h2 {
    font-size: 16px;
  }

  .profile-person p,
  .profile-card p {
    font-size: 11px;
    line-height: 1.25;
  }

  .profile-meta {
    gap: 6px;
    margin-top: 8px;
  }

  .profile-meta div {
    gap: 8px;
    padding-top: 6px;
  }

  .profile-meta dt,
  .profile-meta dd {
    font-size: 11px;
  }

  .metric-card strong {
    margin: 8px 0 4px;
    font-size: 28px;
  }

  .profile-card-head,
  .metric-card span {
    font-size: 11px;
  }

  .profile-section {
    min-height: 0;
    padding: 10px;
    overflow: hidden;
  }

  .profile-section .section-title-row {
    margin-bottom: 8px;
  }

  .profile-section .section-title-row h2 {
    font-size: 18px;
  }

  .payment-empty {
    min-height: 0;
    padding: 14px 10px;
  }

  .payment-empty p {
    font-size: 12px;
    line-height: 1.35;
  }

  .payment-table {
    max-height: 30svh;
    overflow: hidden;
  }

  .payment-row {
    grid-template-columns: 1fr 0.72fr 0.82fr;
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .payment-row span:nth-child(4),
  .payment-row span:nth-child(5) {
    display: none;
  }

  .pricing-page {
    display: block;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: 78px 14px 16px;
  }

  .pricing-page .content-shell {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    min-height: 0;
  }

  .pricing-hero {
    display: grid;
    gap: 4px;
    margin: 0;
  }

  .pricing-hero .section-kicker {
    margin: 0;
    font-size: 11px;
  }

  .pricing-hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(22px, 6vw, 25px);
    line-height: 1.12;
  }

  .pricing-hero p {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #5d6680;
    font-size: 12px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pricing-title-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    margin: 4px 0 2px;
    text-align: center;
  }

  .pricing-title-row > div:first-child {
    min-width: 0;
  }

  .pricing-title-row .section-kicker {
    margin: 0 0 2px;
    font-size: 11px;
  }

  .pricing-title-row h2 {
    margin: 0;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.12;
  }

  .billing-toggle {
    justify-self: center;
    width: min(210px, 100%);
    padding: 3px;
    border-radius: 9px;
  }

  .billing-toggle button {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .billing-toggle button span {
    display: inline;
    margin-left: 2px;
    font-size: 10px;
  }

  .pricing-selector {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
  }

  .pricing-grid {
    display: block;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .pricing-grid .price-card {
    display: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .pricing-grid .price-card.active {
    display: grid;
  }

  .pricing-grid .price-card h3 {
    margin-top: 4px;
    font-size: 20px;
  }

  .pricing-grid .price {
    margin: 8px 0 4px;
    font-size: 42px;
  }

  .pricing-grid .price-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pricing-grid .price-card ul {
    gap: 6px;
    margin: 10px 0 14px;
  }

  .pricing-grid .price-card li {
    font-size: 12px;
    line-height: 1.28;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  :root {
    --mobile-header-space: 76px;
    --mobile-page-gap: 10px;
    --mobile-page-bottom: 18px;
    --mobile-player-reserve: 86px;
  }

  .site-header {
    padding: 9px 12px;
  }

  .brand {
    font-size: 18px;
  }

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

  .header-actions .solid-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .mobile-menu-button,
  .account-button {
    width: 38px;
    height: 38px;
  }

  .studio-panel,
  .style-lab-panel,
  .result-panel,
  .lyrics-stage-panel,
  .library-collection-panel,
  .library-detail-panel,
  .lyrics-output-panel,
  .price-card {
    padding: 10px;
  }

  .studio-panel .panel-head h2,
  .style-lab-panel h3,
  .lyrics-stage-panel h3,
  .result-panel h3 {
    font-size: 19px;
    line-height: 1.08;
  }

  .section-kicker {
    font-size: 11px;
  }

  .field-block span,
  .field-label {
    font-size: 11px;
  }

  input[type="text"],
  select {
    height: 34px;
    font-size: 13px;
  }

  textarea {
    min-height: 58px;
    max-height: 15svh;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.36;
  }

  .lyrics-field textarea {
    min-height: 68px;
    max-height: 16svh;
  }

  .inspiration-tags {
    gap: 5px;
  }

  .inspiration-tag,
  .style-lab-panel .style-chip,
  .style-lab-panel .instrument-chip {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .style-lab-panel {
    grid-template-rows: auto minmax(92px, 0.78fr) auto auto auto auto;
    gap: 5px;
  }

  .style-lab-panel p {
    font-size: 11px;
    line-height: 1.28;
    -webkit-line-clamp: 1;
  }

  .style-lab-panel .mood-map {
    height: clamp(92px, 22svh, 126px);
  }

  .mood-axis-x,
  .mood-axis-y {
    font-size: 10px;
  }

  .mood-axis-y {
    height: 21px;
    padding: 0 6px;
  }

  .mood-axis-x {
    min-height: 20px;
    bottom: 6px;
  }

  .mood-dot {
    width: 14px;
    height: 14px;
  }

  .style-lab-panel .mood-readout span {
    min-height: 24px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .right-control-grid {
    gap: 6px;
  }

  .style-lab-panel select {
    height: 30px;
    font-size: 12px;
  }

  .style-submit-row .generate-button {
    min-height: 34px;
    font-size: 14px;
  }

  .style-submit-row .cost-note {
    font-size: 10px;
    line-height: 1.18;
    -webkit-line-clamp: 1;
  }

  .how-head h2 {
    font-size: 22px;
  }

  .how-head p,
  .qa-copy p,
  .qa-list p {
    font-size: 12px;
    line-height: 1.36;
  }

  .how-steps article,
  .qa-list article {
    padding: 10px 12px;
  }

  .profile-hero {
    gap: 8px;
  }

  .pricing-page {
    padding-top: 70px;
  }

  .pricing-grid .price {
    font-size: 36px;
  }
}

@media (max-width: 680px) and (max-height: 660px) {
  :root {
    --mobile-header-space: 68px;
    --mobile-page-gap: 8px;
    --mobile-page-bottom: 12px;
    --mobile-player-reserve: 78px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .header-actions .solid-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .mobile-menu-button,
  .account-button {
    width: 34px;
    height: 34px;
  }

  .studio-panel,
  .style-lab-panel,
  .result-panel,
  .lyrics-stage-panel,
  .library-collection-panel,
  .library-detail-panel,
  .lyrics-output-panel,
  .price-card {
    padding: 8px;
  }

  .studio-panel .panel-head h2,
  .style-lab-panel h3,
  .lyrics-stage-panel h3,
  .result-panel h3 {
    font-size: 17px;
  }

  .style-lab-panel {
    grid-template-rows: auto minmax(78px, 0.7fr) auto auto auto auto;
    gap: 4px;
  }

  .style-lab-panel > div:first-child p {
    display: none;
  }

  .style-lab-panel .mood-map {
    height: clamp(78px, 19svh, 106px);
  }

  .style-lab-panel .chips-group {
    gap: 4px;
  }

  .inspiration-tag,
  .style-lab-panel .style-chip,
  .style-lab-panel .instrument-chip {
    min-height: 20px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  .style-lab-panel .mood-readout span {
    min-height: 22px;
    padding: 4px 5px;
  }

  input[type="text"],
  select,
  .style-lab-panel select {
    height: 28px;
    font-size: 12px;
  }

  textarea {
    min-height: 48px;
    max-height: 13svh;
    font-size: 12px;
  }

  .lyrics-field textarea {
    min-height: 58px;
    max-height: 14svh;
  }

  .style-submit-row .generate-button {
    min-height: 30px;
    font-size: 13px;
  }

  .style-submit-row .cost-note {
    display: none;
  }
}

@media (min-width: 681px) {
  .mood-axis-y {
    left: 12px;
    top: 50%;
    display: grid;
    width: 44px;
    height: 112px;
    min-width: 0;
    min-height: 0;
    grid-template-rows: repeat(4, auto);
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 5px;
    padding: 0 6px;
    text-align: center;
    transform: translateY(-50%);
  }

  .mood-axis-y em,
  .mood-axis-y b,
  .mood-axis-y i {
    display: grid;
    width: 100%;
    justify-items: center;
    text-align: center;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .header-actions .solid-button {
    padding: 0 12px;
    font-size: 13px;
  }

  .right-control-grid,
  .mood-readout {
    gap: 6px;
  }

  .mood-readout span {
    padding: 7px 6px;
    font-size: 10px;
  }

  select {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .share-page {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: var(--mobile-header-space) 12px 28px;
    overflow: visible;
  }

  .share-shell {
    gap: 12px;
    width: 100%;
  }

  .share-player-panel,
  .share-side-panel {
    padding: 10px;
  }

  .share-player-panel {
    gap: 14px;
  }

  .share-cover-card {
    width: min(100%, 320px);
  }

  .share-track-area {
    gap: 12px;
  }

  .share-track-area h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .share-player-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .share-play-button {
    width: 50px;
    height: 50px;
  }

  .share-primary-actions .solid-button,
  .share-primary-actions .ghost-button,
  .share-cta-actions .solid-button,
  .share-cta-actions .ghost-button {
    flex: 1 1 148px;
    min-width: 0;
    padding: 0 12px;
  }

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

  .share-info-block,
  .share-cta-panel,
  .share-guardrail-note {
    padding: 12px;
  }
}

.public-share-document,
.public-share-document body {
  min-height: 100%;
  overflow-y: auto;
  scroll-snap-type: none;
}

.public-share-body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 120, 138, 0.13) 0 1px, transparent 1px 18px),
    linear-gradient(120deg, rgba(47, 111, 255, 0.08), transparent 38%),
    radial-gradient(circle at 16% 18%, rgba(0, 200, 255, 0.2), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 72, 111, 0.16), transparent 30%),
    radial-gradient(circle at 66% 86%, rgba(255, 228, 92, 0.2), transparent 26%),
    linear-gradient(125deg, #fff1ee 0%, #fff9ef 48%, #f4fbff 100%);
}

.public-share-body::before,
.public-share-body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: 38vh;
  pointer-events: none;
}

.public-share-body::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(255, 91, 85, 0.18) 10px 14px,
      transparent 14px 24px
    );
  mask-image: linear-gradient(180deg, transparent 0%, #000 42%, transparent 100%);
  transform: translateY(16%);
}

.public-share-body::after {
  background:
    radial-gradient(ellipse at 30% 88%, rgba(255, 79, 139, 0.14), transparent 42%),
    radial-gradient(ellipse at 72% 82%, rgba(32, 189, 233, 0.13), transparent 44%);
  opacity: 0.9;
}

.public-share-main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  padding: clamp(16px, 4vw, 48px);
}

.public-share-card {
  display: grid;
  align-self: center;
  gap: clamp(12px, 2vh, 18px);
  width: min(1100px, 100%);
  min-height: min(720px, calc(100svh - 42px));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.84)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 28px 86px rgba(13, 23, 54, 0.14);
  backdrop-filter: blur(18px);
}

.public-share-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.public-share-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 18px;
  font-weight: 950;
}

.public-share-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--brand-glow);
}

.public-language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  color: #4e46d9;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.public-language-select select {
  width: auto;
  height: 34px;
  padding: 0 24px 0 2px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.public-share-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  min-height: 470px;
}

.public-turntable-zone {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.public-share-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(330px, 100%);
  padding: 11%;
  border-radius: 24px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 252, 0.92)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 84% 86%, rgba(79, 236, 202, 0.14), transparent 30%);
  box-shadow:
    28px 30px 46px rgba(37, 92, 100, 0.12),
    0 22px 54px rgba(13, 23, 54, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset -18px -18px 34px rgba(202, 220, 225, 0.2),
    inset 18px 18px 36px rgba(255, 255, 255, 0.78);
}

.public-share-cover::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 19px;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(16, 20, 39, 0.025) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 7px 7px, 9px 9px;
  opacity: 0.52;
}

.public-platter-shadow {
  position: absolute;
  inset: 13% 14% 15% 12%;
  border-radius: 50%;
  background: rgba(16, 20, 39, 0.06);
  box-shadow:
    0 18px 34px rgba(37, 92, 100, 0.16),
    inset 0 0 0 10px rgba(255, 255, 255, 0.58),
    inset 0 0 42px rgba(32, 189, 233, 0.12);
}

.public-record-disc {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 232px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 4.8%, rgba(32, 189, 233, 0.58) 5.2% 9%, transparent 9.5%),
    radial-gradient(circle at 50% 50%, transparent 0 36%, rgba(16, 38, 42, 0.94) 36.8% 40.6%, transparent 41.2%),
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.64), transparent 18%),
    repeating-radial-gradient(circle at 50% 50%, rgba(18, 44, 48, 0.12) 0 1px, rgba(255, 255, 255, 0.06) 1px 3px, transparent 3px 5px),
    conic-gradient(from 18deg, rgba(212, 252, 245, 0.95), rgba(169, 234, 228, 0.72), rgba(246, 255, 252, 0.98), rgba(194, 242, 235, 0.76), rgba(212, 252, 245, 0.95));
  box-shadow:
    0 16px 34px rgba(37, 92, 100, 0.18),
    inset 0 0 0 9px rgba(255, 255, 255, 0.42),
    inset 0 0 0 1px rgba(16, 38, 42, 0.08),
    inset 0 0 38px rgba(255, 255, 255, 0.44);
  animation: publicRecordSpin 16s linear infinite;
  animation-play-state: paused;
}

.public-record-disc::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(16, 20, 39, 0.08);
}

.public-record-label {
  position: relative;
  display: grid;
  place-items: center;
  width: 43%;
  aspect-ratio: 1;
  border: 9px solid rgba(18, 44, 48, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.9), transparent 14%),
    radial-gradient(circle at 72% 30%, rgba(32, 189, 233, 0.24), transparent 18%),
    radial-gradient(circle at 26% 70%, rgba(255, 79, 139, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(224, 253, 248, 0.82));
  box-shadow:
    0 8px 18px rgba(13, 23, 54, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.84);
}

.public-record-label::before,
.public-record-label::after {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(130, 224, 211, 0.64);
  box-shadow:
    32px 5px 0 rgba(209, 244, 238, 0.72),
    16px 35px 0 rgba(255, 224, 218, 0.78),
    -17px 28px 0 rgba(104, 211, 197, 0.68),
    0 -28px 0 rgba(255, 224, 232, 0.72);
}

.public-record-label::after {
  width: 22%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(82, 194, 184, 0.58);
}

.public-record-label img {
  display: none;
}

.public-tonearm {
  position: absolute;
  z-index: 4;
  right: 24px;
  top: -16px;
  width: 88px;
  height: 250px;
  pointer-events: none;
  transform-origin: 70px 34px;
  transform: rotate(2deg);
  transition: transform 0.38s ease;
}

.share-audio-playing .public-tonearm {
  transform: rotate(11deg);
}

.public-tonearm::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 46%, #ffffff 0 28%, #d8dde3 30% 54%, #9aa4b1 56% 100%);
  box-shadow:
    0 8px 18px rgba(13, 23, 54, 0.16),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.public-tonearm span {
  position: absolute;
  right: 18px;
  top: 45px;
  width: 10px;
  height: 178px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #b7c0ca 35%, #7f8995 52%, #edf2f7 100%);
  box-shadow:
    0 10px 20px rgba(13, 23, 54, 0.14),
    inset 2px 0 4px rgba(255, 255, 255, 0.72);
  transform: rotate(13deg);
  transform-origin: top center;
}

.public-tonearm span::after {
  content: "";
  position: absolute;
  left: -9px;
  bottom: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #b9c2cc);
  box-shadow: 0 6px 15px rgba(13, 23, 54, 0.16);
}

.public-tonearm span::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 8px;
  width: 18px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(126, 137, 149, 0.48));
  transform: rotate(6deg);
}

.public-record-label img {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(13, 23, 54, 0.2);
}

.public-turntable-badge {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #00b86b;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(13, 23, 54, 0.1);
}

.public-track-chip {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(360px, 100%);
}

.public-track-chip img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--brand-glow);
}

.public-track-chip strong,
.public-track-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-track-chip strong {
  font-weight: 950;
}

.public-track-chip span {
  color: #5d6680;
  font-size: 12px;
  font-weight: 850;
}

.share-audio-playing .public-record-disc {
  animation-play-state: running;
}

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

.public-share-wave {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.public-share-wave span {
  width: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform-origin: bottom;
  animation: cornerBars 1.18s infinite ease-in-out alternate;
}

.public-share-wave span:nth-child(1) { height: 22px; animation-delay: -0.3s; }
.public-share-wave span:nth-child(2) { height: 40px; animation-delay: -0.7s; }
.public-share-wave span:nth-child(3) { height: 31px; animation-delay: -0.1s; }
.public-share-wave span:nth-child(4) { height: 50px; animation-delay: -0.5s; }
.public-share-wave span:nth-child(5) { height: 27px; animation-delay: -0.9s; }

body:not(.share-audio-playing) .public-share-wave span {
  animation-play-state: paused;
}

.public-share-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.public-share-content h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.public-share-meta {
  margin: -6px 0 2px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.public-seo-context {
  display: -webkit-box;
  max-width: 62ch;
  margin: -3px auto 0;
  overflow: hidden;
  color: #667087;
  font-size: 12px;
  line-height: 1.45;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-share-actions,
.public-share-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-share-actions .public-primary-cta {
  width: min(100%, 360px);
  min-height: 58px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 950;
}

.public-secondary-share {
  width: fit-content;
  color: var(--muted);
}

.public-secondary-share summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
}

.public-secondary-share summary::-webkit-details-marker {
  display: none;
}

.public-secondary-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 32px rgba(13, 23, 54, 0.08);
}

.public-secondary-share-actions .ghost-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.public-share-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  color: #26344e;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.public-secondary-share-actions .public-share-socials {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-share-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(49, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.public-share-note svg {
  margin-top: 2px;
  color: var(--brand-blue);
}

.public-share-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.public-share-note b {
  color: #26344e;
  font-weight: 950;
}

.public-lyrics-panel {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
}

.public-lyrics-head {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 12px;
}

.public-lyrics-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
}

.public-lyrics-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #4e46d9;
  background: var(--grad-soft);
  font-size: 12px;
  font-weight: 950;
}

.public-lyrics-list {
  display: grid;
  gap: 4px;
  max-height: 236px;
  overflow-y: auto;
  padding: 4px 8px;
  scroll-behavior: smooth;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
}

.public-lyric-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border: 0;
  border-radius: 8px;
  color: #657086;
  text-align: center;
  background: transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.public-lyric-line span {
  display: none;
  font-size: 11px;
  font-weight: 900;
}

.public-lyric-line strong {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-lyric-line.past {
  color: #9aa4b7;
}

.public-lyric-line.active {
  color: #ff5b55;
  transform: scale(1.05);
  text-shadow: 0 8px 20px rgba(255, 91, 85, 0.14);
}

.public-bottom-player {
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(320px, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.public-bottom-track {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.public-bottom-track img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.public-bottom-track strong,
.public-bottom-track span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-bottom-track strong {
  font-size: 13px;
  font-weight: 950;
}

.public-bottom-track span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.public-bottom-controls {
  display: grid;
  gap: 8px;
}

.public-waveform {
  position: relative;
  height: 52px;
  overflow: hidden;
  opacity: 0.88;
}

.public-waveform::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 85, 0.16), transparent);
  transform: translateY(-50%);
}

.spectrum-line {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 50%;
  height: 34px;
  border-radius: 999px;
  background-repeat: repeat-x;
  background-size: 240px 34px;
  filter: drop-shadow(0 7px 10px rgba(255, 91, 85, 0.12));
  transform: translateY(-50%);
  animation: publicSpectrumDrift 5.2s linear infinite, publicSpectrumBreath 1.7s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.share-audio-playing .spectrum-line {
  animation-play-state: running;
}

body:not(.share-audio-playing) .public-record-disc,
body:not(.share-audio-playing) .spectrum-line {
  animation-play-state: paused;
}

.spectrum-line-a {
  opacity: 0.82;
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='34' viewBox='0 0 240 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 19 C18 20 28 23 44 22 C64 21 70 16 90 17 C108 18 118 22 134 20 C153 18 158 10 174 9 C194 8 199 18 218 18 C230 18 235 15 240 14' fill='none' stroke='%23ff5b55' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.spectrum-line-b {
  opacity: 0.42;
  background-size: 270px 34px;
  animation-duration: 7.4s, 2.1s;
  animation-delay: -0.8s, -0.2s;
  background-image: url("data:image/svg+xml,%3Csvg width='270' height='34' viewBox='0 0 270 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16 C20 12 35 24 58 20 C82 16 93 9 115 10 C140 11 151 25 174 22 C195 19 203 10 225 12 C244 14 251 21 270 17' fill='none' stroke='%238b5cf6' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

.spectrum-line-c {
  opacity: 0.36;
  background-size: 300px 34px;
  animation-duration: 8.8s, 2.4s;
  animation-delay: -1.2s, -0.4s;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='34' viewBox='0 0 300 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 21 C24 16 40 16 62 18 C88 21 96 25 120 23 C144 21 150 13 176 13 C204 13 212 24 236 22 C260 20 272 15 300 16' fill='none' stroke='%2320bde9' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.spectrum-line-d {
  opacity: 0.32;
  background-size: 320px 34px;
  animation-duration: 10.2s, 2.8s;
  animation-delay: -1.8s, -0.6s;
  background-image: url("data:image/svg+xml,%3Csvg width='320' height='34' viewBox='0 0 320 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 18 C22 14 40 22 64 19 C90 16 100 10 128 11 C154 12 164 23 190 22 C216 21 224 13 250 13 C278 13 292 20 320 17' fill='none' stroke='%23ffe45c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 6px 10px rgba(255, 228, 92, 0.14));
}

@keyframes publicSpectrumDrift {
  to {
    background-position-x: 240px;
  }
}

@keyframes publicSpectrumBreath {
  from {
    transform: translateY(-50%) scaleY(0.72);
  }
  to {
    transform: translateY(-50%) scaleY(1.16);
  }
}

.public-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.public-muted-control {
  color: #101427;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.9 !important;
}

.public-transport .share-play-button {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6860, #ff514f);
}

.public-progress-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 9px;
  align-items: center;
  color: #657086;
  font-size: 11px;
  font-weight: 850;
}

.public-progress-line input[type="range"] {
  width: 100%;
  accent-color: #ff5b55;
}

.public-bottom-cta {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .public-share-layout {
    grid-template-columns: 1fr;
  }

  .public-share-cover {
    width: min(100%, 360px);
    justify-self: center;
  }

  .public-bottom-player {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .public-bottom-track {
    justify-self: center;
    width: min(360px, 100%);
  }

  .public-bottom-cta {
    justify-self: center;
  }

}

@media (max-width: 680px) {
  .public-share-main {
    padding: 12px;
  }

  .public-share-card {
    padding: 12px;
  }

  .public-share-content h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .public-share-actions .solid-button,
  .public-share-actions .ghost-button {
    flex: 1 1 150px;
    padding: 0 12px;
  }

  .public-share-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* Share playback refinements */
.public-track-chip,
.public-share-actions,
.public-lyrics-head,
.public-share-note,
.public-bottom-cta {
  display: none !important;
}

.public-share-page {
  background:
    radial-gradient(circle at 22% 26%, rgba(124, 236, 214, 0.32), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 228, 92, 0.28), transparent 24%),
    linear-gradient(118deg, #d9fbf7 0%, #ffe2dc 43%, #fff7df 100%);
}

.public-share-card {
  min-height: min(760px, calc(100svh - 28px));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 239, 0.68)) padding-box,
    linear-gradient(135deg, rgba(32, 189, 233, 0.32), rgba(255, 91, 85, 0.24), rgba(255, 228, 92, 0.28)) border-box;
}

.public-share-layout {
  grid-template-columns: minmax(290px, 0.82fr) minmax(360px, 1fr);
  align-items: center;
}

.public-turntable-zone {
  align-content: center;
}

.public-turntable-actions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-rows: repeat(2, 48px);
  gap: 10px;
  width: min(360px, 100%);
  margin: 18px auto 0;
}

.public-turntable-actions .public-primary-cta {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(255, 91, 85, 0.18);
}

.public-turntable-actions .public-secondary-share summary {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(49, 87, 255, 0.13);
  border-radius: 8px;
  color: #26344e;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(13, 23, 54, 0.07);
}

.public-turntable-actions .public-secondary-share {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.public-like-button {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(239, 71, 111, 0.28);
  border-radius: 8px;
  color: #e83f66;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(232, 63, 102, 0.1);
}

.public-like-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
}

.public-like-button b {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  padding: 1px 3px;
  border-radius: 999px;
  color: #252532;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(33, 30, 43, 0.08);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transform: translate(45%, -45%);
  white-space: nowrap;
  pointer-events: none;
}

.public-like-button .like-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.public-like-button.is-liked {
  color: #e83f66;
  border-color: rgba(239, 71, 111, 0.42);
  background: rgba(255, 232, 238, 0.88);
  box-shadow: 0 12px 28px rgba(232, 63, 102, 0.16);
}

.public-like-button.is-liked svg {
  fill: currentColor;
}

button.public-like-button.is-liked:disabled {
  color: #e83f66 !important;
  border-color: rgba(239, 71, 111, 0.42) !important;
  background: rgba(255, 232, 238, 0.88) !important;
  box-shadow: 0 12px 28px rgba(232, 63, 102, 0.16) !important;
  filter: none;
  opacity: 1;
  cursor: default;
}

.public-turntable-actions .public-secondary-share-actions {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: calc(100% + 8px);
  width: min(330px, calc(100vw - 44px));
  margin-top: 0;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.public-share-content {
  gap: 14px;
}

.public-share-content h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.public-share-meta {
  margin: -4px 0 0;
  color: rgba(38, 52, 78, 0.62);
}

.public-lyrics-panel {
  width: min(560px, 100%);
}

.public-lyrics-list {
  gap: 6px;
  max-height: 318px;
  padding: 18px 8px;
}

.public-lyric-line {
  min-height: 40px;
  padding: 2px 12px;
}

.public-lyric-line strong {
  font-size: clamp(17px, 2vw, 23px);
}

.public-lyric-line.active {
  color: #ff514f;
  transform: translateY(-1px) scale(1.08);
}

.share-audio-playing .public-lyric-line.active strong {
  animation: publicLyricFloat 1.8s ease-in-out infinite alternate;
}

@keyframes publicLyricFloat {
  from {
    filter: drop-shadow(0 5px 12px rgba(255, 91, 85, 0.12));
    transform: translateY(1px);
  }
  to {
    filter: drop-shadow(0 13px 20px rgba(255, 91, 85, 0.2));
    transform: translateY(-2px);
  }
}

.public-bottom-player {
  grid-template-columns: minmax(150px, 0.36fr) minmax(320px, 1fr);
  gap: 18px;
}

.public-bottom-controls {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  column-gap: 18px;
}

.public-waveform {
  grid-column: 1 / -1;
  height: 58px;
}

.spectrum-line {
  display: none !important;
}

.ripple-wave {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 42px;
  border-radius: 999px;
  background-repeat: repeat-x;
  background-size: 360px 42px;
  filter: drop-shadow(0 10px 14px rgba(255, 91, 85, 0.12));
  transform: translateY(-50%);
  animation: publicRippleDrift 6.8s linear infinite, publicRippleLift 2.2s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.share-audio-playing .ripple-wave {
  animation-play-state: running;
}

body:not(.share-audio-playing) .ripple-wave {
  animation-play-state: paused;
}

.ripple-wave-a {
  opacity: 0.92;
  background-image: url("data:image/svg+xml,%3Csvg width='360' height='42' viewBox='0 0 360 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24 C24 17 47 31 72 22 C96 13 116 13 144 22 C174 32 190 25 216 17 C244 8 260 17 288 23 C314 29 334 20 360 15' fill='none' stroke='%23ff5b55' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-b {
  opacity: 0.58;
  background-size: 410px 42px;
  animation-duration: 8.4s, 2.6s;
  animation-delay: -1.1s, -0.25s;
  background-image: url("data:image/svg+xml,%3Csvg width='410' height='42' viewBox='0 0 410 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C30 28 52 9 84 18 C118 28 134 32 166 21 C198 10 218 10 250 21 C282 32 304 25 330 17 C360 8 382 21 410 25' fill='none' stroke='%238b5cf6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-c {
  opacity: 0.5;
  background-size: 460px 42px;
  animation-duration: 9.8s, 2.9s;
  animation-delay: -1.8s, -0.5s;
  background-image: url("data:image/svg+xml,%3Csvg width='460' height='42' viewBox='0 0 460 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 26 C32 16 58 15 92 22 C128 30 150 30 184 18 C218 6 242 15 276 24 C312 34 336 26 368 17 C402 8 430 17 460 21' fill='none' stroke='%2320bde9' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-d {
  opacity: 0.42;
  background-size: 520px 42px;
  animation-duration: 11.2s, 3.3s;
  animation-delay: -2.3s, -0.7s;
  filter: drop-shadow(0 9px 12px rgba(255, 228, 92, 0.14));
  background-image: url("data:image/svg+xml,%3Csvg width='520' height='42' viewBox='0 0 520 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 18 C34 26 64 29 102 19 C136 10 164 10 200 20 C240 31 266 28 302 17 C340 6 366 16 402 23 C442 31 482 22 520 14' fill='none' stroke='%23ffe45c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@keyframes publicRippleDrift {
  to {
    background-position-x: 360px;
  }
}

@keyframes publicRippleLift {
  from {
    transform: translateY(-50%) scaleY(0.78);
  }
  to {
    transform: translateY(-50%) scaleY(1.12);
  }
}

@media (max-width: 980px) {
  .public-share-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .public-bottom-player,
  .public-bottom-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .public-turntable-actions {
    width: min(320px, 100%);
  }

  .public-turntable-actions .public-primary-cta,
  .public-turntable-actions .public-secondary-share {
    flex: 1 1 140px;
  }

  .public-turntable-actions .public-secondary-share summary {
    justify-content: center;
  }

  .public-share-socials,
  .public-secondary-share-actions .public-share-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-lyrics-list {
    max-height: 252px;
  }
}

/* Refined top-down turntable with optional rotating cover art */
.public-share-cover.public-turntable {
  width: min(352px, 82vw);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 253, 251, 0.78)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(130, 224, 211, 0.22)) border-box;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 28px 58px rgba(49, 87, 255, 0.1),
    0 18px 38px rgba(37, 92, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.public-share-cover.public-turntable::before {
  inset: 11px;
  border-radius: 19px;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, rgba(18, 44, 48, 0.025) 1px, transparent 1px);
  background-size: auto, 8px 8px;
  opacity: 0.8;
}

.public-platter-shadow {
  inset: 15.5% 16% 16% 14%;
  background:
    radial-gradient(circle, rgba(225, 255, 249, 0.76) 0 55%, rgba(187, 239, 231, 0.22) 56% 69%, transparent 70%);
  box-shadow:
    0 24px 44px rgba(37, 92, 100, 0.18),
    inset 0 0 0 10px rgba(255, 255, 255, 0.64),
    inset 0 0 54px rgba(32, 189, 233, 0.16);
}

.public-record-disc {
  max-width: 238px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 4.8%, rgba(99, 211, 201, 0.66) 5.3% 9.2%, transparent 9.6%),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(18, 44, 48, 0.96) 34.6% 37.7%, rgba(255, 255, 255, 0.94) 38% 41.6%, rgba(18, 44, 48, 0.9) 42% 44.2%, transparent 44.8%),
    radial-gradient(circle at 31% 21%, rgba(255, 255, 255, 0.7), transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, rgba(30, 94, 96, 0.13) 0 1px, rgba(255, 255, 255, 0.18) 1px 2px, transparent 2px 4px),
    conic-gradient(from 24deg, #eafffb, #baf4ec, #f8fffd, #ccf7f0, #f0fffc, #b7eee6, #eafffb);
  box-shadow:
    0 18px 34px rgba(37, 92, 100, 0.18),
    inset 0 0 0 10px rgba(255, 255, 255, 0.38),
    inset 0 0 0 1px rgba(16, 38, 42, 0.1),
    inset 0 0 42px rgba(255, 255, 255, 0.52);
}

.public-record-disc::before {
  inset: 5%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(16, 38, 42, 0.06),
    inset 0 0 28px rgba(255, 255, 255, 0.24);
}

.public-record-disc::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 24% 72%, rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 50% 50%, transparent 0 7%, rgba(255, 255, 255, 0.74) 7.4% 8.8%, transparent 9.2%);
  mix-blend-mode: screen;
}

.public-record-art {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  display: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(16, 38, 42, 0.16);
}

.public-turntable.has-cover-art .public-record-art {
  display: block;
}

.public-turntable.has-cover-art .public-record-disc {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 4.8%, rgba(99, 211, 201, 0.72) 5.2% 9%, transparent 9.4%),
    repeating-radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.2) 0 1px, rgba(255, 255, 255, 0.12) 1px 3px, transparent 3px 5px),
    radial-gradient(circle, #101827, #243043);
}

.public-record-label {
  z-index: 2;
  width: 42%;
  border: 7px solid rgba(18, 44, 48, 0.92);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 11%, rgba(99, 211, 201, 0.66) 12% 20%, transparent 21%),
    radial-gradient(circle at 34% 68%, rgba(104, 211, 197, 0.72), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(255, 224, 232, 0.82), transparent 17%),
    radial-gradient(circle at 72% 70%, rgba(219, 249, 243, 0.8), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 255, 250, 0.86));
  box-shadow:
    0 10px 22px rgba(13, 23, 54, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.public-record-label::before,
.public-record-label::after,
.public-default-label {
  display: none;
}

.public-turntable.has-cover-art .public-record-label {
  width: 17%;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 29%, rgba(99, 211, 201, 0.74) 31% 58%, rgba(255, 255, 255, 0.92) 60% 100%);
}

.public-tonearm {
  right: 25px;
  top: -9px;
  width: 88px;
  height: 255px;
  transform-origin: 69px 32px;
  transform: rotate(1deg);
}

.share-audio-playing .public-tonearm {
  transform: rotate(9deg);
}

.public-tonearm::before {
  right: 1px;
  top: 7px;
  width: 44px;
  height: 44px;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 255, 255, 0.98) 0 34%, rgba(197, 207, 216, 0.92) 36% 62%, rgba(150, 160, 172, 0.82) 64% 100%);
  box-shadow:
    0 9px 18px rgba(13, 23, 54, 0.14),
    inset 0 0 0 4px rgba(255, 255, 255, 0.48);
}

.public-tonearm span {
  right: 23px;
  top: 48px;
  width: 8px;
  height: 176px;
  background: linear-gradient(90deg, #ffffff, #d9e0e7 30%, #8490a0 52%, #f4f8fb 100%);
  box-shadow:
    0 12px 22px rgba(13, 23, 54, 0.15),
    inset 2px 0 4px rgba(255, 255, 255, 0.8);
  transform: rotate(14deg);
}

.public-tonearm span::before {
  left: -5px;
  bottom: 7px;
  width: 19px;
  height: 46px;
  background: linear-gradient(180deg, rgba(250, 255, 255, 0.82), rgba(155, 168, 181, 0.52));
}

.public-tonearm span::after {
  left: -12px;
  bottom: -17px;
  width: 31px;
  height: 31px;
  background: linear-gradient(135deg, #f8ffff, #c4ced8 74%, #97a2af);
  box-shadow: 0 8px 16px rgba(13, 23, 54, 0.14);
}

.public-turntable-badge {
  right: 20px;
  bottom: 19px;
  width: 34px;
  height: 34px;
  color: #00b86b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(13, 23, 54, 0.1);
}

/* Material-first turntable: neutral base, metal tonearm, artwork-driven disc */
.public-share-cover.public-turntable {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.98), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 253, 251, 0.86) 46%, rgba(232, 239, 250, 0.72));
  box-shadow:
    0 30px 70px rgba(58, 86, 120, 0.14),
    0 16px 36px rgba(37, 92, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(149, 163, 184, 0.1);
}

.public-share-cover.public-turntable::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(12, 35, 40, 0.018) 1px, transparent 1px);
  background-size: auto, 9px 9px;
}

.public-platter-shadow {
  inset: 16% 16% 16% 14%;
  background:
    radial-gradient(circle, rgba(249, 255, 254, 0.92) 0 55%, rgba(190, 246, 238, 0.32) 56% 68%, transparent 69%);
  box-shadow:
    0 22px 42px rgba(37, 92, 100, 0.18),
    inset 0 0 0 9px rgba(255, 255, 255, 0.62),
    inset 0 0 36px rgba(32, 189, 233, 0.14);
}

.public-record-disc {
  max-width: 236px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 72%, rgba(255, 255, 255, 0.72) 73% 78%, rgba(189, 244, 235, 0.55) 79% 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(26, 73, 77, 0.1) 0 1px, rgba(255, 255, 255, 0.22) 1px 2px, transparent 2px 5px),
    conic-gradient(from 20deg, rgba(234, 255, 251, 0.98), rgba(184, 244, 236, 0.78), rgba(250, 255, 254, 0.98), rgba(203, 248, 241, 0.82), rgba(234, 255, 251, 0.98));
  box-shadow:
    0 20px 38px rgba(37, 92, 100, 0.18),
    inset 0 0 0 1px rgba(16, 38, 42, 0.08),
    inset 0 0 0 8px rgba(255, 255, 255, 0.28);
}

.public-record-disc::before {
  inset: 9%;
  border: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.38), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38% 72%, rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.public-record-art {
  display: block;
  inset: 11%;
  width: 78%;
  height: 78%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 8%, transparent 9%),
    radial-gradient(circle at 32% 62%, rgba(96, 213, 198, 0.86) 0 13%, transparent 14%),
    radial-gradient(circle at 68% 33%, rgba(255, 218, 229, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 68%, rgba(216, 250, 244, 0.92) 0 15%, transparent 16%),
    radial-gradient(circle at 38% 36%, rgba(235, 255, 252, 0.92) 0 18%, transparent 19%),
    linear-gradient(135deg, #f7fffd, #d8fbf5 52%, #fff2ec);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 10px 22px rgba(37, 92, 100, 0.13),
    inset 0 0 0 6px rgba(18, 44, 48, 0.9),
    inset 0 0 0 13px rgba(255, 255, 255, 0.86);
}

.public-turntable.has-cover-art .public-record-art {
  inset: 8%;
  width: 84%;
  height: 84%;
  box-shadow:
    0 10px 22px rgba(37, 92, 100, 0.13),
    inset 0 0 0 9px rgba(17, 24, 39, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.public-record-label {
  z-index: 3;
  width: 16%;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 34%, rgba(91, 203, 192, 0.8) 36% 66%, rgba(255, 255, 255, 0.92) 68% 100%);
  box-shadow:
    0 4px 12px rgba(13, 23, 54, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.public-record-label span {
  display: none;
}

.public-tonearm::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 31%, rgba(205, 214, 224, 0.95) 33% 59%, rgba(132, 144, 160, 0.86) 61% 100%);
  box-shadow:
    0 10px 20px rgba(13, 23, 54, 0.15),
    inset 0 0 0 5px rgba(255, 255, 255, 0.48),
    inset -4px -4px 10px rgba(86, 101, 120, 0.18);
}

.public-tonearm span {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(231, 237, 243, 0.96) 28%, rgba(124, 137, 153, 0.9) 52%, rgba(250, 253, 255, 0.98) 100%);
  box-shadow:
    0 14px 22px rgba(13, 23, 54, 0.16),
    inset 2px 0 5px rgba(255, 255, 255, 0.9),
    inset -2px 0 5px rgba(70, 83, 101, 0.22);
}

/* Share page tuning: still waveform, compact player, wood base, brand colors */
.public-share-cover.public-turntable {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 13% 82%, rgba(100, 62, 36, 0.12)),
    repeating-linear-gradient(12deg, rgba(96, 58, 36, 0.07) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(97deg, #f5d9ba 0 18px, #efcda9 18px 37px, #f8e2c7 37px 58px, #e9c39c 58px 76px);
  border-color: rgba(255, 244, 229, 0.74);
  box-shadow:
    0 32px 70px rgba(82, 55, 38, 0.16),
    0 18px 36px rgba(83, 48, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -18px 34px rgba(88, 48, 24, 0.08);
}

.public-share-cover.public-turntable::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(122, 70, 35, 0.05));
  opacity: 0.92;
}

.public-platter-shadow {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 57%, rgba(255, 244, 229, 0.28) 58% 70%, transparent 71%);
  box-shadow:
    0 24px 44px rgba(77, 45, 28, 0.16),
    inset 0 0 0 9px rgba(255, 255, 255, 0.5),
    inset 0 0 38px rgba(139, 92, 246, 0.08);
}

.public-record-disc {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 72%, rgba(255, 255, 255, 0.72) 73% 78%, rgba(35, 43, 68, 0.72) 79% 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(21, 28, 46, 0.12) 0 1px, rgba(255, 255, 255, 0.12) 1px 2px, transparent 2px 5px),
    conic-gradient(from 20deg, #fbfbff, #d7dcf0, #ffffff, #e5e8f6, #fbfbff);
  box-shadow:
    0 20px 38px rgba(41, 46, 70, 0.18),
    inset 0 0 0 1px rgba(16, 20, 39, 0.08),
    inset 0 0 0 8px rgba(255, 255, 255, 0.24);
}

.public-record-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 7%, transparent 8%),
    radial-gradient(circle at 30% 60%, rgba(255, 79, 139, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at 70% 32%, rgba(139, 92, 246, 0.78) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 69%, rgba(47, 111, 255, 0.76) 0 15%, transparent 16%),
    radial-gradient(circle at 39% 34%, rgba(255, 228, 92, 0.75) 0 15%, transparent 16%),
    linear-gradient(135deg, #fff6fb, #f4ecff 45%, #edf5ff);
  box-shadow:
    0 10px 22px rgba(41, 46, 70, 0.13),
    inset 0 0 0 6px rgba(21, 28, 46, 0.88),
    inset 0 0 0 13px rgba(255, 255, 255, 0.82);
}

.public-record-label {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 34%, rgba(139, 92, 246, 0.78) 36% 66%, rgba(255, 255, 255, 0.92) 68% 100%);
}

.public-turntable-badge {
  display: none !important;
}

.public-turntable-actions .public-primary-cta,
.public-transport .share-play-button {
  background: var(--grad-action);
  box-shadow: var(--brand-glow);
}

.public-turntable-actions .public-secondary-share summary {
  border-color: rgba(210, 104, 125, 0.2);
  color: #fff;
  background: linear-gradient(135deg, #f39a73 0%, #e97b82 48%, #d76694 100%);
  box-shadow:
    0 10px 22px rgba(216, 103, 125, 0.18),
    0 4px 12px rgba(194, 82, 139, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.public-lyrics-list {
  overflow-x: hidden;
  scrollbar-width: none;
}

.public-lyrics-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.public-lyric-line {
  width: 100%;
  min-width: 0;
}

.public-lyric-line strong {
  overflow: visible;
  font-size: clamp(15px, 1.7vw, 21px);
  line-height: 1.35;
  text-overflow: clip;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-bottom-player {
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 255, 0.7)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 18px 44px rgba(13, 23, 54, 0.08);
  backdrop-filter: blur(18px);
}

.public-bottom-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 46px 38px;
  gap: 6px 14px;
  align-items: center;
}

.public-waveform {
  grid-column: 1 / -1;
  height: 46px;
}

.public-waveform::before {
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.16), transparent);
}

.public-transport {
  grid-column: 1;
  gap: 10px;
  justify-content: start;
}

.public-progress-line {
  grid-column: 2;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
}

.public-progress-line input[type="range"] {
  accent-color: var(--brand-violet);
}

.public-transport .share-play-button {
  width: 42px;
  height: 42px;
}

.ripple-wave {
  left: 0;
  right: 0;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 100% 18px;
  filter: drop-shadow(0 8px 12px rgba(139, 92, 246, 0.14));
  animation: publicRippleBob 1.9s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.ripple-wave-a {
  top: 18%;
  opacity: 0.9;
  animation-duration: 2s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='18' viewBox='0 0 900 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C55 5 92 15 144 10 C205 4 242 12 294 9 C350 5 388 2 440 9 C492 16 544 13 590 8 C648 2 690 15 744 9 C804 3 846 7 900 5' fill='none' stroke='%23ff4f8b' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-b {
  top: 35%;
  opacity: 0.58;
  animation-duration: 2.35s;
  animation-delay: -0.45s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='18' viewBox='0 0 900 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8 C52 13 94 5 150 8 C210 12 250 15 304 8 C360 1 405 4 456 10 C514 16 556 11 610 7 C676 2 708 13 770 9 C820 6 852 4 900 10' fill='none' stroke='%238b5cf6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-c {
  top: 52%;
  opacity: 0.46;
  animation-duration: 2.7s;
  animation-delay: -0.75s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='18' viewBox='0 0 900 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 11 C54 4 92 6 146 10 C206 15 252 14 308 7 C366 1 412 11 468 12 C522 13 568 5 620 8 C682 12 724 15 782 8 C826 3 862 8 900 6' fill='none' stroke='%232f6fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-d {
  top: 69%;
  opacity: 0.38;
  animation-duration: 3.05s;
  animation-delay: -1.05s;
  filter: drop-shadow(0 7px 10px rgba(32, 189, 233, 0.12));
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='18' viewBox='0 0 900 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7 C58 12 102 14 160 8 C218 2 256 4 312 10 C370 16 418 12 474 6 C536 1 586 13 642 10 C700 7 744 3 800 8 C842 12 872 11 900 6' fill='none' stroke='%2320bde9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@keyframes publicRippleBob {
  from {
    transform: translateY(calc(-50% - 2px));
  }
  to {
    transform: translateY(calc(-50% + 3px));
  }
}

@media (max-width: 980px) {
  .public-bottom-player {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .public-bottom-player {
    padding: 10px;
  }

  .public-bottom-controls {
    grid-template-columns: 1fr;
    grid-template-rows: 42px auto auto;
  }

  .public-transport,
  .public-progress-line {
    grid-column: 1;
    justify-self: stretch;
  }

  .public-transport {
    justify-content: center;
  }
}

/* Share page composition: main-site background + cover-tinted song surface */
.public-share-body {
  background:
    radial-gradient(circle at 88% 27%, rgba(255, 72, 111, 0.15), transparent 15%),
    radial-gradient(circle at 12% 33%, rgba(0, 200, 255, 0.22), transparent 18%),
    radial-gradient(circle at 82% 52%, rgba(52, 229, 155, 0.2), transparent 17%),
    radial-gradient(circle at 18% 72%, rgba(138, 92, 255, 0.18), transparent 18%),
    radial-gradient(circle at 72% 88%, rgba(255, 228, 92, 0.22), transparent 17%),
    linear-gradient(180deg, #f7fbff 0%, #fff8f4 24%, #f4fbff 42%, #f9f7ff 62%, #effcff 80%, #fff8ee 100%);
}

.public-share-body::before {
  display: none;
}

.public-share-body::after {
  background:
    radial-gradient(ellipse at 28% 82%, rgba(255, 79, 139, 0.08), transparent 40%),
    radial-gradient(ellipse at 74% 82%, rgba(47, 111, 255, 0.08), transparent 42%);
}

.public-share-card {
  --song-color-a: rgba(255, 79, 139, 0.14);
  --song-color-b: rgba(47, 111, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.54);
  background:
    radial-gradient(circle at 20% 24%, var(--song-color-a), transparent 34%),
    radial-gradient(circle at 82% 30%, var(--song-color-b), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.72));
  box-shadow: 0 28px 86px rgba(13, 23, 54, 0.12);
}

/* Pearlescent acrylic turntable, lighter than wood and closer to the product tone */
.public-share-cover.public-turntable {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(139, 92, 246, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.74) 44%, rgba(255, 247, 251, 0.66));
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 30px 72px rgba(78, 70, 217, 0.12),
    0 18px 40px rgba(13, 23, 54, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -18px 34px rgba(139, 92, 246, 0.06);
}

.public-share-cover.public-turntable::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 32% 28%, rgba(255, 79, 139, 0.055), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(47, 111, 255, 0.055), transparent 34%);
  opacity: 1;
}

.public-platter-shadow {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 58%, rgba(230, 235, 249, 0.42) 59% 70%, transparent 71%);
  box-shadow:
    0 24px 44px rgba(78, 70, 217, 0.12),
    inset 0 0 0 9px rgba(255, 255, 255, 0.54),
    inset 0 0 36px rgba(255, 79, 139, 0.07);
}

.public-record-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 7%, transparent 8%),
    radial-gradient(circle at 33% 61%, rgba(255, 79, 139, 0.42) 0 15%, transparent 16%),
    radial-gradient(circle at 68% 34%, rgba(139, 92, 246, 0.4) 0 14%, transparent 15%),
    radial-gradient(circle at 68% 69%, rgba(47, 111, 255, 0.36) 0 16%, transparent 17%),
    radial-gradient(circle at 39% 34%, rgba(255, 228, 92, 0.34) 0 15%, transparent 16%),
    linear-gradient(135deg, #fff9fc, #f6f1ff 47%, #f2f7ff);
  box-shadow:
    0 10px 22px rgba(41, 46, 70, 0.12),
    inset 0 0 0 6px rgba(37, 41, 66, 0.72),
    inset 0 0 0 13px rgba(255, 255, 255, 0.82);
}

.public-record-label {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 34%, rgba(139, 92, 246, 0.52) 36% 66%, rgba(255, 255, 255, 0.94) 68% 100%);
}

.public-lyrics-list {
  padding-inline: 0;
}

.public-lyric-line {
  opacity: 0.56;
  transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.public-lyric-line.past {
  opacity: 0.36;
}

.public-lyric-line.active {
  opacity: 1;
  color: #26344e;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent),
    linear-gradient(90deg, transparent, var(--song-color-a), var(--song-color-b), transparent);
  box-shadow: 0 12px 28px rgba(13, 23, 54, 0.06);
  transform: translateY(-1px) scale(1.04);
}

.public-lyric-line.active strong {
  background: var(--grad-action);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-bottom-player {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) auto minmax(260px, 1fr);
  grid-template-rows: 52px 46px;
  gap: 4px 14px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.public-bottom-track {
  grid-column: 1;
  grid-row: 2;
}

.public-bottom-controls {
  display: contents;
}

.public-waveform {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 52px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
}

.public-waveform-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.public-waveform::before {
  background: linear-gradient(90deg, transparent, rgba(255, 79, 139, 0.18), rgba(139, 92, 246, 0.16), rgba(47, 111, 255, 0.16), transparent);
}

.public-transport {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-content: center;
}

.public-progress-line {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
}

.ripple-wave-a {
  stroke: none;
}

@media (max-width: 980px) {
  .public-bottom-player {
    grid-template-columns: minmax(150px, 1fr) auto;
    grid-template-rows: 50px 44px 36px;
  }

  .public-bottom-track {
    grid-column: 1;
    grid-row: 2;
  }

  .public-transport {
    grid-column: 2;
    grid-row: 2;
  }

  .public-progress-line {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 680px) {
  .public-bottom-player {
    grid-template-columns: 1fr;
    grid-template-rows: 48px auto auto auto;
    gap: 8px;
  }

  .public-bottom-track,
  .public-transport,
  .public-progress-line {
    grid-column: 1;
  }

  .public-bottom-track {
    grid-row: 2;
    justify-self: center;
  }

  .public-transport {
    grid-row: 3;
  }

  .public-progress-line {
    grid-row: 4;
  }
}

/* Share detail pass: calmer default cover, copper tonearm, livelier still waveform */
.public-record-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 6.5%, transparent 7.8%),
    radial-gradient(circle at 48% 47%, rgba(255, 255, 255, 0.32) 0 10%, transparent 11%),
    radial-gradient(ellipse at 34% 28%, rgba(255, 214, 153, 0.44), transparent 28%),
    radial-gradient(ellipse at 68% 32%, rgba(143, 128, 255, 0.4), transparent 30%),
    radial-gradient(ellipse at 30% 72%, rgba(255, 111, 157, 0.32), transparent 31%),
    radial-gradient(ellipse at 76% 72%, rgba(50, 116, 255, 0.34), transparent 32%),
    conic-gradient(from 18deg, #172036, #303050, #7b5f91, #e2a873, #34406c, #172036);
  box-shadow:
    0 12px 24px rgba(29, 35, 58, 0.16),
    inset 0 0 0 6px rgba(19, 25, 45, 0.78),
    inset 0 0 0 13px rgba(255, 255, 255, 0.22),
    inset 0 0 32px rgba(255, 255, 255, 0.16);
}

.public-record-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.66) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 58% 24%, rgba(255, 255, 255, 0.54) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.7px),
    radial-gradient(circle at 38% 68%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.7px);
  opacity: 0.9;
}

.public-record-label {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 34%, rgba(226, 168, 115, 0.62) 36% 64%, rgba(31, 39, 70, 0.88) 66% 100%);
}

.public-tonearm::before {
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 242, 214, 0.98) 0 29%, rgba(211, 137, 71, 0.94) 31% 57%, rgba(122, 67, 35, 0.9) 59% 100%);
  box-shadow:
    0 11px 20px rgba(80, 43, 22, 0.2),
    inset 0 0 0 5px rgba(255, 244, 222, 0.42),
    inset -5px -5px 12px rgba(82, 41, 20, 0.24);
}

.public-tonearm span {
  background:
    linear-gradient(90deg, rgba(255, 239, 205, 0.98), rgba(224, 151, 82, 0.96) 30%, rgba(137, 74, 38, 0.96) 54%, rgba(255, 218, 166, 0.98) 100%);
  box-shadow:
    0 14px 24px rgba(80, 43, 22, 0.2),
    inset 2px 0 5px rgba(255, 244, 222, 0.82),
    inset -2px 0 5px rgba(74, 35, 18, 0.28);
}

.public-tonearm span::before {
  background: linear-gradient(180deg, rgba(255, 231, 188, 0.86), rgba(162, 86, 43, 0.62));
}

.public-tonearm span::after {
  background: linear-gradient(135deg, #ffe2ad, #c5793c 66%, #814723);
  box-shadow: 0 9px 18px rgba(80, 43, 22, 0.18);
}

.ripple-wave {
  display: none !important;
  height: 26px;
  background-size: 100% 26px;
  animation-duration: 1.55s;
}

.ripple-wave-a {
  top: 16%;
  opacity: 0.94;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='26' viewBox='0 0 900 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16 C40 3 78 24 124 12 C175 -2 215 25 265 10 C312 -3 350 5 396 16 C438 27 482 3 524 13 C570 24 608 20 650 7 C702 -8 742 24 794 12 C840 2 870 18 900 8' fill='none' stroke='%23ff4f8b' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-b {
  top: 34%;
  opacity: 0.66;
  animation-duration: 1.85s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='26' viewBox='0 0 900 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C42 24 78 2 126 14 C174 26 214 21 260 8 C314 -7 354 20 404 13 C452 6 488 0 532 14 C582 30 624 5 672 11 C718 17 756 27 806 10 C846 -4 876 7 900 18' fill='none' stroke='%238b5cf6' stroke-width='2.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-c {
  top: 53%;
  opacity: 0.52;
  animation-duration: 2.08s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='26' viewBox='0 0 900 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 17 C46 5 78 7 122 15 C168 24 210 29 262 9 C310 -10 348 16 400 18 C450 20 492 4 534 11 C586 20 630 25 680 9 C728 -7 770 16 818 14 C852 13 880 4 900 8' fill='none' stroke='%232f6fff' stroke-width='2.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ripple-wave-d {
  top: 71%;
  opacity: 0.44;
  animation-duration: 2.32s;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='26' viewBox='0 0 900 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8 C46 24 90 27 138 11 C186 -4 226 5 270 17 C322 31 360 15 410 7 C464 -2 502 25 548 14 C600 2 638 1 686 16 C738 32 786 7 832 12 C862 15 884 18 900 7' fill='none' stroke='%2320bde9' stroke-width='2.15' stroke-linecap='round'/%3E%3C/svg%3E");
}

@keyframes publicRippleBob {
  from {
    transform: translateY(calc(-50% - 5px));
  }
  to {
    transform: translateY(calc(-50% + 6px));
  }
}

/* Give the spring waveform enough vertical room to jump */
.public-bottom-player {
  grid-template-rows: clamp(88px, 11vh, 108px) 46px;
  gap: 2px 14px;
  margin-top: 4px;
}

.public-waveform {
  height: clamp(88px, 11vh, 108px);
  overflow: visible;
}

.public-waveform-canvas {
  height: 100%;
}

@media (max-width: 980px) {
  .public-bottom-player {
    grid-template-rows: 88px 44px 36px;
  }
}

@media (max-width: 680px) {
  .public-bottom-player {
    grid-template-rows: 76px auto auto auto;
  }

  .public-waveform {
    height: 76px;
  }
}

/* Detailed top-view tonearm. The SVG isolates it from legacy span-based passes. */
.public-tonearm {
  right: 9px;
  top: -9px;
  width: 112px;
  height: 286px;
  transform: rotate(0deg);
  transform-origin: 87px 42px;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.32, 1);
  filter: none;
}

.public-tonearm::before,
.public-tonearm::after {
  content: none;
  display: none;
}

.public-tonearm-drawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Centered peak-hold spectrum using the main recorder palette. */
.public-waveform {
  width: 80%;
  justify-self: center;
}

.share-audio-playing .public-tonearm {
  transform: rotate(7deg);
}

@media (max-width: 680px) {
  .public-tonearm {
    right: 4px;
    top: -8px;
    width: 102px;
    height: 260px;
    transform-origin: 79px 38px;
  }
}

/* Final share-player alignment: clean waveform, centered transport, shorter seek bar. */
.public-bottom-player {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.public-waveform {
  border-top: 0;
  border-bottom: 0;
}

.public-waveform::before,
.public-waveform::after {
  content: none;
  display: none;
}

.public-transport {
  grid-column: 2;
  justify-self: center;
}

.public-progress-line {
  grid-column: 3;
  width: min(100%, 320px);
  justify-self: end;
}

@media (min-width: 681px) and (max-width: 980px) {
  .public-bottom-player {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 88px 46px;
  }

  .public-bottom-track,
  .public-transport,
  .public-progress-line {
    grid-row: 2;
  }

  .public-bottom-track {
    grid-column: 1;
  }

  .public-progress-line {
    grid-column: 3;
    width: min(100%, 280px);
  }
}

@media (max-width: 680px) {
  .public-bottom-player {
    grid-template-columns: 1fr;
  }

  .public-transport {
    grid-column: 1;
    justify-self: stretch;
  }

  .public-progress-line {
    grid-column: 1;
    width: min(88%, 340px);
    justify-self: center;
  }
}

/* Share 26 final visual overrides. Keep after all earlier material experiments. */
.public-share-card {
  position: relative;
  isolation: isolate;
  --default-record-art:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 9%, rgba(139, 92, 246, 0.48) 9.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(53, 61, 112, 0.08) 0 1px, transparent 1px 4px),
    conic-gradient(from 24deg, #ff8fb8, #b796ed 22%, #789cf0 46%, #63c8dc 68%, #a88de7 84%, #ff8fb8);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.public-lyric-line {
  position: relative;
  isolation: isolate;
  background: transparent;
  transform: none;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.public-lyric-line.active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.public-lyric-line.active::before {
  content: "";
  position: absolute;
  inset: 5px 10%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.58) 0 24%, var(--song-color-a) 48%, var(--song-color-b) 66%, transparent 82%);
  opacity: 0.78;
  pointer-events: none;
}

.share-audio-playing .public-lyric-line.active,
.share-audio-playing .public-lyric-line.active strong {
  animation: none;
  filter: none;
  transform: none;
}

.public-share-cover.public-turntable {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.66), transparent 31%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.13) 0 1px, rgba(61, 72, 88, 0.025) 1px 4px),
    linear-gradient(145deg, #edf0f3 0%, #cfd5dd 48%, #f7f8f9 100%);
  box-shadow:
    0 30px 68px rgba(46, 56, 75, 0.16),
    0 12px 26px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 5px rgba(65, 76, 92, 0.12);
}

.public-share-cover.public-turntable::before {
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.42), transparent 34% 70%, rgba(82, 93, 110, 0.06)),
    radial-gradient(circle at 80% 18%, rgba(139, 92, 246, 0.055), transparent 28%);
  opacity: 0.82;
}

.public-platter-shadow {
  background:
    radial-gradient(circle, rgba(32, 38, 50, 0.14) 0 56%, rgba(255, 255, 255, 0.46) 57% 65%, rgba(61, 72, 88, 0.08) 66% 70%, transparent 71%);
  box-shadow:
    0 22px 38px rgba(35, 43, 58, 0.18),
    inset 0 0 0 7px rgba(255, 255, 255, 0.34),
    inset 0 0 28px rgba(31, 41, 55, 0.08);
}

.public-record-disc,
.public-turntable.has-cover-art .public-record-disc {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(66, 54, 112, 0.08) 0 1px, rgba(255, 255, 255, 0.08) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
  box-shadow:
    0 18px 36px rgba(78, 70, 132, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 32px rgba(104, 94, 170, 0.08);
}

.public-record-disc::before {
  inset: 4%;
  border: 0;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.2), transparent 24% 72%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.public-turntable.has-default-art .public-record-art {
  inset: 8%;
  width: 84%;
  height: 84%;
  background: var(--default-record-art);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    inset 0 0 0 9px rgba(255, 255, 255, 0.18);
}

.public-record-art::before {
  opacity: 0.24;
}

.public-record-label {
  width: 15%;
  border: 0;
  background: radial-gradient(circle, #ffffff 0 34%, #a88de7 36% 64%, #587fdc 66% 100%);
  box-shadow: 0 4px 12px rgba(78, 70, 152, 0.22);
}

.public-record-label::before {
  display: none;
}

.public-record-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(238, 241, 245, 0.98);
  box-shadow:
    0 0 0 2px rgba(28, 33, 43, 0.2),
    inset 0 1px 2px rgba(28, 33, 43, 0.18);
  transform: translate(-50%, -50%);
}

.public-player-record {
  background:
    repeating-radial-gradient(circle, rgba(66, 54, 112, 0.08) 0 1px, transparent 1px 3px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 7px 16px rgba(78, 70, 152, 0.16);
}

/* Graphite trim to balance the pastel record without boxing in the page. */
.public-share-cover.public-turntable {
  border: 2px solid rgba(54, 59, 76, 0.42);
  box-shadow:
    0 30px 68px rgba(46, 56, 75, 0.17),
    0 12px 26px rgba(30, 41, 59, 0.09),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58),
    inset 0 -3px 7px rgba(54, 59, 76, 0.14);
}

.public-platter-shadow {
  box-shadow:
    0 22px 38px rgba(35, 43, 58, 0.18),
    inset 0 0 0 8px rgba(54, 59, 76, 0.18),
    inset 0 0 28px rgba(31, 41, 55, 0.1);
}

.public-record-disc,
.public-turntable.has-cover-art .public-record-disc {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 82%, rgba(74, 72, 94, 0.82) 82.5% 88%, rgba(35, 38, 52, 0.92) 88.5% 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(66, 54, 112, 0.08) 0 1px, rgba(255, 255, 255, 0.08) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
}

.public-player-record {
  border: 1px solid rgba(54, 59, 76, 0.5);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 80%, rgba(65, 66, 88, 0.86) 81% 88%, rgba(32, 35, 48, 0.94) 89% 100%),
    repeating-radial-gradient(circle, rgba(66, 54, 112, 0.08) 0 1px, transparent 1px 3px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
}

/* Separate the song surface softly; keep the dark contour on the record itself. */
.public-share-cover.public-turntable {
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow:
    0 30px 68px rgba(46, 56, 75, 0.15),
    0 12px 26px rgba(30, 41, 59, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -2px 5px rgba(65, 76, 92, 0.1);
}

.public-platter-shadow {
  box-shadow:
    0 22px 38px rgba(35, 43, 58, 0.16),
    inset 0 0 0 7px rgba(255, 255, 255, 0.38),
    inset 0 0 28px rgba(31, 41, 55, 0.08);
}

.public-record-disc,
.public-turntable.has-cover-art .public-record-disc {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(66, 54, 112, 0.08) 0 1px, rgba(255, 255, 255, 0.08) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
}

.public-turntable.has-default-art .public-record-art {
  box-shadow:
    0 0 0 3px rgba(34, 37, 51, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    inset 0 0 0 9px rgba(255, 255, 255, 0.18);
}

.public-player-record {
  border: 0;
  background:
    repeating-radial-gradient(circle, rgba(66, 54, 112, 0.08) 0 1px, transparent 1px 3px),
    conic-gradient(from 12deg, #faf8ff, #ded8f2, #d4ecf5, #f4dce8, #e8e1f7, #faf8ff);
}

.public-player-record:not(.has-cover-art) .public-player-record-art {
  box-shadow: 0 0 0 2px rgba(34, 37, 51, 0.76);
}

/* Graphite record trim: replace the pale platter and vinyl rings. */
.public-platter-shadow {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 69.5%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(20, 23, 31, 0.16) 0 56%, rgba(31, 34, 44, 0.96) 57% 65%, rgba(10, 12, 18, 0.9) 66% 70%, transparent 71%);
  box-shadow:
    0 22px 38px rgba(20, 24, 34, 0.24),
    inset 0 0 0 7px rgba(14, 16, 23, 0.76),
    inset 0 0 28px rgba(0, 0, 0, 0.18);
}

.public-record-disc,
.public-turntable.has-cover-art .public-record-disc {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.18) 1px 3px, transparent 3px 5px),
    conic-gradient(from 12deg, #090a0f, #242630, #11131a, #2b2d37, #0d0f15, #090a0f);
  box-shadow:
    0 18px 36px rgba(9, 11, 17, 0.3),
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 32px rgba(0, 0, 0, 0.22);
}

.public-record-disc::before {
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.1), transparent 24% 72%, rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.78);
}

.public-turntable.has-default-art .public-record-art {
  box-shadow:
    0 0 0 3px rgba(7, 9, 14, 0.96),
    inset 0 0 0 1px rgba(8, 10, 16, 0.88),
    inset 0 0 0 9px rgba(7, 9, 14, 0.22);
}

.public-player-record {
  border: 1px solid rgba(5, 7, 11, 0.92);
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px),
    conic-gradient(from 12deg, #090a0f, #242630, #11131a, #2b2d37, #0d0f15, #090a0f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 7px 16px rgba(12, 14, 22, 0.22);
}

.public-player-record:not(.has-cover-art) .public-player-record-art {
  box-shadow: 0 0 0 2px rgba(5, 7, 11, 0.96);
}

/* Center-crop the square cover into a circle and fill both record faces. */
.public-turntable.has-cover-art .public-record-art,
.public-player-record.has-cover-art .public-player-record-art {
  inset: 8%;
  width: 84%;
  height: 84%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.public-player-record {
  animation-name: publicRecordSpin;
  animation-duration: 16s;
  animation-timing-function: linear;
  animation-delay: 0s;
}

/* Unified diagonal song palette with a derived contrasting accent. */
.public-share-card {
  --songmuse-soft-edge-rgb-a: var(--song-rgb-a, var(--share-rgb-a));
  --songmuse-soft-edge-rgb-b: var(--song-rgb-b, var(--share-rgb-b));
  --song-accent-ink: hsl(62, 64%, 35%);
  --song-accent-border: hsla(62, 64%, 35%, 0.42);
  --song-accent-soft: hsla(62, 70%, 52%, 0.2);
  --song-selection-soft: hsla(242, 78%, 68%, 0.24);
  --song-selection-core: hsla(242, 88%, 96%, 0.72);
  --song-highlight-a: rgba(255, 79, 139, 0.34);
  --song-highlight-b: rgba(47, 143, 238, 0.3);
  --song-highlight-border: rgba(151, 111, 189, 0.38);
}

.public-language-select {
  color: #11131a;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(250, 252, 255, 0.84)) padding-box,
    linear-gradient(115deg, #ff4f8b 0%, #9b63ed 48%, #2f8fee 100%) border-box;
  box-shadow:
    -8px 8px 20px rgba(255, 79, 139, 0.08),
    8px 8px 20px rgba(47, 143, 238, 0.08);
}

.public-language-select:focus-within {
  border-color: transparent;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.13),
    -8px 8px 20px rgba(255, 79, 139, 0.1),
    8px 8px 20px rgba(47, 143, 238, 0.1);
}

.public-lyric-line.active::before {
  background:
    radial-gradient(ellipse at center, var(--song-selection-core) 0 24%, var(--song-selection-soft) 52%, transparent 82%);
}

.public-lyric-line.active strong {
  background: none;
  color: var(--song-accent-ink);
  text-shadow: 0 7px 20px var(--song-selection-soft);
}

/* Comfortable lyric rhythm while preserving natural wrapping for long lines. */
.public-lyrics-list {
  --lyrics-tail-spacer: 138px;
  --lyric-row-rhythm: 46px;
  gap: 0;
  height: 318px;
  max-height: 318px;
}

.public-lyrics-list:not(.is-empty)::after {
  content: "";
  display: block;
  min-height: var(--lyrics-tail-spacer);
  pointer-events: none;
}

.public-lyrics-list.is-static {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 19, 26, 0.3) transparent;
  touch-action: pan-y;
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.public-lyrics-list.is-static::after {
  display: none;
}

.public-lyrics-list.is-static::-webkit-scrollbar {
  width: 5px;
}

.public-lyrics-list.is-static::-webkit-scrollbar-track {
  background: transparent;
}

.public-lyrics-list.is-static::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 19, 26, 0.3);
}

.public-lyrics-list.is-static .public-lyric-line {
  margin: 0;
  color: #11131a;
  cursor: default;
}

.public-lyrics-list.is-static .public-lyric-line strong {
  color: #11131a;
  font-weight: 760;
  opacity: 1;
  text-shadow: none;
}

.public-lyrics-list.is-static .public-lyric-line.active,
.public-lyrics-list.is-static .public-lyric-line.past,
.public-lyrics-list.is-static .public-lyric-line.active strong,
.public-lyrics-list.is-static .public-lyric-line.past strong {
  color: #11131a;
  opacity: 1;
  text-shadow: none;
}

.public-lyrics-list.is-static .public-lyric-line::before {
  display: none;
}

.public-lyrics-list.is-empty {
  overflow: hidden;
  mask-image: none;
}

.public-lyrics-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: rgba(38, 52, 78, 0.5);
  font-size: 16px;
  font-weight: 850;
}

.public-lyric-line {
  display: block;
  height: max-content;
  min-height: var(--lyric-row-rhythm);
  padding: 0 12px;
  overflow: visible;
}

.public-lyric-line strong {
  display: block;
  width: 100%;
  line-height: var(--lyric-row-rhythm);
}

.public-lyric-line.active::before {
  inset: 2px 7%;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at center, var(--song-highlight-b) 0%, var(--song-highlight-a) 46%, transparent 80%);
  box-shadow: none;
  opacity: 0.92;
}

.public-lyric-line.active strong {
  color: #11131a;
  font-weight: 900;
  text-shadow: none;
}

.public-lyric-line:focus,
.public-lyric-line:focus-visible {
  outline: none;
  box-shadow: none;
}

@media (max-width: 680px) {
  .public-lyrics-list {
    --lyrics-tail-spacer: 105px;
    height: 252px;
    max-height: 252px;
  }
}

@media (min-width: 981px) {
  .public-share-card {
    container-type: inline-size;
    --desktop-turntable-inset: clamp(
      0px,
      calc((((100cqw - clamp(24px, 3.5vw, 48px)) * 0.385027) - 352px) / 2),
      16px
    );
  }

  .public-share-layout {
    grid-template-columns: minmax(350px, 0.72fr) minmax(0, 1.15fr);
    gap: clamp(24px, 3.5vw, 48px);
  }

  .public-share-brand,
  .public-bottom-track {
    margin-left: var(--desktop-turntable-inset);
  }

  .public-lyrics-panel {
    width: min(640px, 100%);
  }

  .public-progress-line {
    width: 100%;
    justify-self: stretch;
  }
}

/* Mobile share page: preserve the full player in one viewport on common phones. */
@media (max-width: 680px) {
  .public-share-body {
    background: #f7f8fc;
  }

  .public-share-body::before,
  .public-share-body::after {
    display: none;
  }

  .public-share-main {
    min-height: 100svh;
    padding: 0;
  }

  .public-share-main::before {
    display: block;
    background:
      radial-gradient(circle at 88% 27%, rgba(255, 72, 111, 0.075), transparent 15%),
      radial-gradient(circle at 12% 33%, rgba(0, 200, 255, 0.11), transparent 18%),
      radial-gradient(circle at 82% 52%, rgba(52, 229, 155, 0.1), transparent 17%),
      radial-gradient(circle at 18% 72%, rgba(138, 92, 255, 0.09), transparent 18%),
      radial-gradient(circle at 72% 88%, rgba(255, 228, 92, 0.11), transparent 17%);
  }

  .public-share-card {
    --song-rgb-a: 255, 79, 139;
    --song-rgb-b: 47, 143, 238;
    align-self: stretch;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    min-height: 100svh;
    padding:
      max(var(--songmuse-soft-edge-safe-block-start, 20px), env(safe-area-inset-top))
      max(var(--songmuse-soft-edge-safe-inline, 22px), env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(var(--songmuse-soft-edge-safe-inline, 22px), env(safe-area-inset-left));
    overflow: hidden;
  }

  .public-share-topbar {
    min-height: 32px;
    gap: 8px;
  }

  .public-share-brand {
    gap: 6px;
    font-size: 15px;
  }

  .public-share-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .public-language-select {
    gap: 4px;
    min-height: 31px;
    padding: 0 5px;
  }

  .public-language-select > svg {
    width: 16px;
    height: 16px;
  }

  .public-language-select select {
    height: 28px;
    padding-right: 19px;
    font-size: 12px;
  }

  .public-share-layout {
    grid-template-columns: 142px minmax(0, 1fr);
    grid-template-rows:
      minmax(0, 1fr)
      auto
      auto
      minmax(44px, auto)
      minmax(0, 2fr)
      auto
      minmax(0, 2fr);
    align-content: stretch;
    column-gap: 12px;
    row-gap: 0;
    height: 100%;
    min-height: 0;
  }

  .public-turntable-zone {
    display: contents;
  }

  .public-share-cover.public-turntable {
    grid-column: 1;
    grid-row: 2 / 5;
    align-self: center;
    width: 142px;
    border-width: 1px;
    border-radius: 14px;
    box-shadow:
      0 15px 32px rgba(46, 56, 75, 0.14),
      0 6px 14px rgba(30, 41, 59, 0.06),
      inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  }

  .public-share-cover.public-turntable::before {
    inset: 6px;
  }

  .public-tonearm {
    right: 2px;
    top: -3px;
    width: 45px;
    height: 114px;
    transform-origin: 35px 17px;
  }

  .public-turntable-actions {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: repeat(2, 44px);
    gap: 8px;
    width: 100%;
    margin: 0;
  }

  .public-turntable-actions .public-primary-cta,
  .public-turntable-actions .public-secondary-share,
  .public-turntable-actions .public-secondary-share summary {
    min-width: 0;
    min-height: 44px;
  }

  .public-turntable-actions .public-secondary-share {
    width: 100%;
  }

  .public-turntable-actions .public-like-button {
    width: 44px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
  }

  .public-turntable-actions .public-like-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .public-turntable-actions .public-primary-cta {
    padding: 0 10px;
    font-size: 13px;
  }

  .public-turntable-actions .public-primary-cta > span {
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .public-turntable-actions .public-primary-cta.is-icon-only {
    justify-content: center;
    padding-inline: 0;
  }

  .public-turntable-actions .public-primary-cta.is-icon-only > span {
    display: none;
  }

  .public-turntable-actions .public-primary-cta svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .public-turntable-actions .public-primary-cta.is-icon-only svg {
    width: 20px;
    height: 20px;
  }

  .public-turntable-actions .public-secondary-share summary {
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .public-turntable-actions .public-secondary-share summary svg {
    width: 19px;
    height: 19px;
  }

  .public-turntable-actions .public-secondary-share summary span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .public-turntable-actions .public-secondary-share-actions {
    right: 0;
    left: auto;
    top: calc(100% + 5px);
    width: min(330px, calc(100vw - 44px));
    transform: none;
  }

  .public-share-content {
    display: contents;
  }

  .public-share-content h1 {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: stretch;
    text-align: left;
    font-size: 26px;
    line-height: 1.05;
  }

  .public-share-meta {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    text-align: left;
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .public-seo-context {
    grid-column: 1 / -1;
    grid-row: 5;
    align-self: end;
    max-width: 94%;
    margin: 0 auto;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
    -webkit-line-clamp: 2;
  }

  .public-lyrics-panel {
    grid-column: 1 / -1;
    grid-row: 6;
    align-self: center;
    width: 100%;
  }

  .public-lyrics-list {
    --lyrics-tail-spacer: 64px;
    --lyric-row-rhythm: 31.8px;
    gap: 0;
    height: var(--mobile-lyric-list-height, 163px);
    max-height: var(--mobile-lyric-list-height, 163px);
    padding: 2px 0;
  }

  .public-lyric-line {
    min-height: var(--lyric-row-rhythm);
    padding: 0 4px;
  }

  .public-lyric-line strong {
    font-size: var(--mobile-lyric-font-size, 15px);
    line-height: var(--lyric-row-rhythm);
  }

  .public-lyric-line.active::before {
    inset: 1px 2%;
  }

  .public-bottom-player {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 42px 39px 24px;
    gap: 6px 8px;
    min-width: 0;
    margin-top: 0;
  }

  .public-waveform {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 90%;
    height: 42px;
  }

  .public-bottom-track {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
  }

  .public-player-record {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .public-bottom-track strong {
    font-size: 12px;
  }

  .public-bottom-track span {
    font-size: 10px;
  }

  .public-transport {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    gap: 6px;
  }

  .public-transport .share-play-button {
    width: 40px;
    height: 40px;
  }

  .public-muted-control {
    width: 30px;
    height: 30px;
  }

  .public-progress-line {
    grid-column: 1 / -1;
    grid-row: 3;
    width: min(92%, 340px);
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .public-share-cover.public-turntable {
    width: 132px;
  }

  .public-tonearm {
    width: 42px;
    height: 106px;
    transform-origin: 33px 16px;
  }

  .public-share-layout {
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 10px;
  }

  .public-share-content h1 {
    font-size: 23px;
  }

  .public-lyrics-list {
    --lyrics-tail-spacer: 60px;
    --lyric-row-rhythm: 28.8px;
    height: var(--mobile-lyric-list-height, 148px);
    max-height: var(--mobile-lyric-list-height, 148px);
  }

  .public-lyric-line {
    min-height: var(--lyric-row-rhythm);
  }

  .public-lyric-line strong {
    font-size: var(--mobile-lyric-font-size, 14px);
  }

  .public-bottom-player {
    grid-template-rows: 34px 37px 22px;
  }

  .public-waveform {
    height: 34px;
  }
}

/* App-style share sheet: branded channels above one compact link action. */
.public-turntable-actions .public-secondary-share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(520px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid rgba(91, 105, 140, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(24, 32, 54, 0.18);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.public-share-sheet-title {
  color: #11131a;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}

.public-secondary-share summary:focus,
.public-secondary-share summary:focus-visible {
  outline: none;
  box-shadow: 0 10px 24px rgba(64, 76, 118, 0.1);
}

/* Album playback is opt-in through the album queue URL; direct song shares stay compact. */
.public-album-queue-control[hidden],
.public-album-queue-panel[hidden] {
  display: none !important;
}

.public-album-queue-control.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--grad-action);
  box-shadow: 0 8px 18px rgba(99, 83, 222, 0.22);
}

.public-album-queue-control:disabled {
  opacity: 0.42 !important;
}

.public-volume-control {
  position: relative;
  display: inline-flex;
}

.public-volume-control[hidden],
.public-volume-popover[hidden] {
  display: none !important;
}

.public-volume-popover {
  position: absolute;
  z-index: 72;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  grid-template-columns: 34px minmax(112px, 1fr) 42px;
  align-items: center;
  gap: 9px;
  width: 222px;
  padding: 10px;
  border: 1px solid rgba(97, 105, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(30, 39, 64, 0.18);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.public-volume-mute {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #59647b;
  background: transparent;
}

.public-volume-popover input[type="range"] {
  width: 100%;
  accent-color: #7c5cff;
}

.public-volume-popover output {
  color: #59647b;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.public-album-queue-panel {
  position: absolute;
  z-index: 60;
  right: clamp(18px, 3vw, 34px);
  bottom: 96px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(390px, calc(100% - 40px));
  max-height: min(440px, 62%);
  overflow: hidden;
  border: 1px solid rgba(97, 105, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 62px rgba(30, 39, 64, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.public-album-queue-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid rgba(97, 105, 145, 0.12);
}

.public-album-queue-panel > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.public-album-queue-panel > header span {
  color: #7367df;
  font-size: 10px;
  font-weight: 900;
}

.public-album-queue-panel > header strong {
  overflow: hidden;
  color: #151a2b;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-album-queue-panel > header button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(97, 105, 145, 0.16);
  border-radius: 8px;
  color: #526078;
  background: rgba(247, 249, 253, 0.9);
}

.public-album-queue-panel > header button svg {
  width: 17px;
  height: 17px;
}

.public-album-queue-panel ol {
  display: grid;
  align-content: start;
  min-height: 0;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.public-album-queue-panel li button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  color: #20273a;
  background: transparent;
  text-align: left;
}

.public-album-queue-panel li button:hover,
.public-album-queue-panel li button.is-current {
  background: linear-gradient(105deg, rgba(255, 79, 139, 0.1), rgba(47, 111, 255, 0.09));
}

.public-album-queue-number {
  color: #818ba1;
  font-size: 11px;
  font-weight: 850;
}

.public-album-queue-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-album-queue-copy strong,
.public-album-queue-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-album-queue-copy strong {
  font-size: 13px;
}

.public-album-queue-copy small,
.public-album-queue-panel time {
  color: #7d879c;
  font-size: 10px;
  font-weight: 750;
}

.public-album-queue-panel li button.is-current .public-album-queue-number,
.public-album-queue-panel li button.is-current .public-album-queue-copy strong {
  color: #5a4fe0;
}

@media (max-width: 680px) {
  .public-album-queue-panel {
    right: 12px;
    bottom: 104px;
    left: 12px;
    width: auto;
    max-height: 52%;
  }

  .has-album-playback .public-transport {
    gap: 5px;
  }

  .public-transport .public-album-queue-control {
    width: 30px;
    height: 30px;
  }

  .public-desktop-playback-control,
  body:not(.has-multi-track-playback) #sharePreviousButton {
    display: none !important;
  }
}

.public-share-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 12px);
  min-width: 0;
  overflow: visible;
  padding: 2px 0 4px;
}

.public-share-channel {
  display: grid;
  grid-template-rows: clamp(40px, 5vw, 54px) 18px;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #202534;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.public-share-channel > span:last-child {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-share-channel-icon {
  display: grid;
  place-items: center;
  width: clamp(40px, 10vw, 54px);
  height: clamp(40px, 10vw, 54px);
  border-radius: 50%;
  color: #26344e;
  background: #f1f3f7;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.08);
}

.public-share-channel-icon img,
.public-share-channel-icon svg {
  width: 27px;
  height: 27px;
}

.public-share-channel-whatsapp { background: #25d366; }
.public-share-channel-telegram { background: #229ed9; }
.public-share-channel-facebook { background: #1877f2; }
.public-share-channel-x { background: #050505; }
.public-share-channel-reddit { background: #ff4500; }

.public-share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 4px 5px 4px 14px;
  border: 1px solid rgba(91, 105, 140, 0.3);
  border-radius: 8px;
  background: #fff;
}

.public-share-link-row input {
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: #303645;
  background: transparent;
  font-size: 13px;
  text-overflow: ellipsis;
}

.public-share-link-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(91, 105, 140, 0.22);
  border-radius: 8px;
  color: #202534;
  background: #f8f9fc;
  font-size: 13px;
  font-weight: 850;
}

.public-share-link-row button svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 680px) {
  .public-turntable-actions .public-secondary-share-actions {
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 44px));
    padding: 16px;
    transform: none;
  }

  .public-share-channel {
    grid-template-rows: 44px 18px;
  }

  .public-share-channel-icon {
    width: 44px;
    height: 44px;
  }

  .public-share-link-row {
    min-height: 48px;
    padding-left: 11px;
  }

  .public-share-link-row input {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .song-share-channels {
    gap: 2px;
  }

  .song-share-channel {
    grid-template-rows: 40px 18px;
    font-size: 8px;
  }

  .song-share-channel-icon {
    width: 40px;
    height: 40px;
  }

  .song-share-channel-icon img {
    width: 24px;
    height: 24px;
  }

  .public-share-channels {
    gap: 2px;
  }

  .public-share-channel {
    grid-template-rows: 40px 18px;
    font-size: 8px;
  }

  .public-share-channel-icon {
    width: 40px;
    height: 40px;
  }

  .public-share-channel-icon img,
  .public-share-channel-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Keep the public page's secondary share command aligned with the app. */
.public-turntable-actions .public-secondary-share summary {
  border-color: rgba(210, 104, 125, 0.2);
  color: #fff;
  background: linear-gradient(135deg, #f39a73 0%, #e97b82 48%, #d76694 100%);
  box-shadow:
    0 10px 22px rgba(216, 103, 125, 0.18),
    0 4px 12px rgba(194, 82, 139, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.public-secondary-share summary:focus,
.public-secondary-share summary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(222, 107, 137, 0.2),
    0 12px 24px rgba(205, 91, 133, 0.2);
}

/* Keep share actions compact while leaving every command easy to identify. */
.public-turntable-actions {
  grid-template-columns: max-content max-content;
  width: fit-content;
  max-width: 100%;
}

.public-turntable-actions .public-secondary-share {
  width: max-content;
}

.public-turntable-actions .public-secondary-share summary {
  justify-content: center;
  width: max-content;
  min-width: 142px;
  padding-inline: 20px;
}

.public-like-button {
  gap: 7px;
  flex: 0 0 auto;
  width: max-content;
  min-width: 88px;
  padding-inline: 14px;
}

.public-turntable-actions .public-like-button .like-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  border: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.public-turntable-actions .public-primary-cta {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 20px;
}

.public-turntable-actions :is(summary, .public-like-button, .public-primary-cta) > svg {
  flex-shrink: 0;
}

.public-turntable-actions :is(summary, .public-like-button) > [data-i18n] {
  display: block;
  min-width: 0;
}

.public-turntable-actions .public-primary-cta > span {
  display: block;
  min-width: 0;
  font-size: var(--share-cta-font-size, inherit);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-turntable-actions :is(summary, .public-like-button).is-icon-only {
  gap: 0;
}

.public-turntable-actions :is(summary, .public-like-button).is-icon-only > [data-i18n] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .public-turntable-actions:has(summary.is-icon-only):not(:has(.public-like-button.is-icon-only)) {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .public-turntable-actions:has(.public-like-button.is-icon-only):not(:has(summary.is-icon-only)) {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
}

@media (max-width: 680px) {
  .public-turntable-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
    justify-self: end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .public-turntable-actions .public-secondary-share {
    width: 100%;
    min-width: 0;
  }

  .public-turntable-actions .public-secondary-share summary {
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding-inline: 6px;
  }

  .public-turntable-actions .public-like-button {
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding-inline: 6px;
  }

  .public-like-button b {
    transform: translate(18%, -45%);
  }

  .public-turntable-actions .public-primary-cta {
    width: 100%;
    gap: 6px;
    padding-inline: 6px;
  }

  .public-share-cover.public-turntable {
    align-self: center;
    margin-block: auto;
    transform: translateY(12px);
  }
}

/* One transport family: the mode icon carries state, not a color change. */
.public-transport > .public-muted-control,
.public-transport > .public-volume-control > .public-muted-control {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.76), rgba(139, 92, 246, 0.78), rgba(47, 111, 255, 0.76)) !important;
  box-shadow: 0 9px 18px rgba(139, 92, 246, 0.14) !important;
  filter: none !important;
  opacity: 1 !important;
}

.public-transport > .share-play-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
}

.public-transport > .public-muted-control svg,
.public-transport > .public-volume-control > .public-muted-control svg,
.public-transport > .share-play-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.public-transport > #sharePreviousButton:disabled,
.public-transport > #shareNextButton:disabled {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.76), rgba(139, 92, 246, 0.78), rgba(47, 111, 255, 0.76)) !important;
  box-shadow: 0 9px 18px rgba(139, 92, 246, 0.14) !important;
  filter: none !important;
  opacity: 0.38 !important;
}

.public-transport > #sharePreviousButton:disabled svg,
.public-transport > #shareNextButton:disabled svg {
  color: inherit;
}

#shareModeButton.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.76), rgba(139, 92, 246, 0.78), rgba(47, 111, 255, 0.76)) !important;
  box-shadow: 0 9px 18px rgba(139, 92, 246, 0.14) !important;
}

@media (max-width: 680px) {
  .public-transport > .public-muted-control,
  .public-transport > .public-volume-control > .public-muted-control {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
  }

  .public-transport > .share-play-button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
}

/* Wide, short desktop viewports must keep the complete transport in view. */
@media (min-width: 981px) and (max-height: 700px) {
  .public-share-main {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 12px clamp(20px, 3vw, 40px);
  }

  .public-share-card {
    --public-short-turntable-size: clamp(210px, 34svh, 228px);
    align-self: stretch;
    grid-template-rows: auto minmax(0, 1fr) 108px;
    gap: 6px;
    min-height: 0;
    padding-block: 10px;
  }

  .public-share-layout {
    align-self: stretch;
    min-height: 0;
  }

  .public-turntable-zone {
    gap: 6px;
  }

  .public-share-cover.public-turntable {
    width: var(--public-short-turntable-size);
  }

  .public-tonearm {
    right: 2.56%;
    top: -2.56%;
    width: 31.82%;
    height: 81.25%;
    transform-origin: 77.68% 14.69%;
  }

  .public-turntable-actions {
    margin-top: 4px;
  }

  .public-lyrics-list {
    --lyrics-tail-spacer: 92px;
    --lyric-row-rhythm: 36px;
    height: 216px;
    max-height: 216px;
  }

  .public-lyric-line strong {
    line-height: var(--lyric-row-rhythm);
  }

  .public-bottom-player {
    grid-template-rows: 60px 46px;
  }

  .public-waveform {
    height: 60px;
  }
}

/* Share menus follow their trigger toward the viewport center and never escape it. */
.public-turntable-actions .public-secondary-share-actions {
  position: fixed;
  inset: auto;
  right: auto;
  bottom: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: none;
  transform-origin: var(--share-popover-origin-x, 50%) var(--share-popover-origin-y, 0%);
}

/* Long titles stay inside a fixed two-line viewport and scroll without moving the page. */
.public-share-content h1 {
  position: relative;
  width: 100%;
  max-height: 2.04em;
  overflow: hidden;
}

.public-share-title-text {
  display: block;
  width: 100%;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
  will-change: transform;
}

.public-share-content h1.is-overflowing .public-share-title-text {
  animation: publicShareTitleScroll var(--public-title-scroll-duration, 12s) ease-in-out 1.2s infinite alternate;
}

@keyframes publicShareTitleScroll {
  0%,
  14% {
    transform: translateY(0);
  }

  86%,
  100% {
    transform: translateY(calc(var(--public-title-scroll-distance, 0px) * -1));
  }
}

/* Every two-column share scene ends above the waveform/player, including tablets. */
@media (min-width: 681px) {
  .public-share-card:not(.has-album-context) {
    grid-template-rows: minmax(0, 1fr) max-content;
  }

  .public-share-layout {
    container-type: size;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: visible;
  }

  .public-turntable-zone {
    align-self: start;
  }

  .public-share-cover.public-turntable {
    max-width: min(100%, max(140px, calc(100cqh - 142px)));
  }

  .public-tonearm {
    right: 2.56%;
    top: -2.56%;
    width: 31.82%;
    height: 81.25%;
    transform-origin: 77.68% 14.69%;
  }

  .public-share-content {
    grid-template-rows: max-content max-content max-content minmax(0, 1fr);
    align-self: stretch;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .public-lyrics-panel {
    align-self: stretch;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .public-lyrics-list {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
}

/* Intermediate widths keep the cover and lyrics side by side, not stacked. */
@media (min-width: 681px) and (max-width: 980px) {
  .public-share-card.share-page-content {
    padding: 14px 22px;
    gap: 12px;
  }

  .public-share-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 22px;
  }

  .public-turntable-zone {
    min-width: 0;
    gap: 10px;
  }

  .public-share-cover.public-turntable {
    width: min(300px, 100%);
  }

  .public-turntable-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(288px, 100%);
    margin-top: 6px;
  }

  .public-turntable-actions .public-secondary-share,
  .public-turntable-actions .public-secondary-share summary,
  .public-turntable-actions .public-like-button {
    width: 100%;
  }

  .public-turntable-actions .public-primary-cta,
  .public-turntable-actions .public-secondary-share summary,
  .public-turntable-actions .public-like-button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
    line-height: 1.15;
    white-space: normal;
  }

  .public-turntable-actions svg {
    flex-shrink: 0;
  }

  .public-share-content {
    gap: 10px;
  }

  .public-share-content h1 {
    font-size: 32px;
  }

  .public-seo-context {
    font-size: 12px;
    line-height: 1.35;
  }

  .public-lyrics-list {
    --lyric-row-rhythm: 36px;
  }

  .public-lyric-line strong {
    font-size: 18px;
  }

  .public-bottom-player {
    grid-template-rows: 60px 46px;
  }

  .public-waveform {
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-share-content h1.is-overflowing .public-share-title-text {
    animation: none;
  }
}

/* Final compact pass: shrink the whole share player family at laptop height. */
@media (min-width: 981px) and (max-height: 700px) {
  .public-share-card {
    grid-template-rows: minmax(0, 1fr) 88px;
    gap: 4px;
    padding: 6px 20px;
  }

  .public-share-layout {
    grid-template-columns: minmax(290px, 0.68fr) minmax(0, 1.2fr);
    gap: 22px;
  }

  .public-share-cover.public-turntable {
    width: clamp(184px, 31svh, 200px);
  }

  .public-turntable-zone {
    gap: 4px;
  }

  .public-turntable-actions {
    gap: 6px;
    margin-top: 2px;
  }

  .public-turntable-actions .public-secondary-share summary,
  .public-turntable-actions .public-like-button,
  .public-turntable-actions .public-primary-cta {
    height: 38px;
    min-height: 38px;
    font-size: 13px;
  }

  .public-turntable-actions svg {
    width: 16px;
    height: 16px;
  }

  .public-share-content h1 {
    font-size: clamp(30px, 3.2vw, 40px);
  }

  .public-share-meta {
    margin-top: 5px;
    font-size: 12px;
  }

  .public-seo-context {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .public-lyric-line strong {
    font-size: 16px;
  }

  .public-bottom-player {
    grid-template-rows: 44px 38px;
    row-gap: 4px;
  }

  .public-waveform {
    height: 44px;
  }

  .public-player-record {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .public-bottom-track {
    gap: 7px;
  }

  .public-bottom-track strong {
    font-size: 12px;
  }

  .public-bottom-track span,
  .public-progress-line {
    font-size: 10px;
  }

  .public-transport {
    gap: 6px;
  }

  .public-transport > .public-muted-control,
  .public-transport > .public-volume-control > .public-muted-control {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .public-transport > .share-play-button {
    width: 34px;
    height: 34px;
  }

  .public-transport > .public-muted-control svg,
  .public-transport > .public-volume-control > .public-muted-control svg,
  .public-transport > .share-play-button svg {
    width: 15px;
    height: 15px;
  }

  .public-turntable-actions .public-secondary-share-actions {
    width: min(440px, calc(100vw - 24px));
    gap: 13px;
    padding: 14px;
  }

  .public-share-channel {
    grid-template-rows: 40px 16px;
  }

  .public-share-channel-icon {
    width: 40px;
    height: 40px;
  }

  .public-share-channel-icon img,
  .public-share-channel-icon svg {
    width: 24px;
    height: 24px;
  }

  .public-share-link-row {
    min-height: 42px;
  }
}

/* Keep the transport's primary action on the player's true center line. */
.public-transport {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-self: center;
  width: min(100%, 340px);
  gap: 8px;
}

.public-transport-side {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.public-transport-left {
  justify-content: flex-end;
}

.public-transport-right {
  justify-content: flex-start;
}

.public-transport > .share-play-button {
  grid-column: 2;
  justify-self: center;
  width: 42px;
  height: 42px;
}

.public-transport .public-muted-control,
.public-transport .public-volume-control > .public-muted-control {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.public-bottom-track-copy {
  min-width: 0;
  overflow: hidden;
}

.public-bottom-track-title {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-bottom-track-title-run {
  display: inline-flex;
  width: max-content;
  min-width: 100%;
  will-change: transform;
}

.public-bottom-track-title-run > span {
  display: inline-block;
  flex: none;
}

#publicBottomTrackTitleRepeat {
  display: none;
}

.public-bottom-track-title.is-overflowing {
  text-overflow: clip;
}

.public-bottom-track-title.is-overflowing .public-bottom-track-title-run {
  animation: publicBottomTrackTitleScroll var(--bottom-track-scroll-duration, 10s) linear 0.8s infinite;
}

.public-bottom-track-title.is-overflowing #publicBottomTrackTitleText,
.public-bottom-track-title.is-overflowing #publicBottomTrackTitleRepeat {
  display: inline-block;
  flex: none;
  padding-right: 26px;
}

@keyframes publicBottomTrackTitleScroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 680px) {
  .public-bottom-player {
    --mobile-transport-size: 30px;
    --mobile-transport-gap: 4px;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  }

  .public-transport {
    display: contents;
  }

  .public-transport-left {
    display: contents;
  }

  .public-transport-right {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    gap: var(--mobile-transport-gap);
  }

  .has-album-playback .public-transport-right {
    padding-right: calc(var(--mobile-transport-size) + var(--mobile-transport-gap));
  }

  #shareQueueToggle,
  #sharePreviousButton {
    grid-row: 2;
    align-self: center;
    justify-self: end;
  }

  #shareQueueToggle {
    grid-column: 3;
  }

  #sharePreviousButton {
    grid-column: 1;
  }

  .public-bottom-track {
    width: 100%;
  }

  .has-multi-track-playback .public-bottom-track {
    width: calc(100% - var(--mobile-transport-size) - var(--mobile-transport-gap));
  }

  .public-bottom-track-copy {
    width: 100%;
  }

  .public-transport .public-muted-control,
  .public-transport .public-volume-control > .public-muted-control {
    width: var(--mobile-transport-size);
    height: var(--mobile-transport-size);
    min-height: var(--mobile-transport-size);
  }

  .public-transport > .share-play-button {
    grid-row: 2;
    align-self: center;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-bottom-track-title.is-overflowing .public-bottom-track-title-run {
    animation: none;
  }

  .public-bottom-track-title.is-overflowing {
    text-overflow: ellipsis;
  }

  .public-bottom-track-title.is-overflowing #publicBottomTrackTitleRepeat {
    display: none;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .public-share-card.share-page-content {
    padding-top: 10px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .public-share-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 10px;
  }

  .public-share-cover.public-turntable {
    width: 120px;
    transform: translateY(6px);
  }

  .public-tonearm {
    width: 38px;
    height: 96px;
    transform-origin: 30px 15px;
  }

  .public-turntable-actions {
    grid-template-rows: repeat(2, 42px);
  }

  .public-turntable-actions .public-primary-cta,
  .public-turntable-actions .public-secondary-share,
  .public-turntable-actions .public-secondary-share summary,
  .public-turntable-actions .public-like-button {
    min-height: 42px;
  }

  .public-share-content h1 {
    font-size: 21px;
  }

  .public-lyrics-list {
    --lyrics-tail-spacer: 54px;
    --lyric-row-rhythm: 26.8px;
    height: min(var(--mobile-lyric-list-height, 132px), 132px);
    max-height: 132px;
  }

  .public-lyric-line strong {
    font-size: var(--mobile-lyric-font-size, 13px);
  }

  .public-bottom-player {
    grid-template-rows: 30px 34px 20px;
    gap: 4px 6px;
  }

  .public-waveform {
    height: 30px;
  }

  .public-player-record {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .public-transport > .public-muted-control,
  .public-transport > .public-volume-control > .public-muted-control {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .public-transport > .share-play-button {
    width: 34px;
    height: 34px;
  }

  .public-transport > .public-muted-control svg,
  .public-transport > .public-volume-control > .public-muted-control svg,
  .public-transport > .share-play-button svg {
    width: 14px;
    height: 14px;
  }

  .public-turntable-actions .public-secondary-share-actions {
    gap: 12px;
    padding: 13px;
  }

  .public-share-channel {
    grid-template-rows: 40px 16px;
  }

  .public-share-channel-icon {
    width: 40px;
    height: 40px;
  }

  .public-share-channel-icon img,
  .public-share-channel-icon svg {
    width: 24px;
    height: 24px;
  }

  .public-share-link-row {
    min-height: 42px;
  }
}
