/* ============================================================
   css/chat/chat-date.css — 约会模式视频通话
   场景背景层 / 摄像头PiP / 准备+切换浮层 / 键位
   ============================================================ */

/* 约会背景层 */
.date-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transition: opacity 0.35s ease;
}
.date-bg.date-bg-fading { opacity: 0.35; }
.date-bg-default {
    background:
        radial-gradient(ellipse 70% 50% at 30% -5%, rgba(201,168,168,0.6), transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 100%, rgba(184,168,196,0.5), transparent 55%),
        linear-gradient(160deg, #2A211E 0%, #3A2E25 50%, #211C1A 100%);
}
.date-bg-place {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600; letter-spacing: 4px;
    color: rgba(252,250,246,0.65);
    text-shadow: 0 1px 8px rgba(30,28,26,0.4);
}
/* 上下暗角遮罩（保字幕/按钮可读） */
.date-bg-mask {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(30,28,26,0.55), transparent 28%, transparent 65%, rgba(30,28,26,0.5));
}

/* 全屏摄像头层（约会底层） */
.date-cam-layer {
    position: absolute; inset: 0; z-index: 0;
    background: #1A1614;
    transition: opacity 0.4s ease;
}
.date-cam-layer video {
    width: 100%; height: 100%; object-fit: cover;
}
.date-cam-layer:not(.date-cam-on) { opacity: 0; }
/* 快门白闪（全屏） */
.dp-flash {
    position: absolute; inset: 0; pointer-events: none; z-index: 5;
    background: rgba(255,255,255,0.7); opacity: 0;
    transition: opacity 0.06s ease;
}
.dp-flash.dp-flash-on { opacity: 1; }
/* 前后摄翻转按钮（右下角） */
.dp-flip {
    position: absolute; right: 14px; bottom: 180px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(252,250,246,0.3); background: rgba(30,28,26,0.3);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    color: rgba(252,250,246,0.9); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* 约会态头部缩小移左上角 */
.co-date .co-top {
    position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px;
    flex-direction: row; align-items: center; gap: 10px; z-index: 2;
}
.co-date .co-avatar-ring { width: 52px; height: 52px; }
.co-date .co-name { font-size: 15px; margin-top: 0; text-align: left; }
.co-date .co-hint { font-size: 12px; text-align: left; margin-left: 0; }
.co-date .co-en-deco { display: none; }

/* 上排小键（录音+一起听） */
.date-mini-actions {
    position: absolute; top: calc(60px + env(safe-area-inset-top, 0px)); right: 14px;
    display: flex; gap: 8px; z-index: 2;
}
.co-btn-mini {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(252,250,246,0.25); background: rgba(30,28,26,0.25);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    color: rgba(252,250,246,0.9);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ===== 准备 / 切换浮层 ===== */
.date-setup-sheet {
    position: fixed; inset: 0; z-index: 2600;
    display: flex; align-items: flex-end;
    background: rgba(30,28,26,0.4);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ds-panel {
    width: 100%; max-height: 78vh; display: flex; flex-direction: column;
    background: #FCFAF6; border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(30,28,26,0.3);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    animation: cmsUp 0.24s cubic-bezier(0.22,0.61,0.36,1);
}
.ds-head {
    display: flex; align-items: baseline; gap: 8px;
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(196,168,106,0.22);
}
.ds-title { font-size: 17px; font-weight: 600; letter-spacing: 1px; color: #1E1C1A; }
.ds-en {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 12px; color: #C4A86A; opacity: 0.7; flex: 1;
}
.ds-close {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: transparent; color: #8A8278; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ds-body { flex: 1; overflow-y: auto; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.ds-label { font-size: 12.5px; color: #8A8278; letter-spacing: 0.3px; }
.ds-input {
    width: 100%; padding: 11px 13px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
    font-size: 15px; font-family: inherit; background: rgba(248,244,239,0.6);
    color: #1E1C1A; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ds-input:focus { border-color: #C9A8A8; box-shadow: 0 0 0 3px rgba(201,168,168,0.15); }
.ds-bg-row { display: flex; gap: 10px; align-items: center; }
.ds-bg-preview {
    width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0;
    border: 1px dashed rgba(0,0,0,0.12); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #BFB8AE; font-size: 11px; overflow: hidden;
    transition: border-color 0.2s ease;
}
.ds-bg-has { border-style: solid; border-color: #C9A8A8; padding: 0; }
.ds-bg-preview img { width: 100%; height: 100%; object-fit: cover; }
.ds-go-btn {
    width: 100%; padding: 14px; margin-top: 10px; border: none; border-radius: 14px;
    background: var(--rose-dark, #A88080);
    color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 2px;
    font-family: inherit; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease;
}
.ds-go-btn:active { transform: scale(0.97); }
