/* ===== Mode Suara · Role Play Inggris (2026-10-23) — mengikuti referensi Cinta:
   galeri skenario terang, lembar detail krem 3 langkah, panggilan layar penuh berlatar foto. ===== */

/* ---------- Galeri ---------- */
.voice-view{ flex:1; min-height:0; overflow-y:auto; background:#000; color:#F2F2F4; padding:16px 16px 40px; }
.voice-top{ display:flex; gap:10px; align-items:center; max-width:860px; margin:0 auto; }
.voice-back{ flex:none; width:44px; height:44px; border-radius:50%; border:1px solid #26262A; background:#101012; color:#F2F2F4; font-size:18px; cursor:pointer; }
.voice-search{ flex:1; display:flex; align-items:center; gap:9px; background:#101012; border:1px solid #26262A; border-radius:99px; padding:0 16px; height:48px; color:#8A8A93; }
.voice-search input{ flex:1; border:none; outline:none; background:none; font:inherit; font-size:15px; color:#F2F2F4; min-width:0; }
.voice-search input::placeholder{ color:#6E6E77; }
.voice-title{ max-width:860px; margin:18px auto 4px; font-size:24px; font-weight:800; letter-spacing:-.01em; }
.voice-title span{ color:#77777F; font-weight:600; font-size:15px; }
.voice-sub{ max-width:860px; margin:0 auto 14px; color:#9A9AA2; font-size:13.5px; line-height:1.55; }
.voice-cats{ max-width:860px; margin:0 auto 14px; display:flex; gap:8px; flex-wrap:wrap; }
.voice-cat{ border:1px solid #26262A; background:#101012; color:#B9B9C0; border-radius:99px; padding:7px 14px; font-size:13px; font-weight:600; cursor:pointer; }
.voice-cat.active{ background:#fff; border-color:#fff; color:#000; }
.voice-grid{ max-width:860px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.voice-card{ background:#101012; border:1px solid #1D1D20; border-radius:20px; overflow:hidden; display:flex; flex-direction:column; }
.voice-card-img{ position:relative; height:158px; background-size:cover; background-position:center; }
.voice-card-img::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(5,8,18,.78) 100%); }
.voice-level{ position:absolute; z-index:2; top:10px; right:10px; background:#fff; color:#141419; font-size:11px; font-weight:800; border-radius:99px; padding:3px 9px; }
.voice-card-meta{ position:absolute; z-index:2; left:12px; right:12px; bottom:10px; color:#fff; }
.voice-card-meta b{ display:block; font-size:16.5px; line-height:1.25; text-shadow:0 1px 8px rgba(0,0,0,.35); }
.voice-card-meta span{ display:block; font-size:12px; opacity:.88; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.voice-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; }
.voice-card-cat{ font-size:10.5px; font-weight:700; letter-spacing:.12em; color:#77777F; }
.voice-call-btn{ display:inline-flex; align-items:center; gap:6px; background:#5457D6; color:#fff; border:none; border-radius:99px; padding:8px 16px; font-size:13.5px; font-weight:700; cursor:pointer; }
.voice-call-btn:hover{ background:#4648C4; }
.voice-empty{ grid-column:1 / -1; text-align:center; color:#77777F; padding:36px 10px; font-size:14px; }

/* ---------- Lembar detail (sheet) ---------- */
.voice-sheet-wrap{ position:fixed; inset:0; z-index:1500; }
.voice-sheet-scrim{ position:absolute; inset:0; background:rgba(10,10,16,.55); }
.voice-sheet{ position:absolute; left:50%; transform:translateX(-50%); bottom:0; width:min(560px, 100%); max-height:92dvh; overflow-y:auto; background:#F8F3E7; color:#141419; border-radius:26px 26px 0 0; padding:18px 18px 22px; box-shadow:0 -12px 44px rgba(0,0,0,.35); }
@media (min-width:760px){ .voice-sheet{ bottom:50%; transform:translate(-50%,50%); border-radius:26px; } }
.vs-pill{ display:inline-block; background:#fff; border-radius:99px; padding:6px 13px; font-size:12px; font-weight:700; letter-spacing:.04em; }
.vs-close{ position:absolute; top:14px; right:14px; width:38px; height:38px; border-radius:50%; border:none; background:#fff; color:#141419; font-size:16px; cursor:pointer; z-index:3; }
.vs-hero{ position:relative; border-radius:20px; overflow:hidden; height:218px; background-size:cover; background-position:center; margin-top:12px; }
.vs-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(5,8,18,.45) 100%); }
.vs-lang{ position:absolute; z-index:2; top:12px; right:12px; background:#fff; color:#141419; border-radius:99px; padding:6px 12px; font-size:12.5px; font-weight:700; }
.vs-avatar{ position:absolute; z-index:2; left:50%; top:44%; transform:translate(-50%,-50%); width:104px; height:104px; border-radius:50%; object-fit:cover; border:4px solid #fff; box-shadow:0 8px 24px rgba(0,0,0,.3); }
.vs-scene-label{ position:absolute; z-index:2; left:50%; bottom:12px; transform:translateX(-50%); width:max-content; max-width:92%; background:rgba(255,255,255,.94); color:#141419; border-radius:12px; padding:8px 13px; font-size:11px; font-weight:800; letter-spacing:.05em; text-align:center; text-transform:uppercase; }
.vs-chips{ display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 4px; }
.vs-chip{ background:#fff; border-radius:99px; padding:7px 13px; font-size:13px; font-weight:600; }
.vs-chip.level{ background:#E4E6FB; color:#4648C4; font-weight:800; }
.vs-name{ font-size:24px; font-weight:800; margin:10px 0 4px; letter-spacing:-.01em; }
.vs-desc{ color:#55554F; font-size:14.5px; margin:0 0 16px; line-height:1.5; }
.vs-section-label{ display:flex; align-items:center; gap:7px; color:#2E7D5B; font-size:12.5px; font-weight:800; letter-spacing:.1em; margin:0 0 9px; }
.vs-box{ background:#fff; border-radius:16px; padding:15px 16px; font-size:14.5px; line-height:1.6; color:#23231F; margin-bottom:10px; }
.vs-goal{ display:flex; gap:13px; align-items:flex-start; }
.vs-goal-num{ flex:none; width:34px; height:34px; border-radius:50%; border:1.6px solid #D8D2BE; color:#55554F; display:grid; place-items:center; font-weight:700; font-size:14px; margin-top:1px; }
.vs-goal p{ margin:3px 0 0; font-size:15px; font-weight:600; line-height:1.5; }
.vs-ready-icon{ width:88px; height:88px; border-radius:50%; background:#2E9E63; display:grid; place-items:center; margin:16px auto 14px; }
.vs-ready-title{ text-align:center; font-size:23px; font-weight:800; margin:0 0 8px; }
.vs-ready-hint{ text-align:center; color:#55554F; font-size:14.5px; line-height:1.6; margin:0 auto 16px; max-width:400px; }
.vs-info{ background:#fff; border-radius:16px; padding:14px; text-align:center; margin-bottom:10px; }
.vs-info b{ display:block; font-size:17px; }
.vs-info span{ color:#8A8A80; font-size:13px; }
.vs-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; }
.vs-step-count{ color:#8A8A80; font-size:13.5px; font-weight:600; }
.vs-btn{ border:none; border-radius:99px; padding:13px 22px; font-size:15px; font-weight:700; cursor:pointer; }
.vs-btn.ghost{ background:#fff; color:#141419; }
.vs-btn.dark{ background:#101828; color:#fff; }
.vs-btn.green{ background:#2E9E63; color:#fff; display:inline-flex; align-items:center; gap:8px; }

/* ---------- Layar panggilan ---------- */
.voice-call{ position:fixed; inset:0; z-index:2000; background:#000; color:#fff; overflow:hidden; }
.voice-call-bg{ position:absolute; inset:0; background-size:cover; background-position:center; overflow:hidden; }
.voice-call-bg img, .voice-call-bg video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; }
.voice-call-bg.speaking img{ animation:vcBreathe 2.6s ease-in-out infinite alternate; }
@keyframes vcBreathe{ from{ transform:scale(1); filter:brightness(1); } to{ transform:scale(1.035); filter:brightness(1.06); } }
.voice-call-shade{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(4,6,12,.55) 0%, rgba(4,6,12,0) 26%, rgba(4,6,12,0) 52%, rgba(4,6,12,.72) 100%); }
.voice-call-ui{ position:absolute; inset:0; display:flex; flex-direction:column; padding:14px 16px calc(18px + env(safe-area-inset-bottom)); }
.vc-top{ display:flex; align-items:flex-start; justify-content:space-between; }
.vc-icon-btn{ width:42px; height:42px; border-radius:50%; border:none; background:rgba(20,22,30,.5); color:#fff; font-size:16px; cursor:pointer; backdrop-filter:blur(4px); }
.vc-top-center{ text-align:center; }
.vc-top-center b{ display:block; font-size:16.5px; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.vc-top-center span{ font-size:13.5px; opacity:.92; font-variant-numeric:tabular-nums; }
.vc-top-center span.low{ color:#FF9D94; font-weight:700; }
.vc-cc{ width:42px; height:42px; border-radius:50%; border:none; background:#fff; color:#233; font-size:12px; font-weight:800; cursor:pointer; }
.vc-cc.off{ background:rgba(20,22,30,.5); color:#fff; }
.vc-goals-pill{ align-self:center; margin-top:12px; display:inline-flex; gap:8px; align-items:center; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:99px; padding:8px 15px; font-size:12.5px; font-weight:700; letter-spacing:.06em; cursor:pointer; backdrop-filter:blur(6px); }
.vc-goals-list{ align-self:center; margin-top:8px; width:min(430px, 94%); background:rgba(12,14,20,.88); border:1px solid rgba(255,255,255,.22); border-radius:16px; padding:12px 14px; backdrop-filter:blur(8px); }
.vc-goals-list p{ margin:0 0 8px; font-size:13.5px; line-height:1.5; display:flex; gap:9px; }
.vc-goals-list p:last-child{ margin-bottom:0; }
.vc-goals-list .done{ color:#7EE2AE; }
.vc-caption{ margin-top:12px; align-self:center; width:min(560px, 96%); background:#fff; color:#141419; border-radius:18px; padding:13px 16px 14px; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.vc-caption span{ display:block; text-align:center; font-size:11px; font-weight:800; letter-spacing:.14em; color:#8A8A93; text-transform:uppercase; margin-bottom:5px; }
.vc-caption p{ margin:0; text-align:center; font-size:16.5px; font-weight:600; line-height:1.5; }
.vc-caption.hidden-cc{ display:none; }
.vc-userline{ margin-top:9px; align-self:center; width:min(560px, 96%); background:rgba(12,14,20,.78); border:1px solid rgba(255,255,255,.2); border-radius:14px; padding:9px 14px; backdrop-filter:blur(6px); }
.vc-userline span{ font-size:10px; font-weight:800; letter-spacing:.14em; color:#9EC1FF; text-transform:uppercase; }
.vc-userline p{ margin:2px 0 0; font-size:14px; line-height:1.5; }
.vc-avatar{ position:absolute; left:50%; bottom:128px; transform:translateX(-50%); width:min(58vw, 300px); height:auto; border-radius:28px; box-shadow:0 24px 60px rgba(0,0,0,.5); }
.vc-avatar.speaking{ animation:vcPulse 1.15s ease-in-out infinite; }
@keyframes vcPulse{ 0%,100%{ transform:translateX(-50%) scale(1); } 50%{ transform:translateX(-50%) scale(1.035); } }
.vc-status{ position:absolute; left:0; right:0; bottom:104px; text-align:center; font-size:13px; font-weight:600; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.65); }
.vc-controls{ margin-top:auto; display:flex; align-items:center; justify-content:center; gap:20px; }
.vc-round{ width:58px; height:58px; border-radius:50%; border:none; background:rgba(255,255,255,.94); color:#3A3F4A; display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 22px rgba(0,0,0,.35); }
.vc-round.muted{ background:#F6D9D7; color:#C2433B; }
.vc-round.recording{ background:#E5484D; color:#fff; animation:vcMicPulse 1.1s ease-in-out infinite; }
.vc-round.listening{ animation:vcMicPulse 1.3s ease-in-out infinite; }
@keyframes vcMicPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,.5); } 50%{ box-shadow:0 0 0 12px rgba(255,255,255,0); } }
.vc-end{ width:70px; height:70px; border-radius:50%; border:none; background:#E5484D; display:grid; place-items:center; cursor:pointer; box-shadow:0 10px 26px rgba(229,72,77,.45); }
.vc-typebar{ position:absolute; left:50%; transform:translateX(-50%); bottom:196px; width:min(520px, 94%); display:flex; gap:8px; }
.vc-typebar input{ flex:1; border:none; outline:none; border-radius:99px; padding:12px 17px; font:inherit; font-size:14.5px; color:#141419; box-shadow:0 10px 26px rgba(0,0,0,.35); min-width:0; }
.vc-typebar button{ border:none; border-radius:99px; padding:0 19px; background:#5457D6; color:#fff; font-weight:700; font-size:14px; cursor:pointer; }

.vc-unlock{ position:absolute; z-index:5; left:50%; transform:translateX(-50%); bottom:206px; display:inline-flex; align-items:center; gap:8px; background:#FFC531; color:#231a00; border:none; border-radius:99px; padding:13px 20px; font-size:14.5px; font-weight:800; cursor:pointer; box-shadow:0 12px 30px rgba(0,0,0,.45); animation:vcUnlockPulse 1.4s ease-in-out infinite; white-space:nowrap; }
.vc-unlock[hidden]{ display:none; }
@keyframes vcUnlockPulse{ 0%,100%{ transform:translateX(-50%) scale(1); } 50%{ transform:translateX(-50%) scale(1.05); } }
.vs-test-btn{ width:100%; margin-top:2px; }

/* ---------- Hasil / nilai ---------- */
.vc-results{ position:absolute; inset:0; overflow-y:auto; background:#F8F3E7; color:#141419; padding:20px 18px 30px; }
.vc-results-inner{ max-width:520px; margin:0 auto; }
.vc-score-hero{ text-align:center; padding:10px 0 4px; }
.vc-score-num{ font-size:64px; font-weight:800; line-height:1; letter-spacing:-.02em; }
.vc-score-num small{ font-size:20px; color:#8A8A80; font-weight:600; }
.vc-score-label{ color:#55554F; font-size:14px; margin-top:5px; }
.vc-bars{ background:#fff; border-radius:16px; padding:15px 16px; margin:14px 0 10px; }
.vc-bar-row{ display:grid; grid-template-columns:96px 1fr 34px; align-items:center; gap:10px; margin-bottom:10px; font-size:13.5px; font-weight:600; }
.vc-bar-row:last-child{ margin-bottom:0; }
.vc-bar-track{ height:8px; background:#EFEAE0; border-radius:99px; overflow:hidden; }
.vc-bar-track i{ display:block; height:100%; background:#2E9E63; border-radius:99px; }
.vc-bar-row b{ text-align:right; font-variant-numeric:tabular-nums; }
.vc-results .vs-box p{ margin:0; }
.vc-correction{ font-size:13.5px; }
.vc-result-actions{ display:flex; gap:10px; margin-top:16px; }
.vc-result-actions .vs-btn{ flex:1; }

/* ===== Mode anime (referensi baru): latar blur + karakter anime + sheet Call ended ===== */
#vcPersonImg, #vcVideo{ display:none !important; }
.voice-call-bg.anime-bg{ filter:blur(7px) brightness(.95) saturate(.92); transform:scale(1.08); }
.vc-char{ position:absolute; left:50%; bottom:96px; transform:translateX(-50%); height:min(53%, 600px); max-width:94%; object-fit:contain; pointer-events:none; filter:drop-shadow(0 18px 26px rgba(10,5,20,.35)); animation:vcBob 3.4s ease-in-out infinite; z-index:1; }
.vc-char.talking{ animation-duration:1.7s; }
@keyframes vcBob{ 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(-7px); } }
.voice-call-ui{ z-index:2; }
.vc-round.ai-muted{ background:#F6E0DC; color:#C0564D; position:relative; }
.vc-round.ai-muted::after{ content:''; position:absolute; left:9px; right:9px; top:50%; height:2.4px; border-radius:2px; background:#C0564D; transform:rotate(-38deg); }
.vc-caption{ min-height:66px; }
.voice-card-img{ position:relative; }
.voice-card-char{ position:absolute; right:4px; bottom:0; height:82%; max-width:62%; object-fit:contain; object-position:bottom right; pointer-events:none; filter:drop-shadow(0 6px 12px rgba(10,5,20,.30)); }
.vs-avatar{ background:#fff; object-position:top center; }
.vc-ended{ position:absolute; inset:0; z-index:6; display:flex; align-items:flex-end; justify-content:center; background:rgba(12,10,18,.45); padding:0 16px 16px; }
.vc-ended[hidden]{ display:none; }
.vc-ended-card{ width:100%; max-width:430px; background:#fff; color:#17171C; border-radius:26px; padding:24px 20px 18px; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.35); max-height:calc(100% - 24px); overflow-y:auto; }
.vc-ended-img{ width:92px; height:92px; border-radius:50%; object-fit:cover; object-position:top center; background:#F1EFE9; margin:0 auto 10px; display:block; }
.vc-ended-card h3{ margin:0; font-size:20px; font-weight:800; letter-spacing:-.01em; }
.vc-ended-name{ margin:3px 0 16px; color:#8A8A93; font-size:13.5px; }
.vc-ended-stats{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.vc-ended-stat{ background:#F4F4F6; border-radius:14px; padding:10px 12px; text-align:left; }
.vc-ended-stat span{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.1em; color:#8A8A93; }
.vc-ended-stat b{ font-size:19px; font-weight:800; }
.vc-ended-goals{ list-style:none; margin:0 0 18px; padding:0; text-align:left; display:grid; gap:10px; }
.vc-ended-goals li{ position:relative; padding-left:30px; font-size:13.5px; line-height:1.45; color:#3C3C44; }
.vc-ended-goals li::before{ content:''; position:absolute; left:0; top:1px; width:17px; height:17px; border-radius:50%; border:2px dashed #C9C9D1; }
.vc-ended-goals li.done{ color:#17171C; }
.vc-ended-goals li.done::before{ content:'✓'; border:2px solid #2E9E63; background:#2E9E63; color:#fff; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.vc-ended-report{ width:100%; border:none; border-radius:14px; background:#5A50E6; color:#fff; font-size:15px; font-weight:700; padding:14px; cursor:pointer; }
.vc-ended-report:disabled{ opacity:.6; }
.vc-ended-done{ width:100%; border:none; background:none; color:#17171C; font-size:14.5px; font-weight:600; padding:12px; cursor:pointer; }

/* === Mic di composer chat === */
.mic-button svg{ display:block; }
.mic-button.recording{ color:#ff5f57 !important; animation:micPulse 1.2s ease-in-out infinite; }
.mic-button.transcribing{ opacity:.5; pointer-events:none; }
@keyframes micPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,95,87,.45); } 50%{ box-shadow:0 0 0 7px rgba(255,95,87,0); } }
.mic-hint{ display:flex; align-items:center; gap:8px; padding:8px 6px 0; font-size:12px; color:#c9cfda; }
.mic-hint[hidden]{ display:none !important; }
.mic-dot{ flex:none; width:8px; height:8px; border-radius:50%; background:#ff5f57; animation:micBlink 1s steps(2,start) infinite; }
@keyframes micBlink{ 50%{ opacity:.25; } }
