/* =========================================================
   甜点电竞 · 唱片下方的“按键音效”开关（配合 assets/od-sound.js，主页和海克斯页共用）
   颜色全部用主题令牌，跟着天气瓶变
   ========================================================= */
.od-sfx{display:flex;align-items:center;gap:10px;flex:none;width:100%;min-height:50px;margin:0;padding:8px 14px 8px 10px;border-radius:18px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .2s var(--od-out,ease-out),box-shadow .2s}
.od-rail .od-sfx{order:0}
.od-sfx:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
@media(hover:hover){.od-sfx:hover{transform:translateY(-1px)}}
.od-sfx:active{transform:scale(.985)}
.od-sfx-ico{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:11px;background:color-mix(in srgb,var(--coral) 16%,var(--paper));color:var(--coral)}
.od-sfx-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.od-sfx-spk{fill:currentColor;stroke:none}
.od-sfx-x{display:none}
.od-sfx.off .od-sfx-wave{display:none}
.od-sfx.off .od-sfx-x{display:inline}
.od-sfx.off .od-sfx-ico{background:color-mix(in srgb,var(--muted) 14%,var(--paper));color:var(--muted)}
.od-sfx-copy{display:grid;min-width:0;flex:1;line-height:1.25}
.od-sfx-copy b{font-size:13px;font-weight:700;color:var(--ink)}
.od-sfx-copy small{margin-top:2px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-sfx-state{font-size:12px;font-weight:600;color:var(--coral);min-width:1em;text-align:right}
.od-sfx.off .od-sfx-state{color:var(--muted)}
/* 小拨动开关 */
.od-sfx-switch{position:relative;flex:none;width:38px;height:22px;border-radius:999px;background:var(--coral);box-shadow:inset 0 1px 2px #0000001f;transition:background-color .2s}
.od-sfx-switch i{position:absolute;top:3px;left:19px;width:16px;height:16px;border-radius:50%;background:var(--paper);box-shadow:0 1px 3px #00000033;transition:left .22s var(--od-spring,cubic-bezier(.34,1.5,.64,1))}
.od-sfx.off .od-sfx-switch{background:color-mix(in srgb,var(--muted) 45%,var(--surface))}
.od-sfx.off .od-sfx-switch i{left:3px}
html[data-od-weather=night] .od-sfx-switch i{background:#f3f1fb}
/* 窄屏：左侧栏收起成按钮时，展开后音效开关和唱片同宽 */
@media(max-width:1479px){.od-rail-left .od-sfx{width:var(--od-rail-l)}.od-rail.open .od-sfx{display:flex}}
@media(prefers-reduced-motion:reduce){.od-sfx,.od-sfx-switch,.od-sfx-switch i{transition:none}}
