/* Persistent top dock. Content uses the user's original desk / letter artwork. */
:root{color-scheme:light;--shell-dark:#4e354b;--shell-edge:#866482}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{background:#e9dce7;font-family:'Pretendard Variable',system-ui,sans-serif}
.shell-root{height:100dvh;min-height:0;display:flex;flex-direction:column;position:relative}
.shell-topbar{height:64px;min-height:64px;padding:0 clamp(12px,3vw,40px);display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(105deg,#4b314b,#72506e 48%,#4a344d);border-bottom:2px solid #a78aa2;box-shadow:0 3px 15px #2b172e35;color:#fff;position:relative;z-index:10}
.shell-wordmark{color:#fff0ef;text-decoration:none;font:600 clamp(12px,1.45vw,18px) 'Cinzel',Georgia,serif;letter-spacing:.08em;white-space:nowrap}
.shell-wordmark span{color:#f3c5d8;margin-right:7px}
.shell-music-actions{display:flex;align-items:center;gap:14px;flex:none}
.shell-music-name{font:500 14px 'Gowun Batang',serif;white-space:nowrap;color:#f5e8ef}
.shell-toggle{font:600 13px 'Pretendard Variable',system-ui,sans-serif;padding:10px 17px;border-radius:999px;border:1px solid #f0dfe9;background:#fff6fa;color:#573951;cursor:pointer;white-space:nowrap}
.shell-toggle:hover{background:#fff}
.shell-toggle:disabled{cursor:default;opacity:.65}
.shell-toggle:focus-visible,.shell-popover-head button:focus-visible{outline:3px solid #dfb5cd;outline-offset:2px}
.shell-content{width:100%;min-height:0;flex:1;border:0;background:#faf5f8;display:block}
.shell-music-popover{position:absolute;z-index:50;top:71px;right:clamp(10px,2.5vw,38px);width:min(500px,calc(100vw - 20px));padding:14px 15px 15px;border:1px solid #ddc6d3;border-radius:12px;background:#fffaf8;box-shadow:0 12px 40px #3f244064;color:#674e61}
.shell-music-popover[hidden]{display:none!important}
.shell-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.shell-popover-head button{border:0;background:#73536a;color:white;padding:8px 13px;cursor:pointer;border-radius:7px;font:600 12px 'Pretendard Variable',sans-serif}
.shell-music-hint{margin:6px 0 12px;color:#8b7482;font-size:12px;line-height:1.55}
.shell-player-area{width:100%;height:270px;border-radius:8px;overflow:hidden;background:#150c15}
.shell-player-area iframe{display:block;width:100%;height:100%;border:0}
@media(max-width:620px){.shell-topbar{height:59px;min-height:59px;padding:0 10px;gap:6px}.shell-wordmark{font-size:11px;letter-spacing:0}.shell-music-name{display:none}.shell-toggle{padding:8px 12px;font-size:12px}.shell-music-popover{top:65px}.shell-player-area{height:230px}}

/* v5.6: minimizing changes only the size/position; never hides or reloads the iframe.
   The embedded YouTube video remains visibly playable, in line with platform rules. */
.shell-music-popover.is-compact{
 top:auto;
 bottom:12px;
 right:clamp(10px,2.5vw,38px);
 width:min(386px,calc(100vw - 20px));
 padding:7px;
 border-radius:13px;
 box-shadow:0 12px 42px rgba(38,20,38,.50);
}
.shell-music-popover.is-compact .shell-popover-head,
.shell-music-popover.is-compact .shell-music-hint{display:none;}
.shell-music-popover.is-compact .shell-player-area{
 height:210px;
 min-height:200px;
 border-radius:8px;
}
@media(max-width:620px){
 .shell-music-popover.is-compact{right:10px;bottom:10px;width:min(386px,calc(100vw - 20px));}
 .shell-music-popover.is-compact .shell-player-area{height:205px;min-height:200px;}
}
