:root {
    --widgetnomalsize: 360px;
    --widgetlargecoversize: 324px;
    --mwlargesizewidth: 360px;
    --mwlargesizeheight: 550px;
}

body {
    margin: 0;
    background: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
}

#page-frame {
    flex: 1;
    width: 100%;
    border: 0;
}

#music-widget {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    z-index: 9999;
    box-sizing: border-box;
    transition: transform .25s ease, opacity .2s ease;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, transparent 30%, var(--disc-color) 70%),
            color-mix(in srgb, transparent 65%, #000 35%)
        );
    background-color: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#music-widget.mw-hidden {
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
}

.mw-cover {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: #232323;
    margin-right: 14px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.mw-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mw-bar {
    position: relative;
    margin-top: 6px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    overflow: hidden;
    width: 200px;
}

.mw-bar-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: var(--disc-color, #45e8ff);
}

.mw-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.mw-buttons {
    display: flex;
}

.mw-btn {
    border: none;
    outline: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.mw-time {
    font-size: 10px;
    opacity: .7;
    margin-top: 4px;
}

#music-widget .mw-title,
#music-widget .mw-artist {
    position: relative;
    white-space: nowrap;
}

#music-widget .mw-title.is-marquee,
#music-widget .mw-artist.is-marquee {
    display: inline-block;
    will-change: transform;
    animation: mw-marquee 12s linear infinite;
}

@keyframes mw-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.mw-title {
    font-size: 14px;
    font-weight: 600;
}

.mw-artist {
    margin-top: 2px;
    font-size: 11px;
    opacity: .75;
    text-overflow: ellipsis;
}

#music-widget.mw-size-medium,
#music-widget:not(.mw-size-small):not(.mw-size-large) {
    width: var(--widgetnomalsize);
    height: 90px;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    border-radius: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

#music-widget.mw-size-medium .mw-panel-wrap,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-panel-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

#music-widget.mw-size-medium .mw-panel,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-panel {
    display: none;
}

#music-widget.mw-size-medium #mw-panel-player,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-panel-player {
    display: flex;
    align-items: center;
}

#music-widget.mw-size-medium #mw-cover,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-cover {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    margin-right: 14px;
    flex-shrink: 0;
}

#music-widget.mw-size-medium .mw-main,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 120px;
}

#music-widget.mw-size-medium #mw-title,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

#music-widget.mw-size-medium #mw-artist,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-artist {
    margin-top: 2px;
    font-size: 11px;
    opacity: .75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#music-widget.mw-size-medium #mw-bar,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-bar {
    position: relative;
    margin-top: 6px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    overflow: hidden;
    width: 100%;
}

#music-widget.mw-size-medium #mw-bar-inner,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-bar-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: inherit;
    background: var(--disc-color);
}

#music-widget.mw-size-medium .mw-controls,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-controls {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

#music-widget.mw-size-medium .mw-buttons,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-buttons {
    display: flex;
}

#music-widget.mw-size-medium .mw-btn,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

#music-widget.mw-size-medium .pl-ctrl-btn svg.pl-ico {
    width: 15px;
    height: 15px;
}

#music-widget.mw-size-medium .mw-btn:hover,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-btn:hover {
    color: var(--disc-color);
}

#music-widget.mw-size-medium .mw-top-bar,
#music-widget:not(.mw-size-small):not(.mw-size-large) .mw-top-bar {
    right: 10px;
    height: 20px;
    width: 20px;
}

#music-widget.mw-size-medium #mw-play,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-play {
    background: var(--disc-color);
    color: #ffffff;
    transition: transform .25s ease, opacity .2s ease;
}

#music-widget.mw-size-medium #mw-play:hover,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-play:hover {
    color: var(--disc-color);
    background: #ffffff;
}

#music-widget.mw-size-medium #mw-time,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-time {
    font-size: 10px;
    opacity: 0.75;
}

#music-widget.mw-size-medium #mw-toggle-mode,
#music-widget.mw-size-medium #mw-repeat,
#music-widget.mw-size-medium #mw-shuffle,
#music-widget.mw-size-medium #mw-volume,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-toggle-mode,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-repeat,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-shuffle,
#music-widget:not(.mw-size-small):not(.mw-size-large) #mw-volume {
    display: none;
}

#music-widget.mw-size-small {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#music-widget.mw-size-small .mw-top-bar,
#music-widget.mw-size-small .mw-main,
#music-widget.mw-size-small .mw-controls,
#music-widget.mw-size-small .mw-panel-lyrics,
#music-widget.mw-size-small .mw-panel-list {
    display: none !important;
}

#music-widget.mw-size-small .mw-panel-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-widget.mw-size-small #mw-panel-player {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#music-widget.mw-size-small #mw-cover {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-size: cover;
    background-position: center;
}

#music-widget.mw-size-large {
    width: var(--mwlargesizewidth);
    height: var(--mwlargesizeheight);
    left: 50%;
    bottom: 24px;
    right: auto;
    transform: translateX(-50%);
    border-radius: 40px;
    padding: 18px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

#music-widget.mw-size-large .mw-top-bar {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    z-index: 5;
}

#music-widget.mw-size-large .mw-btn-mini,
#music-widget.mw-size-large .mw-btn-expand {
    display: flex;
}

#music-widget.mw-size-large .mw-main {
    order: 3;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

#music-widget.mw-size-large #mw-cover {
    flex: 0 0 var(--widgetlargecoversize);
    border-radius: 24px;
    width: 100%;
    height: var(--widgetlargecoversize);
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0 0 8px 0;
}

#music-widget.mw-size-large #mw-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 4px;
    margin-top: 5%;
    text-align: center;
}

#music-widget.mw-size-large #mw-artist {
    font-size: 13px;
    opacity: .8;
    text-align: center;
}

#music-widget.mw-size-large .mw-bar {
    margin-top: 10px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

#music-widget.mw-size-large .mw-bar-inner {
    height: 100%;
    width: 0;
    background: var(--disc-color);
    border-radius: inherit;
}

#music-widget.mw-size-large .mw-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: .75;
    margin-top: 6px;
}

#music-widget.mw-size-large .mw-controls {
    order: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    flex-direction: row;
}

#music-widget.mw-size-large .mw-buttons {
    display: flex;
    gap: 13px;
    align-items: center;
}

#music-widget.mw-size-large .pl-btn-play .pl-ico-pause {
    width: 25px;
    height: 25px;
}

#music-widget.mw-size-large .mw-btn {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    fill: white;
}

#music-widget.mw-size-large #mw-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--disc-color);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .45);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-widget.mw-size-large #mw-play:hover {
    color: var(--disc-color);
    background: #ffffff;
}

#music-widget.mw-size-large #mw-prev,
#music-widget.mw-size-large #mw-next {
    font-size: 20px;
    opacity: .85;
    width: 32px;
    height: 32px;
}

#music-widget.mw-size-large #mw-shuffle,
#music-widget.mw-size-large #mw-repeat,
#music-widget.mw-size-large #mw-volume {
    display: flex;
}

#music-widget.mw-size-large .mw-panel-lyrics.is-active,
#music-widget.mw-size-large .mw-panel-list.is-active {
    max-height: calc(var(--mwlargesizeheight) - 130px);
    height: calc(var(--mwlargesizeheight) - 130px);
}


#music-widget.mw-size-large .pl-btn-volume.is-muted {
    opacity: 0.3;
}

#music-widget .pl-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    outline: none;
    color: #fff;
}

#music-widget .pl-btn-play {
    background: var(--disc-color);
    transition: color .15s ease-out,
                background-color .15s ease-out,
                box-shadow .15s ease-out;    
}

#music-widget .pl-btn-play svg.pl-ico {
    width: 20px;
    height: 20px;
}

#music-widget .pl-ctrl-btn svg.pl-ico {
    width: 22px;
    height: 22px;
    display: block;
}

#music-widget.mw-size-large .pl-btn-play.is-paused .pl-ico-play {
    width: 25px;
    height: 25px;
}

#music-widget .pl-ico-play .cls-1,
#music-widget .pl-ico-pause .cls-1,
#music-widget .pl-ico-prev .cls-1,
#music-widget .pl-ico-next .cls-1,
#music-widget .pl-ico-volume .cls-1,
#music-widget .pl-ico-add .cls-1,
#music-widget .pl-ico-edit .cls-1 {
    fill: currentColor;
    stroke: none;
}

#music-widget .pl-ico-repeat-all .cls-1,
#music-widget .pl-ico-repeat-all .cls-2,
#music-widget .pl-ico-repeat-one .cls-1,
#music-widget .pl-ico-repeat-one .cls-2,
#music-widget .pl-ico-shuffle .cls-1,
#music-widget .pl-ico-shuffle .cls-2,
#music-widget .pl-ico-volume .cls-3 {
    fill: none;
    stroke: currentColor;
    stroke-width: 26px;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}

#music-widget .pl-btn-prev,
#music-widget .pl-btn-next,
#music-widget .pl-btn-mode,
#music-widget .pl-btn-shuffle,
#music-widget .pl-btn-volume {
    color: #ffffff;
    opacity: 0.9;
    transition: color .15s ease-out, opacity .15s ease-out;
}

#music-widget .pl-btn-shuffle.is-on {
    color: var(--disc-color);
}

#music-widget .pl-btn-mode[data-mode="off"] {
    color: #ffffff;
    opacity: .6;
}

#music-widget .pl-btn-mode[data-mode="all"],
#music-widget .pl-btn-mode[data-mode="one"] {
    color: var(--disc-color);
    opacity: 1;
}

#music-widget .pl-ico-pause { display: none; }
#music-widget .pl-btn-play.is-paused .pl-ico-play  { display: block; }
#music-widget .pl-btn-play.is-paused .pl-ico-pause { display: none; }
#music-widget .pl-btn-play:not(.is-paused) .pl-ico-play  { display: none; }
#music-widget .pl-btn-play:not(.is-paused) .pl-ico-pause { display: block; }

#music-widget .pl-ico-repeat-one { display: none; }
#music-widget .pl-btn-mode[data-mode="all"] .pl-ico-repeat-all { display: block; }
#music-widget .pl-btn-mode[data-mode="all"] .pl-ico-repeat-one { display: none; }
#music-widget .pl-btn-mode[data-mode="one"] .pl-ico-repeat-all { display: none; }
#music-widget .pl-btn-mode[data-mode="one"] .pl-ico-repeat-one { display: block; }
#music-widget .pl-btn-mode[data-mode="off"] .pl-ico-repeat-all { opacity: .7; }
#music-widget .pl-btn-mode[data-mode="off"] .pl-ico-repeat-one { display: none; }

#music-widget .pl-ctrl-btn:hover {
    color: var(--disc-color);
    box-shadow: none;
}

.pl-btn-volume.is-muted .pl-ico-volume {
    opacity: 0.4;
}

#music-widget .mw-toggle-mode {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: fill .15s ease-out
}
#music-widget .mw-toggle-mode:hover {
    fill: var(--disc-color);}

.mw-toggle-mode .pl-ico {
    display: none;
}

#music-widget[data-view="player"] .mw-toggle-mode .pl-ico-lyrics { display: block; }
#music-widget[data-view="lyrics"] .mw-toggle-mode .pl-ico-list   { display: block; }
#music-widget[data-view="list"]   .mw-toggle-mode .pl-ico-music  { display: block; }

#music-widget .mw-panel {
    display: none;
}

#music-widget .mw-panel.is-active {
    display: block;
    max-height: 400px;
    height: 400px;
    scrollbar-width: none;
}

#music-widget .mw-panel-lyrics {
    padding: 24px 20px 16px;
    overflow-y: auto;
    text-align: center;
}

#mw-lyrics {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.mw-lyric-line {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: .6;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.mw-lyric-sub {
    margin-bottom: 6%;
}

.mw-lyric-line.is-active {
    opacity: 1;
    font-weight: 600;
    transform: scale(1.02);
}

.mw-lyric-line:hover {
    opacity: 0.9;
}

.mw-panel-list {
    padding: 10px 0 4px;
    display: flex;
    flex-direction: column;
}

.mw-list {
    list-style: none;
    margin: 0;
    padding: 0 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: none;
}

.mw-list::-webkit-scrollbar {
    width: 4px;
}

.mw-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.mw-list-item {
    margin: 0;
    padding: 0;
}

.mw-list-btn {
    box-sizing: border-box;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #ffffff;
    font: inherit;
    text-align: left;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.mw-list-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.mw-list-item.is-active .mw-list-btn {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.mw-list-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    margin-right: 10px;
}

.mw-list-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mw-list-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-list-artist {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#music-widget .mw-top-bar {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    align-items:center;
    justify-content:flex-end;
    height: 32px;
    z-index: 5;
}