/* 商户端音乐灵动岛 */
.mi-island{
  position:fixed;top:calc(6px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);
  z-index:1040;width:176px;height:44px;background:#0a0c10;color:#fff;
  border-radius:22px;overflow:hidden;
  box-shadow:0 12px 30px rgba(2,10,6,.28),0 2px 6px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.06);
  transition:width .45s cubic-bezier(.32,.72,0,1),height .45s cubic-bezier(.32,.72,0,1),border-radius .45s cubic-bezier(.32,.72,0,1);
  -webkit-tap-highlight-color:transparent;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
.mi-island.open{width:344px;max-width:calc(100vw - 28px);height:174px;border-radius:28px}
.mi-island button{border:0;background:none;padding:0;color:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mi-island svg{display:block}

/* 收起状态 */
.mi-mini{position:absolute;inset:0;display:flex;align-items:center;gap:9px;padding:0 8px 0 15px;opacity:1;transition:opacity .18s ease}
.mi-island.open .mi-mini{opacity:0;pointer-events:none}
.mi-eq{display:flex;align-items:flex-end;gap:2px;height:14px;flex:0 0 auto}
.mi-eq i{width:3px;height:6px;background:#4ade80;border-radius:2px;transform-origin:bottom}
.mi-island.playing .mi-eq i{animation:miEq .9s ease-in-out infinite}
.mi-eq i:nth-child(2){height:12px;animation-delay:.15s}
.mi-eq i:nth-child(3){height:8px;animation-delay:.3s}
.mi-eq i:nth-child(4){height:13px;animation-delay:.45s}
@keyframes miEq{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
.mi-mini-title{flex:1;min-width:0;font-size:12px;line-height:1;color:#e8eef6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi-mini-btn{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.1)!important;flex:0 0 auto}
.mi-mini-btn:active{background:rgba(255,255,255,.22)!important}
.mi-mini-btn svg{width:13px;height:13px}

/* 展开状态 */
.mi-expand{position:absolute;inset:0;padding:14px 16px 12px;opacity:0;pointer-events:none;transition:opacity .2s ease .12s;display:flex;flex-direction:column}
.mi-island.open .mi-expand{opacity:1;pointer-events:auto}
.mi-head{display:flex;align-items:center;gap:12px}
.mi-cover{
  width:54px;height:54px;border-radius:16px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#22c55e 0%,#0ea5e9 100%);
  box-shadow:0 6px 14px rgba(14,165,233,.28);position:relative;overflow:hidden;
}
.mi-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.35),transparent 55%)}
.mi-cover svg{width:24px;height:24px;position:relative;z-index:1}
.mi-island.playing .mi-cover svg{animation:miPulse 1.6s ease-in-out infinite}
@keyframes miPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.mi-meta{flex:1;min-width:0}
.mi-title{font-size:14px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi-artist{font-size:11px;color:#8792a4;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi-collapse{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.08)!important;flex:0 0 auto;align-self:flex-start}
.mi-collapse svg{width:14px;height:14px}
.mi-controls{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:12px}
.mi-ctrl{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.09)!important;color:#dfe7f1!important}
.mi-ctrl:active{background:rgba(255,255,255,.2)!important}
.mi-ctrl svg{width:15px;height:15px}
.mi-play{width:42px;height:42px;background:#fff!important;color:#0b0d10!important;box-shadow:0 4px 12px rgba(255,255,255,.18)}
.mi-play svg{width:17px;height:17px}
.mi-progress{height:4px;border-radius:4px;background:rgba(255,255,255,.14);margin-top:13px;cursor:pointer;position:relative}
.mi-bar{display:block;height:100%;width:0;border-radius:4px;background:linear-gradient(90deg,#4ade80,#22d3ee);transition:width .15s linear}
.mi-time{display:flex;justify-content:space-between;font-size:10px;color:#778295;margin-top:5px;font-variant-numeric:tabular-nums}

@media (max-width:767px){
  .mi-island{top:calc(6px + env(safe-area-inset-top,0px))}
  .mi-island.open{width:322px;height:172px}
}
