html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #050506;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: auto;
    -ms-touch-action: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#videoStage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #050506;
    overflow: hidden;
    z-index: 1;
}

#videoPlayer,
#posterLayer {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#videoPlayer {
    z-index: 1;
    background-color: #050506;
}

#posterLayer {
    z-index: 2;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    -webkit-transition: opacity 750ms ease-in-out;
    -moz-transition: opacity 750ms ease-in-out;
    -o-transition: opacity 750ms ease-in-out;
    transition: opacity 750ms ease-in-out;
}

body.videoPosterVisible #posterLayer {
    opacity: 1;
}

#videoTouchSurface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: transparent;
    cursor: pointer;
}

#videoShade {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        -webkit-linear-gradient(top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.76) 100%);
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.76) 100%);
}

#videoTitleBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 56px 38px 56px;
    z-index: 5;
    color: #fff;
    text-shadow: 0 2px 8px #000, 0 0 18px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

#videoTitle {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 10px;
    max-width: 1400px;
}

#videoMeta {
    font-size: 17px;
    color: #e5e8ec;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#videoDuration {
    color: #77d6b4;
    margin-right: 16px;
}

#videoAttribution {
    color: #e5e8ec;
    text-transform: none;
    letter-spacing: 0;
}

#videoAttribution a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

#videoAttribution a:active,
#videoAttribution a:hover {
    color: #77d6b4;
}

#videoCounter {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 6;
    color: #77d6b4;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 1px 4px #000;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
}

#videoQrCode {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 6;
    opacity: 0.92;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    text-decoration: none;
    line-height: normal;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    opacity: 0;
    -webkit-animation: scaleDown 4s ease-in-out forwards;
    animation: scaleDown 4s ease-in-out forwards;
}

@keyframes scaleDown {
    0% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0;
    }

    50% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
        opacity: 1;
    }
}

.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;
}

#videoHelp {
    position: fixed;
    top: 244px;
    left: 16px;
    z-index: 6;
    color: #e4e7ec;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 4px;
    max-width: 230px;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

#videoStatus {
    position: fixed;
    bottom: 4px;
    right: 8px;
    z-index: 7;
    color: #aaa;
    font-size: 11px;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

.videoLoading #videoTitle {
    color: #77d6b4;
    font-style: italic;
}

.videoPaused #videoTitle:after {
    content: "  Paused";
    color: #77d6b4;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lean-paint #videoShade {
    background: rgba(0, 0, 0, 0.18);
}

.lean-paint #videoQrCode,
.lean-paint #videoCounter,
.lean-paint #videoHelp {
    box-shadow: none;
}

@media (max-width: 960px) {
    #videoTitle {
        font-size: 28px;
    }

    #videoMeta {
        font-size: 14px;
    }

    #videoTitleBar {
        padding: 20px 24px 28px 24px;
    }

    #videoQrCode {
        -webkit-transform: scale(0.74);
        transform: scale(0.74);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }

    #videoHelp {
        display: none;
    }
}

@media (max-width: 540px) {
    #videoTitle {
        font-size: 20px;
        margin-bottom: 6px;
    }

    #videoMeta {
        font-size: 11px;
    }

    #videoTitleBar {
        padding: 16px 16px 18px 16px;
    }

    #videoCounter {
        top: 10px;
        right: 10px;
        font-size: 13px;
        letter-spacing: 2px;
        padding: 5px 9px;
    }

    #videoQrCode {
        top: 10px;
        left: 10px;
        -webkit-transform: scale(0.54);
        transform: scale(0.54);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }
}

@media (orientation: portrait) and (max-width: 720px) {
    #videoTitleBar {
        padding: 14px 14px 16px 14px;
    }

    #videoTitle {
        font-size: 18px;
        line-height: 1.2;
    }

    #videoMeta {
        font-size: 10px;
        letter-spacing: 1px;
    }

    #videoDuration {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

@media (max-height: 500px) {
    #videoTitleBar {
        padding: 10px 16px 12px 16px;
    }

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

    #videoMeta {
        font-size: 10px;
    }

    #videoQrCode {
        -webkit-transform: scale(0.48);
        transform: scale(0.48);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }
}