/* 背景音乐控件 · 光影浮动
   独立外部样式，兼容站点 CSP（style-src 'self'）。
   右下角低调胶囊；播放时三条竖条轻微跳动。 */
.bgm-btn{
  position:fixed; right:18px; bottom:18px; z-index:9998;
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 15px 9px 12px; border-radius:999px;
  border:1px solid rgba(233,185,110,.42);
  background:rgba(12,30,38,.88); color:#E9F1EF;
  font:12px/1 "Segoe UI","Microsoft YaHei",system-ui,sans-serif;
  letter-spacing:.3px; cursor:pointer;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 26px rgba(0,0,0,.38), inset 0 1px 0 rgba(233,185,110,.10);
  transition:border-color .2s, color .2s, transform .2s, background .2s;
}
.bgm-btn:hover{ border-color:rgba(233,185,110,.8); color:#F0D9A8; transform:translateY(-1px); }
.bgm-btn:focus-visible{ outline:2px solid #8FC3CE; outline-offset:3px; }
.bgm-btn.on{
  border-color:rgba(233,185,110,.75); color:#F0D9A8;
  background:rgba(18,42,50,.92);
}
.bgm-ic{
  display:inline-flex; align-items:flex-end; gap:2px;
  width:14px; height:12px; flex:0 0 auto;
}
.bgm-ic i{
  display:block; width:3px; height:4px; border-radius:1px;
  background:currentColor; opacity:.8;
}
.bgm-btn.on .bgm-ic i{ animation:bgmEq .85s ease-in-out infinite alternate; }
.bgm-btn.on .bgm-ic i:nth-child(2){ animation-delay:.22s; }
.bgm-btn.on .bgm-ic i:nth-child(3){ animation-delay:.44s; }
@keyframes bgmEq{ from{ height:3px } to{ height:12px } }

/* Cookie 提示条在窄屏几乎占满底部，把控件临时上移避免被盖住 */
@media (max-width:640px){
  .bgm-btn{ right:12px; bottom:12px; padding:8px 12px 8px 10px; font-size:11.5px; }
  body.cn-open .bgm-btn{ bottom:215px; }
}
@media (prefers-reduced-motion:reduce){
  .bgm-btn, .bgm-btn.on .bgm-ic i{ animation:none; transition:none; }
  .bgm-btn.on .bgm-ic i{ height:8px; }
}
