/* ============================================================
   Hero voice player: liquid glass console (2026-11 premium draft).
   One frosted slab under the app screenshot, as wide as the app window.
   Reading order: what you are hearing + topics, play + the waveform,
   one rail of voices, then the fine print.
   The root is .vp-lg (not .vp), so the old .vp card rules in styles.css
   do not reach it; every inner rule here is scoped under .vp-lg and
   loads after styles.css, which beats the unscoped .vp-* rules there.
   Behaviour: assets/demo/voice-player.js (the rail mode turns on when
   the markup has [data-vp-takes]). The waveform reads --vp-* below.
   ============================================================ */

/* ---------- the strip: width, entrance, under-glow ---------- */
/* as wide as the app window in the screenshot (65.2vw), so both edges line
   up. One class on purpose: it beats styles.css (.hero-demo-strip, earlier)
   and loses to premium.css (html body .hero-demo-strip), which docks the
   strip on the device bezel and owns its place in the hero. */
@media (min-width: 769px) {
  .vp-lg-strip { width: min(100%, max(65.2vw, 600px)); margin-top: 18px; }
}
@media (max-width: 768px) {
  .vp-lg-strip { margin-top: 10px; }
}
/* .animate-up leaves filter and will-change on the strip, and either one
   stops backdrop-filter from seeing the aurora. The strip only moves; the
   slab and its glow fade (opacity on the slab itself keeps the glass live). */
.hero-demo-strip.vp-lg-strip.animate-up {
  opacity: 1;
  filter: none;
  will-change: auto;
  transform: translateY(28px);
  transition: transform 1.05s cubic-bezier(.22, .61, .18, 1);
}
.hero-demo-strip.vp-lg-strip.animate-up.show { transform: none; }
.vp-lg-strip.animate-up > .vp-lg,
.vp-lg-strip.animate-up::before { opacity: 0; transition: opacity 1s cubic-bezier(.22, .61, .18, 1); }
.vp-lg-strip.animate-up.show > .vp-lg,
.vp-lg-strip.animate-up.show::before { opacity: 1; }

/* soft violet under-glow the glass picks up */
.vp-lg-strip::before {
  content: '';
  position: absolute;
  inset: 18% 6% -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 246, .30), rgba(193, 58, 239, .10) 60%, transparent);
  filter: blur(28px);
  pointer-events: none;
}

/* ---------- the slab ---------- */
.vp-lg {
  --vp-ease: cubic-bezier(.23, 1, .32, 1);
  --vp-dim: rgba(76, 58, 174, .2);
  --vp-rest: .56;                       /* unplayed bars: the voice gradient, at rest */
  --vp-pad: 7;                          /* px above and below the tallest bar */
  --vp-a: #6F5BD3;
  --vp-b: #C13AEF;
  --vp-orig: #3A3548;
  --vp-head: #4A2EC2;
  --vp-glow: rgba(124, 92, 246, .6);
  --vp-sel: linear-gradient(180deg, #5B3FD9 0%, #4A2EC2 100%);
  --vp-band: rgba(255, 255, 255, .7);
  --vp-band-core: rgba(167, 139, 250, .3);
  --vp-next: rgba(111, 91, 211, .75);
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, .56) 0%, rgba(255, 255, 255, .3) 100%);
  --g-edge: linear-gradient(135deg, rgba(111, 91, 211, .55) 0%, rgba(255, 255, 255, .7) 32%, rgba(255, 255, 255, .7) 66%, rgba(193, 58, 239, .42) 100%);
  --g-sheen: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 100%);
  --g-line: rgba(80, 56, 190, .14);
  --g-well: rgba(255, 255, 255, .5);
  --g-hover: rgba(255, 255, 255, .85);
  --g-inset: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(111, 91, 211, .1);
  --g-shadow: 0 1px 2px rgba(30, 16, 74, .06), 0 28px 60px -30px rgba(74, 46, 194, .55);
  --g-shadow-on: 0 1px 2px rgba(30, 16, 74, .06), 0 30px 70px -26px rgba(91, 63, 217, .7), 0 0 0 1px rgba(139, 92, 246, .1);
  position: relative;
  isolation: isolate;
  padding: 16px 18px 14px;
  border-radius: 26px;
  background: var(--g-fill);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--g-inset), var(--g-shadow);
  font-family: var(--font-body);
  color: var(--text);
  text-align: left;
  transition: box-shadow .6s var(--vp-ease);
}
.vp-lg.is-playing { box-shadow: var(--g-inset), var(--g-shadow-on); }
/* hairline violet edge, the approved card treatment, drawn as a masked ring */
.vp-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--g-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* specular light across the top of the slab */
.vp-lg::after {
  content: '';
  position: absolute;
  inset: 1px 1px auto;
  height: 52%;
  z-index: -1;
  border-radius: 25px 25px 0 0;
  background: var(--g-sheen);
  pointer-events: none;
}
/* one faint band of light crosses the glass when the Original hands over to a voice */
.vp-lg .vp-sweep { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.vp-lg .vp-sweep::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, transparent 0%, var(--vp-band) 38%, var(--vp-band-core) 50%, var(--vp-band) 62%, transparent 100%);
  transform: translateX(-110%) skewX(-12deg);
  opacity: 0;
}
.vp-lg.is-handover .vp-sweep::before { animation: vpSweep 1.15s cubic-bezier(.45, .05, .25, 1) both; }
@keyframes vpSweep {
  0% { transform: translateX(-110%) skewX(-12deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(330%) skewX(-12deg); opacity: 0; }
}

/* ---------- row 1: the line under it, topics in the corner ---------- */
.vp-lg .vp-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
/* The line and (on Text to speech, once it plays) the spoken words share
   one grid cell with invisible copies of every topic's text, so switching
   topics never changes the slab's height. */
.vp-lg .vp-copy { flex: 1 1 auto; min-width: 0; display: grid; align-items: center; }
.vp-lg .vp-copy > *,
.vp-lg .vp-fine-cell > * { grid-area: 1 / 1; }
.vp-lg .vp-ghost { visibility: hidden; pointer-events: none; }
.vp-lg .vp-lede { min-width: 0; margin: 0 0 0 2px; font-size: 13.5px; line-height: 1.4; color: var(--text-dim); text-wrap: pretty; transition: opacity .25s var(--vp-ease); }
.vp-lg .vp-topics {
  flex: none;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--g-well);
  box-shadow: inset 0 0 0 1px var(--g-line), inset 0 1px 2px rgba(30, 16, 74, .06);
}
.vp-lg .vp-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--text-dim);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s var(--vp-ease), color .2s var(--vp-ease);
}
@media (hover: hover) { .vp-lg .vp-topic:hover { color: var(--text); background: var(--g-hover); } }
.vp-lg .vp-topic.is-on { background: var(--vp-sel); color: #FFFFFF; box-shadow: 0 1px 2px rgba(30, 16, 74, .3), 0 6px 14px -8px rgba(52, 30, 140, .8); }
.vp-lg .vp-topic:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.vp-lg .vp-new { font-size: 11px; line-height: 16px; padding: 0 6px; letter-spacing: .03em; }
.vp-lg .vp-topic.is-on .vp-new { background: rgba(255, 255, 255, .2); }

/* ---------- row 2: play, the waveform, the readout ---------- */
.vp-lg .vp-main { display: grid; grid-template-columns: 52px minmax(0, 1fr) 178px; grid-template-areas: "play wave now"; align-items: center; column-gap: 16px; }
.vp-lg .vp-play {
  grid-area: play;
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--vp-sel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(30, 16, 74, .35), 0 12px 24px -12px rgba(52, 30, 140, .9);
  cursor: pointer;
  transition: transform .16s var(--vp-ease), box-shadow .3s ease;
}
@media (hover: hover) { .vp-lg .vp-play:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 24px -2px rgba(139, 92, 246, .6), 0 0 48px -8px rgba(224, 86, 255, .45); } }
.vp-lg .vp-play:active { transform: scale(.94); }
.vp-lg .vp-play:focus-visible { outline: 2px solid var(--ring); outline-offset: 5px; }
.vp-lg .vp-play svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: currentColor; }
.vp-lg .vp-i-play { margin-left: 2px; }
.vp-lg .vp-i-pause, .vp-lg .vp-spin { display: none; }
.vp-lg.is-playing .vp-i-play { display: none; }
.vp-lg.is-playing .vp-i-pause { display: block; }
.vp-lg.is-loading .vp-i-play, .vp-lg.is-loading .vp-i-pause { display: none; }
.vp-lg.is-loading .vp-spin { display: block; grid-area: 1 / 1; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF; animation: vpSpin .8s linear infinite; }
/* the approved CTA ring (violet to fuchsia, turning): on the play button
   until the first play, then on hover like the download buttons */
.vp-lg .vp-play::before {
  content: '';
  position: absolute;
  inset: -4px;
  padding: 1.5px;
  border-radius: 50%;
  background: conic-gradient(from var(--cta-a), #8B5CF6, #E056FF, #A5B4FC, #7C3AED, #8B5CF6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.vp-lg:not(.is-played) .vp-play::before { opacity: 1; animation: cta-ring 3.2s linear infinite; }
@media (hover: hover) { .vp-lg .vp-play:hover::before { opacity: 1; animation: cta-ring 3.2s linear infinite; } }
.vp-lg .vp-play::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 22px 1px rgba(139, 92, 246, .42); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.vp-lg:not(.is-played) .vp-play::after { opacity: 1; }

.vp-lg .vp-wave { grid-area: wave; position: relative; height: 64px; cursor: pointer; border-radius: 8px; touch-action: manipulation; }
.vp-lg .vp-wave:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.vp-lg .vp-wave canvas { display: block; width: 100%; height: 100%; }
/* where a click would seek to */
.vp-lg .vp-wave::after { content: ''; position: absolute; top: 8px; bottom: 8px; left: var(--hx, 0); width: 1px; background: var(--vp-head); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
@media (hover: hover) { .vp-lg .vp-wave:hover::after { opacity: .35; } }

/* the readout: the voice is the star of the moment it takes over */
.vp-lg .vp-now { grid-area: now; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; margin: 0; text-align: right; }
.vp-lg .vp-now-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 600 21px/1.2 var(--font-display, var(--font-body)); letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.vp-lg[data-sel="voice"] .vp-now-name { background: linear-gradient(90deg, var(--vp-a), var(--vp-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-lg .vp-now-take { font: 500 13px/1 var(--font-body); letter-spacing: 0; color: var(--text-fine); -webkit-text-fill-color: currentColor; }
.vp-lg .vp-now-name.is-in { animation: vpNameIn .5s var(--vp-ease) both; }
@keyframes vpNameIn { from { opacity: 0; filter: blur(6px); transform: translateY(5px); } to { opacity: 1; filter: none; transform: none; } }
.vp-lg .vp-time { font: 12px/1 var(--font-mono); color: var(--text-fine); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Text to speech: once it plays, the line takes the description's place,
   each word lighting up as it is spoken */
.vp-lg .vp-text { display: block; margin: 0 0 0 2px; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--text-fine); text-wrap: balance; opacity: 0; transition: opacity .25s var(--vp-ease); }
.vp-lg.is-reading .vp-text:not(.vp-ghost) { opacity: 1; }
.vp-lg.is-reading .vp-lede:not(.vp-ghost) { opacity: 0; }
.vp-lg .vp-word.is-said { color: var(--text); }
.vp-lg .vp-word.is-now { color: var(--accent-ink); }

/* ---------- row 3: one glass rail of voices ---------- */
.vp-lg .vp-rail {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--g-well);
  box-shadow: inset 0 0 0 1px var(--g-line), inset 0 1px 2px rgba(30, 16, 74, .06);
}
.vp-lg .vp-takes { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 9px; margin-right: 4px; border-right: 1px solid var(--g-line); }
.vp-lg .vp-takes[hidden] { display: none; }
.vp-lg .vp-takes-label, .vp-lg .vp-sep { font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-fine); white-space: nowrap; }
.vp-lg .vp-takes-label { margin-right: 4px; }
.vp-lg .vp-take {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s var(--vp-ease), color .2s var(--vp-ease), box-shadow .2s var(--vp-ease);
}
@media (hover: hover) { .vp-lg .vp-take:hover { background: var(--g-hover); color: var(--text); } }
.vp-lg .vp-take[aria-pressed="true"] { background: var(--g-hover); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--g-line), 0 1px 3px rgba(30, 16, 74, .14); }
.vp-lg .vp-take:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }

.vp-lg .vp-names {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 22px;
  overscroll-behavior-x: contain;
}
.vp-lg .vp-names::-webkit-scrollbar { display: none; }
/* edge fades only on the side that has more names to scroll to */
.vp-lg .vp-names.is-fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.vp-lg .vp-names.is-fade-l { -webkit-mask-image: linear-gradient(90deg, transparent 16px, #000 26px); mask-image: linear-gradient(90deg, transparent 16px, #000 26px); }
.vp-lg .vp-names.is-fade-l.is-fade-r { -webkit-mask-image: linear-gradient(90deg, transparent 16px, #000 26px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 16px, #000 26px, #000 calc(100% - 28px), transparent); }
.vp-lg .vp-group { display: flex; flex: none; align-items: center; flex-wrap: nowrap; gap: 2px; }
/* the other take stays measurable (for the wrap decision) but takes no room */
.vp-lg .vp-group:not(.is-current) { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
.vp-lg .vp-group-label { display: none; }
.vp-lg .vp-br { display: none; }
.vp-lg .vp-sep { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 7px 0 5px; scroll-snap-align: start; }
.vp-lg .vp-sep::before { content: ''; width: 1px; height: 18px; background: var(--g-line); }
.vp-lg .vp-sep:first-child { padding-left: 10px; }
.vp-lg .vp-sep:first-child::before { display: none; }
.vp-lg .vp-name {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: 600 13.5px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .16s var(--vp-ease), background-color .2s var(--vp-ease), color .2s var(--vp-ease), box-shadow .25s ease;
}
@media (hover: hover) { .vp-lg .vp-name:hover { background: var(--g-hover); box-shadow: 0 1px 3px rgba(30, 16, 74, .1); } }
.vp-lg .vp-name:active { transform: scale(.96); }
.vp-lg .vp-name:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.vp-lg .vp-name svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vp-lg .vp-name-dot { display: none; }
/* the per-name tag is now the rail divider; screen readers still get it */
.vp-lg .vp-tag { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vp-lg .vp-name.is-on { background: var(--vp-sel); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(30, 16, 74, .3), 0 8px 18px -10px rgba(52, 30, 140, .85); }
.vp-lg .vp-name-orig.is-on { background: #1C1830; }
.vp-lg.is-hinting .vp-name.is-on { box-shadow: 0 0 0 3px rgba(139, 108, 245, .35), 0 8px 18px -10px rgba(111, 91, 211, .9); }
/* while the Original plays, the voice it is about to hand over to is lit */
.vp-lg .vp-name.is-next { box-shadow: inset 0 0 0 1.5px var(--vp-next), 0 0 16px -4px rgba(139, 92, 246, .55); }
.vp-lg .vp-names.is-in .vp-name { animation: vpPop .38s var(--vp-ease) both; animation-delay: calc(var(--i, 0) * 35ms); }

/* tablets and laptops: when a take's voices do not fit on one line, the rail
   wraps (voice-player.js adds .is-wrap), custom voices on their own line */
@media (min-width: 769px), (min-width: 600px) and (hover: hover) and (pointer: fine) {
  .vp-lg .vp-rail.is-wrap { align-items: flex-start; border-radius: 22px; }
  .vp-lg .vp-rail.is-wrap .vp-takes { height: 34px; margin-top: 2px; }
  .vp-lg .vp-rail.is-wrap .vp-names,
  .vp-lg .vp-rail.is-wrap .vp-group { flex-wrap: wrap; row-gap: 2px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .vp-lg .vp-rail.is-wrap .vp-group.is-current { flex: 1 1 100%; min-width: 0; }
  .vp-lg .vp-rail.is-wrap .vp-br { display: block; flex: 0 0 100%; height: 0; }
  .vp-lg .vp-rail.is-wrap .vp-br + .vp-sep { padding-left: 10px; }
  .vp-lg .vp-rail.is-wrap .vp-br + .vp-sep::before { display: none; }
}
@media (max-width: 900px) {
  .vp-lg .vp-takes-label { display: none; }
}

/* ---------- row 4: the fine print, and the RVC text to speech note ---------- */
.vp-lg .vp-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 0 4px 0 6px; }
.vp-lg .vp-fine-cell { flex: 1 1 auto; min-width: 0; display: grid; align-items: center; }
.vp-lg .vp-fine { min-width: 0; margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-fine); text-wrap: pretty; }
.vp-lg .vp-bubble {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--g-well);
  box-shadow: inset 0 0 0 1px var(--g-line);
  transition: box-shadow .3s var(--vp-ease);
}
.vp-lg .vp-bubble.is-lit { box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .55), 0 0 22px -6px rgba(139, 92, 246, .55); }
.vp-lg .vp-bubble svg { flex: none; width: 17px; height: 17px; margin: 0; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vp-lg .vp-bubble p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
.vp-lg .vp-bubble b { color: var(--text); font-weight: 600; }
.vp-lg .vp-bubble a { margin-left: 4px; color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(76, 58, 174, .35); }
.vp-lg .vp-bubble a:hover { border-bottom-color: currentColor; }
/* wide screens: the fine print and the note share one row (two lines at most) */
@media (min-width: 1350px) {
  .vp-lg .vp-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .vp-lg .vp-bubble p { white-space: nowrap; }
}

/* ---------- dark theme ---------- */
html[data-theme="dark"] .vp-lg-strip::before { background: radial-gradient(closest-side, rgba(124, 92, 246, .34), rgba(193, 58, 239, .12) 60%, transparent); }
html[data-theme="dark"] .vp-lg {
  --vp-dim: rgba(244, 241, 250, .2);
  --vp-rest: .5;
  --vp-a: #A78BFA;
  --vp-b: #E879F9;
  --vp-orig: #D9D3EA;
  --vp-head: #FFFFFF;
  --vp-glow: rgba(167, 139, 250, .8);
  --vp-band: rgba(196, 181, 253, .12);
  --vp-band-core: rgba(221, 214, 254, .26);
  --vp-next: rgba(196, 181, 253, .8);
  --g-fill: linear-gradient(180deg, rgba(44, 35, 72, .62) 0%, rgba(20, 15, 34, .58) 100%);
  --g-edge: linear-gradient(135deg, rgba(167, 139, 250, .6) 0%, rgba(255, 255, 255, .1) 32%, rgba(255, 255, 255, .1) 66%, rgba(224, 86, 255, .45) 100%);
  --g-sheen: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 100%);
  --g-line: rgba(196, 181, 253, .16);
  --g-well: rgba(255, 255, 255, .05);
  --g-hover: rgba(255, 255, 255, .1);
  --g-inset: inset 0 1px 0 rgba(255, 255, 255, .12);
  --g-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -30px rgba(91, 63, 217, .55);
  --g-shadow-on: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 80px -26px rgba(124, 92, 246, .75), 0 0 0 1px rgba(167, 139, 250, .14);
}
html[data-theme="dark"] .vp-lg .vp-topic.is-on { background: var(--vp-sel); color: #FFFFFF; }
html[data-theme="dark"] .vp-lg .vp-take[aria-pressed="true"] { color: #FFFFFF; background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .vp-lg .vp-name-orig.is-on { background: #F4F1FA; color: #160A26; }
html[data-theme="dark"] .vp-lg .vp-word.is-now { color: #C4B5FD; }
html[data-theme="dark"] .vp-lg .vp-bubble svg { stroke: #C4B5FD; }
html[data-theme="dark"] .vp-lg .vp-bubble a { color: #DDD6FE; border-bottom-color: rgba(221, 214, 254, .4); }

/* ---------- below 1100px: the readout moves above the waveform ---------- */
@media (max-width: 1100px) {
  .vp-lg .vp-main { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "play now" "play wave"; row-gap: 4px; }
  .vp-lg .vp-now { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; }
  .vp-lg .vp-now-name { font-size: 18px; }
  .vp-lg .vp-wave { height: 54px; }
}
/* ---------- phones ---------- */
@media (max-width: 768px) {
  .vp-lg { padding: 12px 12px 12px; border-radius: 22px; }
  .vp-lg::after { border-radius: 21px 21px 0 0; }
  .vp-lg .vp-head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .vp-lg .vp-topics { order: -1; width: 100%; }
  .vp-lg .vp-topic { flex: 1 1 auto; padding: 0 8px; font-size: 12.5px; }
  .vp-lg .vp-lede { margin: 0 2px; font-size: 13px; }
  .vp-lg .vp-text { margin: 0 2px; font-size: 14px; }
  .vp-lg .vp-main { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; }
  .vp-lg .vp-play { width: 46px; height: 46px; }
  .vp-lg .vp-play svg { width: 20px; height: 20px; }
  .vp-lg .vp-now-name { font-size: 16.5px; }
  .vp-lg .vp-now-take { font-size: 12px; }
  .vp-lg .vp-time { font-size: 11px; }
  .vp-lg .vp-wave { height: 46px; }
  .vp-lg .vp-rail { margin-top: 12px; }
  .vp-lg .vp-takes { padding: 0 6px 0 8px; }
  .vp-lg .vp-takes-label { display: none; }
  .vp-lg .vp-take { width: 28px; height: 28px; }
  .vp-lg .vp-name, .vp-lg .vp-sep { height: 32px; }
  .vp-lg .vp-name { padding: 0 11px; font-size: 13px; }
  .vp-lg .vp-foot { align-items: stretch; gap: 8px; margin-top: 10px; padding: 0 2px; }
  .vp-lg .vp-bubble { justify-content: center; gap: 6px; padding: 7px 10px; }
  .vp-lg .vp-bubble svg { width: 15px; height: 15px; }
  .vp-lg .vp-bubble p { font-size: 12px; text-align: center; }
}

/* small tablets: the phone stack, but the topic switch keeps its own size */
@media (min-width: 561px) and (max-width: 768px) {
  .vp-lg .vp-topics { width: auto; align-self: flex-start; }
  .vp-lg .vp-topic { flex: none; padding: 0 13px; font-size: 13px; }
  .vp-lg .vp-bubble { align-self: flex-start; }
}

/* touch: 40px tall targets. Not a pseudo-element hit area: .vp-names
   scrolls, so it would clip anything outside the pill. */
@media (pointer: coarse) {
  .vp-lg .vp-topic,
  .vp-lg .vp-name,
  .vp-lg .vp-sep,
  .vp-lg .vp-rail.is-wrap .vp-takes { height: 40px; }
  .vp-lg .vp-take { width: 40px; height: 40px; }
  /* padding grows the link's hit area; the underline moves to text-decoration
     so it stays under the words */
  .vp-lg .vp-bubble a { display: inline-block; padding: 12px 0; margin: -12px 0 -12px 4px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(76, 58, 174, .35); text-underline-offset: 3px; }
  html[data-theme="dark"] .vp-lg .vp-bubble a { text-decoration-color: rgba(221, 214, 254, .4); }
}
/* 320px phones: the now-playing line keeps the voice name whole */
@media (max-width: 340px) {
  .vp-lg .vp-now-take { display: none; }
  .vp-lg .vp-topic { padding: 0 6px; font-size: 12px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-lg, .vp-lg *, .vp-lg::before, .vp-lg::after, .vp-lg *::before, .vp-lg *::after { transition: none !important; }
  .vp-lg .vp-names.is-in .vp-name,
  .vp-lg .vp-play::before,
  .vp-lg .vp-now-name.is-in,
  .vp-lg.is-handover .vp-sweep::before { animation: none !important; }
  .hero-demo-strip.vp-lg-strip.animate-up,
  .hero-demo-strip.vp-lg-strip.animate-up > .vp-lg,
  .hero-demo-strip.vp-lg-strip.animate-up::before { opacity: 1; transform: none; transition: none; }
}

/* Phones (2026-11-22): one calm stack. The three topics share the width
   equally, the play button sits beside the name and time, the waveform
   runs the full width under both, and the voice rail scrolls on one line. */
@media (max-width: 560px) {
  .vp-lg { padding: 12px 12px 14px; }
  .vp-lg .vp-head { gap: 10px; margin-bottom: 14px; }
  .vp-lg .vp-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vp-lg .vp-topic { padding: 0 4px; font-size: 12.5px; justify-content: center; white-space: nowrap; }
  .vp-lg .vp-new { display: none; }
  .vp-lg .vp-lede { font-size: 13px; line-height: 1.4; color: var(--text-dim); }
  .vp-lg .vp-main { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "play now" "wave wave"; row-gap: 8px; align-items: center; }
  .vp-lg .vp-play { width: 44px; height: 44px; }
  .vp-lg .vp-wave { height: 44px; }
  .vp-lg .vp-now { align-items: center; }
  .vp-lg .vp-now-name { font-size: 15.5px; }
  .vp-lg .vp-rail { margin-top: 10px; }
  .vp-lg .vp-fine { font-size: 11.5px; line-height: 1.45; }
  .vp-lg .vp-bubble { justify-content: flex-start; padding: 8px 12px; }
  .vp-lg .vp-bubble p { text-align: left; font-size: 12px; }
}
