body {
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    color: #EEEEEE;
    text-align: center;
    margin: 6px auto;
    -webkit-text-size-adjust: 100%;
}

.playerBox {
    width: 900px;
    max-width: 96%;
    margin: auto;
    padding: 10px 12px 8px 12px;
    background-color: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(150, 150, 150, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #FFFF00;
    font-size: 20px;
}

.worldButtons {
    margin-bottom: 8px;
}

.worldButton {
    font-size: 15px;
    font-weight: bold;
    padding: 7px 12px;
    margin: 3px;
    color: #FFFF00;
    background-color: rgba(0, 0, 128, 0.72);
    border: 1px solid #4444AA;
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.worldButton:hover,
.worldButton:focus {
    background-color: rgba(17, 17, 170, 0.82);
}

.worldButton.activeWorld {
    background-color: rgba(34, 34, 204, 0.82);
    border-color: #66CCFF;
    box-shadow: 0 0 8px rgba(102, 204, 255, 0.45);
}

.songListHeading {
    border-radius: 8px 8px 0 0;
    margin: 0;
}
.songListBox {
    background-color: rgba(20, 20, 20, 0.64);
    border: 1px solid rgba(150, 150, 150, 0.35);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
    text-align: left;
    overflow: hidden;
    height: 210px;
    max-height: 210px;
    overflow-y: auto;
    position: relative;
}
#listHintBottom {
    margin-bottom: 8px;
}

.listHint {
    display: none;
    text-align: center;
    font-size: 11px;
    color: #88D0F0;
    padding: 4px 8px;
    pointer-events: none;
    z-index: 8;
    background-color: #0a0a0a;
    left: 0;
    right: 0;
}

.listHintTop {
    position: sticky;
    top: 34px;
}

.listHintBottom {
    position: sticky;
    bottom: 0;
}

.listHint.visibleHint {
    display: block;
}

#listHintTop,
#listHintBottom {
    display: block;
    visibility: hidden;
    min-height: 18px;
    padding: 2px 8px;
}

#listHintTop.visibleHint,
#listHintBottom.visibleHint {
    visibility: visible;
}

.songListHeading {
    color: #66CCFF;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(150, 150, 150, 0.3);
    background-color: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(150, 150, 150, 0.18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.songRowPlay {
    color: #88D0F0;
    font-size: 11px;
    width: 16px;
    flex: 0 0 16px;
    margin-right: 8px;
    line-height: 1;
    text-align: center;
}

.songRow:last-child {
    border-bottom: none;
}

.songRow:hover,
.songRow:active {
    background-color: rgba(102, 204, 255, 0.14);
}

.songRow.activeSong {
    background-color: rgba(102, 204, 255, 0.22);
}

.songRow.activeSong .songRowPlay {
    color: #FFFFFF;
}

.songRowTitle {
    color: #EEEEEE;
    font-size: 14px;
    flex: 1;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songRowArtist {
    color: #CCCCCC;
    font-size: 14px;
    white-space: nowrap;
}

.songRowOpen {
    color: #66CCFF;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 8px;
    text-decoration: underline;
    flex: 0 0 auto;
}

.currentSongBox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background-color: rgba(15, 15, 15, 0.62);
    border: 1px solid rgba(150, 150, 150, 0.35);
    border-radius: 10px;
    text-align: left;
}

.songImage {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(200, 200, 200, 0.45);
    flex-shrink: 0;
    background-color: #111;
    cursor: pointer;
}

.artZoom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
}

.artZoom.hiddenText {
    display: none;
}

.artZoom img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 8px;
    border: 1px solid #888;
}

.songInformation {
    flex: 1;
    min-width: 0;
}

.songInformation h2 {
    margin-top: 0;
    margin-bottom: 4px;
    color: #66CCFF;
    font-size: 18px;
    word-wrap: break-word;
}

.songInformation h3 {
    margin: 0;
    color: #CCCCCC;
    font-size: 14px;
    font-weight: normal;
}

.infoButtons {
    margin-top: 4px;
    margin-bottom: 4px;
}

.infoButtons button {
    font-size: 14px;
    padding: 6px 11px;
    margin: 2px 3px 2px 0;
    color: #FFFF00;
    background-color: rgba(0, 0, 128, 0.72);
    border: 1px solid #4444AA;
    border-radius: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.infoButtons button:hover {
    background-color: rgba(17, 17, 170, 0.82);
}

.infoBox {
    margin-top: 4px;
    padding: 22px 8px;
    background-color: rgba(0, 0, 0, 0.38);
    border-radius: 7px;
    color: #EEEEEE;
    line-height: 1.4;
    font-size: 15px;
    height: 7.2em;
    max-height: 7.2em;
    overflow-y: auto;
    position: relative;
}

.infoBox .listHint {
    position: absolute;
}

.infoBox .listHintTop {
    top: 0;
}

.infoBox .listHintBottom {
    bottom: 0;
}

.infoBox p {
    margin: 0;
    white-space: pre-wrap;
}

.hiddenText {
    display: none;
}

.playerControls {
    margin-top: 8px;
    white-space: nowrap;
}

.playerControls button {
    font-size: 13px;
    padding: 6px 10px;
    margin: 3px;
    color: #FFFF00;
    background-color: rgba(0, 0, 128, 0.72);
    border: 1px solid #4444AA;
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.playerControls button:hover {
    background-color: rgba(17, 17, 170, 0.82);
}

.playerControls button.active {
    background-color: rgba(34, 34, 204, 0.85);
    border-color: #66CCFF;
}

#progressContainer {
    width: 94%;
    height: 12px;
    margin: 8px auto 4px auto;
    background-color: rgba(80, 80, 80, 0.70);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 10;
    touch-action: none;
}

#progressBar {
    height: 100%;
    width: 0%;
    background-color: #66CCFF;
    border-radius: 10px;
    pointer-events: none;
    transition: width 0.1s linear;
}

#timeDisplay {
    color: #CCCCCC;
    font-size: 13px;
    margin-bottom: 2px;
}

.volumeArea {
    margin-top: 2px;
    margin-bottom: 2px;
    color: #CCCCCC;
    font-size: 13px;
}

#volume {
    width: 180px;
    max-width: 70%;
    vertical-align: middle;
}

@media screen and (max-width: 700px) {

    body {
        margin: 4px auto;
    }

    .playerBox {
        padding: 8px;
        max-width: 98%;
    }

    h1 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .worldButton {
        font-size: 13px;
        padding: 6px 8px;
        margin: 2px;
    }

    .songListBox {
        height: 150px;
        max-height: 150px;
        margin-bottom: 6px;
    }

    .songListHeading {
        font-size: 14px;
        padding: 5px 8px;
    }

    .listHintTop {
        top: 28px;
    }

    .songRow {
        padding: 4px 8px;
    }

    .songRowTitle {
        font-size: 13px;
    }

    .songRowArtist {
        font-size: 13px;
    }

    .currentSongBox {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
        padding: 6px;
    }

    .songImage {
        width: 60px;
        height: 60px;
    }

    .songInformation h2 {
        font-size: 15px;
    }

    .infoButtons button {
        font-size: 13px;
        padding: 5px 8px;
    }

    .infoBox {
        font-size: 14px;
        height: 6.4em;
        max-height: 6.4em;
        line-height: 1.35;
        padding: 20px 8px;
    }

    .playerControls button {
        font-size: 12px;
        padding: 6px 8px;
        margin: 2px;
    }

    #progressContainer {
        height: 14px;
        width: 96%;
        margin: 6px auto 3px auto;
    }

    #timeDisplay,
    .volumeArea {
        font-size: 12px;
    }

    #volume {
        width: 140px;
    }
}


@media (hover: hover) and (pointer: fine) {
    .currentSongBox {
        overflow: visible;
    }
    .songImage:hover {
        transform: scale(2.35);
        transform-origin: left center;
        z-index: 30;
        position: relative;
        box-shadow: 0 0 18px rgba(0,0,0,0.7);
    }
}
