:root {
  --bg: #06060e;
  --bg-2: #0b0b18;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3fb;
  --muted: #9aa0b8;
  --faint: #6b7191;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --grad: linear-gradient(120deg, #8b5cf6, #22d3ee);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(139, 92, 246, 0.45); }

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-a { width: 560px; height: 560px; top: -180px; left: -140px; background: #6d28d9; }
.bg-glow-b { width: 520px; height: 520px; bottom: -220px; right: -160px; background: #0e7490; }

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

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 14, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
}

.site-brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.5);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 1.05rem;
}

.brand-name-light {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--faint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
}

.site-nav a.active {
  color: var(--text);
  background: var(--panel-strong);
}

.hero { padding: 96px 0 70px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-content { grid-column: 1 / 8; }
.hero-media { grid-column: 8 / -1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--panel);
  text-decoration: none;
}

.hero-portrait {
  position: relative;
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, transparent 40%, rgba(6, 6, 14, 0.8));
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.section { padding: 70px 0; }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  max-width: 680px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media--circles {
  position: relative;
}

.card-media--circles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-color, #8b5cf6);
  border-radius: var(--radius);
  opacity: 0.8;
  z-index: 0;
}

.card-media--circles .card-circles {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.card-media--circles .card-circles::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(at 30% 20%, transparent 0%, var(--card-color, #8b5cf6) 45%),
              radial-gradient(at 70% 80%, transparent 0%, var(--card-color, #22d3ee) 45%);
  z-index: -1;
  border-radius: var(--radius);
}

.card-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  animation: float 20s ease-in-out infinite;
}

.card-circle:nth-child(1) {
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
}

.card-circle:nth-child(2) {
  bottom: -60px;
  right: -60px;
  width: 170px;
  height: 170px;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.card-overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.card-kicker {
  font-size: 0.8rem;
  color: var(--cyan);
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}

.split-content { grid-column: 1 / 7; }
.split-media { grid-column: 7 / -1; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 52px);
}

.list {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.list-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.14);
}

.list-content h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.list-content p {
  color: var(--muted);
}

.cta { padding: 80px 0; }

.cta-panel {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.22), transparent 60%), var(--panel);
  padding: clamp(40px, 10vw, 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--muted);
  max-width: 540px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 14, 0.9);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 0 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--faint);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .hero-content,
  .hero-media,
  .split-content,
  .split-media {
    grid-column: 1 / -1;
  }
  .hero-grid,
  .split {
    gap: 28px;
  }
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 200px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    display: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    text-align: right;
    padding: 10px 16px;
    border-radius: 6px;
  }
  .card {
    grid-column: 1 / -1;
  }
  .hero {
    padding: 76px 0 54px;
  }
}

.eq { display: flex; align-items: flex-end; justify-content: center; gap: 7px; height: 74px; margin-top: 54px; opacity: 0.85; }
.eq span {
  width: 9px;
  border-radius: 6px;
  background: var(--grad);
  animation: eqbar 1.15s ease-in-out infinite;
}
.eq span:nth-child(1) { animation-delay: 0s; height: 30%; }
.eq span:nth-child(2) { animation-delay: 0.12s; height: 62%; }
.eq span:nth-child(3) { animation-delay: 0.24s; height: 88%; }
.eq span:nth-child(4) { animation-delay: 0.05s; height: 46%; }
.eq span:nth-child(5) { animation-delay: 0.3s; height: 70%; }
.eq span:nth-child(6) { animation-delay: 0.18s; height: 95%; }
.eq span:nth-child(7) { animation-delay: 0.09s; height: 38%; }
.eq span:nth-child(8) { animation-delay: 0.27s; height: 58%; }
.eq span:nth-child(9) { animation-delay: 0.21s; height: 80%; }
@keyframes eqbar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.25); }
}

.panel-glow {
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.22), transparent 60%), var(--panel);
}

.panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(139, 92, 246, 0.18) 0, rgba(139, 92, 246, 0.18) 130px, transparent 132px),
    radial-gradient(circle at 84% 82%, rgba(34, 211, 238, 0.12) 0, rgba(34, 211, 238, 0.12) 210px, transparent 212px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--bg-2);
}
.panel-card > * { position: relative; z-index: 1; }

.panel-card--violet {
  background:
    radial-gradient(circle at 18% 20%, rgba(139, 92, 246, 0.22) 0, rgba(139, 92, 246, 0.22) 130px, transparent 132px),
    radial-gradient(circle at 84% 82%, rgba(244, 114, 182, 0.14) 0, rgba(244, 114, 182, 0.14) 210px, transparent 212px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--bg-2);
}
.panel-card--cyan {
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.20) 0, rgba(34, 211, 238, 0.20) 130px, transparent 132px),
    radial-gradient(circle at 84% 82%, rgba(139, 92, 246, 0.14) 0, rgba(139, 92, 246, 0.14) 210px, transparent 212px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--bg-2);
}
.panel-card--pink {
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 114, 182, 0.20) 0, rgba(244, 114, 182, 0.20) 130px, transparent 132px),
    radial-gradient(circle at 84% 82%, rgba(34, 211, 238, 0.14) 0, rgba(34, 211, 238, 0.14) 210px, transparent 212px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--bg-2);
}

.radio-embed {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.radio-embed--bottom {
  top: auto;
  bottom: 16px;
}
.radio-embed-label {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}
.radio-embed iframe {
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.radio-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
  padding: 16px 16px 0;
}
.radio-box::after { display: none; }
.radio-box-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/img/radio-bg.jpg') center / cover no-repeat;
}
.radio-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.radio-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.radio-block iframe {
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.radio-name {
  width: 100%;
  text-align: center;
  padding: 6px 0;
}
.radio-name-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.radio-name-sub {
  text-align: center;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.track-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.track-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}
.cover {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.track-info { min-width: 0; }
.track-title { font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 10px; }
.tchip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}
.tchip.v { color: #c4b5fd; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.track-card audio { width: 100%; height: 38px; }
.track-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 0.83rem; }
.track-actions a { color: var(--muted); }
.track-actions a:hover { color: var(--text); }

.music-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 64px; }
.music-count {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px; padding: 2px 10px;
}
.music-audio { width: 100%; height: 42px; margin-top: 4px; }
.music-track {
  display: flex; align-items: center; gap: 10px;
  grid-template-columns: none; padding: 12px 16px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.music-hit {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px;
  flex: 1; min-width: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.music-track:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.music-track.active { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.music-track .track-title { display: block; }
.music-track .cover .i-pause { display: none; }
.music-track.playing .cover .i-play { display: none; }
.music-track.playing .cover .i-pause { display: block; }
.music-track.playing .cover { box-shadow: 0 6px 22px rgba(34, 211, 238, 0.5); }
.music-track.paused .cover { opacity: 0.7; }
.error-note {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
}

.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.recent-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 14px 16px;
}
.recent-item .rt { font-weight: 600; font-size: 0.9rem; font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .rd { color: var(--faint); font-size: 0.76rem; margin-bottom: 8px; }
.recent-item audio { width: 100%; height: 34px; }
.empty-note { color: var(--faint); text-align: center; padding: 26px 0; font-size: 0.92rem; }

.pg-wrap { max-width: 780px; margin-inline: auto; }
.pg-input-card {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(400px 160px at 15% 0%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(400px 180px at 90% 100%, rgba(34, 211, 238, 0.1), transparent),
    var(--bg-2);
  padding: 34px;
  box-shadow: var(--shadow);
}
.pg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tip-box {
  margin-top: 26px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.tip-box b { color: var(--text); }
.tip-box .good { color: var(--green); }
.tip-box .bad { color: var(--red); }

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  border: 1px solid var(--border-strong);
  background: #14141f;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.89rem;
  box-shadow: var(--shadow);
  animation: toastin 0.25s ease;
}
.toast.err { border-color: rgba(248, 113, 113, 0.5); }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
@keyframes toastin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.footer { border-top: 1px solid var(--border); padding: 40px 0 46px; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; color: var(--faint); font-size: 0.88rem; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.foot-note { font-style: italic; }
.foot-copyright { font-size: 0.8rem; color: var(--faint); margin-top: 4px; }

@media (max-width: 980px) {
  .studio-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .demo-box { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-inner { flex-wrap: wrap; gap: 8px; }
  .nav-links { margin-left: auto; }
  .nav-links a { padding: 7px 10px; font-size: 0.9rem; }
  .brand-email { display: none; }
  .pill-status { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 7px 9px; font-size: 0.85rem; }
  .pg-options { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s, border-color 0.15s;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
.track-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.track-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}
.cover {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.track-info { min-width: 0; }
.track-title { font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 10px; }
.tchip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}
.tchip.v { color: #c4b5fd; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.track-card audio { width: 100%; height: 38px; }
.track-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 0.83rem; }
.track-actions a { color: var(--muted); }
.track-actions a:hover { color: var(--text); }

.music-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 64px; }
.music-count {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px; padding: 2px 10px;
}
.music-audio { width: 100%; height: 42px; margin-top: 4px; }
.music-track {
  display: flex; align-items: center; gap: 10px;
  grid-template-columns: none; padding: 12px 16px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.music-hit {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px;
  flex: 1; min-width: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.music-track:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.music-track.active { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.music-track .track-title { display: block; }
.music-track .cover .i-pause { display: none; }
.music-track.playing .cover .i-play { display: none; }
.music-track.playing .cover .i-pause { display: block; }
.music-track.playing .cover { box-shadow: 0 6px 22px rgba(34, 211, 238, 0.5); }
.music-track.paused .cover { opacity: 0.7; }
.error-note {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
}

.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.recent-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 14px 16px;
}
.recent-item .rt { font-weight: 600; font-size: 0.9rem; font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .rd { color: var(--faint); font-size: 0.76rem; margin-bottom: 8px; }
.recent-item audio { width: 100%; height: 34px; }
.empty-note { color: var(--faint); text-align: center; padding: 26px 0; font-size: 0.92rem; }

.pg-wrap { max-width: 780px; margin-inline: auto; }
.pg-input-card {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(400px 160px at 15% 0%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(400px 180px at 90% 100%, rgba(34, 211, 238, 0.1), transparent),
    var(--bg-2);
  padding: 34px;
  box-shadow: var(--shadow);
}
.pg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tip-box {
  margin-top: 26px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.tip-box b { color: var(--text); }
.tip-box .good { color: var(--green); }
.tip-box .bad { color: var(--red); }

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  border: 1px solid var(--border-strong);
  background: #14141f;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.89rem;
  box-shadow: var(--shadow);
  animation: toastin 0.25s ease;
}
.toast.err { border-color: rgba(248, 113, 113, 0.5); }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
@keyframes toastin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.footer { border-top: 1px solid var(--border); padding: 40px 0 46px; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; color: var(--faint); font-size: 0.88rem; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.foot-note { font-style: italic; }
.foot-copyright { font-size: 0.8rem; color: var(--faint); margin-top: 4px; }

@media (max-width: 980px) {
  .studio-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .demo-box { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-inner { flex-wrap: wrap; gap: 8px; }
  .nav-links { margin-left: auto; }
  .nav-links a { padding: 7px 10px; font-size: 0.9rem; }
  .brand-email { display: none; }
  .pill-status { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 7px 9px; font-size: 0.85rem; }
  .pg-options { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s, border-color 0.15s;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 980px) {
  .track-list { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute;
  top: -10000px;
  left: 0;
  z-index: 99999;
  padding: 1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; left: 0; }
.skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; white-space: nowrap;
}
