/* verse-motion-dance v0.1.2：跳舞教學元件。尺寸都用 em，網頁跟著本文字級、錄影舞台把根字級放大即可。 */
.vd { --vd-muted: var(--m-muted, #8a8f98); --vd-surface: var(--m-surface, rgba(127,127,127,.12)); --vd-line: var(--m-hairline, rgba(127,127,127,.32)); --vd-accent: var(--m-gold, #f2b84b); --vd-pulse: 0; display: grid; gap: .9em; }
.vd [hidden] { display: none !important; }
.vd-screen { position: relative; width: 100%; max-width: 24em; margin: 0 auto; aspect-ratio: 480 / 832; max-height: 72vh; border-radius: 1em; overflow: hidden; background: #ecedf0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vd-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd.mirror .vd-media { transform: scaleX(-1); }
.vd-badges { position: absolute; left: .6em; top: .6em; display: flex; gap: .35em; flex-wrap: wrap; pointer-events: none; }
.vd-badges span { padding: .22em .7em; border-radius: 99em; background: rgba(17,17,20,.78); color: #fff; font-size: .82em; font-weight: 700; letter-spacing: .02em; }
.vd-badges .vd-speed { background: #ff6b8a; }
.vd-badges .vd-mir { background: #5aa9ff; }
.vd-big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8em; font-weight: 900; color: #fff; text-shadow: 0 .04em .28em rgba(0,0,0,.6), 0 0 .02em #000; pointer-events: none; }
.vd-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: 1.4em 1.2em; background: linear-gradient(to top, rgba(12,12,16,.86) 0%, rgba(12,12,16,.5) 38%, rgba(12,12,16,0) 70%); color: #fff; pointer-events: none; }
.vd-card b { font-size: 1.7em; line-height: 1.25; }
.vd-card span { font-size: 1em; opacity: .9; }
.vd-hud { display: grid; gap: .6em; }
.vd-say { font-size: 1.5em; font-weight: 800; line-height: 1.3; min-height: 1.3em; }
.vd-count { display: grid; grid-template-columns: repeat(8, 1fr); gap: .35em; }
.vd-dot { appearance: none; border: 1px solid var(--vd-line); background: var(--vd-surface); color: inherit; font: inherit; font-weight: 700; padding: .45em 0; border-radius: .7em; cursor: pointer; transition: opacity .15s; }
.vd-dot.acc { border-color: var(--vd-accent); }
.vd-dot.dim { opacity: .38; }
.vd-dot.done { background: color-mix(in srgb, var(--vd-accent) 28%, transparent); }
.vd-dot.on { background: var(--vd-accent); color: #111; border-color: var(--vd-accent); opacity: 1; transform: scale(calc(1 + var(--vd-pulse) * .12)); }
.vd-beat { display: flex; align-items: center; gap: .6em; min-height: 2.4em; }
.vd-num { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--vd-accent); color: #111; font-size: 1.15em; }
.vd-num:empty { visibility: hidden; }
.vd-name { font-size: 1.25em; font-weight: 700; }
.vd-chip { padding: .2em .7em; border-radius: 99em; color: #111; font-size: .85em; font-weight: 700; }
.vd-tip { color: var(--vd-muted); line-height: 1.6; }
.vd-ctl { display: grid; gap: .5em; }
.vd-row { display: flex; flex-wrap: wrap; gap: .4em; }
.vd-btn { appearance: none; border: 1px solid var(--vd-line); background: var(--vd-surface); color: inherit; font: inherit; font-size: .92em; padding: .55em .9em; border-radius: 99em; cursor: pointer; min-height: 2.6em; }
.vd-btn.on { border-color: var(--vd-accent); color: var(--vd-accent); }
.vd-btn.vd-play { background: var(--vd-accent); color: #111; border-color: var(--vd-accent); font-weight: 700; }
.vd-btn.soon { opacity: .6; }
.vd-btn.vd-save { justify-self: start; }
.vd-hint { margin: 0; color: var(--vd-muted); font-size: .9em; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .vd-dot.on { transform: none; } }

/* ── 錄影舞台：橫式（影片在左、字在右）與直式（影片在上、字在下） ── */
.vd-stage { color: #17171c; height: 100vh; box-sizing: border-box; padding: 2.2em 3em; align-items: center; background: #ecedf0; }
.vd-stage .vd-screen { max-width: none; max-height: none; border-radius: 1.6em; margin: 0; cursor: default; }
.vd-stage .vd-dot { cursor: default; background: rgba(23,23,28,.06); border-color: rgba(23,23,28,.2); }
.vd-stage { --vd-muted: #4d4f58; --vd-accent: #f2a61d; }
.vd-stage.h { grid-template-columns: auto 1fr; gap: 2.6em; font-size: 1.32em; padding: 1.6em 2.4em; }   /* 0.1.2：橫式字太小、右下大片留白 → 整體放大 */
.vd-stage.h .vd-screen { height: calc(100vh - 3.2em); width: auto; }
.vd-stage.h .vd-hud { gap: 1.3em; padding-right: 1em; }
.vd-stage.h .vd-say { font-size: 4.2em; line-height: 1.2; min-height: 2.4em; display: flex; align-items: flex-end; }
.vd-stage.h .vd-dot { font-size: 1.9em; padding: .5em 0; border-radius: .5em; }
.vd-stage.h .vd-name { font-size: 3em; } .vd-stage.h .vd-num { font-size: 2.6em; } .vd-stage.h .vd-chip { font-size: 1.7em; }
.vd-stage.h .vd-tip { font-size: 1.9em; min-height: 3.2em; }
.vd-stage.h .vd-badges span { font-size: 1.5em; } .vd-stage.h .vd-big { font-size: 15em; } .vd-stage.h .vd-card b { font-size: 3em; } .vd-stage.h .vd-card span { font-size: 1.6em; }
.vd-stage.v { grid-template-rows: auto 1fr; padding: 3em 2.4em 16em; gap: 1.4em; align-items: start; }
.vd-stage.v .vd-screen { height: 58vh; width: auto; justify-self: center; }
.vd-stage.v .vd-hud { gap: 1em; }
.vd-stage.v .vd-say { font-size: 3.5em; text-align: center; min-height: 2.5em; display: grid; place-items: center; }
.vd-stage.v .vd-dot { font-size: 2em; } .vd-stage.v .vd-beat { justify-content: center; }
.vd-stage.v .vd-name { font-size: 2.8em; } .vd-stage.v .vd-num { font-size: 2.4em; } .vd-stage.v .vd-chip { font-size: 1.6em; }
.vd-stage.v .vd-tip { font-size: 1.7em; text-align: center; }
.vd-stage.v .vd-badges span { font-size: 1.7em; } .vd-stage.v .vd-big { font-size: 16em; } .vd-stage.v .vd-card b { font-size: 3.2em; } .vd-stage.v .vd-card span { font-size: 1.8em; }
