/* VYBEON Studio — stylesheet (dark = default, light theme supported) */
:root {
  --bg0: #06051a; --bg1: #0c0930; --bg2: #1a0f52;
  --panel: rgba(16, 12, 48, .78); --panel-2: rgba(26, 19, 74, .62); --inset: rgba(4, 2, 20, .5);
  --stroke: rgba(140, 110, 255, .34); --stroke-2: rgba(90, 180, 255, .28);
  --text: #f4f2ff; --muted: #a8a2d8; --knob: #2a2166;
  --violet: #8b5cf6; --purple: #a855f7; --blue: #3b82f6; --cyan: #22d3ee; --pink: #ec4899; --magenta: #e879f9;
  --glow: 0 0 22px rgba(139, 92, 246, .35); --cap-a: #5b4bf0; --cap-b: #8b3ff2; --cap-c: #2f7cf6;
  --shadow: 0 14px 44px rgba(8, 4, 40, .55);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="light"] {
  --bg0: #f1edff; --bg1: #e6e0ff; --bg2: #d9d0ff;
  --panel: rgba(255, 255, 255, .78); --panel-2: rgba(240, 235, 255, .8); --inset: rgba(80, 60, 170, .09);
  --stroke: rgba(110, 80, 230, .34); --stroke-2: rgba(40, 120, 220, .3);
  --text: #1b1442; --muted: #5d5394; --knob: #d8d0ff;
  --violet: #7c3aed; --purple: #9333ea; --blue: #2563eb; --cyan: #0891b2; --pink: #db2777; --magenta: #c026d3;
  --glow: 0 0 18px rgba(124, 58, 237, .22); --shadow: 0 12px 34px rgba(90, 60, 200, .18);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
[data-theme="light"] { color-scheme: light; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(139, 92, 246, .38), transparent 60%),
    radial-gradient(800px 520px at 96% 4%, rgba(59, 130, 246, .28), transparent 62%),
    radial-gradient(900px 600px at 50% 112%, rgba(168, 85, 247, .3), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, var(--bg2));
  background-attachment: fixed;
}
#bg-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero, main, .foot { position: relative; z-index: 1; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vlogo { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 0 8px rgba(139, 92, 246, .55)); }
.vlogo.big { width: 68px; height: 68px; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; color: var(--muted); }
.noscript { text-align: center; padding: 20px; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px clamp(14px, 2.2vw, 30px) 18px; max-width: 1760px; margin: 0 auto; }
.hero-brand { display: flex; align-items: center; gap: 18px; padding-right: 28px; border-right: 1px solid var(--stroke); }
.wordmark b { display: block; font-size: clamp(30px, 4.2vw, 46px); font-weight: 300; letter-spacing: .3em; line-height: 1; background: linear-gradient(90deg, #fff, #c4b5fd 60%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .wordmark b { background: linear-gradient(90deg, #3b1d9c, #6d28d9 60%, #2563eb); -webkit-background-clip: text; background-clip: text; }
.wordmark span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.hero-tag h1 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
.hero-tag p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.chips { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 96px; height: 84px; padding: 8px; border-radius: 16px; text-decoration: none; color: var(--text); font-size: 12px; line-height: 1.2; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--stroke); transition: transform .15s, box-shadow .2s, border-color .2s; }
.chip .ic { width: 26px; height: 26px; color: var(--cyan); }
.chip:nth-child(2) .ic { color: var(--magenta); } .chip:nth-child(3) .ic { color: var(--purple); } .chip.alt .ic { color: var(--muted); }
.chip:hover, .chip.on { transform: translateY(-2px); box-shadow: var(--glow); border-color: var(--violet); }
.chip.alt { font: inherit; font-size: 12px; cursor: pointer; }

/* ---------- panels ---------- */
main { max-width: 1760px; margin: 0 auto; padding: 0 clamp(12px, 2.2vw, 30px) 20px; }
.panel { position: relative; background: var(--panel); border: 1px solid var(--stroke); border-radius: 20px; padding: 16px 16px 26px; margin-bottom: 38px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 0 70px rgba(124, 80, 255, .07), 0 0 0 1px rgba(80, 160, 255, .05); }
.panel-cap { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); padding: 7px 30px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; color: #fff; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--cap-a), var(--cap-b), var(--cap-c)); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 0 22px rgba(124, 80, 255, .55), 0 6px 16px rgba(0, 0, 0, .35); }
.panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-weight: 300; letter-spacing: .22em; font-size: 14px; }
.titleblock h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.titleblock p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel-head > .seg, .panel-head > .badge { margin-left: auto; }
.badge { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke-2); color: var(--cyan); background: rgba(34, 211, 238, .08); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--inset); border: 1px solid var(--stroke); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.seg button.on { color: #fff; background: linear-gradient(135deg, #6d5dfc, #8b5cf6 55%, #3b82f6); box-shadow: 0 0 14px rgba(124, 80, 255, .55); }
.rec-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(248, 113, 113, .6); background: rgba(239, 68, 68, .1); color: var(--text); font-weight: 500; font-size: 13.5px; }
.rec-btn i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.rec-btn.rec { background: rgba(239, 68, 68, .28); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .18); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; transition: background .15s, box-shadow .2s, border-color .2s; }
.btn:hover:not(:disabled) { border-color: var(--violet); box-shadow: var(--glow); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.sm .ic { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, #6d5dfc, #8b5cf6 55%, #3b82f6); border-color: transparent; color: #fff; }
.link { background: none; border: 0; color: var(--cyan); font-size: 13px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--stroke); border-top-color: var(--cyan); animation: spin .8s linear infinite; display: inline-block; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sliders & knobs ---------- */
.slider { position: relative; touch-action: none; cursor: pointer; user-select: none; }
.slider::before { content: ""; position: absolute; border-radius: 6px; background: rgba(150, 130, 255, .22); }
.slider.h { height: 24px; } .slider.v { width: 30px; height: 100%; min-height: 90px; }
.slider.h::before { left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); }
.slider.v::before { top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%); }
.slider .fill { position: absolute; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--violet)); pointer-events: none; }
.slider.h .fill { left: 0; top: 50%; height: 6px; transform: translateY(-50%); width: calc(var(--f, 0) * (100% - 22px) + 11px); }
.slider.v .fill { bottom: 0; left: 50%; width: 6px; transform: translateX(-50%); height: calc(var(--f, 0) * (100% - 22px) + 11px); background: linear-gradient(0deg, var(--violet), var(--cyan)); }
.slider .thumb { position: absolute; pointer-events: none; background: linear-gradient(180deg, #fff, #cfc8ff); border-radius: 7px; box-shadow: 0 0 12px rgba(139, 92, 246, .7), 0 2px 6px rgba(0, 0, 0, .4); }
.slider.h .thumb { width: 22px; height: 22px; top: 50%; transform: translateY(-50%); left: calc(var(--f, 0) * (100% - 22px)); border-radius: 50%; }
.slider.v .thumb { width: 30px; height: 22px; left: 50%; transform: translateX(-50%); bottom: calc(var(--f, 0) * (100% - 22px)); background: linear-gradient(180deg, #e9e5ff, #8f86d8 48%, #e9e5ff 52%, #b9b0f5); }
.slider.v .thumb::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--violet); transform: translateY(-50%); }
#xfader.slider.h .thumb { width: 26px; border-radius: 6px; }
.knob { width: 46px; height: 46px; cursor: ns-resize; touch-action: none; border-radius: 50%; user-select: none; justify-self: center; }
.knob svg { width: 100%; height: 100%; display: block; overflow: visible; }
.k-track { stroke: rgba(150, 130, 255, .22); } .k-arc { stroke: var(--cyan); filter: drop-shadow(0 0 3px var(--cyan)); }
[data-ch="B"].knob .k-arc { stroke: var(--magenta); filter: drop-shadow(0 0 3px var(--magenta)); }
.k-body { fill: var(--knob); stroke: rgba(180, 160, 255, .45); stroke-width: 1.2; } .k-ptr { stroke: #fff; }
[data-theme="light"] .k-ptr { stroke: #3b1d9c; }
.knob.is-cut .k-body { stroke: #f87171; }

/* ---------- DJ ---------- */
.dj-grid > * { min-width: 0; }
.dj-grid { display: grid; grid-template-columns: minmax(0, 1fr) 252px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.deck { background: var(--panel-2); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; --a1: #22d3ee; --a2: #6366f1; transition: box-shadow .25s, border-color .25s; }
.deck-b { --a1: #f0abfc; --a2: #ec4899; }
.deck.playing { border-color: var(--a1); box-shadow: 0 0 26px -6px var(--a1); }
.deck.drop-ok { outline: 2px dashed var(--cyan); outline-offset: -4px; }
.deck-head { display: flex; align-items: center; gap: 10px; }
.deck-art { width: 46px; height: 46px; border-radius: 9px; border: 1px solid var(--stroke); flex: none; }
.deck-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.deck-tag { font-size: 11px; letter-spacing: .16em; color: var(--a1); font-weight: 700; }
.deck-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-time { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
.deck-time b { color: var(--text); font-weight: 600; }
.wave-wrap { height: 74px; border-radius: 10px; background: var(--inset); border: 1px solid var(--stroke); overflow: hidden; cursor: pointer; }
.wave { width: 100%; height: 100%; display: block; }
.deck-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.platter { position: relative; width: clamp(128px, 15vw, 196px); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; justify-self: center; }
.platter.held { cursor: grabbing; }
.platter .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, var(--a1), var(--a2), var(--a1) 55%, var(--a2), var(--a1)); filter: drop-shadow(0 0 12px var(--a1)); opacity: .9; }
.deck.playing .platter .ring { animation: ringglow 2.2s ease-in-out infinite; }
@keyframes ringglow { 50% { filter: drop-shadow(0 0 22px var(--a1)); opacity: 1; } }
.platter .disc { position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 5px), radial-gradient(circle at 50% 50%, #0b0820 0 24%, #17114a 25%, #0a0724 100%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .6), inset 0 0 30px rgba(0, 0, 0, .7); }
[data-theme="light"] .deck { --a1: #0891b2; --a2: #4f46e5; } [data-theme="light"] .deck-b { --a1: #c026d3; --a2: #db2777; }
[data-theme="light"] .platter .disc { background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 0 1px, transparent 1px 5px), radial-gradient(circle at 50% 50%, #1a1346 0 24%, #2b1f78 25%, #140e3b 100%); }
.platter .disc .vlogo { width: 38%; height: 38%; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .8)); }
.platter .mark { position: absolute; top: 9px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--a1), 0 0 3px #fff; }
.platter:focus-visible { outline-offset: 5px; border-radius: 50%; }
.deck-ctrl { display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 0; }
.bpmbox { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px 10px; border-radius: 14px; background: var(--inset); border: 1px solid var(--stroke); width: 100%; max-width: 170px; }
.bpm { font-family: ui-monospace, Consolas, monospace; font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; }
.bpmbox small { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-top: -4px; }
.pill { border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); color: var(--text); padding: 4px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; margin-top: 4px; transition: .15s; }
.pill:hover { border-color: var(--a1, var(--violet)); }
.pill.on, .pill[aria-pressed="true"] { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; border-color: transparent; box-shadow: 0 0 14px -2px var(--a1); }
.transport { display: flex; gap: 10px; }
.tbtn { min-width: 58px; height: 46px; border-radius: 13px; border: 1.5px solid var(--a1); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); color: var(--text); font-weight: 700; letter-spacing: .08em; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 14px -4px var(--a1); transition: .15s; touch-action: manipulation; }
.tbtn:hover:not(:disabled) { box-shadow: 0 0 20px -2px var(--a1); }
.tbtn:active { transform: scale(.96); }
.tbtn .ic { width: 22px; height: 22px; }
.deck.playing .tbtn.play { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; border-color: transparent; }
.pro-only { display: none !important; }
#dj.is-pro .deck-pro { display: flex !important; } #dj.is-pro .fx.pro-only { display: inline-flex !important; }
.deck-pro { align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 10px; background: var(--inset); }
.deck-pro .tempo { flex: 1 1 130px; min-width: 110px; } .deck-pro .tempo-v { color: var(--text); font-variant-numeric: tabular-nums; }
.deck-pro .pill { margin: 0; padding: 3px 10px; }
.loop-sel select { background: var(--inset); border: 1px solid var(--stroke); border-radius: 8px; padding: 3px 6px; color: var(--text); }
.fxrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 12px; background: var(--inset); border: 1px solid var(--stroke); }
.fx { flex: 1 1 auto; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 500; transition: .15s; display: inline-flex; }
.fx:hover { border-color: var(--a1); }
.fx.on { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; border-color: transparent; box-shadow: 0 0 14px -2px var(--a1); }
.fx.set { border-color: #34d399; color: #34d399; }
.mixer { background: var(--panel-2); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.mx-title { text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.eq-grid { display: grid; gap: 6px; }
.eq-row { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; }
.eq-row span { text-align: center; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.faders { display: flex; justify-content: space-around; height: 150px; }
.vfader { display: grid; grid-template-columns: 9px 30px; grid-template-rows: 1fr auto; gap: 6px; justify-content: center; }
.vfader span { grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.vfader[data-ch="A"] span { color: var(--cyan); } .vfader[data-ch="B"] span { color: var(--magenta); }
.meter, .mm { background: var(--inset); border-radius: 5px; position: relative; overflow: hidden; border: 1px solid var(--stroke); }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lv, 0) * 100%); background: linear-gradient(0deg, #22c55e, #facc15 70%, #ef4444); transition: height .06s linear; }
.vtrack { height: 100%; }
.xf { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; }
.xf span:first-child { color: var(--cyan); } .xf span:last-child { color: var(--magenta); }
.master { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.mm { height: 9px; } .mm i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--lv, 0) * 100%); background: linear-gradient(90deg, #22c55e, #facc15 70%, #ef4444); transition: width .06s linear; }
.takes { margin-top: 14px; display: grid; gap: 8px; }
.take { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--inset); border: 1px solid var(--stroke); border-radius: 12px; }
.take-n { font-size: 13px; color: var(--muted); } .take audio { height: 34px; flex: 1 1 220px; min-width: 180px; }

/* ---------- two-column area ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ai-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ai-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ai-form .status { min-height: 20px; }
.lbl { font-size: 13.5px; color: var(--muted); }
#ai-prompt { width: 100%; resize: vertical; min-height: 84px; flex: 1 1 auto; padding: 12px 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--stroke); color: var(--text); line-height: 1.45; }
#ai-prompt::placeholder { color: var(--muted); opacity: .8; font-style: italic; }
.sel-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sel { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
select { width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--inset); border: 1px solid var(--stroke); color: var(--text); }
select option { background: #151039; color: #f4f2ff; } [data-theme="light"] select option { background: #fff; color: #1b1442; }
.flash { animation: flash 1s; } @keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(34, 211, 238, .8); } 100% { box-shadow: 0 0 0 0 transparent; } }
.gen-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 13px; border: 0; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(90deg, #5b5bf5, #8b5cf6 55%, #7c3aed); box-shadow: 0 0 26px rgba(124, 80, 255, .5); transition: .2s; }
.gen-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 34px rgba(124, 80, 255, .75); }
.gen-btn.busy { background-size: 200% 100%; background-image: linear-gradient(90deg, #5b5bf5, #c084fc, #5b5bf5); animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.status { min-height: 20px; font-size: 13px; color: var(--muted); } .status.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--stroke); border-top-color: var(--cyan); animation: spin .8s linear infinite; vertical-align: -2px; }
.ai-art-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.art-box { position: relative; aspect-ratio: 1.15 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--stroke); box-shadow: var(--glow); cursor: pointer; }
.art-box canvas { width: 100%; height: 100%; display: block; }
.art-play { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(8, 4, 30, .5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); transition: .15s; }
.art-play:hover:not(:disabled) { background: rgba(124, 80, 255, .8); transform: scale(1.06); } .art-play .ic { width: 22px; height: 22px; }
.art-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(0, 0, 0, .4); color: #fff; }
#ai.playing .art-box { animation: ringglow 2.4s ease-in-out infinite; }
.art-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.art-info b { display: block; font-size: 16px; } .art-info small { color: var(--muted); font-size: 12px; }
.art-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-tracks { margin-top: 16px; }
.gt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.card { position: relative; aspect-ratio: 1 / .82; border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); padding: 0; background: var(--inset); text-align: left; transition: transform .15s, box-shadow .2s, border-color .2s; }
.card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 2, 20, .85)); }
.card .c-t, .card .c-m { position: absolute; left: 8px; right: 8px; z-index: 1; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .c-t { bottom: 20px; font-size: 13px; font-weight: 600; } .card .c-m { bottom: 6px; font-size: 11px; opacity: .85; }
.card:hover { transform: translateY(-2px); border-color: var(--violet); } .card.sel { border-color: var(--cyan); box-shadow: 0 0 18px -2px var(--cyan); }
.card.empty { display: grid; place-items: center; border-style: dashed; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; } .card.empty::after { display: none; }

/* ---------- vocal ---------- */
#vocal { display: flex; flex-direction: column; }
.v-body { flex: 1 1 auto; display: grid; grid-template-columns: 184px minmax(0, 1fr) 212px; gap: 14px; align-items: stretch; }
.vleft > div { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; }
.vleft > div[hidden] { display: none; }
.orb { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; background: none; padding: 0; margin-top: 6px; --lv: 0; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--violet); box-shadow: 0 0 24px rgba(139, 92, 246, .65), inset 0 0 24px rgba(139, 92, 246, .35); transform: scale(calc(1 + var(--lv) * .18)); transition: transform .06s linear; }
.orb-ring::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--stroke-2); opacity: .7; }
.orb-core { position: absolute; inset: 15px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #5b4bd6, #231a68 70%); color: #e9e5ff; box-shadow: inset 0 0 18px rgba(0, 0, 0, .4); }
.orb-core .ic { width: 48px; height: 48px; stroke-width: 1.6; }
.orb.rec .orb-ring { border-color: #f87171; box-shadow: 0 0 28px rgba(248, 113, 113, .7), inset 0 0 24px rgba(248, 113, 113, .4); }
.orb.rec .orb-core { background: radial-gradient(circle at 35% 30%, #f43f5e, #5b1030 75%); }
.v-status { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.35; min-height: 38px; font-variant-numeric: tabular-nums; }
.rec-big, .stop-big { width: 100%; padding: 10px; border-radius: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rec-big { background: rgba(124, 80, 255, .15); border: 1px solid var(--violet); } .rec-big .ic { color: #ef4444; }
.stop-big { background: linear-gradient(180deg, #ef4444, #b91c1c); color: #fff; border: 0; box-shadow: 0 0 20px rgba(239, 68, 68, .5); }
.pane-set { align-items: stretch !important; gap: 12px !important; justify-content: flex-start; }
.prow { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.prow.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .prow label { display: flex; flex-direction: column; gap: 4px; }
.prow label .sv { float: right; color: var(--text); } .prow > label { display: flex; flex-direction: row; justify-content: space-between; }
.prow.two > label, .prow:has(select) > label { flex-direction: column; }
.hint { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.vcenter { position: relative; min-height: 220px; border-radius: 16px; background: var(--inset); border: 1px solid var(--stroke); overflow: hidden; }
#v-wave { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.lyrics { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72%; text-align: center; font-size: clamp(17px, 1.55vw, 23px); font-weight: 500; line-height: 1.3; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 3px rgba(0, 0, 0, .8); white-space: pre-line; pointer-events: none; outline: none; border-radius: 10px; }
[data-theme="light"] .lyrics { color: #1b1442; text-shadow: 0 0 12px rgba(255, 255, 255, .9); }
.lyrics.editing { pointer-events: auto; background: rgba(0, 0, 0, .45); outline: 1px dashed var(--cyan); padding: 6px; color: #fff; }
.edit { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--stroke); background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; z-index: 2; }
.edit .ic { width: 15px; height: 15px; }
.vnote { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: var(--muted); z-index: 2; max-width: calc(100% - 24px); }
.vright h3 { margin: 4px 0 8px; font-size: 15px; font-weight: 600; }
.vfx-list { display: flex; flex-direction: column; border-radius: 14px; background: var(--inset); border: 1px solid var(--stroke); }
.vfx-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; font-size: 14px; border-bottom: 1px solid var(--stroke); } .vfx-row:last-child { border-bottom: 0; }
.vfx-row .ic { color: var(--cyan); width: 18px; height: 18px; }
.vfx { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; background: rgba(150, 130, 255, .3); padding: 0; transition: .2s; flex: none; }
.vfx i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.vfx.on { background: linear-gradient(90deg, #6d5dfc, #3b82f6); box-shadow: 0 0 12px rgba(99, 102, 241, .7); } .vfx.on i { transform: translateX(18px); }
.ab { margin-top: 12px; display: flex; } .ab button { flex: 1; padding: 6px 8px; }
.v-transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 8px 12px; border-radius: 14px; background: var(--inset); border: 1px solid var(--stroke); }
.ib { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; transition: .15s; }
.ib:hover:not(:disabled) { background: rgba(124, 80, 255, .25); } .ib.on { color: var(--cyan); }
.ib.play { width: 46px; height: 46px; background: linear-gradient(135deg, #6d5dfc, #8b5cf6); color: #fff; box-shadow: 0 0 18px rgba(124, 80, 255, .6); }
.ib.play .ic { width: 22px; height: 22px; }
.grow { flex: 1; } .vol { width: 110px; } .vol-ic { color: var(--muted); }
.lbl-sr { position: absolute; left: -9999px; }

/* ---------- roadmap / footer ---------- */
.bottom-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; }
.bottom-row .panel { margin-bottom: 20px; padding-bottom: 18px; }
.roadmap h2, .why h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; } .why h3 { font-size: 16px; margin-bottom: 10px; }
.roadmap h2 .ic, .why h3 .ic { color: #fbbf24; }
.roadmap ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.roadmap li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 13px; }
.roadmap li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 12px; color: var(--cyan); font-size: 22px; }
.rn.c1 { --c: #a855f7; } .rn.c2 { --c: #3b82f6; } .rn.c3 { --c: #22c55e; } .rn.c4 { --c: #f97316; } .rn.c5 { --c: #8b5cf6; }
.rn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; color: #fff; border: 2px solid var(--c); background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 75%); box-shadow: 0 0 18px -2px var(--c); }
.roadmap b { font-size: 14px; } .roadmap small { color: var(--muted); } .roadmap em { font-style: normal; color: var(--muted); font-size: 12px; }
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; } .why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.why li { display: flex; align-items: center; gap: 8px; } .why li .ic { width: 16px; height: 16px; color: #34d399; }
.foot { max-width: 1760px; margin: 0 auto; padding: 4px clamp(14px, 2.2vw, 30px) 34px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.logo-script { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-style: italic; font-size: 30px; background: linear-gradient(90deg, #c4b5fd, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- menu & toast ---------- */
.menu { position: fixed; z-index: 1000; min-width: 250px; max-width: min(92vw, 340px); max-height: 70vh; overflow: auto; padding: 6px; border-radius: 14px; background: #130e38; border: 1px solid var(--stroke); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); color: #f4f2ff; }
[data-theme="light"] .menu { background: #fff; color: #1b1442; }
.menu-h { padding: 8px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-i { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 9px; text-align: left; color: inherit; }
.menu-i small { color: var(--muted); font-size: 11.5px; } .menu-i:hover, .menu-i:focus { background: rgba(124, 80, 255, .25); outline: none; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); z-index: 1200; max-width: min(92vw, 520px); padding: 11px 18px; border-radius: 12px; background: #1c1550; color: #fff; border: 1px solid var(--violet); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: .25s; font-size: 14px; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .dj-grid { grid-template-columns: minmax(0, 1fr) 232px minmax(0, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .v-body { grid-template-columns: 184px minmax(0, 1fr) 212px; }
}
@media (max-width: 980px) {
  .dj-grid { grid-template-columns: minmax(0, 1fr); }
  .mixer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
  .mixer .mx-title { grid-column: 1 / -1; } .mixer .faders { height: 130px; } .mixer .xf, .mixer .master { grid-column: 1 / -1; }
  .hero-brand { border-right: 0; padding-right: 0; } .chips { margin-left: 0; }
  .roadmap ol { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } .roadmap li:nth-child(3)::after { display: none; }
  .bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ai-body { grid-template-columns: 1fr; } .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-body { grid-template-columns: 1fr; } .vleft > div { height: auto; } .vcenter { min-height: 190px; }
  .vright { display: grid; grid-template-columns: 1fr; }
  .deck-main { grid-template-columns: 1fr; } .deck-ctrl { width: 100%; } .platter { width: min(62vw, 220px); }
  .panel { padding: 12px 12px 24px; border-radius: 16px; } .why { grid-template-columns: 1fr; }
  .chip { width: calc((100% - 20px) / 3); min-width: 88px; } .chips { width: 100%; }
  .roadmap ol { grid-template-columns: repeat(2, 1fr); } .roadmap li::after { display: none !important; }
  .head-actions { margin-left: 0; width: 100%; } .panel-head > .seg { margin-left: 0; }
  .eq-row { grid-template-columns: 1fr 40px 1fr; } .panel-cap { font-size: 13px; padding: 6px 18px; }
}
@media (hover: none) { .chip:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
