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: 1;
    -webkit-transition: opacity 600ms ease;
    -moz-transition: opacity 600ms ease;
    -o-transition: opacity 600ms ease;
    transition: opacity 600ms ease;
}

body.videoReady #posterLayer {
    opacity: 0;
}

#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;
    width: 112px;
    height: 112px;
    padding: 8px;
    box-sizing: content-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    opacity: 0.92;
    text-align: center;
    line-height: 0;
    font-size: 0;
}

#videoQrCode img,
#videoQrCode canvas,
#videoQrCode table {
    display: block;
    margin: 0 auto;
    width: 112px;
    height: 112px;
}

#videoHelp {
    position: fixed;
    top: 148px;
    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 {
        width: 88px;
        height: 88px;
        padding: 6px;
    }

    #videoQrCode img,
    #videoQrCode canvas,
    #videoQrCode table {
        width: 88px;
        height: 88px;
    }

    #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 {
        width: 64px;
        height: 64px;
        padding: 5px;
        top: 10px;
        left: 10px;
        border-radius: 6px;
    }

    #videoQrCode img,
    #videoQrCode canvas,
    #videoQrCode table {
        width: 64px;
        height: 64px;
    }
}

@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 {
        width: 56px;
        height: 56px;
        padding: 4px;
    }

    #videoQrCode img,
    #videoQrCode canvas,
    #videoQrCode table {
        width: 56px;
        height: 56px;
    }
}
