@font-face { font-family: "Inter Tight"; src: url("/fonts/inter_tight.ttf") format("truetype"); font-weight: 100 900; }
:root { --base: #0E0B18; --glass: rgba(255,255,255,.07); --line: rgba(255,255,255,.12); --w85: rgba(255,255,255,.85); --w60: rgba(255,255,255,.6); --w40: rgba(255,255,255,.4); --warm: #FFC766; --c: #FFC766; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--base); color: #fff; font-family: "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
.hidden { display: none !important; }
h1, h2, p { margin: 0; font-weight: 400; }
svg { display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sky { position: fixed; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: .5; }
.o1 { width: 420px; height: 420px; right: -190px; top: -170px; background: radial-gradient(circle, #FF7A59, rgba(255,122,89,0) 68%); }
.o2 { width: 460px; height: 460px; left: -230px; top: 420px; background: radial-gradient(circle, #6A4CFF, rgba(106,76,255,0) 68%); }

main { position: relative; max-width: 520px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
header { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 16px; }
h1 { font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--w85); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #FFB86B; }
.pill.ok i { background: #7EE0B8; box-shadow: 0 0 8px #7EE0B8; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 18px; margin-bottom: 12px; }
.head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.foot { text-align: center; font-size: 11.5px; color: var(--w40); margin-top: 14px; }

/* Mic card */
.mic { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 22px; }
.big { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: transform .15s; }
.big:active { transform: scale(.96); }
.big svg { width: 46px; height: 46px; fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
.big.live { background: var(--c); border-color: transparent; }
.big.live svg { fill: #141218; stroke: #141218; }
.big .halo { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--c); opacity: calc(.12 + var(--lv, 0) * .88); transform: scale(calc(1 + var(--lv, 0) * .18)); transition: transform .06s, opacity .06s; }
.big.muted { background: rgba(255,255,255,.12); }
.big.muted svg { fill: #fff; stroke: #fff; opacity: .55; }
.big.busy .halo { border-color: rgba(255,255,255,.6); border-top-color: transparent; opacity: 1; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mic h2 { margin-top: 18px; font-size: 19px; }
.mic p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--w60); max-width: 300px; }
.ctl { display: flex; gap: 10px; margin-top: 18px; }
.chip { height: 40px; padding: 0 18px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip.on { background: #fff; color: #141218; }
.slider { width: 100%; margin-top: 18px; text-align: left; }
.slider label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--w60); margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--c); }
.segs { display: flex; gap: 6px; }
.segs button { flex: 1; height: 34px; border-radius: 17px; font-size: 13px; font-weight: 600; color: var(--w60); background: rgba(255,255,255,.06); }
.segs button.on { color: #141218; background: #fff; }
.primary { display: block; width: 100%; height: 48px; margin-top: 16px; border-radius: 24px; background: #fff; color: #141218; font-size: 16px; font-weight: 700; text-align: center; line-height: 48px; text-decoration: none; }
.small { height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; color: #141218; font-size: 13px; font-weight: 700; }
.ghost { height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; }

/* Now singing */
.now { display: flex; align-items: center; gap: 12px; }
.now .th { width: 72px; height: 40px; }
.now .tx { flex: 1; min-width: 0; }
.k { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--warm); }

/* Search + lists */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 23px; background: rgba(255,255,255,.08); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--w60); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; -webkit-appearance: none; }
.search input::placeholder { color: var(--w40); }
#results:not(:empty) { margin-top: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.item:first-child { border-top: 0; }
.th { width: 96px; height: 54px; border-radius: 10px; background: #222 center/cover; flex: none; }
.tx { flex: 1; min-width: 0; }
.t { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s { margin-top: 3px; font-size: 12px; color: var(--w60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 22px; font-weight: 300; }
.add.done { background: #7EE0B8; color: #141218; font-size: 16px; font-weight: 700; }
.msg { padding: 14px 4px 4px; font-size: 13.5px; color: var(--w60); text-align: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.st { font-size: 12px; font-weight: 600; color: var(--w60); flex: none; }
.st.ready { color: #7EE0B8; }
.st.err { color: #FF9F8B; }
.x { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--w60); font-size: 16px; }

.sheet { position: fixed; inset: 0; display: grid; place-items: end center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(5,4,10,.6); }
.sheet .card { width: 100%; max-width: 480px; background: rgba(32,28,46,.96); padding: 24px 20px 20px; }
.sheet p { margin-top: 6px; font-size: 13.5px; color: var(--w60); }
.sheet input { width: 100%; height: 48px; margin-top: 16px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 17px; outline: 0; }
