html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #050607;
    color: #f5f7f8;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font: inherit;
}

#stage,
#visualizerStage,
#audioPlayer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#stage {
    background: #050607;
}

#visualizerStage {
    width: 100%;
    height: 100%;
    z-index: 1;
}

#visualizerStage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#audioPlayer {
    width: 0;
    height: 0;
    opacity: 0;
}

#trackPanel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 78vw;
    max-width: 1120px;
    padding: 0;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0 2px 4px #000;
}

#trackEyebrow {
    margin: 0 0 9px;
    color: #8fd0ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

#trackTitle {
    margin: 0;
    padding: 0.04em 0 0.1em;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#trackMetadata {
    margin: 12px auto 20px;
    max-width: 920px;
}

#trackMetadata p {
    margin: 0;
    overflow: hidden;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#trackArtist {
    color: #8fd0ff;
    font-size: 28px;
    font-weight: 700;
}

#trackAlbum {
    margin-top: 4px;
    color: #f7c948;
    font-size: 22px;
    font-weight: 700;
}

#trackDetails {
    margin-top: 5px;
    color: #dce5ec;
    font-size: 17px;
}

#trackStatus {
    margin-top: 10px;
    color: #aebdca;
    font-size: 15px;
    font-weight: 700;
}

#trackArtist:empty,
#trackAlbum:empty,
#trackDetails:empty {
    display: none;
}

#progressWrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
}

#progressBar {
    width: 0;
    height: 100%;
    background: #f7c948;
}

#timeLine {
    display: flex;
    width: 100%;
    max-width: 760px;
    margin: 8px auto 0;
    color: #e4e9ee;
    font-size: 15px;
    font-weight: 700;
    justify-content: space-between;
}

#scanPanelWrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    width: 190px;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(6, 8, 10, 0.92);
    text-align: center;
}

#scanPanel {
    width: 166px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    margin: 0 auto;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
    transform-origin: top left;
    transform: scale(1);
    line-height: normal;
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    line-height: 1.2;
}

#fullscreenButton,
#enableAudioButton {
    border: 0;
    border-radius: 8px;
    background: #f7c948;
    color: #111;
    cursor: pointer;
    font-weight: 700;
}

#fullscreenButton {
    width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    margin-top: 10px;
    font-size: 13px;
}

#enableAudioPanel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
}

body.needs-audio #enableAudioPanel {
    display: flex;
}

#enableAudioButton {
    min-width: 220px;
    min-height: 64px;
    padding: 0 26px;
    font-size: 24px;
}

#statsPanel {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 4;
    display: none;
    width: 340px;
    max-width: calc(100vw - 36px);
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(6, 8, 10, 0.9);
    font-size: 13px;
}

body.show-stats #statsPanel {
    display: block;
}

.statsTitle {
    margin-bottom: 8px;
    color: #8fd0ff;
    font-weight: 700;
    text-transform: uppercase;
}

#statsList {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

#statsList dt,
#statsList dd {
    width: 50%;
    margin: 0 0 5px;
}

#statsList dt {
    color: #a9b7c2;
}

#statsList dd {
    text-align: right;
}

body.hide-title #trackPanel,
body.hide-qr #scanPanelWrap {
    display: none;
}

body.lean-paint #trackPanel,
body.lean-paint #scanPanelWrap,
body.lean-paint #statsPanel {
    text-shadow: none;
    box-shadow: none;
}

body.lean-paint #scanPanelWrap,
body.lean-paint #statsPanel {
    background: #06080a;
}

@media (max-width: 700px),
(orientation: portrait) {
    #trackPanel {
        top: 42%;
        width: calc(100vw - 48px);
    }

    #trackTitle {
        font-size: 36px;
        white-space: normal;
    }

    #trackMetadata p {
        white-space: normal;
    }

    #trackArtist {
        font-size: 22px;
    }

    #trackAlbum {
        font-size: 18px;
    }

    #trackDetails,
    #trackStatus {
        font-size: 16px;
    }

    #scanPanelWrap {
        left: 50%;
        right: auto;
        bottom: 18px;
        transform: translateX(-50%) scale(0.65);
        transform-origin: bottom center;
    }

    #fullscreenButton {
        min-height: 38px;
        font-size: 16px;
    }

}