html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
}

img {
    display: block;
}

svg, path {
    fill: #fff;
}

.hidden {
    display: none;
}

.visible {
    opacity: 1 !important;
}

.higher {
    z-index: 10;
}

/* DEBUG
 [class*="-exit"] {
    background-color: rgba(255,0,0,0.25);
 }
 -------------------------------------------------------------------*/


/* AD CONTAINER
 -------------------------------------------------------------------*/
.ad-container {
    position: relative;
    width: 300px;
    height: 600px;
    cursor: pointer;
}


/* AD PANEL
 -------------------------------------------------------------------*/
.ad-panel {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 300px;
    height: 600px;
    border: 1px solid #bfbfbf;
    background-color: #f2f2f2;
}

.open-action {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
}

.ad-exit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.user-video .ad-exit {
    height: 300px;
}

.foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tune-in {
    position: absolute;
    top: 504px;
    left: 19px;
    width: 259px;
    height: 22px;
    background: url(images/tune-in-march.png) no-repeat;
}

.tomorrow .tune-in { background-image: url(images/tune-in-tomorrow.png); }
.tonight .tune-in  { background-image: url(images/tune-in-tonight.png); }

.producers {
    position: absolute;
    top: 32px;
    left: 55px;
}

.tagline {
    position: absolute;
    top: 155px;
    left: -1px;
}

.tt {
    position: absolute;
    top: 174px;
    left: -1px;
}

.spinner-container {
    position: absolute;
    top: 232px;
    left: 118px;
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
}

.cta {
    position: absolute;
    bottom: 33px;
    left: 84px;
}

.noise-container,
.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* VIDEO PANEL
 -------------------------------------------------------------------*/
.video-panel {
    position: absolute;
    bottom: -310px;
    left: 0;
    overflow: hidden;
    width: 300px;
    height: 300px;
    background-color: black;
    z-index: 50;
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
}

.close-action {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 26px;
    background-color: rgba(0,0,0,0.5);
}


.video-panel .video-controls {
    opacity: 0;
    transition: 1s;
}

.video-panel:hover .video-controls {
    opacity: 1;
    transition: 1s;
}


.video-controls .icon {
    position: absolute;
    width: 16px;
    height: 16px;
}

.video-play,
.video-pause {
    left: 5px;
    bottom: 5px;
}

.video-mute,
.video-unmute {
    right: 5px;
    bottom: 5px;
}

.video-progress {
    /* 5px + 16px + 10px + progress + 10px + 16px + 5px */
    width: calc(100% - 62px);
    height: 5px;
    background-color: #565656;
    border: 0;
    position: absolute;
    bottom: 11px;
    left: 29px;
    color: #fff;
}

progress::-moz-progress-bar { background: #fff; }
progress::-webkit-progress-bar { background: #565656; }
progress::-webkit-progress-value { background: #fff; }

.controls > * {
    z-index: 100;
}
