/* ============================================================
   css/chat/chat-call.css — 实时通话界面 / 通话卡片
   暖黑底 + 玫瑰径向光晕（参照命运之轮暗调风格）
   布局：右上角工具条（字 / 语 / ♪）→ 头像 · 计时 → 固定字幕框 → 状态指示器 → 底部键位
   ============================================================ */

#call-overlay {
    position: fixed; inset: 0; z-index: 2500;
    display: none; flex-direction: column; align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: calc(64px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #211C1A 0%, #2A211E 55%, #1A1614 100%);
    color: #FCFAF6;
    overflow: hidden;
    transition: opacity 0.8s ease;
}
#call-overlay.co-fading { opacity: 0; }
.co-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 42% at 50% 18%, rgba(201, 168, 168, 0.16), transparent 65%),
        radial-gradient(ellipse 55% 38% at 50% 100%, rgba(184, 168, 196, 0.1), transparent 60%);
}
#call-overlay.co-ringing-flash .co-glow { animation: coFlash 1.6s ease-in-out infinite; }
@keyframes coFlash {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1.2; }
}

/* 顶部：头像 + 名字 + 计时 */
.co-top { display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1; }
/* 第 7 条：两个头像（他的在前，她的从他肩后浮出）；只动 transform/opacity，绝不改布局尺寸 */
/* ★ 修（甲方第 2 条）：她的圆以前是「常态占位、只是透明」，白白吃掉 68px 宽，把他的头像挤到偏左。
   现在两个圆都绝对定位在同一个舞台正中——一起听关掉时他正正在中间，开了才一个往左让、她浮出来。
   ★ 修（甲方第 7 条）：两个圆同尺寸（都 116px，矮屏都 88px），动效一次呼吸、错峰 60ms，不再一大一小 */
.co-avatars { position: relative; width: 100%; height: 116px; display: flex; align-items: center; justify-content: center; }
.co-avatars .co-avatar-ring {
    position: absolute; left: 50%; top: 50%;
    margin: 0;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.42s ease;
}
.co-avatars .co-avatar-ring:first-child { z-index: 2; }   /* 他在前，她从他旁边浮出来，叠一点点 */
.co-avatars .co-avatar-her {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    /* ★ 不再用 scale(0.88) 入场：那让她在过渡的一瞬看着比他的小一圈（甲方第 7 条）。
       现在第一帧就跟他一样大，只做「从右侧 8px 淡入」，尺寸从头到尾一致。 */
    transform: translate(calc(-50% + 8px), -50%);
    box-shadow: 0 6px 16px rgba(196, 168, 106, 0.18);
}
/* 叠压处那圈纸白细描边改成内描边：原地不变大，视觉上也不会「她看着大一圈」 */
.co-avatars .co-avatar-her .co-avatar { box-shadow: inset 0 0 0 2px rgba(252, 250, 246, 0.55); }
/* 一起听播放中：他往左让一点，她浮出来（两边同一套节奏，只错开 60ms） */
.co-together .co-avatars .co-avatar-ring:first-child { transform: translate(calc(-50% - 44px), -50%); }
.co-together .co-avatars .co-avatar-her { opacity: 1; transform: translate(calc(-50% + 48px), -50%); transition-delay: 0.06s; }
@media (prefers-reduced-motion: reduce) {
    .co-avatars .co-avatar-ring, .co-avatars .co-avatar-her { transition: opacity 0.2s ease; }
    .co-together .co-avatars .co-avatar-ring:first-child { transform: translate(calc(-50% - 44px), -50%); }
}
.co-avatar-ring {
    width: 116px; height: 116px; border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(201, 168, 168, 0.7), rgba(196, 168, 106, 0.5), rgba(184, 168, 196, 0.6));
    box-shadow: 0 0 0 0 rgba(201, 168, 168, 0.35);
}
.co-avatar-ring.co-breathing { animation: coBreath 2.6s ease-in-out infinite; }
/* ★ 她的头像以前没有呼吸动效，看着像一张死图（甲方第 7 条）。现在两个都呼吸，
   错半个周期——两个球同步会像复制品，错开才像两个人一起在呼吸。 */
.co-avatar-ring.co-avatar-her.co-breathing { animation-delay: -1.3s; }
@keyframes coBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 168, 0.35); }
    50% { box-shadow: 0 0 0 16px rgba(201, 168, 168, 0); }
}
.co-avatar {
    width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    background: #3a302c;
    display: flex; align-items: center; justify-content: center;
}
.co-avatar img { width: 100%; height: 100%; object-fit: cover; }
.co-avatar-fallback {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 40px; color: rgba(252, 250, 246, 0.85);
}
.co-name { font-size: 22px; font-weight: 600; letter-spacing: 2px; margin-top: 6px; }
.co-hint { font-size: 14px; color: rgba(252, 250, 246, 0.65); font-variant-numeric: tabular-nums; }
.co-en-deco {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 13px; letter-spacing: 1.5px;
    color: rgba(196, 168, 106, 0.75);
    animation: coDecoBlink 2s ease-in-out infinite;
}
@keyframes coDecoBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== 右上角工具条：字 / 语 / ♪ ===== */
.co-tools {
    position: absolute; z-index: 4;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: max(14px, calc(50% - 226px));
    display: flex; align-items: center; gap: 8px;
}
.co-tool-btn {
    display: flex; align-items: center; justify-content: center;   /* 内容居中：min-width 撑出的余量两边均分 */
    gap: 4px; line-height: 1;
    min-width: 34px; height: 34px; padding: 0 9px;
    border-radius: 17px;
    border: 1px solid rgba(252, 250, 246, 0.16);
    background: rgba(252, 250, 246, 0.06);
    color: rgba(252, 250, 246, 0.62);
    font-family: inherit; font-size: 13px; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.co-tool-btn:active { transform: scale(0.94); }
.co-tool-btn.co-text-on,
.co-tool-btn.co-music-on {
    background: rgba(201, 168, 168, 0.24);
    border-color: rgba(201, 168, 168, 0.5);
    color: #FCFAF6;
}
.co-tool-zi { line-height: 1; }
.co-tool-sub { font-size: 10px; letter-spacing: 0.02em; opacity: 0.75; }
.co-tool-note { font-size: 15px; line-height: 1; color: rgba(196, 168, 106, 0.9); }

/* ===== 字幕框：固定尺寸，只往里追加，绝不随内容长高缩矮 ===== */
.co-sub {
    flex: 0 0 auto;
    width: 100%; max-width: 440px;
    height: 200px; min-height: 126px; max-height: 34vh;
    padding: 12px 14px;
    background: rgba(252, 250, 246, 0.05);
    border: 1px solid rgba(252, 250, 246, 0.08);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    transition: height 0.28s cubic-bezier(0.22, 0.9, 0.28, 1), min-height 0.28s cubic-bezier(0.22, 0.9, 0.28, 1),
                max-height 0.28s cubic-bezier(0.22, 0.9, 0.28, 1), padding 0.28s ease,
                border-width 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
}
/* 「字」关掉 = 字幕框原地淡出收起来（甲条第 6 条：收起来的时候状态圈和下面的按键一个像素都不许动）。
   ★ 只改透明度、绝不改高度/内边距/外边距——只要它的盒子尺寸变了，下面那串元素就会整体上下跳。 */
.co-sub.co-text-off {
    opacity: 0;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
}
@media (prefers-reduced-motion: reduce) {
    .co-sub { transition: opacity 0.2s ease; }
}
.co-log {
    height: 100%; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    display: flex; flex-direction: column; gap: 9px;
    padding-right: 2px;
}
.co-log::-webkit-scrollbar { width: 0; height: 0; display: none; }
.co-log-line {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 15px; line-height: 1.5; color: rgba(252, 250, 246, 0.72);
    transition: color 0.25s ease, opacity 0.25s ease;
    word-break: break-word;
}
.co-log-line.co-playing { color: #FCFAF6; }
.co-log-who { display: none; }
.co-log-text { word-break: break-word; }
/* 译文另起一行、左对齐（跟原文同一侧，绝不贴到右边她说的话上） */
.co-log-zh {
    font-size: 12px; line-height: 1.45;
    color: rgba(252, 250, 246, 0.5);
    text-align: left;
    word-break: break-word;
    transition: color 0.25s ease;
}
.co-log-line.co-playing .co-log-zh { color: rgba(252, 250, 246, 0.7); }
.co-log.co-no-zh .co-log-zh { display: none; }
/* 她说的话：靠右，气一点 */
.co-log-me { align-self: flex-end; align-items: flex-end; text-align: right; max-width: 86%; }
.co-log-me .co-log-text { color: rgba(201, 168, 168, 0.9); font-size: 13px; }

/* ===== 边说边出字（第 1 条）：草稿行 + 呼吸光标；权威整句到了就换成正式行 ===== */
.co-log-draft { opacity: 0.94; }
.co-log-draft.co-typing .co-log-text::after {
    content: '';
    display: inline-block;
    width: 2px; height: 1em;
    margin-left: 2px;
    vertical-align: -0.12em;
    border-radius: 1px;
    background: rgba(252, 250, 246, 0.5);
    animation: coCaret 1.05s ease-in-out infinite;
}
@keyframes coCaret { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .co-log-draft.co-typing .co-log-text::after { animation: none; opacity: 0.55; } }
/* 她说的话边说边出字：同一个光标，换成她那侧的浅玫瑰色 */
.co-log-me.co-log-draft.co-typing .co-log-text::after { background: rgba(201, 168, 168, 0.55); }

/* ===== 状态指示器：一个图形六种态，都在字幕框下面这一处 ===== */
.co-ind {
    position: relative; z-index: 2;
    width: 78px; height: 78px; flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(252, 250, 246, 0.18);
    background: rgba(252, 250, 246, 0.06);
    color: rgba(252, 250, 246, 0.9);
    display: flex; align-items: center; justify-content: center;
    cursor: default; font-family: inherit;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.co-ind > span { display: none; }
.co-ind:active { transform: scale(0.96); }
/* 波形（等她说 / 我在听） */
.co-ind--idle .co-ind-wave,
.co-ind--listening .co-ind-wave,
.co-ind--quiet .co-ind-wave,
.co-ind--ptt .co-ind-wave { display: flex; }
/* 陪着你（他自己安排了先安静一会儿）：波形慢下来、染一点玫瑰色，一眼看出是「陪着」不是「在听」 */
.co-ind--quiet { border-color: rgba(201, 168, 168, 0.34); background: rgba(201, 168, 168, 0.10); }
.co-ind--quiet .co-ind-wave i { animation: coWavePulse 3.4s ease-in-out infinite; opacity: 0.75; }
.co-ind--quiet .co-ind-wave i:nth-child(2) { animation-delay: 0.5s; }
.co-ind--quiet .co-ind-wave i:nth-child(3) { animation-delay: 1s; }
.co-ind--quiet .co-ind-wave i:nth-child(4) { animation-delay: 1.5s; }
.co-ind--quiet .co-ind-wave i:nth-child(5) { animation-delay: 2s; }
.co-ind-wave { align-items: center; gap: 4px; height: 26px; }
.co-ind-wave i {
    width: 3px; height: 9px; border-radius: 2px;
    background: rgba(201, 168, 168, 0.8);
    transform: scaleY(0.6);
    transition: transform 0.15s ease;
}
.co-ind-wave i:nth-child(2) { height: 15px; }
.co-ind-wave i:nth-child(3) { height: 22px; }
.co-ind-wave i:nth-child(4) { height: 15px; }
.co-ind-wave i:nth-child(5) { height: 9px; }
.co-ind--listening .co-ind-wave i { animation: coWavePulse 1.1s ease-in-out infinite; }
.co-ind--listening .co-ind-wave i:nth-child(2) { animation-delay: 0.1s; }
.co-ind--listening .co-ind-wave i:nth-child(3) { animation-delay: 0.2s; }
.co-ind--listening .co-ind-wave i:nth-child(4) { animation-delay: 0.3s; }
.co-ind--listening .co-ind-wave i:nth-child(5) { animation-delay: 0.4s; }
.co-ind.co-loud .co-ind-wave i { animation: coWavePulse 0.42s ease-in-out infinite; transform: scaleY(1.5); }
@keyframes coWavePulse {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.6); }
}
/* 转圈（他在想） */
.co-ind--thinking .co-ind-spin { display: block; }
.co-ind-spin {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(252, 250, 246, 0.16);
    border-top-color: rgba(201, 168, 168, 0.95);
    animation: coSpin 0.9s linear infinite;
}
@keyframes coSpin { to { transform: rotate(360deg); } }
/* 圆角方块（他在说 / 点一下打断） */
.co-ind--speaking {
    background: rgba(201, 168, 168, 0.18);
    border-color: rgba(201, 168, 168, 0.55);
}
.co-ind--speaking .co-ind-stop { display: block; }
.co-ind-stop {
    width: 24px; height: 24px; border-radius: 7px;
    background: #FCFAF6;
    box-shadow: 0 0 0 0 rgba(252, 250, 246, 0.35);
    animation: coStopPulse 1.8s ease-in-out infinite;
}
@keyframes coStopPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(252, 250, 246, 0.28); }
    50% { box-shadow: 0 0 0 9px rgba(252, 250, 246, 0); }
}
/* 静音 = 麦克风加斜杠 */
.co-ind--muted .co-ind-mute { display: flex; }
.co-ind-mute { position: relative; width: 24px; height: 26px; align-items: center; justify-content: center; }
.co-ind-mute::before {
    content: ''; width: 9px; height: 15px; border-radius: 5px;
    background: rgba(252, 250, 246, 0.85);
    margin-top: -4px;
}
.co-ind-mute::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 1.5px; background: #C97A7A; transform: rotate(-45deg);
}
/* 按住说话（一起听时） */
.co-ind.co-ptt-live {
    background: linear-gradient(150deg, #93A98A, #7D9070);
    border-color: transparent;
    box-shadow: 0 0 0 8px rgba(147, 169, 138, 0.18);
    transform: scale(1.04);
}
.co-status {
    min-height: 17px; font-size: 12px; letter-spacing: 0.06em;
    color: rgba(252, 250, 246, 0.45); z-index: 1; text-align: center;
}
/* 没接上那行字要看得清、也看得出能点（它就是出口） */
.co-ind--error + .co-status { color: rgba(252, 250, 246, 0.78); }
/* ===== 没接上：波形摊平＋一个回转箭头（这个圈本身就是「点一下重说」的出口，不再单起按钮） ===== */
.co-ind--error {
    background: rgba(201, 168, 168, 0.10);
    border-color: rgba(201, 168, 168, 0.34);
    cursor: pointer;
    animation: coErrBreath 3.4s ease-in-out infinite;
}
.co-ind--error .co-ind-wave { display: none; }
.co-ind--error .co-ind-redo { display: block; }
.co-ind-redo {
    position: relative; width: 25px; height: 25px; box-sizing: border-box;
    border: 1.9px solid rgba(252, 250, 246, 0.92);
    border-radius: 50%;
    border-top-color: transparent;      /* 缺口留在正上方，箭头尖就咬在这个缺口右口上 */
    transition: transform 0.2s ease;
}
/* 箭头尖：一个「>」，落在缺口右端，顺着顺时针方向收口（和圈连在一起，不飘在旁边） */
.co-ind-redo::after {
    content: ''; position: absolute; top: 2px; right: 2px;
    width: 8px; height: 8px; box-sizing: border-box;
    border-top: 1.9px solid rgba(252, 250, 246, 0.92);
    border-right: 1.9px solid rgba(252, 250, 246, 0.92);
    transform: rotate(45deg);
}
.co-ind--error:active .co-ind-redo { transform: rotate(24deg); }
@keyframes coErrBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 168, 0.20); }
    50% { box-shadow: 0 0 0 7px rgba(201, 168, 168, 0); }
}

/* ===== 一起听：头像下面一条音波线（代替原来的底部横框） ===== */
.co-wave {
    display: none; align-items: flex-end; justify-content: center; gap: 3px;
    height: 14px; margin-top: 2px; z-index: 1;
}
.co-wave.on { display: flex; }
.co-wave i {
    display: block; width: 3px; height: 4px; border-radius: 2px;
    background: rgba(196, 168, 106, 0.9);
    animation: coWavePulse 1.1s ease-in-out infinite;
}
.co-wave i:nth-child(1) { animation-delay: 0s; }
.co-wave i:nth-child(2) { animation-delay: 0.14s; }
.co-wave i:nth-child(3) { animation-delay: 0.28s; }
.co-wave i:nth-child(4) { animation-delay: 0.42s; }
.co-wave i:nth-child(5) { animation-delay: 0.56s; }
@keyframes coWavePulse {
    0%, 100% { height: 4px; opacity: 0.55; }
    50% { height: 13px; opacity: 1; }
}
/* 暂停时静止（不高低跳，但线还在，代表「还有一首歌在这儿」） */
.co-wave.paused i { animation: none; height: 6px; opacity: 0.6; }

/* ===== 一起听 ·「正在播放」那一块 =====
   ★ 这一整块以前是「浅色字 + 浅色边框」放在纸白面板上 —— 所以她看到的就是一片空白、
     一个按钮都看不见。现在一律深色字压在纸底上，金玫瑰做点缀。 */
.co-np {
    padding: 10px 12px 11px; margin-bottom: 10px;
    border-radius: 16px;
    background: linear-gradient(158deg, rgba(196, 168, 106, 0.10), rgba(201, 168, 168, 0.07));
    border: 1px solid rgba(196, 168, 106, 0.24);
}
.co-np-row { display: flex; align-items: center; gap: 11px; }
.co-np-cover { width: 46px; height: 46px; border-radius: 12px; }
.co-np-title {
    display: block; font-size: 14px; line-height: 1.35; color: #2A211E;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.co-np-meta {
    display: block; margin-top: 3px; font-size: 11.5px;
    color: rgba(42, 33, 30, 0.52); font-variant-numeric: tabular-nums;
}
.co-np-bar {
    height: 3px; margin: 10px 2px 0; border-radius: 2px;
    background: rgba(42, 33, 30, 0.10); overflow: hidden;
}
.co-np-bar i {
    display: block; height: 100%; width: 0; border-radius: 2px;
    background: linear-gradient(90deg, #C9A8A8, #C4A86A);
    transition: width 0.9s linear;
}
.co-np-ops { display: flex; gap: 8px; margin-top: 10px; }
.co-np-btn {
    flex: 1; min-height: 36px; padding: 7px 0; border-radius: 11px;
    border: 1px solid rgba(42, 33, 30, 0.14); background: #FFFFFF;
    font-size: 12.5px; color: #5A4B44; font-family: inherit; cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.co-np-btn:active { background: rgba(201, 168, 168, 0.16); }
.co-np-btn.co-np-stop { border-color: rgba(201, 122, 122, 0.45); color: #B5645F; background: rgba(201, 122, 122, 0.05); }
.co-sheet-main { flex: none; width: 100%; padding: 11px 0; font-size: 13.5px; letter-spacing: 0.5px; }
.co-sheet-loading { padding: 18px 4px; text-align: center; font-size: 12px; color: rgba(42, 33, 30, 0.45); }

/* ===== 底部键位 ===== */
.co-actions { display: flex; gap: 40px; z-index: 1; align-items: center; margin-top: auto; padding-top: 6px; }
.co-actions-main { display: flex; gap: 36px; z-index: 1; align-items: center; justify-content: center; }
.co-btn {
    width: 66px; height: 66px; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #FCFAF6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.co-btn:active { transform: scale(0.92); }
.co-accept { background: linear-gradient(150deg, #93A98A, #7D9070); }
.co-reject { background: linear-gradient(150deg, #C97A7A, #B06060); }
.co-icon-down { display: flex; transform: rotate(135deg); }
.co-btn-sub {
    width: 52px; height: 52px;
    background: rgba(252, 250, 246, 0.14);
    border: 1px solid rgba(252, 250, 246, 0.28);
    color: rgba(252, 250, 246, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.co-btn-sub.co-btn-on { background: rgba(252, 250, 246, 0.88); color: #2A211E; }
.co-btn-sub.co-rec-live {
    background: rgba(201, 122, 122, 0.85);
    color: #FCFAF6;
    animation: coRecPulse 1.6s ease-in-out infinite;
}
@keyframes coRecPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 122, 122, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(201, 122, 122, 0); }
}

/* ===== 通话内的选择面板（语种 / 一起听共用） ===== */
.co-sheet-mask {
    position: absolute; inset: 0; z-index: 6;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(20, 17, 15, 0.55);
    animation: coMaskIn 0.2s ease-out;
}
@keyframes coMaskIn { from { opacity: 0; } to { opacity: 1; } }
.co-sheet {
    width: 100%; max-width: 440px;
    background: #FCFAF6;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.32);
    animation: coSheetUp 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-height: 66vh; display: flex; flex-direction: column;
}
@keyframes coSheetUp {
    from { transform: translateY(30%); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.co-sheet-head { position: relative; display: flex; align-items: center; justify-content: center; padding-bottom: 12px; }
.co-sheet-head .co-sheet-title { padding-bottom: 0; }
.co-sheet-x {
    position: absolute; right: -2px; top: -5px;
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: transparent;
    color: #8A8278; cursor: pointer;
}
.co-sheet-x:active { background: rgba(42, 33, 30, 0.08); }
.co-sheet-title {
    font-size: 15px; font-weight: 600; letter-spacing: 1px;
    color: #1E1C1A; text-align: center; padding-bottom: 12px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
/* 「收起只是藏起来，歌继续放」——一句话消掉「关闭」和「结束一起听」的意义冲突（第 8 条） */
.co-sheet-sub {
    font-style: normal; font-size: 11px; font-weight: 400;
    letter-spacing: 0.3px; color: #A79E93;
}
/* ===== 记一笔（通话内手动录入，挂断即消失） ===== */
/* ★ 第六轮第 5 条：贴屏幕顶部展开 —— 键盘从下面升起来，永远盖不到上面这一块。
   以前按「可见视口算键盘高度去抬」的做法在真机上被 iOS 的焦点滚动打乱，抬了还是被盖住。 */
.co-mask-top { align-items: flex-start; }
.co-sheet-top {
    border-radius: 0 0 22px 22px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    max-height: 54vh;
    animation: coSheetDown 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes coSheetDown {
    from { transform: translateY(-16%); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.co-sheet-memo { max-height: 64vh; }
.co-sheet-memo.co-sheet-top { max-height: 54vh; }
.co-sheet-memo .co-memo-list { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.co-memo-hint { font-size: 12px; line-height: 1.7; color: #A79E93; padding: 0 2px 12px; }
.co-memo-form { display: flex; align-items: center; gap: 8px; }
.co-memo-input {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px;
    border-radius: 13px; border: 1px solid rgba(196, 168, 106, 0.3);
    background: rgba(201, 168, 168, 0.05);
    color: #1E1C1A; font-family: inherit; font-size: 14px;
    outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color 0.2s, background 0.2s;
}
.co-memo-input:focus { border-color: rgba(201, 168, 168, 0.66); background: rgba(201, 168, 168, 0.1); }
.co-memo-input::placeholder { color: #BEB5AA; }
.co-memo-ok {
    flex: 0 0 auto; height: 44px; padding: 0 18px;
    border-radius: 13px; border: 1px solid rgba(201, 168, 168, 0.55);
    background: rgba(201, 168, 168, 0.22);
    color: #8E5F5F; font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: transform 0.15s, background 0.2s;
}
.co-memo-ok:active { transform: scale(0.95); background: rgba(201, 168, 168, 0.34); }
.co-memo-list { margin-top: 12px; max-height: 32vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.co-memo-item {
    position: relative; padding: 9px 12px 9px 26px; margin-bottom: 7px;
    border-radius: 12px; background: rgba(201, 168, 168, 0.09);
    font-size: 13px; line-height: 1.6; color: #4A423C;
}
.co-memo-item::before {
    content: ''; position: absolute; left: 11px; top: 15px;
    width: 5px; height: 5px; border-radius: 50%; background: #C9A8A8;
}
.co-sheet-item {
    width: 100%; height: 48px; margin-bottom: 8px;
    border-radius: 14px; border: 1px solid rgba(196, 168, 106, 0.24);
    background: rgba(201, 168, 168, 0.06);
    color: #1E1C1A; font-family: inherit; font-size: 15px; cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.co-sheet-item:active { background: rgba(201, 168, 168, 0.16); }
.co-sheet-item.co-sheet-on {
    background: rgba(201, 168, 168, 0.2);
    border-color: rgba(201, 168, 168, 0.6);
    color: #8E5F5F; font-weight: 600;
}
.co-sheet-wide { max-height: 72vh; }
.co-sheet-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.co-sheet-song {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 9px 8px; border-radius: 13px; border: none;
    background: transparent; cursor: pointer; font-family: inherit; text-align: left;
}
.co-sheet-song:active { background: rgba(201, 168, 168, 0.12); }
.co-sheet-song.co-sheet-on { background: rgba(201, 168, 168, 0.16); }
.css-cover {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    object-fit: cover; overflow: hidden;
    background: rgba(201, 168, 168, 0.14); color: #b08585;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.css-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.css-title {
    font-size: 14px; color: #1E1C1A;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.css-artist { font-size: 11.5px; color: #8A8278; margin-top: 1px; }
.co-sheet-empty { text-align: center; padding: 30px 0 34px; font-size: 13px; color: #BFB8AE; line-height: 1.9; }
.co-sheet-empty span { font-size: 11.5px; opacity: 0.85; }
/* 第 5 条：面板只列能放的歌，放不了的压根不出现（失效/只有在线链接都藏） */
.co-sheet-foot {
    display: flex; gap: 8px; justify-content: flex-end;
    padding-top: 10px; margin-top: 4px;
    border-top: 1px solid rgba(30, 28, 26, 0.08);
}

/* ===== 聊天页通话卡片 ===== */
.call-card {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 2px 0; cursor: pointer;
    color: inherit;
}
.call-card-icon {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(168, 184, 160, 0.18);
    color: #7D9070;
}
.call-card-missed .call-card-icon { background: rgba(201, 122, 122, 0.15); color: #C97A7A; }
.call-card-missed .call-card-label { color: #C97A7A; }
.call-card-label { font-size: 14px; }
.call-card-thumb {
    width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(30,28,26,0.12);
}

/* 窄屏（<370）与矮屏：保证字幕框 + 指示器 + 键位同时在场、不重叠 */
@media (max-height: 700px) {
    .co-avatars { height: 88px; }
    .co-avatar-ring { width: 88px; height: 88px; }
    /* 圆小了，让开的距离也要跟着收，两圆照样叠一点点 */
    .co-together .co-avatars .co-avatar-ring:first-child { transform: translate(calc(-50% - 34px), -50%); }
    .co-together .co-avatars .co-avatar-her { transform: translate(calc(-50% + 38px), -50%) scale(1); }
    .co-sub { height: 168px; }
    .co-ind { width: 68px; height: 68px; }
    #call-overlay { gap: 10px; }
}
@media (max-width: 369px) {
    #call-overlay { padding-left: 14px; padding-right: 14px; }
    .co-tools { right: 12px; gap: 6px; }
    .co-tool-btn { height: 32px; min-width: 32px; padding: 0 8px; font-size: 12px; }
    .co-tool-sub { display: none; }
    .co-sub { padding: 10px 12px; }
    .co-log-line { font-size: 14px; }
    .co-actions-main { gap: 24px; }
}
