// 赛程图 - s
@mixin sche-tab-highlight($n, $background-color) {
  $max: 1;

  @while $n < $max {
    .press-schedule-tree-tab {
      &--scroll-#{$n} {
        .press-schedule-tree-tab-icon {
          background-color: $background-color;
        }

        &::after {
          background: linear-gradient(to right ,#6930e6 0%, #3a84dc 100%);
        }
      }

      &--scroll-#{$n + 1} {
        .press-schedule-tree-tab-icon {
          top: -15px;
          width: 8px;
          height: 8px;
          background-color: $background-color;
          background-image: none;
        }

        .press-schedule-tree-tab-desc {
          position: relative;
        }
      }
    }

    $n: $n + 1;
  }
}

::v-deep .gp {
  height: calc(100% - 1.6rem);

  .press-schedule-tree:not(.press-schedule-tree--swiss) {
    @include sche-tab-highlight(-3, $background-color: #6930e6 );
  }

  .press-schedule-tree-tab-icon {
    background: #d3ceee;
    border-radius: 50%;
    top: -15px;
    width: 8px;
    height: 8px;
  }

  .press-schedule-team-avatar {
    border-radius: 0;
    object-fit: contain;
  }

  .press-schedule-team-avatar-wrap {
    .press-schedule-team-avatar {
      width: 100%;
      height: 100%;
      z-index: 1;
      border-radius: 0;
      object-fit: contain;
    }
  }

  .press-schedule-tree-tabs {
    padding-top: 30px;
  }

  .press-schedule-tree-tab-mask {
    top: 6px;
  }

  .press-schedule-team-tips {
    // color: #212124;
  }

  .press-schedule-team-tip--light {
    color: #5300c3;
  }

  .icon-live:before {
    color: #5300c3;
    content: '';
    display: block;
    width: .24rem;
    height: .24rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-match-live.png) no-repeat;
    background-size: 100% 100%;
  }

  // 冠军标签
  .press-schedule-team-tag--first {
    background: #5300c3;
  }
  
  // tab 
  .press-schedule__switch {
    display: none;
  }

  .press__schedule-tabs {
    width: 100%;
    height: .84rem;
    background: #fbfbfb url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/tab-schedule-bg.png) no-repeat;
    background-size: 100% auto;
  }

  .press-schedule-tree-tab-desc-icon {
    position: relative;
    top: -50%;
    font-size: .18rem;
    color: #9299c6;
    transform: rotate(180deg) translateY(-50%);
    margin-left: .08rem;
  }
  
}

// 赛程图 - d


.press_schedule-manage-content {
  height: 100%;

  .press_shedule-manage-top {
    height: .76rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/shedule-manage-title-bg.png) no-repeat;
    background-size: 100% auto;
    padding: 0 .32rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .press_shedule-manage-title {
    color: #000;
    font-size: .28rem;
    max-width: 4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .press_shedule-opration-box {
    display: flex;
    align-items: center;
  }

  .press_more-menu {
    position: absolute;
    min-width: 2.08rem;
    min-height: 1rem;
    background: rgba(0, 0, 0, .8);
    z-index: 99;
    top: .5rem;
    right: -.2rem;

    .press_more-menu-btn {
      color: #fff;
      font-size: .28rem;
      font-weight: 400;
      width: 2.08rem;
      height: .68rem;
      box-sizing: border-box;
      padding: .06rem .24rem;
      display: flex;
      justify-content: flex-start;
      align-items: center;

      .iconfont {
        margin-right: .16rem;
      }
    }

    &::after {
      content: '';
      display: block;
      position: absolute;
      width: 0;
      height: 0;
      top: -.12rem;
      right: .28rem;
      border-style: solid;
      border-width: 0 .11rem .12rem .11rem;
      border-color: transparent transparent rgba(0, 0, 0, .8) transparent;
    }

    .press_icon-text {
      margin: 0;
      font-size: .24rem;
    }
  }

  .press_icon-ml34 {
    margin-left: .34rem;
  }

  .press_icon-mr16 {
    margin-right: .16rem;
  }

  .press_more-dot-icon,
  .press_schedule-list-icon,
  .press_schedule-icon,
  .press_search-icon,
  .press_round-icon,
  .press_share-icon,
  .press_setting-icon {
    width: .36rem;
    height: .36rem;
    flex-shrink: 0;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-share.png) no-repeat;
    background-size: 100% 100%;
  }

  .press_setting-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-setting-2.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_round-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-round.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_search-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-search.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_schedule-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-schedule.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_schedule-list-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-schedule-list.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_more-dot-icon {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-more-dot.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
  }

  .press_menu-btn-disable {
    opacity: .5;
  }
}

.press_float-schedule-box {
  position: fixed;
  right: .2rem;
  top: 75%;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  border-radius: 100px;
  border: 1px solid #dfe2ea;
  background: #fff;
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, .02), 0px 4px 5px 0px rgba(0, 0, 0, .02), 0px 2px 4px -1px rgba(0, 0, 0, .02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;

  .press_schedule-gray-icon {
    width: .32rem;
    height: .32rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-schedule-gray.png) no-repeat;
    background-size: 100% 100%;
  }

  .press_float-text {
    color: #212124;
    font-size: .2rem;
    opacity: .5;
    margin-top: .04rem;
  }
}
