.video-container {
  display: inline-block;
  width: 100%;
}

:focus {
  outline: none;
  -moz-outline-style: none;
}

/* Navigation bar */

#video-nav-bar {
  margin: 5px 5px 0 5px;
}

#video-nav-bar.top-nav {
  border: none;
  margin-bottom: 20px;
}

#video-nav-bar.bottom-nav {
  border-top: 1px solid #CCCCCC;
  margin-top: 20px;
}

table#video-nav {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

table#video-nav tr td {
  width: 25%;
  border: 1px solid #CCCCCC;
  text-align: center;
  cursor: pointer;
}

table#video-nav tr td:hover {
  background-color: #DDDDDD;
}

table#video-nav tr td.selected {
  background-color: #DDDDDD; 
}

a.nav-link {
  color: #0033CC;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

/* Title bar */

#video-title {
}

#video-title h1 {
  font-size: 19px;
  font-weight: bold;
  margin-top: 0;
  margin-left: 5px;
  margin-bottom: 5px;
  color: #336699;
}

/* Right-side bar */

#video-right-bar {
  float: right;
  width: 250px;
}

/* Video details */

#video-details {
  background: #EEEEEE none repeat scroll 0 0;
  border: 1px solid #CCCCCC;
  margin-bottom: 10px;
  padding: 3px;
}

#video-descr {
  padding: 1px 1px 2px 2px; 
}

#video-tags {
  padding: 4px;
  text-align: center;
}

a.tag-link {
  color: #999999;
  margin-left: 1em;
  margin-right: 1em;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}

a.tag-link:hover {
  color: #999999;
  text-decoration: underline;
}

#this-url {
  border-top: 1px solid #CCCCCC;
  font-size: 11px;
  margin: 0 5px;
  padding: 3px 0 0 6px;
}

#this-url label {
  clear: left;
  color: #666666;
  float: left;
  font-size: 11px;
  font-weight: bold;
  line-height: 18px;
  margin-right: 5px;
  text-align: left;
}

/* Related videos */

#related-videos {
  border: 1px solid #CCCCCC;
  margin-top: 5px;
  padding-top: 4px;
  padding-left: 4px;
  height: 432px;
  overflow: auto;
}

.video-expand {
  font-size: 15px;
  font-weight: bold;
  color: #336699;
}

.related-video-entry {
  background-color: #EEEEEE;
  margin: 0 0 3px;
  padding: 4px 0 0;
}

.img-wrapper-out {
  border: 1px solid #999999;
  width: 92px;
  float: left;
}

.img-wrapper-in {
  border: 1px solid #FFFFFF;
  height: 54px;
  overflow: hidden;
  width: 90px;
}

.img-wrapper-out .img-wrapper-in img {
  border: 1px solid #999999;
  height: 70px;
  width: 90px;
}

.video-time {
  position: relative;
  bottom: 40px;
  margin-right: 1px;
  text-align: right;
  white-space: nowrap;
  background-color: transparent; 
}

.video-time span {
  font-family: Arial,sans-serif;
  background-color: #000000;
  color: #FFFFFF;
  font-size: 11px;
  height: 14px;
  font-weight: bold;
  opacity: 0.75;
  padding: 0 3px;
}

.video-mini {
  float: left;
  padding-left: 10px;
  width: 120px;
}

.video-clear-list-left {
  clear: left;
}

.video-mini-title {
  font-size: 11px;
  font-weight: bold;
}

.video-mini-views {
  color: #666666;
  font-size: 11px;
}

a.video-mini-link {
  font-family: Arial,sans-serif;
  color: #0033CC;
  text-decoration: none;
}

a.video-mini-link:hover {
  text-decoration: underline;
}

.video-mini-rate {
  margin-top: 1px;
}

.video-mini-rate img {
  height: 12px;
}

/* Video frame */

#left-panel {
  margin-left: 5px;
  width: 500px;
  float: left;
}

#video-rating {
  float: left;
  background-color: transparent;
  background-position: 0 0;
  background-repeat: no-repeat;
}

#video-rating a.rate-link {
  text-decoration: none;
}

#video-rating a.rate-link button {
  border: 0 none;
  font-size: 11px;
  margin: 0;
  padding: 0;
  height: 15px;
  width: 17px;
  cursor: pointer;
  background-color: transparent;
}

#ratings-num, #rate-message {
  color: #666666;
  font-size: 13px;
  margin-left: 0.5em; 
}

#rate-thanks {
  color: #00CC00;
  font-weight: bold; 
}

#rate-error {
  color: red;
  font-weight: bold;
}

#video-views {
  float: right;
  font-size: 13px;
}

#views-count {
  font-weight: bold; 
}

/* Comments */

#video-comments {
  margin-top: 40px;
  clear: right;
}

.video-comments-header-text {
  clear: both;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  padding-left: 10px;
  color: #336699;
}

#comments-num {
  color: #666666;
  font-weight: normal;
}

.comment-time {
  color: #666666;
  font-style: italic;
}

.video-comment-entry {
  border-top: 1px solid #EFEFEF;
  clear: both;
  font-size: 13px;
  margin-top: 6px;
  padding: 7px 0 4px 15px;
}

.video-comment-entry .avatar.spacer {
  display: inline;
  float: left;
  padding: 0;
  margin-right: 4px;
}

.video-comment-entry .avatar.spacer img {
  width: 50px;
  height: auto;
}

a.user_link {
  color: #0033CC;
  text-decoration: none;
}

a.user_link:hover {
  text-decoration: underline;
}

.video-comment-body {
  font-size: 14px;
  padding: 1px;
  max-width: 500px;
  overflow: hidden;
}

#all-comments-link {
  clear: both;
  float: right;
}

#all-comments-link a {
  color: #0033CC;
  text-decoration: none;
}

#all-comments-link a:hover {
  text-decoration: underline;
}

#comment-register-note {
  padding-top: 2px;
  padding-left: 10px;
}

.to-bottom {
  padding-top: 25px;
}

#comment-form {
  padding: 2px 0 2px 10px;
}

#remaining-symbols-text {
  color: #666666;
  margin-left: 15px;
}

#remaining-symbols-num {
  color: #666666;
}

/* File tables */

table.files-list {
  border: none;
  width: 100%;
}

table.files-list td {
  border: none;
  padding: 0.5em 0;
  vertical-align: top;
}

table.files-list td .img-wrapper-out {
  width: 122px;
  float: none;
  margin: auto;
}

table.files-list td .img-wrapper-in {
  height: 72px;
  width: 120px;
}

table.files-list td .img-wrapper-in img {
  height: 90px;
  width: 120px;
}

.video-medium {
  margin: auto;
  text-align: left;
  width: 120px;
}

.video-medium-title {
  font-size: 11px;
  font-weight: bold;
}

.video-medium-views {
  color: #666666;
  font-size: 11px;
}

.video-medium-rate {
  margin-top: 1px; 
}

.video-medium-rate img {
  height: 13px;
}

a.video-medium-link {
  font-family: Arial,sans-serif;
  color: #0033CC;
  text-decoration: none;
}

a.video-medium-link:hover {
  text-decoration: underline;
}

/* Tags */

.video_head {
  font-size: 1.5em;
  font-weight: bold;
  text-align: left;
  color: #336699;
  margin-top: 0;
  border-bottom: 1px solid #AAAAAA;
  margin-bottom: 3px;
}

table.video_by_masters {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

table.video_by_masters td.masters_cell {
  text-align: center;
  width: 33%;
  padding: 8px;
  vertical-align: top;
}

table.video_by_masters td div.gallery_wrapper {
  float: right; 
}

table.video_by_masters td div.master_name {
  clear: both;
  font-weight: bold;
  font-size: 1.2em;
}

table.video_by_masters td span.tag-num {
  color: #888888;
  font-size: 0.8em; 
}

img.video_img {
  height: 180px;
  border: 1px solid transparent;
}

img.video_img:hover {
  border: 1px solid #0000CC;
}

table#video_recent {
  margin-top: 5px;
  margin-bottom: 20px;
  border: none; 
}

table#video_recent td {
  padding: 2px 8px;
  vertical-align: top;
}

table#video_recent td.big {
  vertical-align: middle;
}

table#video_recent td.big div.video-entry {
  margin: 0 5px 0 10px;
}

table#video_recent td.big .img-wrapper-out {
  width: 282px;
}

table#video_recent td.big .img-wrapper-in {
  width: 280px;
  height: 180px;
}

table#video_recent td.big .img-wrapper-in img {
  width: 280px;
  height: 210px;
}

table#video_recent td.big .video-time {
  bottom: 54px;
  margin-right: 3px;
}

table#video_recent td.big .video-time span {
  font-size: 15px;
  padding: 0 5px;
}

table#video_recent td.big .video-medium {
  width: 280px;
}

table#video_recent td.big .video-medium-title {
  font-size: 15px;
}

table#video_recent td.big .video-medium-views {
  font-size: 12px;
}

#all-recent-link {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  margin: -7px 4px 7px 0;
}

table#featured_video caption {
  margin-top: 15px; 
}

/* Pager */

#pager {
  margin-top: 1em;
  padding: 0 1em;
  border-top: 1px solid #CCCCCC;
}

#pager .left-arrow {
  float: left;
}

#pager .right-arrow {
  float: right;
}

a.pager-link {
  font-weight: bold;
  color: #0033CC;
  text-decoration: none;
}

a.pager-link:hover {
  text-decoration: underline;
}

.video-clear-both {
  clear: both;
}

/* Random video menu */

#rand-video-text {
  text-align: center; 
}

#rand-video-menu .img-wrapper-out {
  width: 122px;
  float:none;
  margin:auto;
}

#rand-video-menu .img-wrapper-in {
  width: 120px;
  height: 70px;
}

#rand-video-menu .img-wrapper-in img {
  width: 120px;
}

#rand-video-menu .video-entry {
  margin: 10px 0;
}

#rand-video-menu .video-time {
  bottom: 20px;
}

/* Movies */

#all-movies-link {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  margin: 4px 4px 0 0;
  border-top: 1px solid #FFF;
}
