﻿
/* GENERIC ELEMENT STYLES */

.mediasite-playcover p {
    margin: 0;
}

.mediasite-playcover h1, .mediasite-playcover h2, .mediasite-playcover h3, .mediasite-playcover h4, .mediasite-playcover h5, .mediasite-playcover h6 {
    margin: 1em 0 0.25em;
}
.mediasite-playcover h1 { font-size: 1.5em; }
.mediasite-playcover h2 { font-size: 1.17em; }
.mediasite-playcover h3 { font-size: 1.12em; }
.mediasite-playcover h4 { font-size: 0.83em; }

.mediasite-playcover a {
    color: #ffb459;
    background-color: transparent;
}

.mediasite-playcover ol { list-style: decimal; }
.mediasite-playcover ul { list-style: disc; }



.mediasite-playcover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 101;
    overflow: hidden;
    
    color: #fff;
    background-color: #444;
    background-size: cover;
    background-position: center;
    font-family: Tahoma, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.mediasite-playcover.mode-ondemand *,
.mediasite-playcover.mode-live * {
    cursor: pointer;
}


/* THUMBNAIL STYLES */

.mediasite-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;

    /* Background is "hidden" on this element but is inherited by ::before and ::after. */
    background-position: -9999px -9999px;
    background-repeat: no-repeat;

    /* Fades in thumbnail when finished loading. */
    transition: opacity 1.0s;
    opacity: 1;
}
.mediasite-playcover.mode-loading .mediasite-thumbnail {
    /* Hides the thumbnail while image is loading. */
    opacity: 0;
}

.mediasite-thumbnail::before, .mediasite-thumbnail::after {
    content: '';
    display: block;
    position: absolute;

    background-position: center;
    background-repeat: no-repeat;

    /* Use the background-image set on .mediasite-thumbnail. */
    background-image: inherit;
    
    /* Solves iOS rendering issues related to excessive filters. */
    transform: translate3d(0, 0, 0);
}
.mediasite-thumbnail::before {
    z-index: 2;
    
    /* Sized and positioned so blur falloff is outside box. */
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);

    /* Covers the entire box, overflowing to maintain aspect ratio. */
    background-size: cover;

    /* Blurred so that it matches ::after without distracting. */
    filter: blur(15px) brightness(0.7) contrast(80%);
}
.mediasite-thumbnail::after {
    z-index: 3;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Just fits inside the  */
    background-size: contain;
    
    /* Shadow adds a little visual separation from ::before. */
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.9));
}


/* PLAY BUTTON STYLES */

.mediasite-playcover .play-button {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-width: 0;
    font-size: inherit;
}

.mediasite-playcover .playable-overlay .play-button  {
    /* Horizontally and vertically centered. */
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 20%;
    height: 35%;
    /* Width and height are bounded. */
    min-width: 50px;
    min-height: 50px;
    max-width: 200px;
    max-height: 200px;
}

.mediasite-playcover .custom-overlay .play-button {
    /* Vertically centered within container. */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);

    width: 20%;
    height: 100%;
    /* Width and height are bounded. */
    min-width: 50px;
    min-height: 50px;
    max-width: 200px;
    max-height: 200px;
    
    margin-left: 2em;
}

.mediasite-playcover.no-playbutton .play-button { display: none; }


.mediasite-playcover .play-button svg {
    width: 100%;
    height: 100%;
}

.mediasite-playcover .play-arrow {
    opacity: 0.9;
    transition: opacity 0.1s;
}
.mediasite-playcover:hover .play-arrow {
    opacity: 1.0;
}

.mediasite-playcover .play-circle {
    opacity: 0.7;
    fill: #000;
    transition: fill 0.1s, opacity 0.1s;
}
.mediasite-playcover:hover .play-circle {
    opacity: 1.0;
    fill: #ed8b00;
}


/* CUSTOM CONTENT STYLES */

.mediasite-playcover .custom-content-wrapper {
    position: absolute;
    z-index: 20;
    /* Not dodging live indicator */
    top: 2em;
    /* Dodge title region. */
    bottom: 4em;
    /* Horizontal "margins" grow with overrall width. */
    left: 10%;
    right: 10%;
}
.mediasite-playcover.no-title .custom-content-wrapper {
    /* Not dodging title region. */
    bottom: 2em;
}
.mediasite-playcover.mode-live .custom-content-wrapper {
    /* Dodge live indicator. */
    top: 4em;
}

.mediasite-playcover .custom-message-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;

    /* Use width remaining after subtracting play button width and some margin. */
    /* Play button width is 20% but capped at 200px and margin is 7%. */
    width: calc(100% - 7% - 20%);
    min-width: calc(100% - 7% - 200px);

    overflow: auto;
}
.mediasite-playcover.no-playbutton .custom-message-wrapper {
    width: 100%;
}
/* NOTE: :after element with 100% height allows vertical alignment of peer .custom-message. */
.mediasite-playcover .custom-message-wrapper:after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.mediasite-playcover .custom-message {
    /* Vertically centered because of full height peer element. */
    display: inline-block;
    vertical-align: middle;
}
.mediasite-playcover .custom-message p {
    margin-bottom: 1em;
}
.mediasite-playcover .custom-message>:last-child {
    margin-bottom: 0;
}
.mediasite-playcover .custom-message>h1:first-child, 
.mediasite-playcover .custom-message>h2:first-child, 
.mediasite-playcover .custom-message>h3:first-child, 
.mediasite-playcover .custom-message>h4:first-child {
    margin-top: 0;
}


/* TITLE REGION STYLES */

.mediasite-playcover .title-region {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    
    background-color: transparent;
    color: white;
    
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
.mediasite-playcover.no-title .title-region,
.mediasite-playcover.mode-unavailable .title-region { display: none; }

.mediasite-playcover .title-region h1 {
    /* Single line that is truncated with an ellipsis when too long. */          
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 1em 1em 0.5em;
    font-size: 1em;
    font-weight: normal;
}

.mediasite-playcover .title-region::before {
    /* Create a faded shadow background for .title-region. */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 0; /* No height - just shadow. */
    width: 100%;

    box-shadow: 0 0 1.5em 3em rgba(0, 0, 0, 0.6);
}


/* OVERLAY STYLES */

.mediasite-playcover .overlay-sheet {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.mediasite-playcover .overlay-sheet {
    /* Defaul overlays to hidden. They are revealed based on mode. */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.5s, opacity 0.5s;
}
.mediasite-playcover.mode-ondemand.customized .playable-overlay,
.mediasite-playcover.mode-live.customized .playable-overlay {
    /* Hide normal play button, etc. immediately when becomes customized. */
    visibility: hidden;
    opacity: 0;
    transition-duration: 0; 
}

.mediasite-playcover.mode-ondemand .playable-overlay,
.mediasite-playcover.mode-loading .loading-overlay,
.mediasite-playcover.mode-live .playable-overlay,
.mediasite-playcover.mode-live .live-overlay,
.mediasite-playcover.mode-waiting .waiting-overlay,
.mediasite-playcover.mode-ended .ended-overlay,
.mediasite-playcover.mode-unavailable .unavailable-overlay,
.mediasite-playcover.mode-ondemand.customized .custom-overlay,
.mediasite-playcover.mode-ondemand.customized .shade-overlay,
.mediasite-playcover.mode-live.customized .custom-overlay,
.mediasite-playcover.mode-live.customized .shade-overlay {
    /* Reveal overlays for the appropriate modes. */
    visibility: visible;
    opacity: 1;
    
    /* When hiding, visibility transition is delayed. */
    /* Here we are revealing, so zero the delay. */
    transition-delay: 0s;
}

.mediasite-playcover .shade-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 5;
}
.mediasite-playcover .custom-overlay,
.mediasite-playcover .playable-overlay {
    z-index: 15;
}


/* OVERLAY WIDGET STYLES */

.mediasite-playcover .message-widget {
    /* Centered both vertically and horizontally. */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    margin: 0;
    padding: 0.75em 1.25em;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.0em;
    border-radius: 0.375em;
    text-align: center;
    white-space: nowrap;
}

.mediasite-playcover .live-indicator {
    position: absolute;
    top: 1em;
    left: 1em;
    padding: 0.5em 1em 0.5em 0.75em;
    white-space: nowrap;

    color: white;
    background-color: rgba(0, 0, 0, 0.8);

    border-radius: 0.375em;
}
.mediasite-playcover .live-indicator svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}
.mediasite-playcover .live-indicator p {
    display: inline-block;
    margin: 0 0 0 0.5em;
    padding: 0;
    vertical-align: middle;
    background: transparent;
    line-height: 1.0;
    height: 1em;
}

.mediasite-playcover .mediasite-waiting-widget .waiting-time {
    font-size: 4em;
    margin-top: 0;
    line-height: initial;
}
.mediasite-playcover .mediasite-waiting-widget.last-hour .waiting-time,
.mediasite-playcover .mediasite-waiting-widget.last-minute .waiting-time {
    font-size: 5em;
}
.mediasite-playcover .mediasite-waiting-widget .waiting-text {
    margin: 0;
}

.mediasite-playcover .unavailable-text span {
    display: block;
}


/* SIZE BASED FONT SIZE ADJUSTMENTS */
/* Defined largest to smallest so that the smallest of either width or height will win. */
.mediasite-playcover.width-huge, .mediasite-playcover.height-huge { font-size: 24px; }
.mediasite-playcover.width-bigger, .mediasite-playcover.height-bigger { font-size: 20px; }
.mediasite-playcover.width-big, .mediasite-playcover.height-big { font-size: 18px; }
.mediasite-playcover.width-medium, .mediasite-playcover.height-medium { font-size: 16px; }
.mediasite-playcover.width-small, .mediasite-playcover.height-small { font-size: 14px; }
.mediasite-playcover.width-tiny, .mediasite-playcover.height-tiny { font-size: 12px; }


/* SIZE BASED LAYOUT ADJUSTMENTS */

.mediasite-playcover.width-tiny .custom-content-wrapper {
    left: 2em;
    right: 2em;
}



/* Style adjustments for IE10+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    div.mediasite-thumbnail::before {
        background: none transparent;
    }

} 