$bottom: -7px;
$shortBottom: -4px;
.xgplayer {
  .xgplayer-spot {
    position: absolute;
    // z-index: 10;
    top: 0;
    left: 0;
    height: 100%;
    // min-width: 6px;
    background: #fff;
    border-radius: 12px;
    &.mini {
      min-width: 6px;
      transform: translate(-50%, 0);
    }
    &.active {
      .xgplayer-spot-pop {
        display: block;
        opacity: 1;
        pointer-events: initial;
      }
    }
  }
  .xgplayer-spot-pop {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: 5px;
    padding-bottom: 5px;
    transform: translateX(-50%);
  }

  @at-root.xgplayer-mobile {
    .xgplayer-spot {
      height: 3px;
      min-width: 3px;
      top: 50%;
      opacity: 1;
      transform: translate(0, -50%);
      &.mini {
        min-width: 3px;
        transform: translate(-50%, -50%);
      }
    }
  }

  .xgplayer-progress.active {
    .xgplayer-spot {
      opacity: 1;
      transition: opacity .3s;
      visibility: visible;
    }
  }
  
  /**  xg-spot-info start**/
  .xg-spot-info {
    position: absolute;
    left: 0;
    bottom: 100%;
    // visibility: hidden;
    // opacity: 0;
    display: none;
    &.short-line {
      .xg-spot-line{
        height: 6px;
      }
      .xg-spot-content {
        bottom: $shortBottom;
      }
    }
    &.no-thumbnail {
      .xg-spot-thumbnail {
        display: none;
      }
      .xgplayer-progress-point {
        display: block;
      }
    }
    &.no-timepoint {
      .xgplayer-progress-point {
        display: none;
      }
    }
    &.hide {
      display: none;
    }
  }

  .xgplayer-progress.active {
    .xg-spot-info {
      // opacity: 1;
      // visibility: visible;
      // transition: opacity .3s;
      display: block;
      &.hide {
        display: none;
      }
    }
  }

  .xg-spot-line {
    position: relative;
    bottom: $bottom;
    margin-left: 50%;
    display: block;
    width: 1px;
    height: 41px;
    background-color: #FFF;
    pointer-events: none;
  }

  /* 时间预览样式 */
  .xgplayer-progress-point {
    display: none;
    position: relative;
    bottom: $shortBottom;
    left: 50%;
    transform: translateX(-50%);
    background:rgba(0, 0, 0, 0.54);
    font-size: 11px;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    opacity: 0.85;
    white-space: nowrap;
  }

  .xg-spot-content {
    position: relative;
    // width: 160px;
    bottom: $bottom;
    color: #fff;
    border-radius: 2px 2px 0px 0px;
  }

  .xg-spot-ext-text {
    position: relative;
    bottom: $bottom;
  }
  
  .xg-spot-thumbnail {
    position: relative;
    // width: 160px;
    background-color: rgba(17, 16, 16, 1);
    pointer-events: none;
    border-radius: 2px 2px 0 0;
  }

  .xg-spot-time {
    position: absolute;
    left: 50%;
    bottom: 2px;
    font-size: 12px;
    line-height: 16.8px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .progress-thumbnail {
    margin: 0 auto;
    display: block;
  }

  .xg-spot-text {
    display: none;
    // width: 160px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0px 0px 2px 2px;
    pointer-events: none;
    box-sizing: border-box;
  }

  .spot-inner-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 20px;
    font-size: 12px;
    max-height: 40px;
  }

  .xg-spot-content.show-text {
    .xg-spot-text {
      display: block;
    }
  }
  
  .product {
    .xg-spot-text {
      background: #3370FF;
    }
    .xg-spot-line {
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 7px solid #3370FF;
      width: 0;
      height: 15px;
      left: -10px;
      background: none;
    }
  }

  /**  xg-spot-info end**/

  .xgvideo-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: visibility .3s, opacity .3s;
    background-color: #000;
    .xgvideo-thumbnail {
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 0;
    }
    &.show {
      opacity: 1;
      visibility: visible;
    }
  }
}