/* GLOBALS styles */
body{
    font-family:  Avenir, Verdana, sans-serif;
    margin: 0;
    background-color: #444;
}

#player{
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
}

/* HEADER styles */
#header{
    position: absolute;
    background: url(../img/header-bg.png) repeat-x top;
    top: 0;
    height: 40px;
    width: 100%;
}
#btn-replay-video{
    float: left;
    width: 22px;
    height: 24px;
    margin: 4px;
    text-indent: -999em;
    background: url(../img/btn-replay-video.png) no-repeat;
    cursor: pointer;
}
#header h2{
    line-height: 30px;
    overflow: auto;
    height: 30px;
}
#header h2.long-title{
    font-size: 13px;
    line-height: 14px;
}

#header-nav{
    float: right;
    margin-right: 4px;
    margin-top: 6px;
}
#header-nav .btn-header{
    text-indent: -999em;
    float: left;
    margin-right: 3px;
    cursor: pointer;
}
.header-menu{
    margin-right: 6px;
    float: left;
}
.header-menu select{
    width: 90px;
    background-color: #222;
    color: #ffffff;
    height: 22px;
    border-style: none;
}
.header-menu select option{
    background-color: #222;
}
#video-screen.fixed-header{
    top: 40px;
}
/* sprite generated on http://fr.spritegen.website-performance.org */
.icon{
    background: url(../img/icon-sprite.png) no-repeat top left;
    width: 23px;
    height: 23px;
}
.icon-embed{ background-position: 0 0; }
.icon-facebook{ background-position: -24px 0; }
.icon-info{ background-position: -48px 0; }
.icon-twitter{ background-position: -72px 0; }
.icon-info{
    margin-left: 5px;
}

.icon-menu{
    background: url(../img/icon-menu.png) no-repeat top left;
    width: 23px;
    height: 23px;
    float: left;
    margin-right: 3px;
}
.icon-chapters{ background-position: -23px 0; }

/* PANEL styles */
#panel{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    /* Fallback for web browsers that doesn't support RGBa */
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.8);
    color: #222;
}
#panel h2{
    margin-top: 60px;
    color: #222;
    margin-left: 0;
}
#panel-share-content, #panel-info-content{
    margin: 10px;
}
#panel-info-content{
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: auto;
}
#panel-share-content label{
    display: block;
}
#panel-share-content input, textarea{
    width: 100%;
    margin: 0 0 15px 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-radius: 6px;
    border: #444 1px solid;
    background: #fff;
    padding: 6px;
}
#panel-info-sources, #panel-info-date, #panel-info-duration{
    font-weight: bold;
}
#panel-info-links{
    float: right;
    width: 200px;
}
#panel-info-links li{
    list-style: none;
    background: no-repeat left top;
    padding: 0 0 8px 22px;
    line-height: 16px;
}
#panel-info-links li.link{
    background-image: url(../img/icon-link.png);
}
#panel-info-links li.file{
    background-image: url(../img/icon-download.png);
}
#panel-info-links .info-link{
    color: #222;
    font-size: 14px;
}
#panel #btn-close-panel{
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: #222;
    color: #fff;
    font-weight: bold;
    padding: 4px 5px 0;
    border-radius: 3px;
    cursor: pointer;
    font-family: monospace;
    font-size: 20px;
    height: 19px;
}

/* VIDEO SCREEN styles */
#video-screen{
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    background-color: #A99;
    overflow: hidden;
}

/* END SCREEN styles */
#end-screen{
    margin: 40px 2% 0;
    color: #fff;
    text-align: center;
    width: 96%;
    padding: 0;
}
#end-screen .related-video{
    width: 160px;
    display: inline-block;
    padding: 5px;
    vertical-align: top;
    cursor: pointer;
}
#end-screen .related-video:hover{
    background-color: #444;
}
#end-screen .related-video img{
    width: 100%;
}
#end-screen .related-video p{
    font-size: 13px;
}
#end-screen .template{
    display: none;
}
/* PLAYLIST styles */
#playlist{
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.8);
}
#playlist-header{
    color: #fff;
    font-size: 13px;
    padding: 2px 0 0 5px;
}
#playlist .inner{
    width: 100%;
    height: 70px;
    list-style: none;
    margin: 0;
    padding: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
}
#playlist .inner.scrollable{
    margin-bottom: 6px;
}
#playlist .inner.scrollable span:last-child{
    margin-right: 30px;
}
#playlist .inner.system-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
}
#playlist span{
    margin: 0 1px;
    cursor: pointer;
}
#playlist span img{
    width: 120px;
    max-height: 68px;
}
#end-screen.with-playlist{
    position: absolute;
    top: 0;
    bottom: 80px;
    overflow: auto;
}
#playlist #btn-playlist-more{
    position: absolute;
    right: 0;
    width: 25px;
    padding-top: 20px;
    height: 50px;
    margin: 0 0 6px 0;
    bottom: 0;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    border-style: none;
}

/* COMMON styles */
.hide{
    display: none;
}
h2{
    color: #fff;
    font-weight: normal;
    font-size: 20px;
    margin: 3px 0 0 10px;
}