body.music-player-body {
    margin: 0;
    background: #c8bcbc;
    font-family: "GauFontPopMagic";
}

@font-face {
  font-family: 'GauFontPopMagic';
  src: url('font/GAU_pop_magic.TTF.eot'); 
  src: url('font/GAU_pop_magic.TTF.eot?#iefix') format('embedded-opentype'), 
       url('font//GAU_pop_magic.TTF') format('truetype'), 
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #c5c5c5;
}

::-webkit-scrollbar-thumb {
    background: #fff;
    border: 1px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.music-player-window {
    width: 100%;
    height: 100%;
    min-height: 360px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #c8bcbc;
    background-image: url("assets/bg.png");
    background-size: 130px;
    background-repeat: no-repeat;
    color: #111;
}

.music-player-title {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    min-height: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    color: #4b4a4a;
    display: block;
    width: 100%;
    position: relative;
}

.music-player-title::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.music-player-title {
    animation: now-playing-marquee 8s linear infinite;
}

.music-player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-button {
    border: outset 4px;
    background: #dddddd;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-button img {
    width: 40px;
    height: 40px;
    display: block;
    pointer-events: none;
}

.music-player-seeker {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    height: 16px;
    background: url("assets/seek-track.png") repeat-x center;
    border: none;
    outline: none;
    cursor: pointer;
}

.music-player-seeker::-webkit-slider-runnable-track {
    height: 16px;
    background: url("assets/seek-track.png") repeat-x center;
}

.music-player-seeker::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: url("assets/seek-thumb.png") no-repeat center / contain;
    border: none;
    margin-top: 0;
}

.music-player-seeker::-moz-range-track {
    height: 16px;
    background: url("assets/seek-track.png") repeat-x center;
}

.music-player-seeker::-moz-range-progress {
    height: 16px;
    background: url("assets/seek-track.png") repeat-x center;
}

.music-player-seeker::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    background: url("assets/seek-thumb.png") no-repeat center / contain;
}

.music-player-songlist {
    flex: 1 1 auto;
    min-height: 180px;
    overflow-y: auto;
    background-image: url("assets/mercury.gif");
    background-size: fill;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-top: 2px solid #ffffff;
    font-size: 12px;
}

.music-player-songlist a {
    display: block;
    padding: 5px 8px;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-player-songlist a:hover {
    background: #ffffff33;
}

.music-player-popup {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    overflow: auto;
    background: #c8bcbc;
    border: outset 7px;
    box-shadow: 0 24px 24px rgba(0, 0, 0, 0.7);
    z-index: 90;
    display: none;
}

.music-player-popup.open {
    display: block;
}

#musicPlayerFrame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
}