:root {
  --bg: #070a1c; --bg2: #0c1030; --panel: rgba(255, 255, 255, .045); --panel2: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --ink: #f3f1ff; --dim: #a7a9d4; --mute: #6f72a3;
  --pink: #ff4fbf; --pink2: #ff7ad3; --cyan: #3df0ff; --amber: #ffb648; --lime: #b9ff5c; --violet: #8b6bff; --red: #ff5d6c;
  --grad: linear-gradient(120deg, #ff4fbf 0%, #ff8a5c 55%, #ffb648 100%);
  --r: 18px; --r2: 12px; --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --display: 'Unbounded', system-ui, sans-serif; --ui: 'Manrope', system-ui, sans-serif;
  --player-h: 76px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body { margin: 0; background: radial-gradient(1200px 700px at 80% -10%, #1b1450 0%, transparent 60%), radial-gradient(900px 600px at -10% 20%, #0e2a4d 0%, transparent 55%), var(--bg); color: var(--ink); font: 15px/1.5 var(--ui); min-height: 100vh; padding-bottom: calc(var(--player-h) + 20px); overflow-x: hidden }
a { color: inherit; text-decoration: none }
button, input, textarea, select { font: inherit; color: inherit }
button { cursor: pointer }
img { display: block; max-width: 100% }
::selection { background: rgba(255, 79, 191, .35) }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px }
.hide { display: none !important }
.muted { color: var(--dim) }
.tiny { font-size: 12px }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0 }
h2 { font-size: 22px; font-weight: 700 }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 44px 0 16px }
.sec-title a { color: var(--dim); font-size: 13px; font-weight: 700 }
.sec-title a:hover { color: var(--ink) }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 10, 28, .72); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap }
.brand svg { width: 34px; height: 34px; flex: none }
.nav { display: flex; gap: 4px; margin-left: 8px }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-weight: 700; font-size: 14px }
.nav a:hover { color: var(--ink); background: var(--panel) }
.nav a.on { color: var(--ink); background: var(--panel2) }
.top .sp { flex: 1 }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap }
button.pill:hover { border-color: var(--line2); background: var(--panel2) }
.ca-pill b { color: var(--amber) }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line) }
.icon-btn:hover { background: var(--panel2) }
.icon-btn svg { width: 18px; height: 18px }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 800; font-size: 14px; letter-spacing: .01em; transition: transform .12s, background .2s, border-color .2s, opacity .2s; white-space: nowrap }
.btn:hover { background: rgba(255, 255, 255, .11) }
.btn:active { transform: translateY(1px) scale(.99) }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none }
.btn.main { background: var(--grad); border: 0; color: #1b0716; box-shadow: 0 10px 30px rgba(255, 79, 191, .32) }
.btn.main:hover { filter: brightness(1.07) }
.btn.big { padding: 16px 26px; font-size: 16px; border-radius: 16px; font-family: var(--display); font-weight: 700; letter-spacing: .02em }
.btn.ghost { background: transparent }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px }
.btn.cyan { background: rgba(61, 240, 255, .12); border-color: rgba(61, 240, 255, .35); color: #c9fbff }
.btn.danger { color: #ffb1b8; border-color: rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .08) }
.play-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--grad); color: #1b0716; box-shadow: 0 8px 26px rgba(255, 79, 191, .35); flex: none; transition: transform .15s }
.play-btn:hover { transform: scale(1.05) }
.play-btn svg { width: 22px; height: 22px }
.play-btn.lg { width: 68px; height: 68px }
.play-btn.lg svg { width: 28px; height: 28px }

/* ---------- chips & badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 700; color: var(--dim); transition: .15s }
.chip:hover { color: var(--ink); border-color: var(--line2) }
.chip.on { color: #1b0716; background: var(--ink); border-color: var(--ink) }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--panel2); border: 1px solid var(--line); color: var(--dim); white-space: nowrap }
.badge.demo { background: rgba(255, 182, 72, .14); border-color: rgba(255, 182, 72, .4); color: var(--amber) }
.badge.tier { background: rgba(61, 240, 255, .1); border-color: rgba(61, 240, 255, .3); color: #b7f8ff }
.badge.hot { background: rgba(255, 79, 191, .14); border-color: rgba(255, 79, 191, .4); color: #ffc0e8 }
.badge.live { background: rgba(185, 255, 92, .12); border-color: rgba(185, 255, 92, .35); color: var(--lime) }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); display: inline-block; animation: pulse 1.6s infinite }
@keyframes pulse { 50% { opacity: .35 } }
.ticker { font-family: var(--display); font-weight: 600; color: var(--amber); letter-spacing: .02em }

/* ---------- panels & forms ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px }
.field { display: grid; gap: 7px; margin-bottom: 14px }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim) }
.input, .textarea, .select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(5, 8, 26, .6); outline: none; transition: border-color .15s }
.input:focus, .textarea:focus, .select:focus { border-color: var(--pink) }
.textarea { resize: vertical; min-height: 92px; line-height: 1.45 }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dim); cursor: pointer }
.check input { margin-top: 3px; accent-color: var(--pink); width: 16px; height: 16px }
input[type=range] { width: 100%; accent-color: var(--pink) }
.err { color: #ffb1b8; font-size: 13px; font-weight: 700 }
.ok { color: var(--lime); font-size: 13px; font-weight: 700 }

/* ---------- hero + festival ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 520px; border-bottom: 1px solid var(--line); overflow: hidden; background: #050817 }
.hero canvas.fest { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab }
.hero canvas.fest.drag { cursor: grabbing }
.hero .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 23, .82) 0%, rgba(5, 8, 23, .35) 34%, transparent 55%), linear-gradient(0deg, rgba(7, 10, 28, .9) 0%, transparent 22%) }
.hero .copy { position: absolute; left: max(20px, calc((100vw - 1240px) / 2 + 20px)); top: 9%; max-width: 520px; pointer-events: none }
.hero .copy > * { pointer-events: auto }
.hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; font-weight: 800; text-shadow: 0 6px 40px rgba(0, 0, 0, .6) }
.hero .sub { margin: 18px 0 26px; font-size: 17px; color: #d7d6f5; max-width: 440px; text-shadow: 0 2px 16px rgba(0, 0, 0, .8) }
.hero .formula { font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1.7; color: #fff; margin-top: 26px; text-shadow: 0 2px 14px #000 }
.hero .formula b { color: var(--amber) } .hero .formula i { font-style: normal; color: var(--cyan) }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap }
.fest-stats { position: absolute; right: max(20px, calc((100vw - 1240px) / 2 + 20px)); top: 22px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end }
.fest-stats .pill { background: rgba(7, 10, 28, .7); backdrop-filter: blur(8px) }
.fest-title { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); text-align: center; pointer-events: none }
.fest-title b { font-family: var(--display); font-size: 13px; letter-spacing: .32em; color: #fff; text-shadow: 0 0 18px rgba(255, 79, 191, .8) }
.fest-tools { position: absolute; right: max(20px, calc((100vw - 1240px) / 2 + 20px)); bottom: 22px; display: flex; gap: 8px }
.fest-tools .icon-btn { background: rgba(7, 10, 28, .7); backdrop-filter: blur(8px) }
.fest-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 12px; color: var(--dim); background: rgba(7, 10, 28, .6); padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity .6s }
.stage-pop { position: absolute; z-index: 5; width: 290px; background: rgba(10, 13, 38, .94); border: 1px solid var(--line2); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(10px); transform: translate(-50%, calc(-100% - 18px)); animation: pop .18s ease-out }
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 8px)) scale(.96) } }
.stage-pop .row { display: flex; gap: 12px; align-items: center }
.stage-pop img, .stage-pop canvas { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none }
.stage-pop h3 { font-size: 15px; line-height: 1.2 }
.stage-pop .meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; color: var(--dim) }
.stage-pop .meta b { color: var(--ink) }
.stage-pop .x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--panel2); color: var(--dim) }
.stage-pop .acts { display: flex; gap: 8px }
.stage-pop .acts .btn { flex: 1; padding: 10px }
.stage-banner { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 6; padding: 14px 22px; border-radius: 18px; background: linear-gradient(120deg, rgba(255,79,191,.92), rgba(255,182,72,.92)); color: #1b0716; font-family: var(--display); font-weight: 700; font-size: 16px; box-shadow: 0 16px 50px rgba(255,79,191,.45); animation: bannerIn .5s cubic-bezier(.2,1.6,.4,1), bannerOut .5s 4.7s forwards; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -20px) scale(.9) } }
@keyframes bannerOut { to { opacity: 0; transform: translate(-50%, -10px) } }
.fest-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; pointer-events: none }

/* ---------- song cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px }
.card { position: relative; scroll-snap-align: start; border-radius: var(--r); padding: 10px; background: var(--panel); border: 1px solid var(--line); transition: transform .18s, border-color .2s, background .2s; min-width: 0 }
.card:hover { transform: translateY(-3px); border-color: var(--line2); background: var(--panel2) }
.card .art { position: relative; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: #151a44 }
.card .art img, .card .art canvas { width: 100%; height: 100%; object-fit: cover }
.card .art .play-btn { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; opacity: 0; transform: translateY(6px); transition: .2s }
.card:hover .art .play-btn, .card.playing .art .play-btn { opacity: 1; transform: none }
.card .art .tl { position: absolute; left: 8px; bottom: 8px; right: 62px; display: flex; gap: 5px; flex-wrap: wrap }
.demo-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 -14px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 182, 72, .08); border: 1px solid rgba(255, 182, 72, .35); color: var(--dim); font-size: 14px }
.demo-note b { color: var(--ink) }
.rail::-webkit-scrollbar { height: 8px } .rail::-webkit-scrollbar-track { background: transparent } .rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px } .rail { scrollbar-color: rgba(255, 255, 255, .14) transparent }
.card h3 { font-size: 14px; font-weight: 700; margin: 11px 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ui); font-weight: 800 }
.card .by { margin: 0 3px; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.card .nums { display: flex; justify-content: space-between; gap: 6px; margin: 9px 3px 2px; font-size: 12px; color: var(--dim) }
.card .nums b { color: var(--ink) }
.card.playing { border-color: rgba(255, 79, 191, .55); box-shadow: 0 0 0 1px rgba(255, 79, 191, .25), 0 10px 30px rgba(255, 79, 191, .15) }

/* ---------- home blocks ---------- */
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start }
.feed { display: grid; gap: 8px }
.feed .ev { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); font-size: 14px }
.feed .ev time { margin-left: auto; color: var(--mute); font-size: 12px; white-space: nowrap }
.feed .ev.new { animation: flash 1.4s ease-out }
@keyframes flash { from { background: rgba(255, 79, 191, .25) } }
.steps { display: grid; gap: 12px }
.step { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line) }
.step .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--grad); color: #1b0716; flex: none }
.step b { display: block; margin-bottom: 2px }
.step p { margin: 0; color: var(--dim); font-size: 14px }
.fees { margin-top: 14px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 79, 191, .12), rgba(61, 240, 255, .06)); border: 1px solid rgba(255, 79, 191, .25) }
.fees .bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 12px 0 10px }
.fees .bar i { display: block }
.fees .row { display: flex; justify-content: space-between; font-size: 14px; gap: 10px }
.tiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px }
.tiers div { padding: 12px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--dim) }
.tiers b { display: block; color: var(--ink); font-size: 13px; margin: 6px 0 2px }
.tiers .ic { font-size: 22px }
.empty { padding: 30px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: var(--r) }

/* ---------- waveform ---------- */
.wave { position: relative; height: 72px; cursor: pointer; user-select: none; touch-action: none }
.wave canvas { width: 100%; height: 100%; display: block }
.wave .cm { position: absolute; bottom: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2px solid var(--bg); cursor: pointer; z-index: 2; transition: transform .15s }
.wave .cm:hover { transform: scale(1.35); z-index: 3 }
.wave .tip { position: absolute; bottom: 24px; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: #fff; color: #10122b; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 4; box-shadow: var(--shadow) }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 6px }

/* ---------- song page ---------- */
.song-top { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 34px; margin-top: 34px; align-items: start }
.song-top .cover { border-radius: 22px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line2); background: #151a44 }
.song-top .cover img, .song-top .cover canvas { width: 100%; height: 100%; object-fit: cover }
.song-top h1 { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.05; font-weight: 800; margin: 10px 0 8px; word-break: break-word }
.song-top .by { font-size: 16px; color: var(--dim) }
.song-top .by a { color: var(--ink); font-weight: 800 }
.song-top .by a:hover { text-decoration: underline }
.song-top .tags { display: flex; gap: 6px; flex-wrap: wrap }
.song-play { display: flex; gap: 18px; align-items: center; margin: 22px 0 6px }
.song-play .wave { flex: 1 }
.listened { font-size: 14px; color: var(--dim); margin: 14px 0 18px }
.listened b { color: var(--ink) }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px }
.stat { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line) }
.stat small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mute) }
.stat b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; margin-top: 4px; line-height: 1.25; overflow-wrap: anywhere }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px }
.banner-up { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, rgba(255, 182, 72, .2), rgba(255, 79, 191, .14)); border: 1px solid rgba(255, 182, 72, .45); display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.banner-up b { font-family: var(--display); font-size: 16px; letter-spacing: .02em }
.comment-box { display: flex; gap: 10px; margin-top: 14px }
.comment-box .input { flex: 1 }
.comments { display: grid; gap: 8px; margin-top: 14px; max-height: 520px; overflow: auto }
.cmt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); font-size: 14px }
.cmt .av { width: 30px; height: 30px; border-radius: 50%; flex: none }
.cmt .t { color: var(--cyan); font-weight: 800; cursor: pointer; font-size: 12px }
.cmt .w { color: var(--mute); font-size: 12px }
.tree { overflow-x: auto; padding: 6px 0 10px }
.tree svg { display: block }
.tree a:hover rect { stroke: var(--pink) }
.payouts .p { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px }

/* ---------- charts ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 18px }
.tabs button { padding: 10px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-weight: 800; font-size: 14px }
.tabs button.on { background: var(--ink); color: #12132e; border-color: var(--ink) }
.rows { display: grid; gap: 6px }
.rowx { display: grid; grid-template-columns: 44px 52px 1fr auto auto auto; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: background .15s }
.rowx:hover { background: var(--panel2) }
.rowx.playing { border-color: rgba(255, 79, 191, .5) }
.rowx .rk { font-family: var(--display); font-weight: 700; font-size: 18px; text-align: center; color: var(--dim) }
.rowx .rk.top { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.rowx .art { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #151a44; position: relative }
.rowx .art img, .rowx .art canvas { width: 100%; height: 100% }
.rowx .tt { min-width: 0 }
.rowx .tt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rowx .tt > span { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block }
.rowx .num { text-align: right; font-size: 13px; color: var(--dim); min-width: 74px }
.rowx .num b { display: block; color: var(--ink); font-size: 14px }
.rowx .pb { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--panel2); display: grid; place-items: center }
.rowx .pb svg { width: 14px; height: 14px }
.rowx .pb:hover { background: var(--grad); color: #1b0716 }

/* ---------- artist ---------- */
.artist-head { display: flex; gap: 24px; align-items: center; margin: 36px 0 10px; flex-wrap: wrap }
.artist-head .av { width: 110px; height: 110px; border-radius: 28px; box-shadow: var(--shadow) }
.artist-head h1 { font-size: clamp(28px, 4vw, 44px) }

/* ---------- studio ---------- */
.studio-head { margin: 34px 0 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap }
.studio-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800 }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 }
.stepper button { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font-weight: 800; font-size: 13px }
.stepper button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-style: normal; font-size: 12px }
.stepper button.on { color: var(--ink); border-color: var(--line2) }
.stepper button.on i { background: var(--grad); color: #1b0716 }
.stepper button.done { color: var(--dim) }
.stepper button.done i { background: rgba(185, 255, 92, .2); color: var(--lime) }
.stepper button:disabled { cursor: default; opacity: .6 }
.studio-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start }
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px }
.mode-tabs button { padding: 9px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--dim); font-weight: 800; font-size: 14px }
.mode-tabs button.on { background: var(--ink); color: #12132e }
.prompt-box { position: relative }
.prompt-box .textarea { font-size: 18px; padding: 18px; min-height: 120px; border-radius: 16px }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px }
.examples button { padding: 6px 11px; border-radius: 999px; border: 1px dashed var(--line2); background: transparent; color: var(--dim); font-size: 12px; font-weight: 700 }
.examples button:hover { color: var(--ink); border-style: solid }
.lbl { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin: 16px 0 8px; display: block }
.takes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.take { padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; transition: border-color .2s, background .2s }
.take.on { border-color: var(--pink); background: rgba(255, 79, 191, .07) }
.take .hd { display: flex; align-items: center; gap: 12px }
.take h3 { font-size: 15px }
.take .meta { font-size: 12px; color: var(--dim) }
.take .wave { height: 54px }
.mixer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
.ch { padding: 14px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center }
.ch b { display: block; font-size: 13px; margin-bottom: 8px }
.ch .row { display: flex; gap: 6px; justify-content: center; margin-top: 10px }
.ch .row button { padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-size: 12px; font-weight: 800 }
.ch .row button.on { background: var(--red); color: #fff; border-color: var(--red) }
.sections { display: flex; gap: 6px; flex-wrap: wrap }
.sections .sec { padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); background: var(--panel); text-transform: uppercase; letter-spacing: .05em; color: var(--dim) }
.sections .sec.on { background: rgba(61, 240, 255, .1); border-color: rgba(61, 240, 255, .35); color: #c9fbff }
.sections .sec.fixed { cursor: default; opacity: .75 }
.timeline { display: flex; height: 26px; border-radius: 9px; overflow: hidden; margin: 10px 0 4px; border: 1px solid var(--line) }
.timeline div { display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); border-right: 1px solid rgba(0, 0, 0, .35); overflow: hidden; white-space: nowrap }
.vox { padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 79, 191, .1), rgba(139, 107, 255, .08)); border: 1px solid rgba(255, 79, 191, .28) }
.vox.pulse { animation: voxpulse 1.6s ease-in-out 4 }
@keyframes voxpulse { 50% { box-shadow: 0 0 0 4px rgba(255,79,191,.35), 0 0 40px rgba(255,79,191,.35) } }
.vox .rec { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #ff3b5c; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 59, 92, .15); flex: none }
.vox .rec.on { animation: recpulse 1s infinite }
@keyframes recpulse { 50% { box-shadow: 0 0 0 14px rgba(255, 59, 92, .05) } }
.vox .rec svg { width: 26px; height: 26px }
.vox .count { font-family: var(--display); font-size: 42px; font-weight: 800 }
.meter { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--amber), var(--red)); transition: width .05s }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.cover-opt { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #151a44; padding: 0; transition: transform .15s, border-color .15s }
.cover-opt:hover { transform: scale(1.02) }
.cover-opt.on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 191, .25) }
.cover-opt img, .cover-opt canvas { width: 100%; height: 100%; object-fit: cover }
.cover-opt span { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); text-transform: uppercase; letter-spacing: .05em }
.cover-opt.loading { display: grid; place-items: center; color: var(--dim); font-size: 12px }
.preview-card { position: sticky; top: 84px; padding: 16px; border-radius: 22px; background: rgba(12, 16, 48, .85); border: 1px solid var(--line2); box-shadow: var(--shadow) }
.preview-card .art { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #151a44 }
.preview-card .art img, .preview-card .art canvas { width: 100%; height: 100% }
.preview-card h3 { font-size: 20px; margin: 14px 0 4px; word-break: break-word }
.drop-card { max-width: 560px; margin: 10px auto 0; text-align: center; padding: 30px; border-radius: 26px; background: rgba(12, 16, 48, .85); border: 1px solid var(--line2); box-shadow: var(--shadow) }
.drop-card .art { width: 260px; max-width: 70%; margin: 0 auto 18px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(255, 79, 191, .25) }
.drop-card .art img, .drop-card .art canvas { width: 100%; height: 100% }
.drop-card h2 { font-size: 28px; margin-bottom: 4px }
.progress { display: grid; gap: 8px; margin: 18px 0; text-align: left }
.progress div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--mute) }
.progress div i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px }
.progress div.on { color: var(--ink) }
.progress div.on i { border-color: var(--pink); border-top-color: transparent; animation: spin .8s linear infinite }
.progress div.done { color: var(--dim) }
.progress div.done i { border-color: var(--lime); background: var(--lime); color: #10200a }
.progress div.bad { color: #ffb1b8 }
.progress div.bad i { border-color: var(--red); background: var(--red); color: #fff }
@keyframes spin { to { transform: rotate(360deg) } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90 }
.remix-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(61, 240, 255, .07); border: 1px solid rgba(61, 240, 255, .3); margin-bottom: 18px }
.remix-banner img, .remix-banner canvas { width: 46px; height: 46px; border-radius: 10px; flex: none }
.drop-zone { display: grid; place-items: center; text-align: center; padding: 34px 20px; border-radius: 18px; border: 2px dashed var(--line2); background: var(--panel); cursor: pointer; transition: .2s }
.drop-zone:hover, .drop-zone.over { border-color: var(--pink); background: rgba(255, 79, 191, .06) }
.drop-zone b { font-size: 16px }

.cols.four { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin-top: 16px }

/* ---------- mini player ---------- */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--player-h); background: rgba(9, 12, 34, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line2); transform: translateY(calc(100% + 80px)); transition: transform .3s }
.mini.show { transform: none }
.mini .wrap { height: 100%; display: grid; grid-template-columns: minmax(180px, 290px) auto 1fr auto; gap: 18px; align-items: center }
.mini .np { display: flex; gap: 12px; align-items: center; min-width: 0 }
.mini .np .art { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex: none; background: #151a44 }
.mini .np .art img, .mini .np .art canvas { width: 100%; height: 100% }
.mini .np b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px }
.mini .np span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--dim) }
.mini .ctl { display: flex; gap: 8px; align-items: center }
.mini .ctl .play-btn { width: 44px; height: 44px }
.mini .ctl .play-btn svg { width: 18px; height: 18px }
.mini .ctl .icon-btn { width: 34px; height: 34px; border-radius: 10px }
.mini .bar { display: grid; grid-template-columns: 40px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; color: var(--mute) }
.mini .bar .wave { height: 36px }
.mini .side { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--dim) }
.mini .side input { width: 90px }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; display: inline-block }

/* ---------- toast / modal ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none }
.toast { padding: 12px 16px; border-radius: 14px; background: #fff; color: #11122d; font-weight: 800; font-size: 14px; box-shadow: var(--shadow); animation: up .25s ease-out; max-width: min(92vw, 520px); text-align: center }
.toast.bad { background: #ffd8dc }
@keyframes up { from { opacity: 0; transform: translateY(10px) } }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(3, 4, 14, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s }
@keyframes fade { from { opacity: 0 } }
.modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: #0e1238; border: 1px solid var(--line2); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); position: relative }
.modal h2 { margin-bottom: 12px }
.modal .x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--panel2); color: var(--dim); font-size: 18px }
.share-img { width: 100%; border-radius: 14px; border: 1px solid var(--line) }

/* ---------- footer ---------- */
.foot { margin-top: 70px; padding: 30px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px }
.foot .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; align-items: center }
.foot a { color: var(--dim) } .foot a:hover { color: var(--ink) }
.disclaimer { max-width: 760px; font-size: 12px; line-height: 1.6 }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cols, .studio-grid, .song-top { grid-template-columns: 1fr }
  .preview-card { position: static }
  .tiers { grid-template-columns: repeat(3, 1fr) }
  .takes { grid-template-columns: 1fr }
  .mini .side { display: none }
  .mini .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 12px }
  .mini .bar { display: none }
  .song-top .cover { max-width: 420px }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px }
  .nav { display: none }
  .top .wrap { gap: 10px }
  .ca-pill { padding: 6px 10px; font-size: 12px }
  .ca-pill .ca-tk { display: none }
  .hero { height: 86vh; min-height: 560px }
  .hero .copy { top: auto; bottom: 90px; left: 16px; right: 16px }
  .hero .shade { background: linear-gradient(0deg, rgba(5, 8, 23, .95) 0%, rgba(5, 8, 23, .55) 45%, transparent 70%) }
  .hero .sub { font-size: 15px; margin: 12px 0 18px }
  .hero .formula { display: none }
  .fest-stats { top: 12px; left: 16px; right: 16px; justify-content: flex-start }
  .fest-title { display: none }
  .fest-tools { bottom: 18px; right: 16px }
  .fest-hint { display: none }
  .rowx { grid-template-columns: 30px 46px 1fr auto; gap: 10px }
  .rowx .num.hide-sm { display: none }
  .rowx .art { width: 46px; height: 46px }
  .mixer { grid-template-columns: repeat(2, 1fr) }
  .cols.four { grid-template-columns: 1fr 1fr }
  .covers { grid-template-columns: repeat(3, 1fr) }
  .tiers { grid-template-columns: repeat(2, 1fr) }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .stage-pop { width: min(290px, calc(100vw - 32px)) }
  .mobile-nav { display: flex !important }
  body { padding-bottom: calc(var(--player-h) + 70px) }
  .mini { bottom: 58px }
}
.mobile-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; height: 58px; background: rgba(7, 10, 28, .96); border-top: 1px solid var(--line); justify-content: space-around; align-items: center }
.mobile-nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--dim); padding: 6px 14px }
.mobile-nav a.on { color: var(--ink) }
.mobile-nav a svg { width: 20px; height: 20px }
@media (max-width: 440px) {
  .brand > span { display: none }
}
