/* RC-505mkII trainer v2 — violet stage, lime accents, rails + overlay drawers, YouTube-Music-style player */
:root {
  --bg: #0e0a1c; --bg-2: #150f29; --bg-3: #1d1636; --bg-4: #261d45; --line: #2b2150; --line-2: #3a2d66;
  --text: #f1edff; --muted: #a79bc9; --accent: #c6ff3d; --accent-2: #9fe01f; --accent-ink: #1a2400; --violet: #7c3aed; --magenta: #b026d3; --green: #3fe3a6; --amber: #ffb347; --red: #ff4b57;
  --head-h: 56px; --bar-h: 100px; --rail-w: 56px; --drawer-w: 420px;
  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif; --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
kbd { font: 600 11px/1 var(--font-ui); background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; }
.app { position: fixed; inset: 0; display: grid; grid-template-rows: var(--head-h) 1fr var(--bar-h); }

/* header */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; background: linear-gradient(180deg, #1a1233, var(--bg-2)); border-bottom: 1px solid var(--line); z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); justify-self: start; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg, #d7ff5a, #86c000); display: grid; place-items: center; font: 700 12px var(--font-display); color: var(--accent-ink); letter-spacing: .5px; box-shadow: 0 4px 14px rgba(198,255,61,.35); }
.brand-img { height: 32px; width: auto; }
.brand-text { font: 700 14px var(--font-display); letter-spacing: 1.5px; }
.top-center { text-align: center; line-height: 1.15; }
.top-title { display: block; font: 700 14px var(--font-display); letter-spacing: 1px; }
.top-sub { display: block; font-size: 11.5px; color: var(--muted); }
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--muted); }
.pill-ok { color: var(--accent); border-color: rgba(198,255,61,.4); }
.pill-bad { color: var(--red); border-color: rgba(255,75,87,.4); }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-3); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: #4c3b86; }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(198,255,61,.5); }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 8px; }

/* body: rails + stage */
.body { display: grid; grid-template-columns: var(--rail-w) 1fr var(--rail-w); min-height: 0; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: var(--bg-2); border-right: 1px solid var(--line); z-index: 7; }
.rail-right { border-right: 0; border-left: 1px solid var(--line); }
.rail-btn { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; }
.rail-btn:hover { color: var(--text); background: var(--bg-3); border-color: var(--line-2); }
.rail-btn.is-on { color: var(--accent); background: rgba(198,255,61,.1); border-color: rgba(198,255,61,.35); }
.rail-toggle { color: var(--text); margin-bottom: 6px; }
.rail-spacer { flex: 1; }
.rail-lang { font: 700 11px var(--font-display); letter-spacing: .5px; }

.stage { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(1300px 560px at 50% 112%, #2a1a52 0%, #160f2b 45%, var(--bg) 75%); }
.stage-glow { position: absolute; left: 50%; bottom: 4%; width: 80%; height: 62%; transform: translateX(-50%); pointer-events: none; will-change: transform; background: radial-gradient(ellipse at 50% 100%, rgba(139,72,255,.42) 0%, rgba(176,38,211,.16) 38%, transparent 66%); filter: blur(12px); }
.panel-wrap { position: relative; width: min(100%, calc((100vh - var(--head-h) - var(--bar-h) - 72px) * 1.826)); max-width: 1500px; aspect-ratio: 1245 / 682; margin: 0 24px; }
.panel { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.panel-shadow { position: absolute; pointer-events: none; border-radius: 3%; box-shadow: 0 30px 50px rgba(0,0,0,.65); }
.panel-shadow-top { left: 0; top: 0; width: 100%; height: 70.2%; }
.panel-shadow-bottom { left: 3.86%; top: 38.7%; width: 92.2%; height: 61.3%; border-radius: 0 0 2% 2%; }
.panel-floor { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(168,85,247,.45), transparent 70%); filter: blur(12px); pointer-events: none; }
.stage-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 12px; white-space: nowrap; opacity: .75; pointer-events: none; }

/* LCD mirror */
.lcd-mirror { position: absolute; top: 14px; right: 14px; width: 330px; background: rgba(21,15,41,.96); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 6; }
.lcd-mirror-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; font-weight: 700; font-size: 12px; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
.lcd { margin: 12px; height: 150px; border-radius: 6px; background: linear-gradient(180deg, #252568 0%, #31338a 45%, #22245c 100%); box-shadow: inset 0 2px 8px rgba(0,0,0,.7), inset 0 0 0 1px #1b1c4a; color: #eef0ff; font-family: 'Pixelify Sans', 'VT323', monospace; position: relative; padding: 8px 10px; }
.lcd-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.lcd-big { text-align: center; font-size: 46px; font-weight: 700; line-height: 1; margin-top: 4px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.lcd-sub { text-align: center; font-size: 20px; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.lcd-cols { position: absolute; left: 8px; right: 8px; bottom: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
.lcd-cols b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; } .lcd-cols i { display: block; font-style: normal; font-size: 10.5px; white-space: nowrap; overflow: hidden; }

/* drawers overlay the stage */
.drawer { position: absolute; top: 0; bottom: 0; width: var(--drawer-w); max-width: 100%; background: rgba(21,15,41,.97); display: grid; grid-template-rows: auto auto 1fr; transition: transform .28s cubic-bezier(.2,.8,.2,1); z-index: 8; box-shadow: 0 0 40px rgba(0,0,0,.45); }
.drawer-left { left: 0; border-right: 1px solid var(--line-2); transform: translateX(-102%); }
.drawer-right { right: 0; border-left: 1px solid var(--line-2); transform: translateX(102%); grid-template-rows: auto 1fr auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 700 13px var(--font-display); letter-spacing: 1px; }
.drawer-tools { display: grid; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow: auto; padding: 12px 14px; scrollbar-width: thin; }
.search { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); outline: none; }
.search:focus { border-color: rgba(198,255,61,.5); }
.select { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.chip.is-on, .chip:hover { color: var(--text); border-color: #4c3b86; background: var(--bg-3); }
.chip.is-on { border-color: rgba(198,255,61,.55); color: var(--accent); }
.mk summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 4px 0; }
.mk-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; }
.mk input[type=file] { padding-top: 8px; font-size: 12px; }

/* cards */
.card { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); margin-bottom: 8px; cursor: pointer; }
.card:hover { border-color: #4c3b86; }
.card.is-now { border-color: rgba(198,255,61,.5); }
.card-thumb { width: 64px; height: 46px; border-radius: 8px; background: var(--bg-4) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-main { min-width: 0; }
.card-title { font-weight: 700; font-size: 13px; line-height: 1.3; }
.card-meta { color: var(--muted); font-size: 11px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.tag { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 10.5px; white-space: nowrap; }
.tag-basic { color: var(--green); } .tag-intermediate { color: var(--amber); } .tag-advanced { color: var(--red); }
.card-sum { color: #cfc6ea; font-size: 12px; line-height: 1.4; margin-top: 4px; }
.card-fav { color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; }
.card-fav.is-on { color: var(--accent); }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }
.detail-back { margin-bottom: 10px; }
.detail h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.3; }
.detail .video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; margin: 10px 0; }
.detail p { color: #cfc6ea; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 600; text-decoration: none; color: var(--text); }
.btn-primary { background: linear-gradient(180deg, #d4ff5c, #9fe01f); border-color: #6f9c0c; color: var(--accent-ink); }
.btn:hover { border-color: #4c3b86; } .btn-primary:hover { filter: brightness(1.05); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; line-height: 1.45; font-size: 13.5px; }
.msg-user { align-self: flex-end; background: rgba(198,255,61,.12); border: 1px solid rgba(198,255,61,.35); }
.msg-teacher { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); }
.msg-sys { align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.msg-actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; } .msg-actions .tag { cursor: pointer; }
.chat-form { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mic-btn { width: 40px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--muted); display: grid; place-items: center; touch-action: none; user-select: none; }
.mic-btn.is-rec { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.send { width: 42px; height: 38px; border-radius: 9px; border: 1px solid #6f9c0c; background: linear-gradient(180deg, #d4ff5c, #9fe01f); color: var(--accent-ink); }

/* bottom sheets (steps = lyrics, queue) */
.sheet { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0); width: min(760px, 100% - 40px); height: 48%; background: rgba(21,15,41,.97); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 16px 16px 0 0; display: grid; grid-template-rows: auto 1fr; z-index: 9; box-shadow: 0 -16px 40px rgba(0,0,0,.45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font: 700 13px var(--font-display); letter-spacing: 1px; }
.sheet-tabs .chip { height: 32px; padding: 0 14px; font-size: 13px; }
.sheet { height: 56%; width: min(820px, 100% - 40px); }
.sheet-body { overflow: auto; padding: 12px 16px; scrollbar-width: thin; }
.step { padding: 12px 14px; border-radius: 10px; margin-bottom: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; cursor: pointer; border: 1px solid transparent; }
.step:hover { background: var(--bg-3); }
.step.is-current { color: var(--text); background: var(--bg-3); border-color: rgba(198,255,61,.55); font-size: 17px; }
.step.is-done { color: #7fd1a8; }
.step-n { font-weight: 800; margin-right: 8px; color: var(--accent); }
.qitem { display: grid; grid-template-columns: 24px 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.qitem:hover { background: var(--bg-3); } .qitem.is-now { background: rgba(198,255,61,.08); }
.qitem .n { color: var(--muted); font-size: 12px; text-align: center; } .qitem.is-now .n { color: var(--accent); }
.qitem .th { width: 48px; height: 34px; border-radius: 6px; background: var(--bg-4) center/cover; display: grid; place-items: center; color: var(--muted); }
.qitem .ti { font-weight: 600; font-size: 13px; line-height: 1.25; } .qitem .su { color: var(--muted); font-size: 11.5px; }
.qitem .rm { color: var(--muted); font-size: 16px; padding: 4px 8px; }

/* player bar */
.player { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto minmax(260px, 1fr); align-items: center; gap: 16px; padding: 0 18px; background: linear-gradient(0deg, #120c24, var(--bg-2)); border-top: 1px solid var(--line); z-index: 5; }
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--bg-4) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); flex: none; overflow: hidden; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-text { min-width: 0; }
.np-title { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.np-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-fav { font-size: 18px; flex: none; } .np-fav.is-on { color: var(--accent); border-color: rgba(198,255,61,.5); }
.transport { display: grid; gap: 6px; justify-items: center; width: 320px; }
.transport-btns { display: flex; align-items: center; gap: 14px; }
.tr-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.tr-btn:hover { background: var(--bg-3); }
.tr-play { width: 44px; height: 44px; background: var(--text); color: #120c24; }
.tr-play:hover { background: #fff; }
.progress { position: relative; width: 100%; height: 4px; border-radius: 2px; background: var(--line-2); cursor: pointer; }
.progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--accent); transition: width .2s; }
.progress-steps { position: absolute; inset: 0; }
.progress-steps i { position: absolute; top: -2px; width: 2px; height: 8px; background: rgba(255,255,255,.25); }
.transport-info { color: var(--muted); font-size: 11.5px; }
.orb-wrap { display: grid; justify-items: center; gap: 4px; }
.orb { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(198,255,61,.35); transition: transform .12s; }
.orb-core { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6ff8a, #9fe01f 55%, #5d8a12); box-shadow: 0 6px 22px rgba(198,255,61,.45); display: grid; place-items: center; transition: transform .15s; }
.orb-bars { display: flex; gap: 3px; align-items: center; height: 18px; opacity: 0; transition: opacity .2s; }
.orb-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent-ink); }
.orb[data-state="idle"] .orb-core { animation: orbBreath 3.2s ease-in-out infinite; }
.orb[data-state="listening"] .orb-ring { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(198,255,61,.12), 0 0 24px rgba(198,255,61,.35); transform: scale(calc(1 + var(--level, 0) * 0.35)); }
.orb[data-state="listening"] .orb-core { transform: scale(calc(1 + var(--level, 0) * 0.12)); }
.orb[data-state="thinking"] .orb-ring { border: 2px solid transparent; background: conic-gradient(from 0deg, transparent 0 60%, var(--accent) 100%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbSpin 1s linear infinite; }
.orb[data-state="speaking"] .orb-bars { opacity: 1; }
.orb[data-state="speaking"] .orb-bars i { animation: orbBar .7s ease-in-out infinite; }
.orb[data-state="speaking"] .orb-bars i:nth-child(2) { animation-delay: .1s } .orb[data-state="speaking"] .orb-bars i:nth-child(3) { animation-delay: .2s } .orb[data-state="speaking"] .orb-bars i:nth-child(4) { animation-delay: .3s } .orb[data-state="speaking"] .orb-bars i:nth-child(5) { animation-delay: .4s }
.orb[data-state="off"] .orb-core { background: radial-gradient(circle at 35% 30%, #6d6a80, #3a3550 60%); box-shadow: none; }
.orb-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@keyframes orbBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbBar { 0%,100% { height: 5px; } 50% { height: 18px; } }
.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bar-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font-weight: 600; }
.bar-btn:hover { border-color: #4c3b86; }
.bar-btn[aria-pressed="true"] { border-color: rgba(198,255,61,.55); color: var(--accent); background: rgba(198,255,61,.08); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 20; }
.modal-card { width: 480px; max-width: calc(100vw - 40px); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; }
.modal-card .row { display: grid; gap: 6px; padding: 10px 16px; }
.modal-card .hint { padding: 0 16px 16px; color: var(--muted); font-size: 12.5px; margin: 0; }
@media (max-width: 1180px) { :root { --drawer-w: 360px; } .transport { width: 220px; } .stage-hint { display: none; } .player { grid-template-columns: minmax(180px, 1fr) auto auto minmax(160px, 1fr); gap: 10px; } .bar-btn span { display: none; } }

/* guided tour */
.tour { position: fixed; inset: 0; z-index: 50; display: none; }
.tour.is-on { display: block; }
.tour-spot { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(6,3,16,.78), 0 0 0 3px rgba(198,255,61,.85), 0 0 30px rgba(198,255,61,.45); transition: left .25s, top .25s, width .25s, height .25s; pointer-events: none; }
.tour-card { position: absolute; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); transition: left .25s, top .25s; }
.tour-n { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.tour-title { margin: 6px 0 6px; font: 700 15px var(--font-display); }
.tour-text { margin: 0 0 14px; color: #d8d1ee; line-height: 1.5; font-size: 13.5px; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-spacer { flex: 1; }
.tour-prev { width: 38px; padding: 0; justify-content: center; }
.tour-prev:disabled { opacity: .4; cursor: default; }
body.tour-on .drawer, body.tour-on .sheet { pointer-events: none; }

/* key map mode */
.keymap { position: fixed; inset: 0; z-index: 40; background: rgba(6,3,16,.55); display: grid; align-items: start; justify-items: center; padding-top: 70px; pointer-events: auto; }
.keymap-card { width: min(720px, calc(100vw - 40px)); background: var(--bg-2); border: 1px solid rgba(198,255,61,.5); border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); pointer-events: auto; }
.keymap-title { font: 700 14px var(--font-display); color: var(--accent); letter-spacing: 1px; }
.keymap-text { color: #d8d1ee; font-size: 13px; margin: 6px 0 8px; line-height: 1.45; }
.keymap-sel { font: 700 14px var(--font-ui); min-height: 20px; color: var(--text); margin-bottom: 10px; }
.keymap-btns { display: flex; gap: 8px; align-items: center; }
.keymap-legend { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
body:has(.keymap:not([hidden])) .stage { z-index: 41; position: relative; }
body:has(.keymap:not([hidden])) .drawer, body:has(.keymap:not([hidden])) .sheet, body:has(.keymap:not([hidden])) .lcd-mirror { visibility: hidden; }

/* context menu (⋮) */
.card-more, .qitem .more { color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.card-more:hover, .qitem .more:hover { background: var(--bg-4); color: var(--text); }
.ctxmenu { position: fixed; z-index: 60; min-width: 240px; background: #1a1230; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.ctxmenu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.ctxmenu button:hover { background: var(--bg-3); }
.ctxmenu .ico { width: 18px; text-align: center; color: var(--muted); }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
/* now-playing info pane */
.now-info h3 { margin: 4px 0 8px; font-size: 16px; }
.now-info .video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; margin-bottom: 10px; }
.now-info p { color: #cfc6ea; line-height: 1.5; }
/* mobile */
.mobile-only { display: none; }
.m-fab { display: none; position: absolute; right: 10px; top: 10px; z-index: 13; gap: 8px; }
.m-fab .icon-btn { background: rgba(21,15,41,.85); }
.rotate-hint { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(6,3,16,.7); padding: 20px; }
.rotate-card { max-width: 420px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; text-align: center; }
.rotate-icon { font-size: 40px; margin-bottom: 10px; }
.rotate-text { color: #d8d1ee; line-height: 1.5; margin-bottom: 14px; }
.rotate-card .keymap-btns { justify-content: center; }
@media (max-width: 900px) {
  :root { --head-h: 52px; --bar-h: 72px; --drawer-w: 100%; }
  .rail { display: none; }
  .body { grid-template-columns: 1fr; }
  .mobile-only { display: grid; }
  .top { padding: 0 12px; grid-template-columns: auto 1fr auto; }
  .top-center { text-align: left; padding-left: 10px; } .brand-text { display: none; }
  #srvStatus, #micStatus, #btnAccount, #btnKeys { display: none; }
  .stage-hint, .lcd-mirror { display: none; }
  .panel-wrap { margin: 0 8px; width: calc(100% - 16px); }
  .drawer { width: 100%; }
  .sheet { width: 100%; height: 70%; border-radius: 16px 16px 0 0; }
  .player { grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 12px; }
  .transport { width: auto; } .transport-btns { gap: 6px; } .progress, .transport-info, #trPrev { display: none; }
  .orb { width: 52px; height: 52px; } .orb-core { width: 38px; height: 38px; } .orb-label { display: none; }
  .player-right { display: none; }
  .np-thumb { width: 44px; height: 44px; } .np-fav { display: none; }
  .bar-btn span { display: none; }
}
@media (max-width: 900px) and (orientation: landscape) {
  :root { --head-h: 0px; --bar-h: 0px; }
  .top, .player { display: none; }
  .panel-wrap { width: min(100%, calc((100vh - 16px) * 1.826)); margin: 0; }
  .m-fab { display: flex; }
}
