/* ===== 连麦禅意背景 2026-11-18d（明亮金黄荷花版） =====
   目标：连麦时主播画面上下/左右的黑底换成明亮金黄荷花背景，且不遮挡任何内容。
   做法（恢复 a 版的双背景层，确保背景可见）：
     1) .video-area::before             —— 最底层兜底荷花（z-index:0）
     2) .video-zoom-viewport::after     —— 荷花背景盖在 CDN 视频层之上（z-index:7，原黑幕位置）
     3) .live-video                      —— 背景透明
     4) .video-grid.coguest-grid         —— 连麦带黑底 → 透明
     5) 顶部栏/投诉等元素 z-index 提到 10，确保在背景之上
   作用域：仅 .video-area.coguest-grid-mode（coGuestActive = 连麦中）。 */

.video-area.coguest-grid-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg,
      rgba(40, 25, 10, 0.20) 0%,
      rgba(40, 25, 10, 0.10) 18%,
      rgba(40, 25, 10, 0.04) 44%,
      rgba(40, 25, 10, 0.12) 72%,
      rgba(40, 25, 10, 0.22) 100%),
    var(--cg-zen-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  animation: cgZenIn 0.45s ease both;
}

.video-area.coguest-grid-mode .live-video {
  background: transparent !important;
}

.video-area.coguest-grid-mode .video-grid.coguest-grid {
  background: transparent !important;
}

/* 盖在 CDN 视频层之上的荷花背景（原黑幕位置，z-index 保持 7） */
body.cg-on .video-area.coguest-grid-mode .video-zoom-viewport::after {
  background-image:
    linear-gradient(180deg,
      rgba(40, 25, 10, 0.20) 0%,
      rgba(40, 25, 10, 0.10) 18%,
      rgba(40, 25, 10, 0.04) 44%,
      rgba(40, 25, 10, 0.12) 72%,
      rgba(40, 25, 10, 0.22) 100%),
    var(--cg-zen-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* 确保顶部栏（主播头像/名字/投诉）在背景之上 */
.video-area.coguest-grid-mode .anchor-info,
.video-area.coguest-grid-mode [class*="anchor-info"],
.video-area.coguest-grid-mode [class*="top-bar"],
.video-area.coguest-grid-mode [class*="header"] {
  position: relative !important;
  z-index: 10 !important;
}

@keyframes cgZenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .video-area.coguest-grid-mode::before { animation: none; }
}
