html {
  -webkit-font-smoothing: antialiased;
}

body{
  font-family: 'Microsoft JhengHei', "微軟正黑體", Arial, Tahoma, 'Century gothic', sans-serif;
  color: #222222;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #333;
}

.dark-bg,
.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg h4,
.dark-bg h5,
.dark-bg h6 {
  color: #FFF;
}

h2.title {
  font-size: 36px;
  margin: 0 0 18px;
}

#content h2 {
  text-align: center;
  margin-bottom: 21px;
}

a:link,
a:visited,
a:active {
  color: #e03f00;
  text-decoration: none;
}

.hover a,
a:hover,
a:focus {
  color: #A33003;
  text-decoration: none;
}

#content .col-left {
  padding-left: 0;
  padding-right: 0;
}

#content .col-right {
  padding-left: 15px;
  padding-right: 0;
}

#sb-site {
  position: relative;
  /*padding-top: 53px;*/
  overflow: hidden;
  background-color: #FFF;
  /*max-width: 1280px;*/
  /*margin: 0 auto;*/
}


html.sb-scroll-lock.sb-active #sb-site {
-webkit-filter: blur(3px);
-moz-filter: blur(3px);
-ms-filter: blur(3px);
-o-filter: blur(3px);
filter: blur(3px);
}

.navbar-toggle {
  display: block;
  float: left;
  margin-left: 10px;
  position:absolute;
}

.container {
  max-width: 1310px;
}

.logo {
  max-width: 145px;
}

#row-0 > a {
  padding:10px 0;
  display:inline-block;
}

.sb-slidebar ul {
  margin: 20px 0 0 0;
  padding: 0;
}

.sb-slidebar ul>li {
  display: block;
}

.sb-slidebar ul>li>a {
  display: block;
  padding: 15px 30px;
  /*border-bottom: 1px solid #444;*/
  font-weight: bold;
  color: #FFF;
  font-size: 24px;
}

.sb-slidebar ul>li>a:hover {
  text-decoration: none;
  color: #0097ee;
}

.vPlayer-wrapper {
  background-color: #000;
  padding: 0;
}

#vPlayer {
  overflow: hidden;
  max-width: 1130px;
  margin: 0 auto;
}

.yt-view-count {
  font-size: 24px;
}

#featured {
  margin: 0;
  padding-top: 50px;
}

#row-0 {
  z-index: 99999;
  margin: 0;
  overflow: hidden;
  -webkit-transform: translate3d(0,0,0);
}

#row-1 {
  z-index: 99;
  padding-top: 60px;
  position: relative;
  width: 100%;
  -webkit-transform: translate3d(0,0,0);
  max-width: none;
  background-color: #000;
  color: #FFF;
}

#row-2 {
  background-color: #222;
  z-index: 99999;
  position: relative;
  width: 100%;
  max-width: none;
  box-shadow: 0 0 15px #000;
  -webkit-transform: translate3d(0,0,0);
}

#content {
  z-index: 99;
  position: relative;
  width: 100%;
  padding: 10px 2.7%;
  margin: 0 auto;
  max-width: 1170px;
  min-height: 400px;
  /*min-height: 1200px;*/
  -webkit-transform: translate3d(0,0,0);
}

#comments {
  min-height: 300px;
  max-width: 1000px;
}

body.video-category #content {
  padding-top: 60px;
}

.cat-row {
  margin: 0 0 30px;
}

#meta-info{
  padding: 20px 10px;
  margin: 0 auto;
  max-width: 1310px;
  position: relative;
  color: #FFF;
}

#meta-info h1 {
  font-size: 36px;
  margin: 0;
}

ul.navbar-right {
  float: right;
  margin-right: 15px;
}

ul.navbar-right li {
  float: left;
}

ul.navbar-right li.user-add {
  margin-right: 15px;
}

ul.navbar-right li.user-login a {
  font-size: 18px;
  font-weight: bold;
  color: #FFF;
  background: #444;
  border: none;
  padding: 10px 15px;
  margin-top: 5px;
}

.navbar-default .navbar-nav>li>a.user-bubble {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background-color: #ee8c00;
  color: #FFF;
  padding: 0;
  line-height: 26px;
}

.navbar-default .navbar-nav>li.user-info>a {
  display: inline-block;
}

#row-2 .nav-tabs {
  max-width: 1310px;
  margin: 0 auto;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
  background-color: #000;
}

.tab-content {
  padding: 30px 0 0;
}

#details.tab-pane {
  padding-bottom: 15px;
  font-size: 1;
}

#row-1.fixed {
  position: fixed;
  top: 0px;
  width: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
}

#row-2.fixed {
  position: fixed;
  width: 100%;
}

#content.fixed {
  position: fixed;
  width: 100%;
}

/*#row-2.fixed .column {
  position: fixed;
  top: 0px;
  left: 0;
  height: 1000px;
  width: 100%;
}*/
/*
.higher {
  color: #FFF;
  width: 100%;
  height: 500px;
  background-color: red;
  z-index: 9999;
  position: relative;
}

.lower {
  color: #FFF;
  width: 100%;
  height: 500px;
  background-color: blue;
  z-index: 9;
  position: relative;
}*/

.lower.fixed .content {
  position: fixed;
  top: 0;
}

.higher.fixed .content {
  position: fixed;
  top: 0;
}

.play-button {
  height: 40px;
  width: 65px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 2%;
  margin: auto;
  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  -ms-transition: all 0.1s ease;
  transition: all 0.1s ease;
}

.vid-box {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body.video-home #video-loadmore {
  margin-top: 20px;
}

#video-loadmore .vid-box,
body.video-category .vid-box,
body.video-post .vid-box {
  width: 25%;
}

.vid-box .vid-img {
  height: 100%;
}

body.video-post .vid-box .vid-img {
  min-height: 180px;
}

.vid-stack.hover .play-button,
.vid-box.hover .play-button,
.play-button:hover {
    background-color: rgba(229, 45, 39, 0.8);
}

.play-button:after {
    content: "";
    display: block;
    position: absolute;
    top: 10.5px;
    left: 24px;
    margin: 0 auto;
    border-style: solid;
    border-width: 9.5px 0 9.5px 17px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 1);
}

/*body.video-home .play-button {
  opacity: 0;
  background-color: rgba(229, 45, 39, 0.8);
}*/
body.video-home .vid-box.hover .play-button,
body.video-home .play-button:hover {
  background-color: rgba(229, 45, 39, 0.8);
  opacity: 1;
}

body.video-home .vid-box {
  padding: 0;
  overflow: hidden;
}

#categories {
  padding-top: 30px;
  padding-bottom: 0;
  background-color: #343434;
  color: #FFF;
}

body.video-home #categories .vid-box {
  border-radius: 4px;
}

body.video-home #categories .vid-box .vid-img {
  border-radius: 4px;
}

body.video-home #categories .vid-box.small {
  margin-bottom: 15px;
}

#video-loadmore .vid-box,
body.video-category .vid-box,
body.video-post .vid-box {
  position: relative;
  width: 25%;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  padding-left: 0;
  padding-right: 15px;
  cursor: pointer;
  opacity: 0.9;
}

.vid-box.hover {
  opacity: 1;
}

#categories .large .vid-img {
  margin-right: 15px;
}

footer .container {
  padding:20px;
  text-align: center;
  font-size: 13px;
}

.footer-text {
  display:inline-block;
  margin-right:10px;
}

body.video-home .vid-img img {
  height: auto;
  width: 100%;
}

body.video-home .large .vid-img img {
  max-width: none;
  object-fit: inherit;
}

/*body.video-home #categories .vid-img img,*/
body.video-home #content .vid-img img,
body.video-category .vid-img img,
body.video-post .vid-img img {
  max-width: 100%;
  object-fit: none; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 160px;
}

.large .vid-img.liquid_fill {
  background-size: auto 150% !important;
}

.small .vid-img.liquid_fill {
  background-size: auto 150% !important;
}

.vid-meta {
  float: left;
}

.vid-box .vid-meta h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  font-size: 18px;
  width: 100%;
  padding: 45px 15px 20px 33px;
  background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.8))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.8) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.8) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.8) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.8) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#cc000000',GradientType=0 ); /* IE6-9 */
}

body.video-post .vid-meta h3,
body.video-category .vid-meta h3 {
  /*margin-left: -15px;*/
}

#categories .vid-meta h3 {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

.large .vid-meta h3 {
  margin-left: -15px;
}

#featured .vid-box .vid-meta h3 {
  font-size: 24px;
}

.vid-box .vid-meta h3 a {
  color: #FFF;
  text-shadow: 0 0 12px #000;
}

#featured .vid-box .vid-meta h3 a {
  color: #FFF;

}

.vid-meta h3 a:hover {
  text-decoration: none;
}

.vid-meta .time {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 10px;
}

.vid-stack {
  position: relative;
  margin-bottom: 30px;
  cursor: pointer;
}

.vid-stack .vid-img {
  float: left;
  width: 40%;
  position: relative;
}

.vid-stack .vid-meta {
  width: 60%;
  padding-left: 15px;
}

.vid-img a {
  display: inline-block;
}

.vid-stack .vid-meta h3 {
  font-size: 21px;
  margin: 0;
}

.vid-stack.grid .vid-meta h3 {
  margin-top: 10px;
}

.tab-pane .vid-box .vid-meta h3 {
  margin-left: -15px;
}

.vid-stack.grid .vid-img {
  float: none;
  width: 100%;
}

.vid-stack.grid .vid-meta {
  width: 100%;
  padding-left: 0;
}

#nocat .col-md-8 {
  padding: 0;
}

#fbcomments, .fb-comments, .fb-comments iframe[style], .fb-comments span {
  width: 100% !important;
}

.fb_iframe_widget {
  /*background-color: #000 !important;*/
}

.infinite-scroll {
  /*border: 1px solid #aaa;*/
  /*padding: 5px 10px;*/
  /*height: 200px;*/
  overflow-y: scroll;
  /*margin: 20px 0;*/
}

.jscroll-done .jscroll-loading {
  display: none;
}

/* Large devices (large desktops, 1200px and up) */
@media (max-width: 1200px) {
  #video-loadmore .vid-box,
  body.video-post .vid-box,
  body.video-category .vid-box {
    width: 33.33%;
  }
}

/* Medium devices (desktops, 992px and up) */
@media (max-width: 992px) {
  #video-loadmore .vid-box,
  body.video-post .vid-box,
  body.video-category .vid-box {
    width: 50%;
  }
  body.video-home #content .vid-img img,
  body.video-category .vid-img img,
  body.video-post .vid-img img {
    object-fit: initial;
    max-height: none;
  }
  #categories .title {
    text-align: center;
  }
  #meta-info h1 {
    font-size: 27px;
  }
  .yt-view-count {
    font-size: 21px;
  }
}

/* Small devices (tablets, 768px and up) */
@media (max-width: 768px) {
  #video-loadmore .vid-box,
  body.video-post .vid-box,
  body.video-category .vid-box {
    width: 100%;
    padding-right: 0;
    height: 210px;
  }
  body.video-post #content,
  body.video-category #content {
    /*margin: 0;*/
    /*padding: 0;*/
  }
  body.video-category .vid-meta .time,
  body.video-category .vid-meta h3 {
    position: static;
  }
  .large .vid-meta h3,
  .tab-pane .vid-box .vid-meta h3 {
    margin-left: 0;
  }
  #row-1 {
    max-width: 100%;
  }
  .small .vid-img.liquid_fill,
  .large .vid-img.liquid_fill {
    /*background-size: cover !important;*/
  }
  #categories .large {
    margin-bottom: 15px;
  }
  #categories .large .vid-img {
    margin-right: 0;
  }
  #meta-info {
    padding: 20px 0;
  }
  #meta-info h1 {
    font-size: 21px;
  }
  .yt-view-count {
    font-size: 18px;
    margin-top: 10px;
  }
  .nav-tabs>li>a {
    font-size: 15px;
  }
}

/* Extra small devices (phones, 480px and up) */
@media (max-width: 480px) {


}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 320px) {
  .nav>li>a {
    padding: 10px 12px;
  }
}






