/* COPLAND TTS 사이트 고유 부품 — 음성 파형·짧은 재생 목록.
   공통 디자인(토큰·머리글·바닥글·버튼·카드 …)은 COPLAND 웹 키트(~/work/web/kit → 배포 시 kit/kit.css).
   값은 키트 tokens.css 변수만 쓴다. */

/* 음성 파형 — site.js 가 .wave 안에 막대를 채운다 */
.wave { display: flex; align-items: center; gap: 3px; height: 56px; }
.wave i { flex: 1 1 0; min-width: 2px; height: calc(var(--h, 0.4) * 100%); border-radius: 2px; background: rgba(255, 255, 255, 0.20); transform-origin: center; transition: background .2s; }
.wave i.past { background: linear-gradient(180deg, #7ea4ff, #2f6bff); }
.wave.playing i { animation: wv 1.1s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
@keyframes wv { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }

/* 짧은 재생 목록 (홈 위젯 등) — site.js 가 [data-src] 버튼을 묶는다 */
.sample { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 12px; font: inherit; color: inherit; cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.sample:hover { background: var(--bg-alt); }
.sample .pb { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: background .15s, color .15s, box-shadow .15s; }
.sample:hover .pb, .sample.on .pb { background: var(--accent); color: var(--on-accent); }
.sample .pb svg { width: 14px; height: 14px; }
.sample .pb .i-stop { display: none; }
.sample.on .pb .i-play { display: none; }
.sample.on .pb .i-stop { display: block; }
.sample .tt { font-weight: 600; font-size: 0.94rem; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.sample .tt .num { font-weight: 400; font-size: 0.76rem; color: var(--muted); }
.sample .tx { color: var(--ink-2); font-size: 0.88rem; line-height: 1.55; }
.sample .prog { position: absolute; left: 64px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.sample .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
