/* Original fixed 500px layout, with the complete history in normal page flow. */
*, *::before, *::after { box-sizing: border-box; }
body { display: block; }
#flex_1 { width: 500px; min-width: 500px; max-width: 500px; height: auto; min-height: 0; max-height: none; margin: 0 auto; flex: none; }
#flex_1 .background { flex: none; height: auto; margin: 12px; padding: 12px; overflow: visible; }
#flex_1 .player { height: auto; display: flex; flex-direction: column; }
#flex_1 .top { height: 400px; min-height: 400px; flex: none; }
#flex_1 .controls { height: 80px; min-height: 80px; align-items: center; overflow: hidden; }
#aroundbutton { flex: 0 0 88px; width: 88px; height: 88px; border: 0; padding: 0; background: transparent; cursor: pointer; }
#aroundbutton:focus-visible { outline: 3px solid #3341ff; outline-offset: -4px; }
#aroundbutton .playbutton { box-sizing: content-box; }
#song { flex: 1; min-width: 0; margin: 0 12px 0 0; font: 400 16px/20px Arial, sans-serif; max-height: 60px; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
#flex_1 .volume { height: 28px; min-height: 28px; margin: 8px 0 0; display: flex; align-items: center; gap: 8px; }
#vol-control { width: min(220px, 60%); }
#playback-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#metadata-status { color: #fff; font: 11px/20px Arial, sans-serif; text-align: center; margin: 0; }
#metadata-status:empty { display: none; }
#history { display: block; flex: none; min-height: 0; height: auto; max-height: none; margin-top: 6px; padding: 0; overflow: visible; border-top: 1px solid #c8c8c8; }
#history ol { margin: 0; padding: 0; list-style: none; }
#history li { display: flex; align-items: center; min-height: 54px; padding: 0; border-bottom: 1px solid #4d4d4d; }
#history .history-icon { flex: 0 0 20%; padding-left: 16px; font-size: 26px; color: #faebd7; }
#history .history-details { flex: 1; min-width: 0; padding-right: 2px; }
#history .history-details span { display: block; min-width: 0; padding: 5px 0; font: 13px/16px Arial, sans-serif; color: white; overflow-wrap: anywhere; }
#history .history-title { border-top: 2px solid #ddd; }
.multi-button { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
.multi-button button.active { outline: 2px solid #3341ff; outline-offset: 2px; }
.ad-slot-wrap { position: relative; height: 300px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
#topAdWrap { position: relative; margin: 0 auto; }
@media (min-width: 768px) and (max-width: 979px) { .ad-slot-wrap { height: 280px; } }
@media (max-width: 767px) { .ad-slot-wrap { height: 250px; } }
.sticky-footer-close { position: absolute; right: 4px; top: -26px; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.multi-button { width: fit-content; max-width: 100%; }

.page-center > .inner { min-width: 500px; }
.multi-button { gap: 0; }
