/* ======================================================================
   aniwaffle 1029 · Attractive voices 重排（index-5.html；index-6 等她拍板角色后再接）
   她：「这块排版表现一直不太好……参考 11labs、fishaudio、grok tts，然后来排我们的展示，现在太 cheap」。结构从三家真码搬（refs/elevenlabs-1029 / fishaudio-1029 / grok-tts-1029）：
   · 外框 = ElevenLabs 首页 Text to Speech 卡：左 280px 声音列表（role=radiogroup，48px 行、圆角 12px、pl 12 pr 16、gap 10；头像 + 名字 14/20 500 + 右侧灰色 tag；
     选中行 = 底色一阶、tag 隐掉换成 36px 圆形试听钮；点行 = 选中并自动播，再点 = 暂停），右边主区。
   · 主区上方 = fish.audio hero 的分段 tab（h48 p4 全圆 track，选中 h40 胶囊）= 三种 delivery style；中间 = 选中声音的大立绘（Vera 跟风格换表情）+ 日文台词；
   · 主区下方 = fish.audio「Meet S2.1 Pro」卡的 21 根波形（3px 宽、14px 间距、296×70，左右 mask 收边；闲置是点、hover 钟形 [44,36,24,8]、播放跟真音频）
     + 底部胶囊（tag 用 · 隔开 + 48px 圆形播放钮）。
   改：颜色 = 现有 token（11labs 的 cream / 黑钮、fish 的油画底图、所有阴影 / ring 描边 / backdrop 全去掉），字体 proxima-nova ≤ 500。卡本身就是一层面，里面不再套白板。
   ====================================================================== */
.vp { --vp-tint: #DBE9FF; --vp-ink: #1C2E4A; --vp-dim: rgba(28, 46, 74, .6); --vp-line: rgba(28, 46, 74, .12); --vp-btn: #83B3FF; --vp-btn-ink: #1C2E4A; --vp-bar: #1C2E4A; --vp-bar-idle: rgba(28, 46, 74, .28);
  display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 420px; color: var(--vp-ink); font-family: proxima-nova, "Noto Sans JP", sans-serif; }
html:not(.aw-light) .vp { --vp-tint: rgba(255, 255, 255, .16); --vp-ink: #fff; --vp-dim: rgba(255, 255, 255, .72); --vp-line: rgba(255, 255, 255, .24); --vp-btn: #fff; --vp-btn-ink: #7180FF; --vp-bar: #fff; --vp-bar-idle: rgba(255, 255, 255, .4); }

/* 左：声音列表（ElevenLabs radiogroup） */
.vp-list { display: flex; flex-direction: column; gap: 3px; padding: 4px 12px 4px 0; border-right: 1px solid var(--vp-line); }
.vp-row { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s cubic-bezier(.22, 1, .36, 1); }
.vp-row:hover { background: color-mix(in srgb, var(--vp-tint) 60%, transparent); }
.vp-row[aria-checked="true"] { background: var(--vp-tint); }
.vp-av { position: relative; flex: none; width: 28px; height: 28px; }
.vp-av img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; display: block; }
.vp-row[aria-checked="true"] .vp-av::after { content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--vp-btn); }
.vp-nm { flex: auto; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vp-nm b { font-size: 14px; line-height: 20px; font-weight: 500; }
.vp-nm span { font-size: 12px; line-height: 20px; font-weight: 500; color: var(--vp-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-row[aria-checked="true"] .vp-nm span { visibility: hidden; }
.vp-pv { position: absolute; right: 12px; top: 6px; display: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--vp-btn); color: var(--vp-btn-ink); }
.vp-row[aria-checked="true"] .vp-pv { display: grid; }
.vp-pv svg, .vp-play svg { width: 14px; height: 14px; fill: currentColor; }

/* 右：主区 */
.vp-main { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 4px 24px; min-width: 0; }
/* fish 分段 tab */
.vp-tabs { display: flex; gap: 0; height: 48px; padding: 4px; border-radius: 9999px; background: var(--vp-tint); align-self: flex-start; max-width: 100%; box-sizing: border-box; }
.vp-tab { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 9999px; background: none; color: var(--vp-dim); font: 500 15px/22.5px proxima-nova, sans-serif; cursor: pointer; white-space: nowrap; transition: color .15s, background-color .15s; }
.vp-tab[aria-selected="true"] { background: var(--vp-btn); color: var(--vp-btn-ink); }
.vp-tab i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--vp-tint); color: var(--vp-ink); }
.vp-tab[aria-selected="true"] i { background: rgba(255, 255, 255, .5); }
/* 立绘 + 台词 */
.vp-stage { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: end; min-height: 280px; cursor: pointer; }
.vp-fig { position: relative; height: 280px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.vp-fig img { position: absolute; left: 50%; bottom: 0; height: 112%; width: auto; max-width: none; translate: -50% 0; opacity: 0; transition: opacity .28s cubic-bezier(.22, 1, .36, 1); }
.vp-fig img.on { opacity: 1; }
.vp.talk .vp-fig img.on { animation: vpTalk 1.1s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 100%; }
@keyframes vpTalk { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.012) rotate(-.4deg); } 70% { transform: scale(1.006) rotate(.3deg); } }
.vp-line { margin: 0 0 12px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: var(--vp-dim); }
.vp-line span { transition: color .2s linear; } .vp-line span.on { color: var(--vp-ink); }
/* fish 21 根波形 */
.vp-wave { position: relative; width: 296px; height: 70px; margin: 0 auto; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.vp-wave b { position: absolute; width: 3px; height: 3px; top: 33.5px; border-radius: 12px; background: var(--vp-bar-idle); transition: height 320ms cubic-bezier(.22, 1, .36, 1), top 320ms cubic-bezier(.22, 1, .36, 1), background-color 180ms linear; }
.vp.playing .vp-wave b { background: var(--vp-bar); transition: height 70ms linear, top 70ms linear, background-color 120ms linear; }
.vp-stage:hover ~ .vp-wave b, .vp-wave.hov b { background: var(--vp-bar); }
/* fish 底部胶囊：tag · tag · 时长 + 48px 播放钮 */
.vp-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-radius: 9999px; background: var(--vp-tint); }
.vp-pill p { flex: auto; min-width: 0; margin: 0; font-size: 15px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-play { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--vp-btn); color: var(--vp-btn-ink); cursor: pointer; transition: transform .16s cubic-bezier(.22, 1, .36, 1); }
.vp-play:hover { transform: scale(1.05); }
.vp-foot { margin: 0; font-size: 12px; color: var(--vp-dim); }
@media (max-width: 991px) {
  .vp { grid-template-columns: 1fr; }
  .vp-list { flex-direction: row; overflow-x: auto; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--vp-line); }
  .vp-row { flex: none; } .vp-nm span { display: none; } .vp-row[aria-checked="true"] { padding-right: 56px; }
  .vp-main { padding: 16px 0 0; } .vp-stage { grid-template-columns: 140px minmax(0, 1fr); } .vp-fig { height: 170px; }
}
@media (max-width: 479px) { .vp-tab { padding: 0 10px; font-size: 13px; } .vp-stage { grid-template-columns: 1fr; } .vp-wave { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .vp.talk .vp-fig img.on { animation: none; } }
