/* =========================================================================
   B站弹幕透视镜 · 独立网页全景大屏样式库 (style.css v2.4.0)
   - 模块化解耦架构：独立样式文件，版本迭代互不干扰
   - 极简扁平与赛博朋克高对比霓虹暗黑主题
   - 高性能紧凑滚动条规范与流光动画引擎
   ========================================================================= */

@keyframes neonGlow {
      0%, 100% {
        box-shadow: 0 0 15px rgba(255, 34, 85, 0.35), inset 0 0 8px rgba(255, 34, 85, 0.1);
        border-color: #ff2255;
      }
      50% {
        box-shadow: 0 0 25px rgba(255, 34, 85, 0.55), inset 0 0 15px rgba(255, 34, 85, 0.2);
        border-color: #ff477e;
      }
    }
    @keyframes pulseLive {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }
    .neon-pulse { animation: neonGlow 4s infinite ease-in-out; }
    .live-dot-pulse { animation: pulseLive 1.8s infinite ease-in-out; }

    
    /* Dedicated Cyber Scrollbar for Live Danmaku Stream */
    /* High-Contrast Cyber Scrollbar for Live Danmaku Stream */
    #bur-danmaku-stream-box {
      overflow-y: scroll !important;
      scrollbar-gutter: stable;
      scroll-behavior: smooth;
    }
    #bur-danmaku-stream-box::-webkit-scrollbar {
      width: 10px !important;
    }
    #bur-danmaku-stream-box::-webkit-scrollbar-track {
      background: rgba(10, 3, 8, 0.95) !important;
      border-left: 1px solid rgba(255, 34, 85, 0.3) !important;
      border-radius: 4px;
    }
    #bur-danmaku-stream-box::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #ff2255, #c90035) !important;
      border-radius: 4px !important;
      border: 1px solid rgba(255, 255, 255, 0.25) !important;
      box-shadow: 0 0 10px rgba(255, 34, 85, 0.6) !important;
    }
    #bur-danmaku-stream-box::-webkit-scrollbar-thumb:hover {
      background: #ff477e !important;
    }

    /* Live Room Emoticon & Badge Animations */
    .bili-emote-img {
      display: inline-block;
      vertical-align: middle;
      object-fit: contain;
      transition: transform 0.15s ease-in-out;
    }
    .bili-emote-img:hover {
      transform: scale(1.35);
      z-index: 10;
    }
    .bili-sticker-large {
      display: inline-block;
      max-height: 48px;
      max-width: 64px;
      object-fit: contain;
      vertical-align: middle;
      border-radius: 6px;
      margin: 2px 0;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .bili-sticker-large:hover {
      transform: scale(1.4);
      z-index: 20;
    }

    /* Custom dark cyber scrollbars */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: rgba(12, 5, 10, 0.8); }
    ::-webkit-scrollbar-thumb { background: rgba(255, 34, 85, 0.4); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #ff2255; }

    .cyber-card {
      background: rgba(18, 7, 14, 0.85);
      border: 1px solid rgba(255, 34, 85, 0.25);
      backdrop-filter: blur(12px);
    }
    .cyber-card:hover {
      border-color: rgba(255, 34, 85, 0.5);
    }
    .cyber-btn {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .cyber-btn:hover {
      box-shadow: 0 0 12px rgba(255, 34, 85, 0.45);
      transform: translateY(-1px);
    }
    .cyber-btn:active {
      transform: translateY(0);
    }
    .bur-icon-svg {
      display: inline-block;
      width: 14px;
      height: 14px;
      vertical-align: -0.15em;
      fill: currentColor;
      flex-shrink: 0;
    }
    .danmaku-row {
      content-visibility: auto;
      contain-intrinsic-size: 42px;
    }
    /* Enhanced Bilibili Emote Icons (v2.5.4) */
    .bili-emote-img {
      width: 22px !important;
      height: 22px !important;
      display: inline-block !important;
      vertical-align: -4px !important;
      margin: 0 2px !important;
      object-fit: contain !important;
      transition: transform 0.15s ease-in-out;
    }
    .bili-emote-img:hover {
      transform: scale(1.4);
      z-index: 10;
    }

/* =========================================================================
   截图防泄密隐私脱敏模式 (Privacy Screenshot Mode)
   ========================================================================= */

/* 1. 隐藏本人登录信息 (头像/昵称/UID) */
body.privacy-hide-self #bur-top-user-avatar,
body.privacy-hide-self .bur-self-avatar {
  filter: blur(8px) grayscale(70%) !important;
  opacity: 0.65 !important;
  pointer-events: none;
}
body.privacy-hide-self #bur-top-user-name,
body.privacy-hide-self #bur-top-user-uid,
body.privacy-hide-self .bur-self-name,
body.privacy-hide-self .bur-self-uid {
  filter: blur(5px) !important;
  user-select: none !important;
  cursor: default !important;
}

/* 2. 隐藏弹幕观众名称与UID (弹幕区/画像大卡片/在场守候/特写弹窗) */
body.privacy-hide-audience .bur-audience-uname,
body.privacy-hide-audience [data-privacy="uname"] {
  filter: blur(5px) !important;
  user-select: none !important;
  cursor: default !important;
}
body.privacy-hide-audience .bur-audience-uid,
body.privacy-hide-audience [data-privacy="uid"] {
  filter: blur(5px) !important;
  user-select: none !important;
  cursor: default !important;
}
body.privacy-hide-audience .bur-audience-avatar,
body.privacy-hide-audience [data-privacy="avatar"] {
  filter: blur(6px) grayscale(60%) !important;
  opacity: 0.7 !important;
  pointer-events: none;
}

/* =========================================================================
   [性能暴风优化: 数千名大航海花名册虚拟裁剪与GPU合成层]
   ========================================================================= */
.bur-roster-card {
  content-visibility: auto;
  contain-intrinsic-size: 140px;
  contain: layout style paint;
}
