:root {
  --bg: #000000;
  --card: #15151a;
  --ink: #f4f4f6;
  --soft: rgba(244, 244, 246, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8b9bff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
/* a faint light behind the card */
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(520px, 100%); height: min(420px, 100%); transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }

.vm { position: relative; width: min(320px, 100%); padding: 6px; border-radius: 22px; background: linear-gradient(180deg, #1b1b21 0%, var(--card) 40%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -30px rgba(0, 0, 0, 0.9); }
.vm__top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px 0 12px; }
.vm__top h1 { font-size: 15px; line-height: 20px; font-weight: 700; font-stretch: 104%; letter-spacing: -0.005em; }
.vm__count { display: block; height: 22px; padding: 0 9px; border-radius: 11px; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 11.500px; line-height: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.vm__count span { display: block; white-space: nowrap; }

.vm__list { list-style: none; display: grid; gap: 2px; }
.vm__row { position: relative; border-radius: 16px; transition: background-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease; }
.vm__row.is-open { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.vm__list.has-open .vm__row:not(.is-open) { opacity: 0.5; }

.vm__head { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 10px 0 8px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vm__head:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
@media (hover: hover) { .vm__row:not(.is-open) .vm__head:hover { background: rgba(255, 255, 255, 0.04); } }
.vm__avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(150deg, #3a3a44, #24242b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); font-size: 11.500px; font-weight: 700; letter-spacing: 0.02em; color: rgba(244, 244, 246, 0.82); transition: box-shadow 0.35s ease, color 0.35s ease; }
.vm__row.is-open .vm__avatar { color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1.500px var(--card), 0 0 0 3px var(--accent); }
.vm__who { flex: 1; min-width: 0; display: grid; gap: 1px; }
.vm__who b { font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm__row[data-new] .vm__who b { font-weight: 720; }
.vm__who span { font-size: 12px; line-height: 15px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm__tag { flex: none; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--accent); color: #0d0f1f; font-size: 10.500px; line-height: 18px; font-weight: 750; letter-spacing: 0.01em; }
.vm__chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--soft); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

.vm__panel { height: 0; overflow: hidden; }
.vm__inner { padding: 2px 10px 10px; }
.vm__player { display: flex; align-items: center; gap: 10px; height: 38px; }
.vm__play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ink); color: #101014; cursor: pointer; outline: none; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.8); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vm__play:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.vm__play svg { display: block; width: 16px; height: 16px; }
.vm__tri { fill: currentColor; stroke: currentColor; stroke-width: 1.200; stroke-linejoin: round; }
.vm__bars { fill: none; stroke: currentColor; stroke-width: 2.600; stroke-linecap: round; opacity: 0; }
.vm__play[data-playing] .vm__tri { opacity: 0; }
.vm__play[data-playing] .vm__bars { opacity: 1; }
/* the waveform: the part already heard takes the accent */
.vm__wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 28px; }
.vm__wave i { flex: 1; min-width: 1px; border-radius: 1px; background: rgba(255, 255, 255, 0.2); transition: background-color 0.2s ease; }
.vm__wave i.on { background: var(--accent); }
.vm__time { flex: none; width: 30px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }

.vm__script { margin-top: 8px; min-height: 54px; font-size: 13px; line-height: 18px; font-weight: 450; color: rgba(244, 244, 246, 0.86); }
.vm__script span { display: inline-block; white-space: pre; }

.vm__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.vm__call { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 11px; border: 0; border-radius: 16px; background: var(--accent); color: #0d0f1f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; outline: none; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 14px -8px var(--accent); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vm__call:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.vm__call svg { display: block; width: 15px; height: 15px; fill: currentColor; }
.vm__calltext { display: block; height: 18px; line-height: 18px; overflow: hidden; }
.vm__calltext span { display: block; white-space: nowrap; }
.vm__note { font-size: 11px; line-height: 14px; color: rgba(244, 244, 246, 0.36); white-space: nowrap; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101014; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
