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

button {
    font: inherit;
}

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

#stage {
    background: #07090b;
}

#audioPlayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
}

#stationPanel {
    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;
    transition: transform 2s ease;
    will-change: transform;
}

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

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

#streamInfo,
#streamStatus {
    max-width: 880px;
    margin: 10px auto 0;
    overflow: hidden;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#streamInfo {
    color: #f7c948;
    font-size: 22px;
    font-weight: 700;
}

#streamStatus {
    color: #b9c7d4;
    font-size: 16px;
    font-weight: 700;
}

#scanPanelWrap {
    width: 166px;
    margin: 22px auto 0;
    box-sizing: border-box;
    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;
}

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

#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 {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

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

    #stationName {
        font-size: 38px;
        white-space: normal;
    }

    #streamInfo,
    #streamStatus {
        font-size: 16px;
        white-space: normal;
    }

    #scanPanelWrap {
        transform: scale(0.82);
        transform-origin: top center;
    }
}
