/* The voice player: a row of word chips (the word, its pinyin), one play button and a waveform that lights as the
   voice passes over it. One copy, for the landing page's native-voices tile and the Learn articles (voice.js beside
   it). The page gives --text, --field, --sans and --han. */
.vp { --vp-swap: .34s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.vp .say { position: relative; display: flex; gap: 8px; height: 44px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.vp .say::-webkit-scrollbar { display: none; }
/* the words as chips in a row that scrolls sideways with no bar: the hanzi and pinyin, the word in hand lit */
.vp .chip { flex: none; height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer;
  font: 400 14px/44px var(--sans); color: rgba(255, 255, 255, .5); white-space: nowrap; transition: background var(--vp-swap), color var(--vp-swap);
  -webkit-tap-highlight-color: transparent; }
.vp .chip span { margin-right: 8px; font: 500 20px var(--han); color: rgba(255, 255, 255, .6); transition: color var(--vp-swap); }
.vp .chip.on { background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .7); }
.vp .chip.on span { color: var(--text); }
.vp .hear { display: flex; align-items: center; gap: 16px; }
.vp .play { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--text); color: var(--field); display: grid; place-items: center; cursor: pointer; }
.vp .play svg { width: 26px; height: 26px; fill: currentColor; }
.vp .wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 64px; min-width: 0; }
.vp .wave i { flex: 1; min-height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); transition: background .12s, height var(--vp-swap); }
.vp .wave i.on { background: var(--text); }
/* a word still loading: its waveform blinks until the voice starts (a quick load never dims: the blink starts lit) */
.vp .hear.loading .wave { animation: vp-blink .8s ease-in-out infinite; }
@keyframes vp-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .vp .hear.loading .wave { animation: none; opacity: .5; } }
/* one sentence beside its text: a lower wave, and chips only to name its speakers (North, South), smaller */
.vp.line { gap: 8px; }
.vp.line .say { height: 34px; }
.vp.line .chip { height: 34px; padding: 0 14px; font: 500 13px/34px var(--sans); letter-spacing: .02em; }
.vp.line .play { width: 40px; height: 40px; }
.vp.line .play svg { width: 22px; height: 22px; }
.vp.line .wave { height: 40px; max-width: 320px; }
