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: 728px;
    height: 90px;
    cursor: pointer;
}


/* AD PANEL
 -------------------------------------------------------------------*/
.ad-panel {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 728px;
    height: 90px;
    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: 18px;
    left: 540px;
    width: 171px;
    height: 16px;
}


.bg {
    position: absolute;
    top: -1px;
    left: -1px;
}

.spinner-container {
    position: absolute;
    top: 25px;
    left: 344px;
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
}

.cta {
    position: absolute;
    bottom: 17px;
    left: 541px;
}

.noise-container,
.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* VIDEO PANEL
 -------------------------------------------------------------------*/
.video-panel {
    position: absolute;
    top: -1px;
    left: 1px;
    overflow: hidden;
    width: 300px;
    height: 250px;
    background-color: black;
    z-index: 50;
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 250px;
}

.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;
}
