/* Functional controls keep the supplied XP sprite and the existing window chrome. */
.xp-media-player .xp-player-viewbar{height:28px;display:flex;gap:5px;padding:3px 5px;background:linear-gradient(#fff,#ece9d8);overflow:visible}.xp-player-viewbar::after{display:none}.xp-player-viewbar select{min-width:0;flex:1;max-width:60%;height:21px;padding:0 2px;border:1px solid #8b9bba;background:#fff;color:#172747;font:11px 'Guest3 XP Tahoma',Tahoma,sans-serif}.xp-player-viewbar select:first-child{max-width:42%}
.xp-media-player .xp-player-display{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:40px}.xp-track-art{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;position:absolute;inset:0}.xp-player-empty{padding:16px;color:#bfcce5;text-align:center;font:12px/1.5 'Guest3 XP Tahoma',Tahoma,sans-serif;max-width:100%}.xp-player-empty strong{display:block;color:#fff;margin-bottom:6px}
.xp-media-player .xp-player-status{height:34px;min-height:34px;padding:2px 8px;display:flex;flex-direction:column;justify-content:center;line-height:14px}.xp-track-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d5e2ff;font-size:11px}.xp-playback-message{font-size:10px;color:#a8badf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xp-media-player .xp-player-transport{height:94px;min-height:94px;display:flex;flex-direction:column;justify-content:center;padding:4px 10px 5px;gap:5px;overflow:visible}.xp-player-transport::before{display:none}.xp-audio-seek-row,.xp-audio-control-row{display:flex;align-items:center;gap:6px;min-width:0}.xp-audio-seek-row{height:22px}.xp-audio-time{flex:none;width:76px;font:10px/1 'Guest3 XP Tahoma',Tahoma,sans-serif;color:#eff5ff;text-align:right;font-variant-numeric:tabular-nums}.xp-audio-seek{flex:1;min-width:30px;width:100%}.xp-audio-control-row{height:42px}.xp-audio-control-row button{flex:none;padding:0;border:1px solid #234989;box-shadow:inset 1px 1px #e0ecff,inset -1px -1px #4d6c9b;cursor:pointer;touch-action:manipulation}.xp-audio-control-row button:disabled{opacity:.45;cursor:default}.xp-audio-control-row button:focus-visible{outline:2px dotted #fff;outline-offset:2px}.xp-audio-control-row button:not(:disabled):hover{filter:brightness(1.15)}
.xp-audio-play{width:40px;height:40px;border-radius:50%;background:#c1d4f2 url('/assets/xp-media-player.png') -10.5px -435px/468px 498px no-repeat;position:relative}.xp-audio-play.is-playing{background:radial-gradient(circle at 35% 28%,#fff,#c1d4f2 50%,#7696c5 78%,#244679)}.xp-audio-play.is-playing::after{content:'';position:absolute;left:13px;top:11px;width:13px;height:17px;background:linear-gradient(to right,#1e4b7a 0 4px,transparent 4px 9px,#1e4b7a 9px)}
.xp-audio-prev,.xp-audio-next,.xp-audio-mute{width:28px;height:24px;border-radius:11px;background-color:#c1d4f2;background-image:url('/assets/xp-media-player.png');background-size:436.8px 464.8px;background-repeat:no-repeat}.xp-audio-prev{background-position:-80px -424px}.xp-audio-next{background-position:-112px -424px}.xp-audio-mute{background-position:-159px -424px}.xp-audio-mute[aria-pressed=true]{opacity:.65;outline:1px solid #fff}.xp-audio-volume{width:clamp(35px,8vw,75px);min-width:30px;flex:1;max-width:85px}.xp-audio-mode{min-width:26px;height:26px;background:linear-gradient(#dae8fc,#8ca8d7);border-radius:4px;color:#173d73;font:bold 17px/1 Tahoma,sans-serif}.xp-audio-mode[aria-pressed=true]{background:linear-gradient(#9ede7d,#68a645);box-shadow:inset 1px 2px #376d37;color:#133d12}
.xp-audio-control-row input[type=range],.xp-audio-seek-row input[type=range]{appearance:none;-webkit-appearance:none;height:22px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}.xp-audio-control-row input:disabled,.xp-audio-seek-row input:disabled{opacity:.5;cursor:default}.xp-audio-control-row input::-webkit-slider-runnable-track,.xp-audio-seek-row input::-webkit-slider-runnable-track{height:5px;border:1px solid #7890b5;background:#abc0e2;border-radius:3px}.xp-audio-control-row input::-webkit-slider-thumb,.xp-audio-seek-row input::-webkit-slider-thumb{appearance:none;width:10px;height:16px;margin-top:-6px;background:linear-gradient(90deg,#dcf6d0,#8cd16b,#559f3b);border:1px solid #5b843d;border-radius:2px;box-shadow:inset 1px 1px #f5ffee}.xp-audio-control-row input::-moz-range-track,.xp-audio-seek-row input::-moz-range-track{height:4px;background:#abc0e2;border:1px solid #7890b5}.xp-audio-control-row input::-moz-range-thumb,.xp-audio-seek-row input::-moz-range-thumb{width:9px;height:15px;background:#9eda7d;border:1px solid #5b843d;border-radius:2px}
.xp-audio-help{max-width:min(400px,90vw);border:3px solid #0055e5;background:#ece9d8;color:#000;padding:18px;font:12px/1.5 'Guest3 XP Tahoma',Tahoma,sans-serif}.xp-audio-help::backdrop{background:#0004}.xp-audio-help button{padding:4px 20px;margin-top:10px}
@media(max-width:600px){.xp-media-player .xp-player-viewbar{height:26px;padding:2px 3px}.xp-player-viewbar select{font-size:10px}.xp-media-player .xp-player-transport{height:100px;min-height:100px;padding:3px 34px 5px 6px;gap:5px}.xp-audio-control-row{gap:5px}.xp-audio-play{width:38px;height:38px}.xp-audio-volume{min-width:26px;max-width:64px;width:100%}.xp-audio-prev,.xp-audio-next,.xp-audio-mute{width:26px}.xp-audio-mode{min-width:25px;font-size:16px}.xp-media-player .xp-player-status{height:32px;min-height:32px}.xp-audio-time{width:72px}.xp-player-empty{font-size:11px;padding:8px}}
@media(max-width:350px){.xp-audio-control-row{gap:3px}.xp-media-player .xp-player-transport{padding-left:4px;padding-right:28px}.xp-audio-play{width:34px;height:34px;background-size:405.6px 431.6px;background-position:-9px -377px}.xp-audio-volume{max-width:42px;min-width:20px}.xp-audio-mode{min-width:22px}.xp-audio-play.is-playing::after{left:10px;top:8px}}
/* Keep transport controls reachable when a window is resized smaller. */
@media(min-width:601px){#xp-media-player:not(.is-maximized){min-height:254px}}
@media(max-width:600px){#xp-media-player:not(.is-maximized){min-height:210px}.xp-media-player .xp-player-display{min-height:0}}
@media(max-width:600px) and (max-height:650px){:root{--xp-mobile-top:146px;--xp-mobile-player-size:min(calc(100vw - 20px),max(210px,calc(var(--xp-work-height) - var(--xp-mobile-top) - var(--xp-mobile-note-height) - 24px)))}.xp-shortcuts{height:128px;grid-template-rows:repeat(2,58px)}}
@media(max-width:600px) and (max-height:520px){:root{--xp-mobile-top:128px;--xp-mobile-note-height:96px}.xp-shortcuts{height:116px;grid-template-rows:repeat(2,54px)}.xp-shortcuts .xp-desktop-icon{height:54px}#xp-notepad:not(.is-maximized){top:calc(var(--xp-mobile-top) + var(--xp-mobile-player-size) + 6px)}}
