.comp-head-box {
  width: 100%;
  padding-top: 90px;
  padding-bottom: 20px;
  background-image: url(../images/player_comp/index_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -24rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.comp-head-box .comp-head-title {
  font-size: 52px;
  margin-bottom: 25px;
}

.comp-head-box .comp-head-text {
  max-width: 495px;
  font-size: var(--font-size-normal);
  line-height: 2.2;
  margin-bottom: 50px;
  font-weight: bold;
}

.comp-head-box .comp-count {
  background: rgb(248 248 248 / 30%);
  border-radius: 10px;
  height: 130rem;
  margin-bottom: 25px;
}

/* 选择球员 */
.comp-select {
  position: relative;
  min-height: 530px;
  height: auto;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 3px 9px 1px rgba(44, 44, 44, 0.08);
}

.comp-select .player-photo {
  width: 160px;
  height: 160px;
}

.comp-select .player-name {
  width: 160px;
  text-align: center;
}

.comp-select .comp-select-bg {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.comp-select .comp-select-bg img.blur-bg-img {
  opacity: 0.2;
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  filter: blur(5px);
}

.comp-select .comp-select-bg .left {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 56%;
  height: 100%;
  background: #fce5e7;
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 100%);
  border-radius: 10px 0 0 10px;
}

.comp-select .comp-select-bg .right {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  width: 56%;
  height: 100%;
  background: #e2eeff;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 0 10px 10px 0;
}

.comp-select .comp-select-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.vs-font {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.vs-font {
  background: linear-gradient(90deg, #ff2626 0%, #2587ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.comp-select .start-btn {
  width: 72%;
  max-width: 750px;
  padding-top: 15rem;
  padding-bottom: 15rem;
  margin-bottom: 15rem;
}

.comp-select .type-select .layui-input {
  height: 28px;
  border-radius: 10px;
}

/* trending */
.comp-trending-box {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 50px;
  background-image: url(../images/player_comp/trending_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.comp-item {
  background: white;
  border-radius: 10rem;
  width: 100%;
  overflow: hidden;
  box-shadow: 0px 0px 9px 1px rgba(44, 44, 44, 0.08);
}

.comp-item .comp-bar {
  width: 100%;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  display: flex;
}

.comp-item .comp-bar-left {
  height: 100%;
  margin-right: -5px;
  /* background: linear-gradient(-75deg, transparent 110px, #fce5e7 0); */
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.comp-item .comp-bar-left::before {
  display: block;
  content: '';
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ed3c3c, #ff8b8b);
}

.comp-item .comp-bar-right {
  height: 100%;
  margin-left: -5px;
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.comp-item .comp-bar-right::before {
  display: block;
  content: '';
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #a3c9ff, #126bff);
}

/* recent */
.comp-recent-box {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 50px;
  background-image: url(../images/player_comp/recent_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.comp-recent-item {
  background: white;
  border-radius: 10rem;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-top: 10px;
}

.comp-recent-item .comp-recent-badge {
  background: linear-gradient(90deg, #30d580, #0fab5b);
  border-radius: 10px 0 10px 0;
  white-space: nowrap;
  padding: 0 10px;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (max-width: 767px) {
  .comp-head-box {
    padding-top: 30px;
  }

  .comp-head-box .comp-head-title {
    font-size: 32px;
  }

  .comp-head-box .comp-head-text {
    margin-bottom: 30px;
  }

  .comp-head-box .comp-count {
    height: 100rem;
  }

  .comp-select .player-photo {
    height: 50px;
    width: 50px;
  }

  .comp-select .player-name {
    width: 120px;
  }

  .comp-select .player-left {
    justify-content: flex-start;
    padding-left: 15px;
  }

  .comp-select .player-right {
    order: 1;
    justify-content: flex-end;
    padding-right: 15px;
  }

  .comp-select .player-info-box {
    width: 100%;
    order: 2;
  }

  .comp-select .player-info {
    width: auto;
    flex: 1;
  }

  .comp-select .player-info * {
    font-size: 12px;
  }

  .comp-trending-box .container,
  .comp-recent-box .container {
    width: 100%;
  }

  .comp-trending-box .comp-trending-list {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1150px) {
  .comp-select .player-photo {
    height: 60px;
    width: 60px;
  }

  .comp-select .player-name {
    width: 100px;
  }

  .comp-select .player-info-box {
    margin-top: 0;
  }
}

/* 搜索 */
#select_player .modal-content {
  max-width: 900px;
}

#select_player .search-box {
  width: 932rem;
  max-width: 100%;

  position: relative;
}

#select_player .search-list-box {
  height: 60vh;
  overflow-y: auto;
}

#select_player .search-box .search-input {
  width: 100%;
  height: 100%;
  border-color: var(--color-primary);
  padding-right: 100rem;
}

#select_player .search-box .search-input-clear {
  height: 36rem;
  width: auto;
  position: absolute;
  right: 50rem;
  top: 50%;
  padding: 10rem 10rem;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.5;
}

#select_player .search-box .search-input-handle {
  height: 36rem;
  width: auto;
  position: absolute;
  padding: 10rem 20rem;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
