/*
  視覺方向（第三版）：混音台與舞台。
  每位委員是一軌（CH 01–12），職位寫在推桿旁的白色紙膠帶上（scribble strip）。
  介面本身安靜：灰白底、墨色字、細線。顏色只留給兩個地方：預告海報、音檔波形／投票音量表。
  間距一律 4 的倍數；字重 400／500，只有海報大標用 900。
*/
:root {
  --bg: #f5f5f4;
  --card: #ffffff;
  --raised: #ebebea;
  --ink: #18181b;
  --ink-2: #52525b;
  --muted: #6b6b72;
  --line: rgba(24, 24, 27, .1);
  --signal: #ea5a2a;      /* 唯一的強調色：錄音紅燈 */
  --tape: #eee6d0;        /* 紙膠帶 */
  --meter-off: #dcdcd9;

  --top-h: 56px;
  --nav-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --hand: "LXGW WenKai TC", "Kaiti TC", "STKaiti", "PingFang TC", serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overscroll-behavior-y: none;
}
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
h1, h2 { font-weight: 500; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── 紙膠帶職位條（招牌細節，只用在職位） ── */
.strip {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  background: var(--tape);
  padding: 4px 12px;
  transform: rotate(-1deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  /* 手撕的兩端 */
  clip-path: polygon(0 6%, 4% 0, 96% 3%, 100% 10%, 98% 50%, 100% 92%, 95% 100%, 5% 97%, 0 90%, 2% 50%);
}
.strip-lg { font-size: 18px; line-height: 24px; padding: 4px 16px; }

/* 軌道編號（CH 01） */
.ch { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ── 頂欄與底欄 ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 16px; font-weight: 500; }
.demo-mark { font-size: 13px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; margin-left: -4px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
}
.nav-item {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--muted);
  transition: color .15s var(--ease);
}
.nav-item.active { color: var(--ink); font-weight: 500; }
.nav-item.active::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: 24px; height: 2px; margin-left: -12px; background: var(--ink);
}

/* ── 版面 ── */
main { max-width: 560px; margin: 0 auto; }
.view { display: none; padding: 0 var(--gutter) calc(var(--nav-h) + var(--safe-b) + 32px); }
.view.active { display: block; }

.page-head { padding: 24px 0 20px; }
.page-head h1 { font-size: 28px; line-height: 36px; }
.lede { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.note { margin-top: 32px; font-size: 13px; line-height: 20px; color: var(--muted); max-width: 34em; }
h2 { font-size: 20px; line-height: 28px; }

.btn {
  flex: none; height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500;
  transition: transform .12s var(--ease), background-color .15s var(--ease);
}
.btn:active { transform: scale(.97); background: #000; }
.text-btn { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 0; }
.text-btn:active { color: var(--ink); }

/* ── 委員：每人一軌 ── */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.person { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; transition: transform .12s var(--ease); }
.person:active { transform: scale(.98); }
/* 開網站時委員卡依序浮上來（延遲由 JS 設定） */
.person.intro { animation: rise-in .4s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
.person-art {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: var(--raised); border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background-color .15s var(--ease);
}
.person-art .ch { position: absolute; top: 8px; left: 12px; z-index: 1; }
.person-art .avatar-box { width: 100% !important; height: 100% !important; }
.person .strip { margin: -16px 0 0 8px; position: relative; }
.person-name { margin-top: 8px; font-size: 17px; line-height: 24px; font-weight: 500; }
.person-meta { font-size: 13px; line-height: 20px; color: var(--muted); }
.person:active .person-art { background: #e2e2e0; }

.avatar-box { display: flex; align-items: flex-end; justify-content: center; }
.avatar-box img { width: 100%; height: 100%; object-fit: contain; }

/* ── 底部面板 ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(24, 24, 27, .48); opacity: 0; transition: opacity .2s var(--ease); }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto;
  background: var(--card); border-radius: 16px 16px 0 0;
  padding: 8px var(--gutter) calc(32px + var(--safe-b));
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.sheet-wrap.open .sheet-back { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.closing { pointer-events: none; }
.sheet-wrap.closing .sheet { transition-duration: .22s; }
.sheet-wrap.closing .sheet-back { transition-duration: .22s; }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--meter-off); margin: 0 auto 16px; }
.sheet-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sheet-art {
  position: relative; align-self: stretch; height: 240px;
  background: var(--raised); border-radius: 12px; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end;
}
.sheet-art .ch { position: absolute; top: 12px; left: 16px; }
.sheet-art + .strip { margin: -24px 0 0 12px; position: relative; }
.sheet-name { font-size: 24px; line-height: 32px; }
.sheet-line { color: var(--ink-2); }
.facts { align-self: stretch; display: grid; grid-template-columns: 6em 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.peek { align-self: stretch; font-size: 14px; color: var(--muted); }
.peek summary { cursor: pointer; padding: 8px 0; }
.peek pre { margin: 4px 0 0; padding: 12px; border-radius: 8px; background: var(--bg); font-size: 12px; overflow: auto; color: var(--ink); }

/* ── 預告：海報（全站唯一的大色塊） ── */
.poster {
  margin: 0 calc(var(--gutter) * -1);
  padding: 32px var(--gutter);
  background: var(--signal); color: var(--ink);
}
.poster-by { font-size: 13px; line-height: 20px; font-weight: 500; }
.poster-title { margin-top: 16px; font-size: 68px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
/* 每行字放在遮罩裡，第一次進預告頁時從下方推上來 */
.poster-title .pl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.poster-title .pl > span { display: block; }
.poster.intro .pl > span { animation: line-up .7s var(--ease) both; }
.poster.intro .pl + .pl > span { animation-delay: 90ms; }
.poster.intro .poster-info { animation: fade-in .5s var(--ease) .35s both; }
@keyframes line-up { from { transform: translateY(105%); } }
.poster-info { margin-top: 32px; display: grid; grid-template-columns: 4em 1fr; border-top: 2px solid var(--ink); }
.poster-info dt, .poster-info dd { padding: 8px 0; border-bottom: 1px solid rgba(24, 24, 27, .3); font-size: 15px; line-height: 24px; }
.poster-info dt { font-weight: 500; }
.poster-info dd { font-weight: 500; }
.poster-info .tbd { font-weight: 400; }

.block { padding-top: 40px; }
.block > h2 { margin-bottom: 12px; }

.video-box {
  aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
}
.video-mark { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; margin-bottom: 8px; }
.video-mark svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.video-box p { font-size: 15px; font-weight: 500; }
.video-box .video-sub { font-size: 13px; font-weight: 400; color: #a1a1a6; }

/* 播放器：真實音檔的音量輪廓 */
.player { padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.player-top { display: flex; align-items: center; gap: 12px; }
.play {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: transform .12s var(--ease);
}
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play:active { transform: scale(.95); }
.player-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player-title { font-weight: 500; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { font-size: 13px; line-height: 20px; color: var(--muted); }
.time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.wave { margin-top: 16px; height: 48px; display: flex; align-items: center; gap: 3px; cursor: pointer; touch-action: manipulation; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--meter-off); transition: background-color .15s var(--ease); }
.wave i.on { background: var(--signal); }
.player-cap { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* 投票：音量表 */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px; min-height: 52px; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-align: left;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.opt:not(:disabled):active { background: var(--raised); }
.opt:disabled { cursor: default; color: var(--ink); }
.opt.mine { border-color: var(--ink); }
.opt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-label { font-weight: 500; }
.opt-mine { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.opt-pct { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.meter {
  height: 8px; background: var(--meter-off);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
          mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
}
.meter-fill { display: block; height: 100%; width: 100%; background: #8a8a90; transform-origin: left center; transition: transform .6s var(--ease); }
.opt.lead .meter-fill { background: var(--signal); }
.hint-text { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 留言 */
.compose { display: flex; gap: 8px; }
.input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font: inherit; font-size: 16px; color: var(--ink);
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--ink); }
.comments { margin-top: 16px; border-top: 1px solid var(--line); }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment.enter { animation: rise-in .28s var(--ease) both; }
.comment-text { font-size: 16px; line-height: 24px; word-break: break-word; }
.comment-foot { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.pending-mark { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.pending-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.comment.hidden .comment-text { color: var(--muted); text-decoration: line-through; }
.comment-act { margin-top: 12px; display: flex; gap: 8px; }
.mini { height: 32px; padding: 0 12px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: var(--card); border-radius: 8px; }
.mini:active { background: var(--raised); }
.mini.danger { color: #c2261d; }
.admin-bar { margin-top: 24px; display: flex; justify-content: space-between; }

/* ── 展覽（3D） ── */
.view-expo { padding: 0; position: relative; }
.view-expo.active {
  display: block;
  height: calc(100dvh - var(--top-h) - 1px - env(safe-area-inset-top, 0px) - var(--nav-h) - var(--safe-b));
  overflow: hidden;
}
main:has(.view-expo.active) { max-width: none; }
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; }
.stage-ui {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none;
}
.stage-ui > * { pointer-events: auto; }
.chip {
  height: 36px; padding: 0 12px; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink);
}
.stage-hint { color: var(--ink-2); transition: opacity .6s var(--ease); }
.stage-hint.fade { opacity: 0; pointer-events: none; }
.stage-btn { font-weight: 500; }
.stage-btn:active { background: var(--raised); }
.loading {
  position: absolute; inset: 0; z-index: 3; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); color: var(--muted); font-size: 14px;
}
.loading.show { display: flex; }
.loading-bar { width: 50%; max-width: 240px; height: 2px; background: var(--meter-off); }
.loading-fill { height: 100%; width: 0; background: var(--ink); transition: width .2s var(--ease); }
.fallback { position: absolute; inset: 0; z-index: 1; display: none; overflow: auto; padding: 48px var(--gutter) 24px; background: var(--bg); }
.fallback.show { display: block; }
.works { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.work-locked { padding: 16px; border-radius: 12px; border: 1px dashed rgba(24, 24, 27, .2); }
.work-title { font-weight: 500; }
.work-status { font-size: 13px; color: var(--muted); }

/* ── 提示訊息 ── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 80;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; line-height: 20px; max-width: calc(100vw - 32px); text-align: center;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.live .toast { bottom: calc(var(--safe-b) + 16px); }

/* ── 現場版：暗場的後台通行證 ── */
.live {
  background: #141415; color: #ededed;
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: dark;
}
.live .live-head h1, .live .pass-name, .live .qr-title { font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif; }
.live .topbar { background: #141415; border-bottom-color: rgba(237, 237, 237, .08); }
.live .demo-mark { color: #85858b; }
.live-main { max-width: 560px; padding-bottom: calc(32px + var(--safe-b)); }
.live-head { padding: 24px var(--gutter) 0; }
.live-head h1 { font-size: 28px; line-height: 36px; font-weight: 500; }
.live-head p { margin-top: 4px; font-size: 15px; color: #a1a1a6; }

.passes {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px var(--gutter) 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.passes::-webkit-scrollbar { display: none; }
.pass {
  flex: 0 0 84%; max-width: 340px; scroll-snap-align: center;
  background: var(--card); color: var(--ink); border-radius: 16px;
  position: relative; overflow: hidden;
  transform: scale(.94); opacity: .55;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.pass.on { transform: none; opacity: 1; }
/* 掛繩孔：直接透出背景 */
.pass-hole {
  position: absolute; top: 12px; left: 50%; z-index: 2;
  width: 48px; height: 8px; margin-left: -24px; border-radius: 4px; background: #141415;
}
.pass-art {
  position: relative; height: 240px; margin: 8px 8px 0; border-radius: 8px;
  background: var(--raised); display: flex; justify-content: center; align-items: flex-end; overflow: hidden;
}
.pass-art .ch { position: absolute; top: 16px; left: 12px; }
.pass-body { padding: 0 20px 24px; }
.pass-body .strip { margin-top: -16px; position: relative; }
.pass-name { margin-top: 8px; font-size: 32px; line-height: 40px; font-weight: 500; }
.pass-meta { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.pass-line { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--ink-2); }

.dots { display: flex; gap: 4px; justify-content: center; padding: 0 var(--gutter); flex-wrap: wrap; }
.dot { width: 12px; height: 4px; border-radius: 2px; background: rgba(237, 237, 237, .2); transition: background-color .2s var(--ease), width .2s var(--ease); }
.dot.on { width: 24px; background: var(--signal); }

.qr-card {
  margin: 32px var(--gutter) 0; padding: 16px;
  background: var(--card); color: var(--ink); border-radius: 16px;
  display: flex; gap: 16px; align-items: center;
}
.qr { width: 104px; height: 104px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-title { font-weight: 500; font-size: 16px; line-height: 24px; }
.qr-url { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); word-break: break-all; }
.qr-weight { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.live-note { color: #85858b; padding: 0 var(--gutter); }


/* ── 委員：名單／混音台切換 ── */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--raised); border-radius: 10px; }
.seg button { height: 32px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

/* ── 12 軌混音台（深色面板是這一頁的重點） ── */
/* 尺寸要和 src/mixer.js 的 STRIP、GAP、TRACK、CAP 一致；按鈕與推桿頭都不小於 32×40 */
.mx-lede { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.mx-transport { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.mx-transport .play:disabled { background: var(--meter-off); cursor: default; }
.mx-transport .text-btn { min-height: 44px; }
.mx-status { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mx-time { font-size: 13px; line-height: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mx-prog { display: block; height: 2px; background: var(--meter-off); overflow: hidden; }
.mx-prog-fill { display: block; height: 100%; background: var(--signal); transform-origin: left center; transform: scaleX(0); }
.mx-hint { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--raised); font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* 軌道導覽：一直看得到，點一下跳到那一軌 */
.mx-nav { margin-top: 16px; }
.mx-nav-top { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); }
.mx-range { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 500; }
.mx-nav-row { margin-top: 8px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.mx-nav-btn { height: 32px; position: relative; }
.mx-nav-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 2px; background: var(--meter-off); transition: background-color .15s var(--ease); }
.mx-nav-btn.in-view::before { background: var(--ink); }
.mx-nav-btn.empty::before { background: #e6e6e4; }
.mx-nav-btn.empty.in-view::before { background: #8a8a90; }

.console-wrap { position: relative; margin: 8px calc(var(--gutter) * -1) 0; }
.console-wrap::before, .console-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .2s var(--ease);
}
.console-wrap::before { left: 0; background: linear-gradient(90deg, #18181b, rgba(24, 24, 27, 0)); }
.console-wrap::after { right: 0; background: linear-gradient(270deg, #18181b, rgba(24, 24, 27, 0)); }
.console-wrap.more-left::before, .console-wrap.more-right::after { opacity: 1; }
.console {
  padding: 12px var(--gutter);
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
  background: #18181b; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.console::-webkit-scrollbar { display: none; }
.strip-ch {
  flex: 0 0 96px; min-width: 0; width: 96px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 8px 12px; border-radius: 8px; background: #232325; color: #ededed;
}
.strip-ch.empty { opacity: .5; }
.mx-ch { font-size: 12px; line-height: 16px; font-weight: 500; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.mx-face {
  width: 64px; height: 64px; border-radius: 8px; background: #2e2e31; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  transition: opacity .15s var(--ease);
}
.strip-ch.dim .mx-face, .strip-ch.dim .mx-tape { opacity: .4; }
.mx-btns { display: flex; gap: 4px; }
.mx-btn {
  width: 38px; height: 40px; border-radius: 6px; background: #2e2e31; color: #a1a1a6;
  font-size: 14px; font-weight: 500;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}
.mx-btn.m.on { background: var(--signal); color: var(--ink); }
.mx-btn.s.on { background: #ededed; color: var(--ink); }
.mx-btn:disabled { cursor: default; opacity: .4; }
.mx-fader-row { display: flex; gap: 8px; height: 192px; }
/* 只允許左右捲動交給瀏覽器，上下拖曳留給推桿 */
.fader { position: relative; width: 56px; height: 192px; touch-action: pan-x; cursor: grab; }
.fader-slot { position: absolute; left: 50%; top: 16px; bottom: 16px; width: 2px; margin-left: -1px; border-radius: 1px; background: #0f0f10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.fader-unity { position: absolute; left: 0; right: 0; top: 56px; height: 1px; background: rgba(237, 237, 237, .25); }
.fader-cap {
  position: absolute; left: 4px; right: 4px; top: 0; height: 32px; border-radius: 6px;
  background: #e4e4e2; box-shadow: 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.fader-cap::after { content: ""; position: absolute; left: 6px; right: 6px; top: 15px; height: 2px; background: var(--ink); }
.fader.grab { cursor: grabbing; }
.fader.grab .fader-cap { background: #fff; }
.strip-ch.empty .fader { cursor: default; }
/* 音量表：分格 LED，上面四分之一亮紅 */
.vu {
  position: relative; display: block; width: 6px; height: 100%; background: #2e2e31;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px);
          mask: repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px);
}
.vu-fill { position: absolute; inset: 0; background: linear-gradient(0deg, #a1a1a6 0 75%, var(--signal) 75% 100%); clip-path: inset(100% 0 0 0); }
.mx-db { min-height: 16px; font-size: 12px; line-height: 16px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.mx-tape { width: 100%; min-height: 44px; padding: 4px; font-size: 14px; line-height: 18px; text-align: center; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mx-tape:active { transform: rotate(-1deg) scale(.97); }
.mx-stem { width: 100%; font-size: 11px; line-height: 16px; color: #85858b; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 720px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .poster-title { font-size: 88px; }
}
/* 減少動態：拿掉位移和縮放，只留淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person.intro, .comment.enter { animation-name: fade-in; }
  .poster.intro .pl > span { animation: none; }
  .person:active, .btn:active, .play:active { transform: none; }
  .sheet { transform: none; opacity: 0; transition: opacity .2s ease; }
  .sheet-wrap.open .sheet { opacity: 1; }
  .meter-fill { transition: none; }
  .pass { transform: none; transition: opacity .2s ease; }
  .toast { transform: translate(-50%, 0); }
}
