.fo-video-player {
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  color: white !important;

  .fo-video-top {
    .fo-video__info__fullscreen__title {
      position: absolute;
      top: 10px;
      left: 10px;
      font-size: 25px;
    }

    .fo-video-watch-later {
      position: absolute;
      right: 10px;
      top: 10px;
      display: none;
    }
  }

  .video__error {
    width: 100%;
    height: 100%;
  }

  @media only screen and (max-width: 600px) {
    .fa-clone,
    .fa-step-backward,
    .fa-step-forward {
      display: none;
    }
  }

  &.no-cursor {
    cursor: none;
  }

  .fo-video-player-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all ease 500ms;
  }

  .fo-video-player-load-play {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 5;
    position: absolute;
    margin: auto;
    height: 100px;
    width: 100px;
  }

  .fo-video-loader {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 5;
    position: absolute;
    margin: auto;
    height: 80px;
    width: 80px;

    svg#catchup-spinner {
      transform-origin: center;
      animation: rotate 2s linear infinite;
      max-width: 80px;
      display: block;
    }
    svg#catchup-spinner circle {
      fill: none;
      stroke: rgb(255, 255, 255);
      stroke-width: 3;
      stroke-dasharray: 1, 200;
      stroke-dashoffset: 0;
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
    }
    @keyframes rotate {
      100% {
        transform: rotate(360deg);
      }
    }
    @keyframes dash {
      0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
      }
      50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
      }
      100% {
        stroke-dashoffset: -125px;
      }
    }
  }

  .fo-video-player__media {
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    background: #000;
    overflow: hidden;
  }

  .fo-video-player__seekbar-wrap {
    cursor: pointer;
    position: relative;
    top: -15px;

    &.show {
      padding: 0;
    }

    &:hover {
      top: -16px;
      transition: top 0.2s ease-in-out;
//        transition: opacity 0.1s linear;

      .fo-video-player__seekbar-current,
      .fo-video-player__seekbar-back,
      .fo-video-player__buffer-back {
        height: 5px;
        transition: height 0.2s ease-in-out;
      }
    }
  }

  .fo-video-player__seekbar-current,
  .fo-video-player__seekbar-back,
  .fo-video-player__buffer-back {
    height: 3px;
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
  }

  .fo-video-player__buffer-back {
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    background-color: rgba(221, 221, 221, 0.8);
  }
  
  .fo-video-player__seekbar-current {
    z-index: 2;
    background-color: $color-theme;
    transform: scaleX(0);
    transform-origin: left;
  }

  .fo-video-player__seekbar-back {
    background-color: rgba(221, 221, 221, 0.4);
  }

  .fo-video-player__control-panel {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0 20px;
    position: absolute;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 100%
    );

    &.show {
      padding: 3px 0;
      background: transparent;
      transition: bottom 0.5s ease-in-out;
    }

    .fo-video-player__watch__on {
      display: inline-block;
      position: absolute;
      bottom: 60px;
      right: 15px;
      text-align: right;
      padding: 5px;

      a {
        text-decoration: none;
        color: white;
      }
    }
  }

  .fo-video-player__control-wrap {
    padding: 0 10px;
    display: flex;
    justify-content: space-between;

    .rotate-45 {
      -webkit-transform: rotate(-90deg);
      -moz-transform: rotate(-90deg);
      -ms-transform: rotate(-90deg);
      -o-transform: rotate(-90deg);
      transform: rotate(-90deg);
    }

    i {
      margin: 0 10px;
    }
  }

  .fo-time-display {
    font-size: 109%;
    display: inline-block;
    vertical-align: top;
    padding: 0 5px;
    white-space: nowrap;
    line-height: 35px;
  }

  .fo-video-player-menu {
    position: absolute;
    bottom: 60px;
    z-index: -5;
    transition: 0.2s;

    &.settings {
      right: 10px;
    }

    &.volume {
      right: 150px;
    }

    &.no__animation {
      transition: none !important;
    }

    &.vactive {
      z-index: 5;
    }

    // &.context {
    //   position: fixed !important;
    //   bottom: 0;
    // }

    .volumeslider {
      writing-mode: bt-lr; /* IE */
      -webkit-appearance: slider-vertical; /* WebKit */
      width: 5px;
      height: 100px;
      cursor: pointer;
      background: rgba(104, 103, 103, 0.5);
    }

    .switch {
      display: inline-block;
      cursor: pointer;
      font-size: 20px;
      height: 1em;
      width: 2em;
      background: rgb(224, 222, 222);
      border-radius: 1em;

      input {
        position: absolute;
        opacity: 0;
      }

      div {
        height: 1em;
        width: 1em;
        border-radius: 1em;
        background: #fff;
        box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.5);
        -webkit-transition: all 300ms;
        -moz-transition: all 300ms;
        transition: all 300ms;
      }

      input:checked + div {
        -webkit-transform: translate3d(100%, 0, 0);
        -moz-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
        background-color: $color-theme;
      }
    }

    nav {
      opacity: 0;
      z-index: -1;
      visibility: hidden;
      background: rgba(0, 0, 0, 0.9);
//       transform: translateY(0) scale(1);
      transition: 0.2s;
      transition: opacity 0.1s linear;
      
      & a {
        text-decoration: none;
        color: #fff;
        display: block;
        font-size: 13px;
        padding: 10px;
        font-weight: 500;
        text-align: left;

        .fo-video-player__right {
          float: right;
        }

        &:hover {
          background: rgba(255, 255, 255, 0.1);
        }
      }
      ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 220px;
      }

      &.no__animation {
        transition: none !important;
      }
    }

    .menu-active {
      opacity: 1;
      z-index: 6;
      visibility: visible;
//       transform: translateY(0) scale(1);
//       transition: opacity 0.1s linear;

      .time__preview {
        margin: 0;
        padding: 0;
        width: 190px;
        height: 110px;
        border: 2px solid rgba(0, 0, 0, 0.8);
        text-align: center;

        .time_preview_div {
          display: inline-block;
          margin: auto;
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;

          span {
            border-radius: 1px;
            font-weight: 400;
            font-size: 12px;
            font-weight: bold;
            display: inline-block;
            padding: 2px 5px;
            background-color: rgba(0, 0, 0, 0.8);
          }
        }
      }
    }
  }
}
