/* ============================================================
   overlay.css · 大肥鱼直播画面（1920×1080）
   层序：背景 → 视频 → 弹幕飞屏/右侧栏 → 字幕 → 提示条 → 底部
   性能：只用 transform / opacity 做动效
   ============================================================ */

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eadff6;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  background:
    linear-gradient(135deg, #fdf2f9 0%, #f8ecfb 30%, #f0e6fc 58%, #e7defa 82%, #e2d9f8 100%);
}

/* ============================== 1. 背景 ============================== */
.bg { position: absolute; inset: 0; pointer-events: none; }

.bg-blob {
  position: absolute;
  border-radius: 50%;
}
.blob-1 {
  width: 640px; height: 640px; left: -200px; top: -220px;
  background: radial-gradient(circle, rgba(255, 205, 228, .95), rgba(255, 205, 228, 0) 68%);
}
.blob-2 {
  width: 760px; height: 760px; right: -260px; top: 40px;
  background: radial-gradient(circle, rgba(206, 186, 250, .9), rgba(206, 186, 250, 0) 66%);
}
.blob-3 {
  width: 620px; height: 620px; left: 430px; bottom: -320px;
  background: radial-gradient(circle, rgba(255, 216, 238, .85), rgba(255, 216, 238, 0) 66%);
}

.bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(150, 120, 190, .07);
}
.ring-1 { width: 210px; height: 210px; right: 240px; top: -80px; }
.ring-2 { width: 320px; height: 320px; right: -90px; bottom: 90px; border-color: rgba(255, 255, 255, .5); }
.ring-3 { width: 150px; height: 150px; left: 880px; top: 22px; border-color: rgba(255, 255, 255, .55); }

/* ============================== 2. 视频区 ============================== */
.video {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 1240px;
  height: 698px;
  border-radius: 16px;
  overflow: hidden;
  background: #241733;
  box-shadow:
    0 26px 60px -26px rgba(74, 34, 104, .55),
    0 8px 20px -8px rgba(74, 34, 104, .28),
    0 0 0 1px rgba(255, 255, 255, .55);
  z-index: 2;
}

.video video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c1228;
  opacity: 0;
  transition: opacity .45s ease;
}
.video.has-video video { opacity: 1; }
.video.is-real .video-scene { display: none; }

.video-missing {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 20px;
  letter-spacing: 1px;
  background:
    radial-gradient(90% 90% at 50% 30%, rgba(90, 60, 130, .55), rgba(24, 14, 38, .96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 26px);
}

.video-chrome {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.video-top { left: 20px; top: 16px; }
.video-bottom { right: 20px; bottom: 16px; }

.ep-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8db6, #f4588f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 16px -6px rgba(244, 88, 143, .8);
}
.video-name {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(26, 14, 40, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .94);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, .28);
}
.live-label {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.video-time {
  margin-left: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(26, 14, 40, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .95);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
/* ---------- mock / 无信号时的 CSS 演示画面 ----------
   用纯 CSS 仿一个「以撒」风格的房间，mock 截图/预览时占位；
   真实模式有 <video> 时整块会被盖住（.has-video 后淡出）。 */
.video-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 30%, #2a1924 0%, #1c1018 60%, #120a10 100%);
  transition: opacity .35s ease;
}
.scene-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 上下砖墙 */
.scene-wall {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .26) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .34) 0 3px, transparent 3px 33px),
    linear-gradient(180deg, #5b3540 0%, #462630 42%, #331a23 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55);
}
.scene-wall::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 7px;
  background: linear-gradient(180deg, rgba(255, 210, 180, .12), rgba(0, 0, 0, .45));
}
.wall-top { top: 0; height: 13%; }
.wall-top::after { bottom: 0; }
.wall-bottom { bottom: 0; height: 11.5%; }
.wall-bottom::after { top: 0; transform: scaleY(-1); }

/* 地面 */
.scene-floor {
  position: absolute;
  left: 3.2%; right: 3.2%;
  top: 13%; bottom: 11.5%;
  background:
    radial-gradient(120% 92% at 50% 42%, #6c4448 0%, #593538 58%, #45272c 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .62);
}
.scene-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(45deg, rgba(255, 235, 220, .025) 0 2px, transparent 2px 9px);
}

/* HUD：爱心 + 分数（避开左上角 EP 角标） */
.scene-hud {
  position: absolute;
  left: 30%;
  top: 3.4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scene-hearts {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 4px;
  color: #e5484d;
  text-shadow: 0 0 10px rgba(229, 72, 77, .5), 0 2px 0 rgba(0, 0, 0, .45);
  font-family: "Segoe UI", var(--font-cn);
}
.scene-score {
  font-size: 13px;
  font-weight: 800;
  color: rgba(243, 227, 214, .55);
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* 左侧道具栏 */
.scene-stats {
  position: absolute;
  left: 2.8%;
  top: 19%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: rgba(238, 224, 210, .68);
  font-variant-numeric: tabular-nums;
}
.scene-stats span { display: flex; align-items: center; gap: 5px; }
.ico { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.ico-coin { background: radial-gradient(circle at 34% 30%, #ffe27a, #d8a21e 70%); box-shadow: 0 0 6px rgba(255, 210, 90, .35); }
.ico-bomb { background: radial-gradient(circle at 34% 30%, #6b6c7a, #23242c 70%); border-radius: 52% 52% 50% 50%; }
.ico-key { background: linear-gradient(180deg, #efe4d2, #b9a887); border-radius: 3px; }

/* 顶部 TIME */
.scene-time {
  position: absolute;
  left: 50%;
  top: 3.2%;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: rgba(240, 228, 216, .5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 门 */
.scene-door {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #160c12, #241018 70%, #120a0e);
}
.door-top {
  top: 10.6%;
  width: 104px;
  height: 34px;
  border: 3px solid #8b6a3e;
  border-radius: 46px 46px 5px 5px;
  box-shadow: 0 0 18px rgba(214, 168, 92, .25), inset 0 0 14px rgba(0, 0, 0, .8);
}
.door-bottom {
  bottom: 9.2%;
  width: 92px;
  height: 36px;
  border: 3px solid #6f4a38;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .8);
}

/* 箱子 */
.scene-chest {
  position: absolute;
  left: 36%;
  top: 55%;
  z-index: 2;
  width: 58px;
  height: 42px;
  border-radius: 5px;
  background: linear-gradient(180deg, #8792ab, #5d698a 48%, #3f4864);
  border: 3px solid #2c3245;
  box-shadow: 0 10px 16px rgba(0, 0, 0, .45);
}
.scene-chest::before {
  content: "";
  position: absolute;
  left: -3px; right: -3px; top: 38%;
  height: 3px;
  background: #2c3245;
}
.scene-chest::after {
  content: "";
  position: absolute;
  left: 50%; top: 34%;
  width: 13px; height: 15px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffe08a, #d3a02a);
  box-shadow: 0 0 8px rgba(255, 210, 90, .4);
}

/* 石头 */
.scene-rock {
  position: absolute;
  z-index: 2;
  background: radial-gradient(circle at 36% 26%, #6a4a4e, #3b2730 62%, #24151d);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .5), inset -4px -6px 10px rgba(0, 0, 0, .45);
}
.rock-1 { left: 12%; top: 46%; width: 54px; height: 44px; border-radius: 48% 52% 46% 54% / 58% 46% 54% 42%; }
.rock-2 { left: 67%; top: 20%; width: 46px; height: 38px; border-radius: 54% 46% 50% 50% / 46% 58% 42% 54%; }
.rock-3 { right: 8%; top: 64%; width: 62px; height: 48px; border-radius: 52% 48% 54% 46% / 50% 54% 46% 50%; }

/* 怪物 */
.scene-monster {
  position: absolute;
  z-index: 2;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  animation: monsterBob 2.6s ease-in-out infinite;
  box-shadow: inset -8px -12px 22px rgba(0, 0, 0, .4), 0 10px 20px rgba(0, 0, 0, .38);
}
.scene-monster::before,
.scene-monster::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 17%;
  height: 21%;
  border-radius: 50%;
  background: #170d13;
  box-shadow: 0 0 4px rgba(0, 0, 0, .6);
}
.scene-monster::before { left: 25%; }
.scene-monster::after { right: 25%; }
.mon-1 {
  width: 106px; height: 94px;
  left: 23%; top: 29%;
  background: radial-gradient(circle at 36% 28%, #e69a9c, #c0697c 56%, #7c3648);
}
.mon-2 {
  width: 74px; height: 68px;
  left: 63%; top: 27%;
  background: radial-gradient(circle at 38% 30%, #e7dfe8, #c2b6cc 56%, #8d7d9c);
  animation-delay: -1.1s;
}
.mon-3 {
  width: 122px; height: 108px;
  right: 12%; top: 55%;
  background: radial-gradient(circle at 36% 26%, #d07f86, #a44a5a 56%, #5f2634);
  animation-delay: -.6s;
}

/* 弹坑 */
.scene-pit {
  position: absolute;
  left: 45%;
  top: 73%;
  z-index: 1;
  width: 128px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #0e070b, #241019 66%, transparent 76%);
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, .9);
}

/* 玩家（以撒式小人） */
.scene-player {
  position: absolute;
  left: 43%;
  top: 52%;
  z-index: 3;
  width: 62px;
  height: 88px;
  animation: playerBob 1.9s ease-in-out infinite;
}
.p-head {
  position: absolute;
  left: 50%; top: 0;
  width: 56px; height: 52px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 38% 30%, #fffaf1, #f2e4d3 58%, #d8c2ac);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .4), inset 0 -5px 9px rgba(120, 80, 60, .18);
}
.p-head::before,
.p-head::after {
  content: "";
  position: absolute;
  top: 40%;
  width: 9px; height: 12px;
  border-radius: 42%;
  background: #241a1e;
}
.p-head::before { left: 26%; }
.p-head::after { right: 26%; }
.p-body {
  position: absolute;
  left: 50%; bottom: 0;
  width: 38px; height: 30px;
  transform: translateX(-50%);
  border-radius: 46% 46% 26% 26%;
  background: linear-gradient(180deg, #f6e7d6, #e2cbb4 60%, #cdb098);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
}
.p-body::before,
.p-body::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 11px; height: 9px;
  border-radius: 50%;
  background: #e8d6c2;
}
.p-body::before { left: 2px; }
.p-body::after { right: 2px; }

/* 泪弹 */
.scene-shot {
  position: absolute;
  z-index: 3;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff, #ffc9dd 45%, #f4588f);
  box-shadow: 0 0 10px rgba(255, 120, 170, .7);
  animation: shotFly 2.4s linear infinite;
}
.shot-1 { left: 48%; top: 58%; animation-delay: -.2s; }
.shot-2 { left: 50%; top: 55%; animation-delay: -1.3s; }
.shot-3 { left: 46%; top: 61%; animation-delay: -1.9s; }

/* 扫描线 / 暗角 */
.scene-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .15) 0 1px, transparent 1px 3px);
  opacity: .22;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, .6);
}
.scene-tag {
  position: absolute;
  right: 18px; top: 15px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 10, 14, .42);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .42);
}
@keyframes monsterBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes playerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes shotFly {
  0% { transform: translate(0, 0) scale(.9); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(520px, -130px) scale(1.15); opacity: 0; }
}

/* ============================== 4. 字幕条 ============================== */
.subtitle {
  position: absolute;
  left: 40px;
  top: 762px;
  width: 1240px;
  height: 96px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 16, 42, .58), rgba(24, 13, 36, .76));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 18px 40px -20px rgba(38, 16, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .14);
  animation: fadeIn .25s ease-out both;
}
.subtitle-text {
  width: 100%;
  font-size: 40px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .5);
  max-height: 2.44em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.subtitle-track {
  position: absolute;
  left: 26px; right: 26px; bottom: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.subtitle-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3ce, #ff6fa0 55%, #f4588f);
  box-shadow: 0 0 10px rgba(255, 120, 170, .75);
  transition: width .2s linear;
}

/* ============================== 6. 弹幕飞屏 ============================== */
.danmaku-strip {
  position: absolute;
  left: 14px;
  bottom: 66px;           /* 底边贴到底部统计条上沿（1080-56-10） */
  width: 900px;
  max-height: 152px;      /* 只占字幕条下面那条空带，不压画面和字幕 */
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px 10px;
  border-radius: 16px;
  background: linear-gradient(92deg, rgba(28, 14, 44, .62), rgba(28, 14, 44, .16) 92%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  /* 超出可视区的旧弹幕在顶部柔和淡出，而不是被硬切 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px);
          mask-image: linear-gradient(180deg, transparent 0, #000 26px);
  transition: opacity .3s ease;
}
.danmaku-strip.is-empty { opacity: 0; }

.dm-item {
  flex: 0 0 auto;
  align-self: flex-start;      /* 气泡按内容收窄，不拉满整条 */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 10px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .07);
  animation: dmIn .26s cubic-bezier(.2, .9, .3, 1.2) both;
  transition: opacity .28s ease, transform .28s ease;
}
.dm-item.leaving { opacity: 0; transform: translateY(-12px); }
.dm-who {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .3px;
  color: #ff9dc0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-item.kind-sc .dm-who,
.dm-item.kind-gift .dm-who { color: #ffd66e; }
.dm-text {
  font-size: 17px;
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
  word-break: break-word;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dm-reply {
  margin-top: 1px;
  padding: 4px 8px 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 224, 238, .95), rgba(255, 202, 226, .92));
  color: #7a2a52;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  box-shadow: 0 4px 10px -6px rgba(120, 40, 80, .45);
}
.dm-reply::before {
  content: "大肥鱼：";
  opacity: .65;
  font-weight: 800;
}
@keyframes dmIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================== 右侧栏 ============================== */
.right-col {
  position: absolute;
  left: 1304px;
  top: 40px;
  width: 576px;
  height: 984px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 7. 状态 chip + 水印 */
.status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.phase-chip {
  --pc: #9a8fb8;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1.5px solid var(--pc);
  color: var(--pc);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 24px -14px var(--pc), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.phase-chip em { font-style: normal; }
.phase-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 18%, transparent);
  animation: chipPulse 2.4s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .72; }
}
.watermark {
  width: 160px;
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 6px 14px rgba(120, 70, 150, .22));
}
/* 5. 要点卡片 */
.beat-card {
  position: relative;
  margin-top: 22px;
  padding: 16px 22px 14px 24px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(255, 244, 250, .82));
  border: 1px solid rgba(244, 88, 143, .18);
  box-shadow: 0 18px 40px -22px rgba(120, 60, 140, .45), 0 2px 8px rgba(120, 60, 140, .06);
  animation: beatIn .3s ease-out both;
}
.beat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #ff8db6, #b18cf2);
}
.beat-card::after {
  content: "";
  position: absolute;
  right: -70px; top: -80px;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(244, 88, 143, .12);
}
@keyframes beatIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.beat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.beat-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #b18cf2;
}
.beat-cue {
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9dc0, #f4588f);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px -6px rgba(244, 88, 143, .9);
}
.beat-index {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c3b8dc;
}
.beat-shot {
  font-size: 23px;
  line-height: 1.42;
  font-weight: 700;
  color: #3a3358;
  max-height: 3.05em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.beat-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.beat-range {
  font-size: 13px;
  font-weight: 700;
  color: #9a90b3;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.beat-progress {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(177, 140, 242, .18);
  overflow: hidden;
}
.beat-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b18cf2, #f4588f);
  transition: width .2s linear;
}

/* 3. 大肥鱼立绘 */
.char {
  position: relative;
  margin-top: auto;
  height: 604px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.char-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 0%, rgba(255, 220, 240, .5) 42%, rgba(220, 200, 250, 0) 70%);
  z-index: -1;
}
.char-float {
  animation: charFloat 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.char-blink {
  transform-origin: 50% 78%;
  transition: transform .1s ease;
}
.char-blink.blinking { animation: blinkSquash .14s ease-out; }
@keyframes blinkSquash {
  0% { transform: scaleY(1); }
  55% { transform: scaleY(.93); }
  100% { transform: scaleY(1); }
}
#charImg {
  display: block;
  height: 600px;
  width: auto;
  filter: drop-shadow(0 26px 34px rgba(78, 40, 118, .3));
  transform: translateY(calc(var(--mouth, 0) * -3px)) scaleY(calc(1 + var(--mouth, 0) * .012));
  will-change: transform;
}

/* 口型：脸颊圆形高亮，随 speech.env 振幅变亮 */
.cheek {
  position: absolute;
  top: 52.5%;
  width: 78px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 118, 162, .62), rgba(255, 118, 162, 0) 70%);
  opacity: calc(var(--mouth, 0) * .85);
  pointer-events: none;
}
.cheek-l { left: 24.5%; }
.cheek-r { right: 24.5%; }

/* 表情贴纸 */
.sticker-wrap {
  position: absolute;
  left: -14px;
  bottom: 58px;
  width: 250px;
  animation: stickerFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(120, 60, 140, .35));
  transform-origin: 30% 90%;
}
.sticker {
  display: block;
  width: 250px;
  height: auto;
  transform: rotate(-5deg);
  animation: stickerIn .34s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes stickerIn {
  0% { opacity: 0; transform: translateY(20px) scale(.8) rotate(-10deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-5deg); }
}
@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

/* ============================== 9. 提示条 ============================== */
.notice {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 50;
  max-width: 1120px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 30px 13px;
  transform: translateX(-50%);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #ffe886, #ffd54f);
  color: #5b4300;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .8px;
  box-shadow: 0 14px 30px -12px rgba(160, 120, 0, .55), inset 0 -2px 0 rgba(160, 120, 0, .18);
  animation: noticeIn .32s cubic-bezier(.2, 1.2, .4, 1) both;
}
.notice-dot {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d99a00;
  box-shadow: 0 0 0 4px rgba(217, 154, 0, .22);
}
@keyframes noticeIn {
  from { opacity: 0; transform: translate(-50%, -22px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================== 8. 底部栏 ============================== */
.bottom-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .64));
  border-top: 1px solid rgba(255, 255, 255, .75);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a3f6b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9dc0, #f4588f);
  box-shadow: 0 0 0 4px rgba(244, 88, 143, .14);
  animation: chipPulse 2.4s ease-in-out infinite;
}
.mock-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(177, 140, 242, .16);
  color: #8f6bd6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.bottom-stats {
  display: flex;
  align-items: center;
  gap: 9px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(244, 88, 143, .15);
  box-shadow: 0 4px 12px -8px rgba(120, 60, 140, .45);
  font-variant-numeric: tabular-nums;
}
.stat b {
  font-size: 18px;
  font-weight: 800;
  color: #3a3358;
  letter-spacing: .5px;
}
.stat em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #a29abd;
  letter-spacing: .5px;
}

/* 10. 右侧空地：观众点单提示 */
.req-tip {
  margin-top: 18px;
  padding: 14px 20px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 244, 250, .72));
  border: 1px dashed rgba(244, 88, 143, .4);
  box-shadow: 0 16px 34px -22px rgba(120, 60, 140, .45);
  animation: reqIn .4s ease-out both;
}
.req-kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #d8568f;
  margin-bottom: 5px;
}
.req-main {
  font-size: 23px;
  line-height: 1.34;
  font-weight: 800;
  color: #4b3f63;
}
.req-main b {
  color: #b4568f;
}
.req-sub {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #8d80a5;
  letter-spacing: .02em;
}
@keyframes reqIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

