/* By Sayo — sahne ışığı: koyu mor-gri zemin, kehribar spot, okunaklı söz yazısı.
   Düzen: üstte ince marka çubuğu, tek kolon içerik (geniş ekranda 2 kolon kart), altta sabit sekme çubuğu, tam ekran sahne. */
:root {
  --bg: #15111c; --bg2: #1c1726; --surface: #221c2e; --raise: #2d2540; --line: #382f4d; --line2: #2a2338;
  --fg: #f3eefa; --muted: #a497b8; --faint: #6f6485;
  --accent: #ffb547; --on-accent: #2a1a00; --accent-soft: rgba(255, 181, 71, .14);
  --ok: #5fd39a; --ok-soft: rgba(95, 211, 154, .14); --info: #8cb4ff; --info-soft: rgba(140, 180, 255, .14);
  --danger: #ff7a66; --danger-soft: rgba(255, 122, 102, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-s: 10px; --r: 14px; --r-l: 20px;
  --tabs-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f1fa; --bg2: #efe9f6; --surface: #ffffff; --raise: #eee7f6; --line: #ddd3ea; --line2: #e9e2f2;
    --fg: #1c1527; --muted: #675b7c; --faint: #9a8fae;
    --accent: #c97a00; --on-accent: #ffffff; --accent-soft: rgba(201, 122, 0, .12);
    --ok: #17875a; --ok-soft: rgba(23, 135, 90, .12); --info: #2f61c9; --info-soft: rgba(47, 97, 201, .1);
    --danger: #c8442d; --danger-soft: rgba(200, 68, 45, .1);
    --shadow: 0 10px 30px rgba(40, 20, 70, .12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f1fa; --bg2: #efe9f6; --surface: #ffffff; --raise: #eee7f6; --line: #ddd3ea; --line2: #e9e2f2;
  --fg: #1c1527; --muted: #675b7c; --faint: #9a8fae;
  --accent: #c97a00; --on-accent: #ffffff; --accent-soft: rgba(201, 122, 0, .12);
  --ok: #17875a; --ok-soft: rgba(23, 135, 90, .12); --info: #2f61c9; --info-soft: rgba(47, 97, 201, .1);
  --danger: #c8442d; --danger-soft: rgba(200, 68, 45, .1);
  --shadow: 0 10px 30px rgba(40, 20, 70, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 6px; }

/* ---------- kabuk ---------- */
.app { min-height: 100%; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); padding-top: env(safe-area-inset-top, 0px); }
.bar-in, .main { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; display: block; line-height: 1.05; }
.brand small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.bar-band { margin-left: auto; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.main { padding-block: 18px 8px; display: flex; flex-direction: column; gap: 14px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; color: var(--faint); font-size: 11.5px; font-weight: 700; position: relative; border-radius: 12px; }
.tabs button .ic { width: 23px; height: 23px; }
.tabs button[aria-current="page"] { color: var(--accent); }
.tabs button[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.badge { position: absolute; top: 2px; left: calc(50% + 7px); background: var(--danger); color: #fff; border-radius: 999px; font-size: 10.5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; font-style: normal; }

/* ---------- başlıklar ---------- */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phead-t { min-width: 0; flex: 1 1 220px; }
.phead h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 6vw, 34px); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 4px; text-wrap: balance; }
.phead p { margin: 0; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); padding: 4px 0; font-weight: 700; font-size: 14px; align-self: flex-start; }
.back .ic { width: 18px; height: 18px; }

/* ---------- butonlar ---------- */
.btn { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: var(--raise); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13.5px; }
.btn.block { width: 100%; padding-block: 13px; }
.btn.on { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.btn.danger, .icon-btn.danger { color: var(--danger); }
.btn.armed, .icon-btn.armed { background: var(--danger); color: #fff; border-color: transparent; width: auto; padding-inline: 12px; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); display: inline-grid; place-items: center; flex: none; padding: 0; }
.icon-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions.end { justify-content: flex-end; }

/* ---------- arama + çipler ---------- */
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 6px 0 14px; color: var(--muted); }
.searchbox:focus-within { border-color: var(--accent); }
.searchbox input, .searchbox input[type=search] { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 12px 0; outline: none; color: var(--fg); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: baseline; }
.chip small { font-family: var(--f-mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-pressed="true"] small { color: var(--bg); opacity: .7; }

/* ---------- şarkı listesi ---------- */
.slist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.srow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line2); }
.srow:last-child { border-bottom: 0; }
.srow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 2px; background: none; border: 0; text-align: left; border-radius: 10px; }
.srow-main:active { background: var(--raise); }
.srow-n { font-family: var(--f-mono); color: var(--faint); font-size: 12.5px; width: 22px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.srow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.srow-t { font-weight: 700; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-a { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-a i { font-style: normal; margin: 0 5px; color: var(--faint); }
.nolyr { font-style: normal; font-size: 11px; color: var(--danger); margin-left: 8px; font-family: var(--f-mono); }
.tags { display: inline-flex; gap: 5px; flex: none; font-family: var(--f-mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tags > span { background: var(--raise); border-radius: 7px; padding: 4px 7px; line-height: 1; }
.tags small { font-size: 9px; margin-left: 2px; color: var(--muted); }
.tags .t-key { background: var(--accent); color: var(--on-accent); min-width: 32px; text-align: center; }
.slist.compact .srow-main { padding-block: 9px; }
.slist.compact .srow-t { font-size: 15.5px; }
.srow.reorder { padding: 8px 2px; gap: 12px; }
.ord-btns { display: flex; gap: 4px; }
.ord-btns .icon-btn { width: 36px; height: 36px; }
.empty { color: var(--muted); text-align: center; padding: 36px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; list-style: none; }
.empty.small { padding: 14px; }
@media (max-width: 420px) { .srow .tags .t-m:nth-child(3) { display: none; } }

/* ---------- mekan kartları ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.vcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); display: flex; align-items: center; }
.vcard-main { flex: 1; min-width: 0; display: flex; gap: 14px; padding: 16px; background: none; border: 0; text-align: left; align-items: flex-start; }
.vcard-pin { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.vcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcard-body b { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.vcard-body .muted { font-size: 14px; }
.vcard-meta { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }
.play-fab { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 0; display: grid; place-items: center; margin-right: 14px; flex: none; box-shadow: var(--shadow); }
.play-fab .ic { width: 20px; height: 20px; margin-left: 2px; }

/* ---------- panel / çalışma kartı ---------- */
.panel, .wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-h h2 { font-family: var(--f-display); font-size: 19px; margin: 0; font-weight: 700; }
.panel p { margin: 0; }
.wcard.is-new { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.wcard-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wcard-h h3 { font-family: var(--f-display); font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.wcard-h p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.wcard-h p .ic { width: 14px; height: 14px; margin-right: -6px; }
.wnote { margin: 0; background: var(--bg2); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 4px 10px 10px 4px; font-size: 14.5px; white-space: pre-wrap; }
.pill { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: var(--raise); color: var(--muted); white-space: nowrap; flex: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.new { background: var(--accent); color: var(--on-accent); }
.acks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.ack { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg2); font-size: 14px; }
.ack > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ack small { color: var(--muted); font-size: 12px; }
.ack em { font-style: normal; display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.ack em .ic { width: 15px; height: 15px; }
.ack.ok em { color: var(--ok); }
.ack.seen em { color: var(--info); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--raise); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: var(--fg); }
.ack.ok .av { background: var(--ok-soft); color: var(--ok); }

.invite { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invite code { font-family: var(--f-mono); font-size: 28px; font-weight: 700; letter-spacing: .18em; background: var(--bg2); border: 1px dashed var(--line); padding: 8px 14px; border-radius: 12px; user-select: all; }
.people, .catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li, .catlist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.people li:last-child, .catlist li:last-child { border-bottom: 0; }
.people b { display: block; } .people small { color: var(--muted); font-size: 13px; }
.catlist .icon-btn { width: 34px; height: 34px; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; min-width: 0; }

.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; align-self: flex-start; }
.seg.wide { display: flex; align-self: stretch; }
.seg.wide button { flex: 1; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

.banner { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px; }

/* ---------- formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 12px; }
.field > span:first-child, .field-row > span:first-child { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0; color: var(--fg); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.5; font-family: var(--f-body); }
.with-btn { display: flex; gap: 6px; } .with-btn input { flex: 1; } .with-btn .icon-btn { width: 44px; height: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
@media (max-width: 460px) { .grid2 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
.form-err { color: var(--danger); font-size: 14px; margin: 0 0 12px; }
.form-err.ok { color: var(--ok); }
.code-input { font-family: var(--f-mono); font-size: 24px !important; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.picked { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.picked small { color: var(--muted); }

/* ---------- sayfa altı panel (sheet) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(8, 5, 14, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet-bg.out { opacity: 0; transition: opacity .18s; }
.sheet { background: var(--bg); width: 100%; max-width: 680px; max-height: 92%; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.tall { height: 92%; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line2); }
.sheet-h h2 { font-family: var(--f-display); font-size: 20px; margin: 0; font-weight: 700; }
.sheet-b { overflow-y: auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sheet-b > p { margin: 0; }
.sticky-actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); background: var(--bg); padding-block: 10px calc(4px + env(safe-area-inset-bottom, 0px)); margin-top: 4px; border-top: 1px solid var(--line2); }
.searchbox.in-sheet { padding-right: 6px; }
.lres { display: flex; flex-direction: column; gap: 2px; }
.lr { display: flex; gap: 12px; align-items: center; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--line2); text-align: left; width: 100%; }
.lr b { display: block; } .lr small { color: var(--muted); font-size: 13px; }
.lr-tags { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.lprev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.lprev small { color: var(--muted); }
.lprev pre { white-space: pre-wrap; font-family: var(--f-body); font-size: 15px; margin: 10px 0 0; max-height: 46vh; overflow: auto; }
pre.code { font-family: var(--f-mono); font-size: 11.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; max-height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.picks { list-style: none; margin: 0; padding: 0; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-n { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; flex: none; }
.pick.on .pick-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); border-radius: 10px; }
.pick b { display: block; } .pick small { color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 90; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); animation: up .2s ease; }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transition: opacity .3s; }

/* ---------- giriş / kurulum ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(120% 70% at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.gate-card.center { align-items: center; }
.gate-card > .logo { width: 56px; height: 56px; }
.gate-card h1 { font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.gate-card p { margin: 0; }
.gate-card .field { margin: 0; }
.gate-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.gate-brand .logo { width: 60px; height: 60px; }
.gate-brand .eyebrow { margin: 4px 0 0; color: var(--accent); }

/* ---------- sahne modu ---------- */
.stage { --sbg: #0b0910; --sfg: #fbf7ff; --smuted: #9a8fae; --sline: #241e2f; --sbtn: #1d1826; --sacc: #ffb547;
  position: fixed; inset: 0; z-index: 60; background: var(--sbg); color: var(--sfg); display: flex; flex-direction: column; color-scheme: dark; }
.st-h { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); }
.st-meta { flex: 1; min-width: 0; }
.st-t { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-a { color: var(--smuted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .tags > span { background: var(--sbtn); color: var(--sfg); }
.stage .tags .t-key { background: var(--sacc); color: #2a1a00; }
.stage .tags small { color: var(--smuted); }
.beat { width: 12px; height: 12px; border-radius: 50%; background: var(--sline); flex: none; }
.beat.on { animation: beat .14s ease-out forwards; }
.beat.on.accent { animation-name: beat-a; }
.st-progress { height: 2px; background: var(--sline); }
.st-progress i { display: block; height: 100%; width: 0; background: var(--sacc); }
.st-ly { flex: 1; overflow-y: auto; padding: 28px max(22px, env(safe-area-inset-right, 0px)) 48vh max(22px, env(safe-area-inset-left, 0px)); font-family: var(--f-body); font-weight: 700; line-height: 1.36; overflow-wrap: anywhere; outline: none; }
.st-text { white-space: pre-wrap; max-width: 30em; }
.st-note { font-weight: 400; color: var(--sacc); font-size: max(15px, .5em); margin: 0 0 1em; border-left: 3px solid var(--sacc); padding-left: 10px; }
.ln { margin: 0 0 .32em; color: color-mix(in srgb, var(--sfg) 42%, transparent); transition: color .25s, transform .25s; transform-origin: left center; }
.ln.past { color: color-mix(in srgb, var(--sfg) 28%, transparent); }
.ln.now { color: var(--sfg); transform: scale(1.04); }
.st-c { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--sline); background: #100d16;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.st-grp { display: flex; align-items: center; gap: 8px; }
.st-grp.st-mid { flex: 1 1 260px; justify-content: center; }
.st-btn { min-width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--sline); background: var(--sbtn); color: var(--sfg); display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.st-btn small { font-size: 12px; }
.st-btn.toggle[aria-pressed="true"] { background: var(--sacc); color: #2a1a00; border-color: transparent; }
.st-play { width: 58px; height: 58px; border-radius: 50%; background: var(--sacc); color: #2a1a00; border: 0; display: grid; place-items: center; flex: none; }
.st-play .ic { width: 24px; height: 24px; }
.is-playing .st-play { box-shadow: 0 0 0 6px rgba(255, 181, 71, .18); }
.st-v { font-family: var(--f-mono); font-size: 12.5px; color: var(--smuted); min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.st-speed { display: inline-flex; align-items: center; gap: 8px; }
.st-speed input { width: 140px; accent-color: var(--sacc); }
@media (max-width: 520px) {
  .st-h .tags .t-m:nth-child(3) { display: none; }
  .st-c { justify-content: center; }
  .st-grp.st-mid { order: -1; flex-basis: 100%; }
  .st-speed input { width: 110px; }
  .st-btn small { display: none; }
  .st-btn.toggle small { display: inline; }
}

@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes beat { from { background: #ffffff; transform: scale(1.4); } to { background: var(--sline); transform: scale(1); } }
@keyframes beat-a { from { background: var(--sacc); transform: scale(1.7); } to { background: var(--sline); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.hint { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r); padding: 12px 12px 12px 14px; font-size: 14px; }
.hint b { font-weight: 700; }
.hint-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
