body .music-toggle,dialog .music-toggle{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;justify-content:center;gap:10px;min-width:124px;min-height:48px;margin:0;padding:12px 16px;border:1px solid #e9c17a;border-radius:999px;background:#7f201c;color:#ffe5ae;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;line-height:1.2;box-shadow:0 5px 20px #31100d40;cursor:pointer;transition:background .2s,box-shadow .2s;touch-action:manipulation}
body .music-toggle:hover,dialog .music-toggle:hover:not(:disabled){background:#a22d22;color:#ffe5ae;border-color:#ffe0a1;box-shadow:0 6px 22px #31100d55}
body .music-toggle:focus-visible,dialog .music-toggle:focus-visible{outline:3px solid #f5cc80;outline-offset:4px}
body .music-toggle[aria-pressed=true],dialog .music-toggle[aria-pressed=true]{background:#7f201c;color:#ffe5ae}
.music-bars{display:flex;align-items:center;justify-content:center;gap:3px;width:20px;height:20px}
.music-bars i{display:block;width:3px;height:5px;border-radius:3px;background:currentColor;transform-origin:center}
.is-playing .music-bars i{animation:music-wave .9s ease-in-out infinite alternate}.is-playing .music-bars i:nth-child(2){animation-delay:-.4s}.is-playing .music-bars i:nth-child(3){animation-delay:-.65s}.is-playing .music-bars i:nth-child(4){animation-delay:-.2s}
.music-notice{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes music-wave{from{height:5px}to{height:19px}}
@media(max-width:760px){body .music-toggle,dialog .music-toggle{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));min-width:116px;min-height:46px;padding:11px 14px;font-size:11px;gap:8px}.reader-dialog:has(>.music-toggle) .reader-footer{padding-bottom:calc(70px + env(safe-area-inset-bottom))}#cover-dialog:has(>.music-toggle){padding-bottom:72px}body>footer{padding-bottom:80px}}
@media(prefers-reduced-motion:reduce){.is-playing .music-bars i{animation:none;height:12px}.is-playing .music-bars i:nth-child(2){height:18px}}
