/* showdown-music.css */
/* ============================================================
   Classroom Showdown — game music controls (showdown-music.js, v2.77.0).
   The speaker + volume cluster in the top-right corner of the waiting
   room, the board and Final Standings, in the corner-button style
   (showdown-host.css .sh-corner-btn), and the Music On/Off row.
   ============================================================ */
.sm-ctl{position:fixed;top:12px;right:12px;z-index:40;display:flex;align-items:center;gap:8px}
.sm-ctl.hidden{display:none}
.sm-btn{
  width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.55);
  background:rgba(23,27,85,.72);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(6px);transition:background .15s,transform .12s;padding:0;
}
.sm-btn:hover{background:rgba(47,99,216,.85);transform:translateY(-1px)}
.sm-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sm-spk.sm-muted{background:rgba(201,48,44,.8)}
.sm-spk.sm-pending{animation:sm-pulse 1.2s ease-in-out infinite}
@keyframes sm-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}50%{box-shadow:0 0 0 8px rgba(255,255,255,0)}}

/* The slider grows out of the volume button, to its left. */
.sm-vol{position:relative;display:flex;align-items:center;justify-content:flex-end}
.sm-tray{
  position:absolute;right:52px;top:50%;transform:translateY(-50%);height:44px;width:0;overflow:hidden;
  display:flex;align-items:center;padding:0;border-radius:999px;background:rgba(23,27,85,.72);
  border:2px solid rgba(255,255,255,.55);backdrop-filter:blur(6px);opacity:0;
  transition:width .22s ease,opacity .18s ease,padding .22s ease;box-sizing:border-box;
}
.sm-vol.sm-open .sm-tray{width:190px;padding:0 16px;opacity:1}
.sm-slider{
  -webkit-appearance:none;appearance:none;width:154px;height:8px;border-radius:999px;margin:0;cursor:pointer;outline:none;
  background:linear-gradient(90deg,#FFC43D var(--sm-fill,70%),rgba(255,255,255,.35) var(--sm-fill,70%));
}
.sm-slider::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #FFC43D;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.sm-slider::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #FFC43D;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.sm-slider::-moz-range-track{height:8px;border-radius:999px;background:rgba(255,255,255,.35)}
.sm-slider::-moz-range-progress{height:8px;border-radius:999px;background:#FFC43D}
:fullscreen .sm-ctl{opacity:.35;transition:opacity .2s}
:fullscreen .sm-ctl:hover{opacity:1}

/* The Music On / Off row on the Room Settings card (the setup screen's
   own .ss-order rules style it there). */
.sr-sum .sm-setup{display:flex;align-items:center;gap:8px;margin:0;padding:8px 0;border-top:2px solid #E6F0FA}
.sr-sum .sm-setup .sr-k{flex:1;margin:0}
@media (prefers-reduced-motion:reduce){.sm-btn,.sm-tray{transition:none}.sm-spk.sm-pending{animation:none}}
