/* Compact by default; the same player stays mounted while controls are away. */
html body.student-experience #app-shell#app-shell .top-study-music{position:sticky;top:8px;z-index:160;width:max-content;max-width:100%;margin:0 0 12px auto;color:#183156;}
.top-study-music__bar{display:flex;gap:6px;align-items:center;}
html body.student-experience #app-shell#app-shell .top-study-music :is(.top-study-music__toggle,.top-study-music__stop,.top-study-music__minimize){min-height:44px;border:1px solid #b9cce0;border-radius:14px;padding:10px 15px;background:#f4fcffff;color:#183156;font:750 13px/1.4 Manrope,system-ui,sans-serif;cursor:pointer;box-shadow:0 3px 12px #172b4510;}
html body.student-experience #app-shell#app-shell .top-study-music .top-study-music__stop{background:#fff;color:#69404a;}
.top-study-music [hidden]{display:none!important;}
.top-study-music__panel{position:absolute;right:0;top:calc(100% + 8px);width:min(380px,calc(100vw - 32px));max-height:min(620px,75dvh);overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid #bdcee3;border-radius:18px;background:#f7fbff;box-shadow:0 16px 48px #162b4930;}
/* Keep the iframe rendered off screen rather than unmounting it on minimize. */
.top-study-music[data-expanded=false]>.top-study-music__panel{position:fixed;left:-10000px;right:auto;top:0;max-height:none;overflow:visible;opacity:0;pointer-events:none;}
html body.student-experience #app-shell#app-shell .top-study-music .focus-music-card{margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:#183156;}
.top-study-music__minimize{position:sticky;top:0;z-index:1;display:block;margin:0 0 12px auto;}
.top-study-music .focus-music-form{display:grid;grid-template-columns:1fr;gap:12px;}
html body.student-experience #app-shell#app-shell .top-study-music :is(p,label,small,strong,summary){color:#304763;}
.top-study-music .focus-music-actions{display:flex;flex-wrap:wrap;gap:8px;}
.top-study-music .focus-music-preview iframe{display:block;width:100%;min-height:352px;border:0;border-radius:12px;}
.top-study-music .focus-music-preview{margin-top:12px;min-width:0;}
.top-study-music .mc-input input,.top-study-music .mc-input select{width:100%;max-width:100%;box-sizing:border-box;}
.top-study-music button:focus-visible{outline:3px solid #3275cc;outline-offset:3px;}
@media(max-width:480px){html body.student-experience #app-shell#app-shell .top-study-music{top:6px;margin-bottom:8px;}.top-study-music__panel{width:min(350px,calc(100vw - 28px));padding:12px;max-height:70dvh;}.top-study-music .focus-music-preview iframe{min-height:352px;}}
