/* 语音通话。class 一律 cv- 开头。
   背景是主页那幅油画虚化，再罩一层藕粉紫（--call-a / --call-b / --call-c 在 tokens.css）；中间椭圆相框像旧怀表肖像 */
.cv-wrap { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.cv { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; color: #FBF8F4; overflow: hidden; background: var(--call-a);
  opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.cv-wrap.on .cv { opacity: 1; transform: none; }
.cv-wrap.min .cv { opacity: 0; transform: translateY(40px) scale(.96); pointer-events: none; }
.cv-bg { position: absolute; inset: -40px; }
.cv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; filter: blur(10px) saturate(.8); transform: scale(1.08); }
.cv-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(143, 122, 141, .58) 0%, rgba(174, 151, 168, .42) 48%, rgba(201, 182, 194, .7) 100%);
  background-color: transparent; }
.cv-veil::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 4px 4px; }
.cv > :not(.cv-bg):not(.cv-veil) { position: relative; }

.cv-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--status-h) + 6px) 16px 0; }
.cv-ib { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(251, 248, 244, .45); background: rgba(251, 248, 244, .14); color: inherit; padding: 0; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cv-ib.ghost { visibility: hidden; }
.cv-win { flex: 1; text-align: center; font-size: 12.5px; letter-spacing: 2px; opacity: .9; }

/* 椭圆相框 + 涟漪 */
.cv-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cv-frame { --lv: 0; position: relative; width: 168px; height: 208px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cv-oval { position: relative; z-index: 1; width: 168px; height: 208px; border-radius: 50%; padding: 7px; box-sizing: border-box;
  border: 1.5px solid rgba(251, 248, 244, .85); box-shadow: 0 0 0 5px rgba(251, 248, 244, .14), 0 0 0 6px rgba(251, 248, 244, .45), 0 14px 34px rgba(70, 50, 70, .3); }
.cv-av { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 40% 30%, #B7A4B4, #8A768B 70%); font-size: 54px; font-weight: 300; color: #FBF8F4; letter-spacing: 0; }
.cv-av img { width: 100%; height: 100%; object-fit: cover; }
.cv-bow { position: absolute; z-index: 2; top: -36px; left: 50%; width: 70px; margin-left: -35px; filter: drop-shadow(0 3px 4px rgba(70, 50, 70, .3)); }
.cv-rip { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(251, 248, 244, .55); pointer-events: none;
  transform: scale(calc(1 + var(--lv) * var(--k))); opacity: calc(.15 + var(--lv) * .7); transition: transform .12s ease-out, opacity .12s; }
.cv-rip.r1 { --k: .14; }
.cv-rip.r2 { --k: .26; border-color: rgba(251, 248, 244, .38); }
.cv-rip.r3 { --k: .4; border-color: rgba(251, 248, 244, .22); }
.cv-frame[data-who="me"] .cv-rip { border-color: rgba(70, 86, 94, .5); }

.cv-name { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 500; font-size: 22px; letter-spacing: 4px; line-height: 1.1; }
.cv-name i { font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 20px; letter-spacing: 0; opacity: .9; margin-top: 2px; }
.cv-time { margin-top: 6px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; letter-spacing: 2px; }
.cv-state { font-size: 12px; letter-spacing: 2px; opacity: .85; }
.cv-mood { margin-top: 6px; font-size: 12px; padding: 3px 12px; border-radius: 12px; background: rgba(251, 248, 244, .16); border: 1px solid rgba(251, 248, 244, .3); }

/* 字幕：半透明信纸卡 */
.cv-cap { margin: 0 24px; min-height: 96px; padding: 14px 18px; border-radius: 4px 18px 4px 18px; background: rgba(248, 243, 236, .86); color: var(--ink);
  box-shadow: 0 8px 22px rgba(70, 50, 70, .2); display: flex; flex-direction: column; gap: 6px; }
.cv-cap[hidden] { display: none; }
.cv-cap p { margin: 0; line-height: 1.65; }
.cv-cap .him { font-size: 15px; min-height: 24px; }
.cv-cap .me { font-size: 12.5px; color: var(--mauve-deep); }
.cv-cap .me:not(:empty)::before { content: '你：'; }

/* 按钮：磨砂圆钮 */
.cv-ctl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px 22px calc(28px + var(--safe-b)); }
.cv-b { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font-size: 11.5px; letter-spacing: 1px; padding: 0; }
.cv-b .ico { width: 58px; height: 58px; padding: 17px; border-radius: 50%; box-sizing: border-box; background: rgba(251, 248, 244, .16); border: 1px solid rgba(251, 248, 244, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cv-b[aria-pressed="true"] .ico { background: rgba(251, 248, 244, .92); color: var(--mauve-deep); }
.cv-b[data-act="cv-mute"][aria-pressed="true"] .ico { color: #8E5A63; }
.cv-b.end .ico { background: #8E5A63; border-color: rgba(251, 248, 244, .7); color: #FBF8F4; transform: rotate(135deg); box-shadow: 0 6px 16px rgba(110, 60, 70, .35); }

/* 收起后的小条：顶部居中，点了回到通话 */
.cv-pill { position: absolute; left: 50%; top: calc(var(--status-h) + 70px); transform: translateX(-50%); pointer-events: auto; z-index: 2;
  height: 32px; padding: 0 14px 0 10px; border-radius: 16px; border: 0; display: flex; align-items: center; gap: 8px;
  background: var(--call-a); color: #FBF8F4; font-size: 12.5px; box-shadow: 0 4px 14px rgba(70, 50, 70, .3); }
.cv-pill i { width: 8px; height: 8px; border-radius: 50%; background: #B9D1AE; animation: cl-pulse 1.6s ease-in-out infinite; }
.cv-pill .t { font-family: var(--font-serif); font-size: 13px; }
.cv-pill[hidden] { display: none; }

/* 聊天里的通话记录（一行分隔） */
.ct-call { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; background: rgba(169, 154, 170, .14); font-size: 12px; color: var(--mauve-deep); }
.ct-call .ico { width: 13px; height: 13px; }
