/* ================= 联机语音 ================= */
.vc-spacer { height: 78px; }
body.vc-on .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* 底部浮动语音条 */
.vc-bar { position: fixed; z-index: 44; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(448px, calc(100vw - 24px)); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 22px;
  background: linear-gradient(180deg, #2a121ced, #140a0ff2); border: 1px solid #d9b26f40;
  box-shadow: 0 16px 36px -14px #000, 0 0 0 1px #00000060, inset 0 1px 0 #ffffff12;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.vc-bar button { flex: none; }
.vc-bar svg { width: 20px; height: 20px; display: block; }

.vc-mic { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px 0 13px; border-radius: 16px; font-size: 14.5px; letter-spacing: .08em; }
.vc-mic b { font-weight: 600; white-space: nowrap; }
.vc-mic.off { color: var(--gold2); border-color: #d9b26f55; background: linear-gradient(180deg, #ffffff0d, #ffffff02), #1d0f16; }
.vc-mic.on { color: #fff3e3; border: 1px solid #e5b9784d; background: linear-gradient(180deg, #c4304f, #7a0f2c);
  box-shadow: inset 0 1px 0 #ffffff33, 0 0 22px -6px #d93a5ecc; }
.vc-mic.lock { color: var(--mute); background: #120a0e; border-color: var(--line); }
.vc-mic:disabled { opacity: .7; }

.vc-ic { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 14px; color: var(--mute); background: #ffffff06; }
.vc-ic.on { color: var(--gold2); border-color: #d9b26f55; }

.vc-ppl { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 0; padding-left: 6px; overflow: hidden; cursor: pointer; }
.vc-lbl { font-size: 12.5px; color: var(--mute); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
.vc-plus { font: 600 12px/1 var(--latin); color: var(--gold); padding-left: 8px; }

/* 头像 + 说话光圈 */
.vc-av { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; margin-left: -6px; padding: 2px; background: #140a0f; transition: box-shadow .18s; }
.vc-av:first-child { margin-left: 0; }
.vc-av::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; pointer-events: none; }
.vc-av.m::before { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #3a2229; border: 1.5px solid #140a0f; z-index: 1; }
.vc-av.w { opacity: .5; }
.vc-av.x { filter: grayscale(1); opacity: .5; }
.vc-ini { display: grid; place-items: center; border-radius: 50%; font: 600 13px/1 var(--serif); font-style: normal; color: #1a0c12;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.vc-talk::after, [data-vc].vc-talk { border-color: var(--gold2); box-shadow: 0 0 0 2px #d9b26f40, 0 0 14px 2px #f3dcaa88; }
[data-vc].vc-talk:not(.vc-av) { border-radius: 50%; }
.vc-talk { animation: vcPulse 1s ease-in-out infinite; }
@keyframes vcPulse { 50% { box-shadow: 0 0 0 4px #d9b26f22; } }

/* 自动播放被拦截时 */
.vc-top { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.vc-top:empty { display: none; }
.vc-top > * { pointer-events: auto; }
.vc-tap { white-space: nowrap; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  color: #2a1408; background: var(--goldg); border: 0; font-weight: 700; box-shadow: 0 8px 22px -8px #d9b26faa; }
/* 私密语音 */
.vc-priv { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 5px 5px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  color: var(--gold2); background: linear-gradient(180deg, #2a121cf2, #160a10f5); border: 1px solid #d9b26f66; box-shadow: 0 10px 26px -12px #000, 0 0 18px -8px #d9b26f88; }
.vc-priv.on { border-color: var(--gold); box-shadow: 0 10px 26px -12px #000, 0 0 22px -6px #d9b26fcc; }
.vc-priv i { font-style: normal; font-size: 12px; }
.vc-priv b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 8em; }
.vc-priv small { color: var(--mute); font-size: 11.5px; }
.vc-priv small::after { content: ""; display: inline-block; width: 0; }
.vc-priv button { margin-left: 4px; padding: 5px 10px; font-size: 12px; border-radius: 999px; }
.vc-av.p { opacity: .35; filter: grayscale(.8); }

/* 弹层 */
.vc-sheet { position: fixed; inset: 0; z-index: 61; background: #000a; display: flex; align-items: flex-end; justify-content: center; animation: vcFade .2s ease both; }
.vc-sheet-in { width: min(480px, 100%); max-height: 86vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 22px max(18px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: radial-gradient(120% 60% at 50% 0%, #3a1424, #170a10 70%); border: 1px solid #d9b26f33; border-bottom: 0;
  box-shadow: 0 -20px 50px -20px #000; animation: vcUp .28s var(--ease) both; }
.vc-sheet h3 { text-align: center; font: 600 19px/1.3 var(--serif); letter-spacing: .14em; color: var(--gold2); }
.vc-ic-big { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--gold2);
  background: radial-gradient(circle at 35% 30%, #3a1a24, #140a0e); border: 1px solid #d9b26f77; box-shadow: 0 0 22px -6px #d9b26f88; }
.vc-ic-big svg { width: 26px; height: 26px; }
.vc-ic-big.warn { color: #ffd9de; border-color: #d93a5e88; box-shadow: 0 0 22px -6px #d93a5ecc; }
.vc-pts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vc-pts li { position: relative; padding: 10px 12px 10px 30px; border-radius: 12px; background: #0c0609; border: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.vc-pts li::before { content: "◆"; position: absolute; left: 12px; top: 11px; font-size: 9px; color: var(--gold); }
.vc-pts b { color: var(--gold2); }
.vc-warn { margin: 0; text-align: center; font-size: 13.5px; color: #ffd9de; padding: 9px 12px; border-radius: 12px; background: #3a0a16aa; border: 1px solid #d93a5e55; }
.vc-warn.big { font: 700 17px/1.5 var(--serif); letter-spacing: .08em; padding: 14px; }
.vc-note { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--mute); display: flex; flex-direction: column; }
.vc-note::before { content: "🔒"; font-size: 13px; }
.vc-sheet .row { display: flex; gap: 8px; } .vc-sheet .row > * { flex: 1; }
.vc-list { display: flex; flex-direction: column; gap: 8px; }
.vc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #0c0609; border: 1px solid var(--line); }
.vc-row .vc-av { margin: 0; }
.vc-row b { font: 600 15px/1.3 var(--serif); letter-spacing: .05em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-row small { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.vc-row small.on { color: #6fc9a4; }
.vc-row button { margin-left: auto; flex: none; }
.vc-row button.on, .vc-vid-acts button.on { color: var(--gold2); border-color: #d9b26f66; }

/* 视频（默认关闭） */
.vc-vid { position: fixed; inset: 0; z-index: 43; display: flex; flex-direction: column; gap: 10px; background: #070305f5;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-left)) calc(96px + env(safe-area-inset-bottom)); }
.vc-vid-bar { display: flex; align-items: center; justify-content: space-between; }
.vc-vid-bar b { font: 600 17px var(--serif); letter-spacing: .14em; color: var(--gold2); }
.vc-grid { flex: 1; min-height: 0; display: grid; gap: 8px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.vc-grid.n2, .vc-grid.n3, .vc-grid.n4 { grid-template-columns: 1fr 1fr; }
.vc-grid.n5, .vc-grid.n6 { grid-template-columns: 1fr 1fr; }
.vc-grid.spot { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 76px; grid-auto-rows: 76px; }
.vc-grid.spot .vc-tile.big { grid-column: 1 / -1; grid-row: 1; }
.vc-grid > .hint { align-self: center; }
.vc-tile { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; background: #140a0f; border: 1px solid var(--line); cursor: pointer; }
.vc-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-tile.me video { transform: scaleX(-1); }
.vc-tile span { position: absolute; left: 8px; bottom: 6px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #000a; color: var(--text); }
.vc-vid-acts { display: flex; gap: 8px; } .vc-vid-acts > * { flex: 1; }

@keyframes vcFade { from { opacity: 0; } }
@keyframes vcUp { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 360px) { .vc-mic { padding: 0 12px 0 10px; } .vc-ic { width: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .vc-talk { animation: none; }
  .vc-sheet, .vc-sheet-in { animation: none; }
  .vc-av, .vc-av::after { transition: none; }
}

/* 变声器 + 降噪 */
.vc-fxb i { font-style: normal; font-size: 19px; line-height: 1; }
.vc-fxb.on { background: #d9b26f1a; }
.vc-fxb.err { border-color: #d93a5e99; box-shadow: 0 0 14px -4px #d93a5ecc; }
.vc-fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vc-fx { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 74px; padding: 6px 2px; border-radius: 14px; background: #0c0609; }
.vc-fx i { font-style: normal; font-size: 24px; line-height: 1; }
.vc-fx span { font-size: 12px; letter-spacing: .02em; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.vc-fx.on { color: var(--gold2); border-color: var(--gold); background: radial-gradient(circle at 50% 30%, #3a1a24, #140a0e); box-shadow: 0 0 18px -6px #d9b26fcc; }
.vc-mon { display: flex; align-items: center; gap: 10px; }
.vc-mon button { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.vc-mon button i { font-style: normal; }
.vc-mon button.on { color: var(--gold2); border-color: #d9b26f88; }
.vc-mon small { font-size: 11.5px; line-height: 1.45; color: var(--mute); }
.vc-h4 { margin: 4px 0 0; font: 600 14px/1.3 var(--serif); letter-spacing: .12em; color: var(--gold2); }
.vc-seg { display: flex; gap: 6px; } .vc-seg > * { flex: 1; }
.vc-seg button.on { color: #2a1408; background: var(--goldg); border-color: transparent; font-weight: 700; }
.vc-help { margin: 0; font-size: 12px; line-height: 1.6; color: var(--mute); }
.vc-fxrow { display: flex; align-items: center; gap: 8px; text-align: left; }
.vc-fxrow i { font-style: normal; font-size: 18px; }
.vc-fxrow b { margin-left: auto; color: var(--gold2); font-weight: 600; }
.vc-fxrow small { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
@media (max-width: 360px) { .vc-fx { height: 66px; } .vc-fx i { font-size: 21px; } .vc-fx span { font-size: 11px; } }
/* 申请上麦（cfg.mic = 'stage'）：没资格开麦时，麦克风按钮变成「✋ 申请上麦」/「已申请」/「排队中 #n」 */
.vc-mic.hand { color: #2a1408; background: var(--goldg); border: 0; font-weight: 700; padding: 0 16px; box-shadow: 0 8px 22px -10px #d9b26faa; }
.vc-mic.hand.wait { color: var(--gold2); background: #1d0f16; border: 1px dashed #d9b26f88; box-shadow: none; }
.vc-hand { position: relative; color: var(--gold2); border-color: #d9b26f88; animation: vcHand 1.6s ease-in-out infinite; }
.vc-hand i { font-style: normal; font-size: 18px; }
.vc-hand em { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font: 700 11px/18px var(--latin); font-style: normal;
  color: #fff; background: #c4304f; box-shadow: 0 0 0 2px #120a0e; }
@keyframes vcHand { 50% { box-shadow: 0 0 16px -2px #d9b26fcc; } }
@media (prefers-reduced-motion: reduce) { .vc-hand { animation: none; } }
