/* =========================================================
   首页「汽水音乐」胶囊样式（music-soda.css）—— 蓝色米老鼠造型
   ---------------------------------------------------------
   蓝色正圆「脸」在下居中，中央白色音符；头顶左右两个蓝色圆耳
   （左耳=上一首/后退，右耳=下一首/前进），下缘搭在脸顶边；
   播放状态点挂在脸的右下角。仅首页显示；可拖动记忆位置。
   版本：20261030roundblue1
   ========================================================= */

/* 根容器：固定定位；宽度由圆脸撑开；耳朵绝对定位挂头顶 */
#sodaCard{
  position:fixed; right:26px; top:38%; z-index:8900;
  display:flex; flex-direction:column; align-items:center;
  width:max-content;
  font:13px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#cfe3f7; user-select:none; max-width:calc(100vw - 32px);
}
#sodaCard.soda-hidden{ display:none !important; }
#sodaCard.soda-dragging{ z-index:9600; }

/* ---- 耳朵层：不占文档流，两耳贴在圆脸头顶左右两侧 ---- */
.soda-ears{
  position:absolute; top:0; left:0; right:0; height:0;
  z-index:3; pointer-events:none;
}
.soda-ear{
  position:absolute; top:-8px; width:34px; height:34px; border-radius:50%; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; pointer-events:auto; color:#eaf6ff;
  background:radial-gradient(circle at 35% 28%,#7fc4ff,#1d5f9e 74%);
  border:1px solid #6fc0ff;
  box-shadow:0 0 9px rgba(77,163,255,.5), inset 0 1px 3px rgba(255,255,255,.3);
  transition:background .15s,border-color .15s,transform .1s,box-shadow .15s;
}
.soda-ear.prev{ left:-11px; }    /* 左耳（后退/上一首），耳心落在脸顶圆弧上，与脸相连 */
.soda-ear.next{ right:-11px; }  /* 右耳（前进/下一首），对称定位 */
.soda-ear:hover{ background:radial-gradient(circle at 35% 28%,#9fd4ff,#2b77bd 74%); border-color:#8fd0ff; box-shadow:0 0 13px rgba(77,163,255,.7); }
.soda-ear:active{ transform:scale(.88); }

/* ---- 圆脸身体（米老鼠头部，深蓝科技风） ---- */
#sodaPill{
  width:58px; height:58px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; touch-action:none; position:relative; z-index:2;
  background:linear-gradient(180deg,#3a8fd6 0%,#1f66a8 55%,#143f70 100%);
  border:1px solid rgba(110,190,255,.85);
  box-shadow:0 0 16px rgba(77,163,255,.45),0 6px 14px rgba(0,0,0,.45);
  transition:transform .16s,box-shadow .16s;
}
#sodaCard.soda-dragging #sodaPill{ cursor:grabbing; }
#sodaPill:hover{
  transform:translateY(-1px);
  box-shadow:0 0 22px rgba(77,163,255,.68),0 8px 18px rgba(0,0,0,.5);
}
/* 中央白色音符图标（圆内不再放文字标签，悬停 title 提示功能） */
#sodaPill .soda-ico{
  width:auto; height:auto; background:none; box-shadow:none;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff;
}
#sodaPill .soda-ico svg{ width:24px; height:24px; }
#sodaPill .soda-name{ display:none; }      /* 圆脸内不显示文字，保持头部造型干净 */

/* 状态点：挂在圆脸右下角外缘 */
#sodaPill .soda-state{
  position:absolute; right:-1px; bottom:-1px;
  width:11px; height:11px; border-radius:50%;
  background:#8fa3bd; border:1.5px solid #0f2f55;
  transition:all .3s;
}
#sodaPill .soda-state.playing{ background:#34d399; box-shadow:0 0 8px rgba(52,211,153,.8); animation:sodaPulse 2.2s ease-out infinite; }
#sodaPill .soda-state.paused{ background:#fbbf24; box-shadow:0 0 8px rgba(251,191,36,.7); }
#sodaPill .soda-state.opening{ background:#46caff; animation:sodaBlink 1s ease-in-out infinite; }
#sodaPill .soda-state.locked{ background:#f43f5e; }
@keyframes sodaPulse{ 0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
@keyframes sodaBlink{ 0%,100%{opacity:1} 50%{opacity:.35} }

/* 值守锁定：圆脸与两个耳朵整体置灰禁用 */
#sodaCard.locked #sodaPill,
#sodaCard.locked .soda-ear{ opacity:.45; pointer-events:none; filter:saturate(.4); }
