/* AmusiCoLab · stage-dark with studio gold. Layout: sticky header, single centered column, cards in auto-fill grids. */
[hidden] { display: none !important; }
:root {
  --ink: #17111c; --panel: #221a29; --panel-2: #2b2133; --line: #3a2f43;
  --text: #f4eef6; --muted: #b3a6bb; --gold: #f2b33d; --on-gold: #1c1300;
  --teal: #3fc1b0; --live: #ff4a4a; --plat: #d9dde2;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--text); font: 16px/1.55 var(--body); min-height: 100vh; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: 26px; }
h3 { margin: 0; font-size: 18px; }
p { margin: 0; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
main { padding-block: 24px 80px; display: grid; gap: 32px; }
main > *, section > * { min-width: 0; }
section { display: grid; gap: 14px; }

/* header */
header.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgb(34 42 51 / .96); backdrop-filter: blur(8px); z-index: 20; min-height: 91px; }
.bar { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.logo img { height: 66px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.right { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 16px; }
.dot-n { position: absolute; top: -4px; right: -4px; background: var(--live); color: #fff; border-radius: 999px; font: 700 11px/1 var(--body); padding: 3px 5px; }
.me-link { display: flex; text-decoration: none; }
.pop { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 90px; width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 20px 50px #000a; display: grid; gap: 10px; max-height: 70vh; overflow-y: auto; }
.pop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.notes li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; }
.notes li.unread { background: var(--panel-2); }
.notes a { color: var(--text); text-decoration: none; }
.menu { display: grid; gap: 2px; }
.menu a, .menu button { text-align: left; background: none; border: 0; color: var(--text); text-decoration: none; padding: 10px; border-radius: 8px; font: 600 15px/1 var(--body); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--panel-2); }
@media (max-width: 760px) { .bar { flex-wrap: wrap; gap: 8px 10px; padding-block: 10px 6px; } .logo img { height: 52px; } .nav { order: 3; flex-basis: 100%; margin-inline: -12px; } .right { margin-left: auto; gap: 6px; } .me-link { display: none; } .pop { top: 116px; } }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font: 700 15px/1 var(--body); cursor: pointer; text-decoration: none; color: var(--text); background: var(--panel-2); white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.live { background: var(--live); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
label { display: grid; gap: 6px; font: 500 12px/1.2 var(--mono); letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: 400 16px/1.3 var(--body); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 400 15px/1.3 var(--body); color: var(--text); }
.check input { width: auto; accent-color: var(--gold); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font: 600 14px/1 var(--body); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.pick label:has(input:checked) { border-color: var(--gold); background: #f2b33d22; }
.pick input { width: auto; accent-color: var(--gold); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); flex-wrap: wrap; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 14px/1 var(--body); padding: 10px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.notice { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.notice.ok { border: 1px solid var(--teal); color: var(--teal); }
.notice.warn { border: 1px solid var(--gold); color: var(--gold); }
.notice.err { border: 1px solid var(--live); color: #ff9a9a; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--panel-2); border: 1px solid var(--gold); padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 10px 30px #0008; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel { padding: 18px; display: grid; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.avatar { --h: 40; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; font: 900 16px/1 var(--display); letter-spacing: .5px; color: #1b1220; background: linear-gradient(135deg, hsl(var(--h) 80% 70%), hsl(calc(var(--h) + 40) 70% 55%)); }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.xl { width: 96px; height: 96px; font-size: 36px; }
.badge { font: 700 11px/1 var(--body); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.badge.gold { background: var(--gold); color: var(--on-gold); }
.badge.plat { background: linear-gradient(90deg, #c3c9d0, #fff); color: #222; }
.badge.red { background: var(--live); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--text); }
.chip.ok { border-color: var(--teal); color: var(--teal); }
.artist-card, .clip-card, .collab-card, .live-card { padding: 14px; display: grid; gap: 10px; color: var(--text); text-decoration: none; align-content: start; }
.artist-card:hover, .clip-card:hover, .collab-card:hover, .live-card:hover { border-color: var(--gold); }
.thumb { aspect-ratio: 16/9; border-radius: 8px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #f2b33d40, transparent 60%), radial-gradient(circle at 70% 70%, #3fc1b030, transparent 60%), var(--panel-2); }
.thumb img { width: 64px; height: auto; }
.thumb .pill { position: absolute; top: 8px; left: 8px; }
.thumb .pill.r { left: auto; right: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #000a; color: var(--text); }
.pill.red { background: var(--live); color: #fff; }
.x { color: var(--muted); font-weight: 700; }
.meter { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.empty { padding: 24px; display: grid; gap: 10px; justify-items: start; }

/* hero */
.hero { display: grid; gap: 14px; padding-block: 12px 0; }
.hero p.lede { max-width: 60ch; color: var(--muted); font-size: 18px; }

/* stage / player */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.layout > * { min-width: 0; }
.stage { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; max-width: 100%; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.stage .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.stage .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); pointer-events: none; }
.stage .unmute { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; }
.floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.floats span { position: absolute; bottom: 10px; font-size: 30px; animation: rise 2.4s ease-out forwards; }
@keyframes rise { from { transform: translateY(0) scale(.8); opacity: 1; } to { transform: translateY(-260px) scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .floats span { animation-duration: .01s; } }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.reacts button { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 20px; width: 46px; height: 42px; cursor: pointer; }
.reacts button:active { transform: scale(.92); }
.chat { display: flex; flex-direction: column; height: min(560px, 70vh); }
.chat .head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 700; }
.chat .log { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.chat .log b { color: var(--gold); margin-right: 6px; }
.chat .log b.artist { color: var(--teal); }
.chat .log .sys { color: var(--muted); font-style: italic; }
.chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } .chat { height: 380px; } }

/* profile */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head .grow { display: grid; gap: 8px; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.stats b { color: var(--text); font-size: 16px; }
.modal-bg { position: fixed; inset: 0; background: #000b; display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }

/* studio */
.field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.field code { font: 500 13px/1.3 var(--mono); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; min-width: 0; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.status { font: 500 13px/1.4 var(--mono); }
.status.on { color: var(--teal); }
.livebar { position: sticky; top: 91px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: #2a1016; border: 1px solid var(--live); box-shadow: 0 10px 30px #0008; }
.livebar.ended { background: var(--panel); border-color: var(--line); }
.livebar .stats { align-items: center; font: 500 14px/1 var(--mono); color: var(--text); }
.livebar .timer { font-variant-numeric: tabular-nums; font-size: 18px; }
.livebar .btn.end { background: #fff; color: #b3001b; font-size: 16px; padding: 12px 22px; }
.livebar .confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@keyframes blink { 50% { opacity: .35; } }
.livebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: blink 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .livebar .dot { animation: none; } }
@media (max-width: 760px) { .livebar { top: 116px; } .livebar .btn.end, .livebar .confirm, .livebar .confirm .btn { flex: 1; } }
.relay { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.relay .s-live { color: var(--teal); } .relay .s-error { color: #ff9a9a; } .relay .s-connecting { color: var(--gold); }
.auth { max-width: 460px; margin-inline: auto; width: 100%; }

.hero-logo { width: min(620px, 100%); height: auto; display: block; margin-inline: -8px; }

/* collab stage */
.tiles { display: grid; gap: 6px; grid-template-columns: 1fr; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; max-width: 100%; }
.tiles[data-n="2"] { grid-template-columns: 1fr 1fr; }
.tiles[data-n="3"], .tiles[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile { position: relative; background: #0d0a10; min-height: 0; min-width: 0; }
.tile .vid, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-name { position: absolute; left: 8px; bottom: 8px; font: 600 13px/1 var(--body); background: #000a; padding: 5px 8px; border-radius: 6px; }
.tile audio { display: none; }
.tiles:empty::after { content: "Connecting to the stage…"; color: var(--muted); display: grid; place-items: center; height: 100%; }
.crash-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #f2c14e1f; border: 1px solid #f2c14e; color: #fff1c1; border-radius: 12px; padding: 12px 16px; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px #f2c14e22; } }
@media (prefers-reduced-motion: reduce) { .crash-banner { animation: none; } }
.btn.plat-btn { background: linear-gradient(90deg, #f2c14e, #fff1c1); color: #1c1300; }
.chip.plat { border-color: #f2c14e; color: #fff1c1; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.plan { align-content: start; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 900 44px/1 var(--display); }
.price-sm { font: 900 26px/1 var(--display); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 32px; }
.faq-grid > div { display: grid; gap: 6px; }
.badge.pro { background: var(--teal); color: #042a26; }
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.hero .seg { justify-self: start; }
.usage div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.usage b { font: 900 28px/1 var(--display); }

/* legal pages + footer */
.legal { max-width: 72ch; display: grid; gap: 14px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 24px; margin-top: 18px; }
.legal p, .legal li { color: #ddd3e2; line-height: 1.7; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal ul ul { margin-top: 6px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }
.consent { font-size: 13px; color: var(--muted); }

/* concert gate */
.gate { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, #f2b33d33, transparent 60%), rgb(10 8 14 / .92); }
.gate h2 { font-size: clamp(22px, 4vw, 32px); }
