.chat-header{flex:none;min-width:0}.chat-xp .chat-header .chat-banner img{display:block;width:100%;height:auto}.room-with-player .chat-header{--music-scale:1;--music-height:117px;display:flex;align-items:stretch;height:var(--music-height);background:#252632;border:0;gap:0}.chat-xp.room-with-player .chat-header .chat-banner{flex:0 0 calc(var(--music-height) * 2048 / 277);height:var(--music-height);margin:0;padding:0;align-self:stretch}.chat-xp.room-with-player .chat-header .chat-banner img{width:100%;height:100%;object-fit:contain}.player-slot{flex:1;min-width:0;padding:0;margin:0;height:var(--music-height)}.player-stage{display:flex;align-items:stretch;justify-content:flex-start;gap:0;height:100%}.wa-frame{flex:0 0 calc(274px * var(--music-scale));height:100%;position:relative;min-width:0}.wa{position:relative;width:274px;height:117px;background:url('winamp-classic.png') 0 0/274px 117px no-repeat;transform:scale(var(--music-scale));transform-origin:top left;font:8px Tahoma,Arial,sans-serif;user-select:none}.wa *{box-sizing:border-box}.chat-xp .wa button{position:absolute;min-height:0;min-width:0;height:17px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:transparent;font:8px Tahoma,Arial,sans-serif;cursor:pointer}.chat-xp .wa button:hover{background:#ffffff25}.chat-xp .wa button:active{background:#0005;box-shadow:inset 1px 1px 2px #0008}.chat-xp .wa button[aria-pressed=true]{box-shadow:inset 0 -2px #80be3b}.chat-xp .wa button:focus-visible{outline:1px dotted #f2e69a;outline-offset:-2px}.wa-title{height:14px;position:absolute;inset:0 0 auto}.wa-title strong{position:absolute;left:112px;top:4px;background:#272937;color:#f4f2d9;font:bold 8px Tahoma,Arial,sans-serif;letter-spacing:1px;line-height:8px;width:47px;text-align:center}.chat-xp #musicMenu{left:2px;top:2px;width:15px;height:11px}.chat-xp #musicCompact{left:245px;top:2px;width:16px;height:11px}.chat-xp #musicClose{left:262px;top:2px;width:11px;height:11px}.wa-screen{position:absolute;left:10px;top:24px;width:93px;height:40px;background:#051007}.chat-xp #musicTime{position:absolute;left:15px;top:1px;width:78px;height:21px;line-height:21px;font:21px/21px 'Courier New',monospace;letter-spacing:-2px;background:#051007;color:#39e900;border:0;padding:0;text-align:right}.wa-screen canvas{position:absolute;left:2px;top:24px;width:89px;height:14px;cursor:pointer;image-rendering:pixelated}.wa-marquee{position:absolute;left:99px;top:1px;width:154px;height:12px;overflow:hidden;white-space:nowrap;background:#051007;color:#50ee27;font:8px/11px monospace;padding:0 2px}.wa-marquee span{display:inline-block}.wa-marquee.is-moving span{animation:ltv-scroll 14s linear infinite}@keyframes ltv-scroll{0%,15%{transform:translateX(0)}90%,100%{transform:translateX(calc(-100% + 100px))}}#musicInfo{position:absolute;left:99px;top:16px;width:154px;height:15px;display:flex;align-items:center;gap:4px;background:#252637;color:#aaa9a3;font:7px Tahoma,Arial,sans-serif}#musicBitrate,#musicRate{display:inline-block;padding:1px 3px;background:#050e08;color:#54ee2a;font:8px monospace}.wa-stereo{color:#39e900;margin-left:auto;padding-right:2px;font-weight:bold}#musicState{position:absolute;left:1px;top:5px;font:9px monospace;color:#39e900}.chat-xp .wa input[type=range]{position:absolute;appearance:none;-webkit-appearance:none;min-width:0;border:1px solid;border-color:#0e111a #585d64 #585d64 #0e111a;border-radius:0;margin:0;padding:0;height:6px;background:#27301b;cursor:pointer}.wa input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:9px;border:1px solid;border-color:#f3f0ce #4a4e4b #4a4e4b #f3f0ce;background:linear-gradient(#c9caac,#88907d)}.wa input[type=range]::-moz-range-thumb{width:12px;height:8px;border:1px solid #949b80;border-radius:0;background:#c9caac}.chat-xp #musicVolume{left:127px;top:61px;width:72px;background:linear-gradient(90deg,#248d00,#b4c31f)}.chat-xp #musicBalance{left:201px;top:61px;width:16px;background:#648345}.chat-xp #musicMute{left:111px;top:59px;width:13px;height:10px;color:#9c9e8b;background:#263126;font-size:6px}.chat-xp #musicEQ{left:221px;top:59px;width:20px;height:10px}.chat-xp #musicPL{left:243px;top:59px;width:20px;height:10px}.chat-xp #musicSeek{left:16px;top:76px;width:247px;height:6px;background:#202332}.wa #musicSeek::-webkit-slider-thumb{width:26px;height:8px;background:linear-gradient(#eff0cd,#939777)}.wa #musicSeek::-moz-range-thumb{width:25px;height:7px}.wa-controls{position:absolute;left:0;top:90px;width:274px;height:18px}.chat-xp .wa-controls button{top:0;height:17px}#musicPrev{left:16px;width:22px}#musicPlay{left:39px;width:22px}#musicPause{left:62px;width:22px}#musicStop{left:85px;width:22px}#musicNext{left:108px;width:22px}#musicAdd{left:136px;width:22px}#musicShuffle{left:164px;width:46px}#musicRepeat{left:212px;width:23px}.chat-xp #musicRepeat[aria-label='Повтор одной песни']::after{content:'1';position:absolute;right:1px;bottom:1px;color:#9dff32;background:#27321b;font:7px monospace}.chat-xp #musicHelp{left:245px;top:90px;width:24px;height:20px}.wa-playlist{flex:1;min-width:0;width:auto;height:100%;display:flex;flex-direction:column;box-sizing:border-box;padding:3px 4px;background:linear-gradient(110deg,#424457,#242532 65%,#393b4d);border:2px solid;border-color:#858695 #11131c #11131c #858695;color:#d1ce9d;font:9px Tahoma,Arial,sans-serif;user-select:none}.wa-playlist .wa-title{position:static;display:flex;gap:4px;align-items:center;flex:none;height:10px}.wa-playlist .wa-title strong{position:static;background:none;font:8px Tahoma,Arial,sans-serif;width:auto;color:#d1ce9d;letter-spacing:1px}.wa-grip{flex:1;height:5px;background:repeating-linear-gradient(#aaa780 0 1px,#30313f 1px 2px)}#musicList{flex:1;min-height:0;overflow:auto;background:#050e08;margin:3px 0;padding:2px;list-style:none;scrollbar-width:thin;scrollbar-color:#797c75 #141921}.chat-xp #musicList button{display:flex;gap:4px;justify-content:space-between;text-align:left;width:100%;height:auto;min-height:20px;background:none;color:#9bd25c;border:0;padding:3px;box-shadow:none;border-radius:0;font:9px/12px monospace;white-space:normal;overflow-wrap:anywhere}.chat-xp #musicList li.is-current button{background:#253e24;color:#d4ff9d}.wa-song-name{min-width:0}.wa-song-time{font-size:8px;color:#839d6f;flex:none}.wa-list-bottom{display:flex;align-items:center;justify-content:space-between;height:10px;font-size:7px}.player-stage.is-compact .wa-main,.player-stage.is-compact .wa-playlist{display:none}.player-stage.is-compact .wa{height:14px;overflow:hidden}.chat-xp #musicToggle{display:none}.player-slot.is-closed #musicToggle{display:block;margin:auto}.player-slot.is-closed .player-stage{display:none}.player-stage.drag-over{outline:2px dashed #8ec84e}.chat-xp .music-dialog{width:520px;max-height:calc(100dvh - 24px);overflow:auto}.music-bands{display:flex;gap:5px;justify-content:space-between;padding:14px 0;overflow-x:auto}.music-band{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;min-width:28px}.music-band input{writing-mode:vertical-lr;direction:rtl;width:18px;height:110px;accent-color:#6b7e4b}.music-band output{font-size:9px;min-height:12px}#musicError{font-size:12px;color:#9d2525}@media(min-width:1101px) and (max-width:1300px){.room-with-player .chat-header{--music-scale:.8;--music-height:93.6px}}@media(min-width:901px) and (max-width:1100px){.room-with-player .chat-header{--music-scale:.65;--music-height:76.05px}}@media(min-width:701px) and (max-width:900px){.room-with-player .chat-header{--music-scale:.5;--music-height:58.5px}}@media(max-width:700px){.room-with-player .chat-header{display:grid;grid-template-columns:1fr 1fr;height:auto;--music-scale:1;--music-height:auto}.chat-xp.room-with-player .chat-header .chat-banner{height:auto;min-width:0}.chat-xp.room-with-player .chat-header .chat-banner img{height:auto}.player-slot{height:auto}.chat-xp #musicToggle{display:block;margin:auto;font-size:10px;min-height:22px}.player-stage{display:none}.player-slot.is-phone-open .player-stage{display:flex;position:fixed;top:65px;right:8px;z-index:25;flex-direction:column;align-items:stretch;background:#282b36;padding:0;width:274px;height:auto;max-width:calc(100vw - 16px);box-shadow:0 6px 24px #0007}.player-slot.is-phone-open .wa-frame{height:117px;flex:0 0 117px;width:274px}.player-slot.is-phone-open .wa-playlist{flex:none;width:274px;height:110px}.music-bands{gap:1px}.music-band{min-width:25px}}@media(prefers-reduced-motion:reduce){.wa-marquee.is-moving span{animation:none}}
/* Erase the reference's stationary slider handles beneath the live controls. */
.wa::before{content:'';position:absolute;left:16px;top:73px;width:248px;height:11px;background:#252637}.wa-mix::before{content:'';position:absolute;left:109px;top:57px;width:109px;height:14px;background:#252637}

/* Full-width banner with an explicitly opened floating player. */
.chat-xp.room-with-player .chat-header{position:relative;display:block;height:auto;background:transparent;--music-scale:1;--music-height:117px}
.chat-xp.room-with-player .chat-header .chat-banner{width:100%;height:auto;display:block}
.chat-xp.room-with-player .chat-header .chat-banner img{display:block;width:100%;height:auto}
.chat-xp .player-slot{position:absolute;inset:0;pointer-events:none;height:auto;width:100%;padding:0;margin:0;z-index:20}
.chat-xp .player-slot .player-stage{display:none}
.chat-xp .player-slot.is-phone-open .player-stage{display:flex;position:absolute;left:auto;top:0;right:0;width:274px;max-width:100%;height:auto;max-height:none;padding:0;flex-direction:column;align-items:stretch;background:#282b36;box-shadow:0 4px 12px #0007;pointer-events:auto}
.chat-xp .player-slot.is-phone-open .wa-frame{flex:0 0 274px;width:274px;height:117px}
.chat-xp .player-slot.is-phone-open .wa-playlist{flex:none;min-width:0;width:274px;height:110px}
.chat-xp #musicVolume{left:127px;width:49px}
.chat-xp #musicBalance{left:181px;width:36px}
@media(max-width:500px){.chat-xp .player-slot.is-phone-open .player-stage{width:274px;height:auto;flex-direction:column}.chat-xp .player-slot.is-phone-open .wa-playlist{width:274px;flex:none;height:110px}.chat-xp #musicToggle{right:6px;bottom:5px}}

.chat-xp .menubar #musicToggle{display:inline-flex;align-items:center;gap:4px;vertical-align:middle}
.chat-xp .menubar #musicToggle[hidden]{display:none}
.chat-xp .menubar #musicToggle svg{flex:none;display:block}

/* Keep the playlist within the banner's lower edge. */
.chat-xp .player-slot.is-phone-open .player-stage{height:100%;max-height:100%;min-height:0}
.chat-xp .player-slot.is-phone-open .wa-frame{flex:0 0 117px}
.chat-xp .player-slot.is-phone-open .wa-playlist{flex:1 1 0;height:auto;min-height:0;overflow:hidden}
.chat-xp .player-slot.is-phone-open #musicList{min-height:0;overflow:auto}
