main {
  padding-top: 100px !important;
}


#selectStreamerModal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.376);
  backdrop-filter: blur(8px);

  .content {
    background-color: var(--main-color);
    width: 95%;
    max-width: 400px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    h2 {
      font-size: 23px;
    }

    #selectStreamer {
      width: 80%;
      background-color: var(--sub-color);
      border-radius: 5px;
      outline: none;
      border: none;
      padding: 15px 10px;
      color: white;
      cursor: pointer;
    }
  }
}


#search-area {
  padding-top: 10vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  h1 {
    font-family: var(--sub-font);
    font-size: 96px;
    display: flex;
    span {
      width: 120px;
      display: flex;
      position: relative;

      img {
        width: 190px;
        height: 190px;
        position: absolute;
        bottom: -50%;
        left: 50%;
        transform: translatex(-45%);
      }
    }
  }
}


#search-area .search-box {
  margin-top: 30px;
  width: 100%;
  max-width: 800px;
  padding: 10px 0px;
  border-radius: 1000px;
  background-color: var(--sub-color);
  height: 60px;
  display: flex;

  .type {
    position: relative;
    width: 20%;
    min-width: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0px 10px;
    padding-left: 20px;
    border-right: 1px solid var(--main-color);

    p {
      position: absolute;
      top: 0px;
      left: 25px;
      font-size: 13px;
      font-family: var(--sub-font);
    }

    #typeOfStreamer {
      background-color: var(--sub-color);
      outline: none;
      width: 100%;
      border: none;
      color: var(--sub2-color);
      padding-top: 10px;
      font-size: 15px;
    }
  }
  .search {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0px 10px;
    padding-left: 20px;
    border-right: 1px solid var(--main-color);

    .pTag {
      position: absolute;
      top: 0px;
      left: 20px;
      font-size: 13px;
      font-family: var(--sub-font);
    }

    #searchPlayer {
      background-color: var(--sub-color);
      outline: none;
      border: none;
      font-size: 15px;
      color: white;
      padding-top: 10px;
      width: 100%;
      padding-right: 40px;
    }

    #searchPlayer::placeholder {
      color: var(--sub2-color);
    }

    .ggText {
      right: 0;
      top: 50%;
      padding: 0;
      margin: 0;
      color: var(--sub3-color);
      font-family: var(--sub-font);
      font-weight: bold;
      font-size: 24px;
    }
  }
}


#top5 {
  position: relative;
  margin-top: 100px;
  padding-bottom: 80px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .item {
    transition: 0.3s ease;
    position: relative;
    width: 200px;
    height: 240px;
    background-color: var(--sub-color);
    border-radius: 8px;
    animation: drop 0.5s ease forwards;
    --drop-y: 0px;
    animation-delay: 0s;
    animation-play-state: paused;
    opacity: 0;
    cursor: pointer;

    &.is-placeholder {
      visibility: hidden;
      pointer-events: none;
      cursor: default;
    }

    &:hover {
      background-color: #3a3a47;
    }

    .rank {
      position: absolute;
      left: 10px;
      bottom: 0;
      transform: translateY(70%);
      font-size: 64px;
      color: var(--sub-color);
      font-weight: bold;
      z-index: -1;
    }

    .header {
      margin-top: 20px;
      display: flex;
      align-items: center;
      padding-left: 15px;

      .rainbow-border {
        position: relative;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        z-index: 0;
      }

      .rainbow-border::before {
        content: "";
        position: absolute;
        top: -3px;
        left: -3px;
        width: calc(100% + 6px);
        height: calc(100% + 6px);
        background: conic-gradient(
          #e0bbff,
          #c084fc,
          #a855f7,
          #9333ea,
          #7e22ce,
          #a855f7,
          #c084fc,
          #e0bbff
        );
        border-radius: 50%;
        z-index: -1;
        animation: spin 2s linear infinite;
      }

      .rainbow-border img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: block;
        border: 3px solid white;
      }

      .holder {
        display: flex;
        flex-direction: column;
        margin-left: 10px;

        h3 {
          font-size: 20px;
          font-weight: 500;
        }

        p {
          display: flex;
          align-items: center;
          font-size: 14px;
          .rolesImage {
            width: 20px;
            height: 20px;
          }
        }
      }
    }

    .infoMain {
      margin-top: 15px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      .winRate {
        .title {
          font-weight: 300;
          font-size: 15px;
        }

        .percent {
          font-size: 20px;
          font-weight: 500;
        }
      }

      .winRank {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        .tier {
          width: 50px;
          max-height: 40px;
        }
        p {
          font-size: 15px;
          font-weight: 500;
        }
      }
    }

    .adWinRate {
      margin-top: 30px;
      padding-left: 15px;
      padding-right: 15px;
      display: flex;
      width: 100%;
      justify-content: space-between;

      .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        img {
          width: 30px;
          height: 30px;
          border-radius: 50%;
        }

        p {
          font-size: 11px;
          color: var(--sub2-color);
        }
      }
    }
  }

  .item[data-rank="2"],
  .item[data-rank="3"] {
    --drop-y: 50px;
    animation-delay: 0.1s;
  }
  .item[data-rank="4"],
  .item[data-rank="5"] {
    --drop-y: 100px;
    animation-delay: 0.2s;
  }
}

#top5 .top5PositionFilter {
  flex: 0 0 100%;
  height: 50px;
  margin-top: 150px;
  display: flex;
  align-items: center;
  background-color: var(--sub-color);
}

#top5.no-cards {
  justify-content: center;
  padding-bottom: 60px;
}

#top5.no-cards .top5PositionFilter {
  margin-top: 0;
}

#top5 .top5PositionFilter button {
  flex: 1;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-color: var(--sub-color);
  color: var(--sub2-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

#top5 .top5PositionFilter button:hover {
  background-color: #3e3e48;
  color: white;
}

#top5 .top5PositionFilter button.select {
  background-color: var(--sub3-color);
  color: white;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


@keyframes drop {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  to {
    transform: translateY(var(--drop-y));
    opacity: 1;
  }
}


#recentDaejeon {
  padding-top: 120px;
  padding-bottom: 100px;

  .header {
    width: 100%;
    background-color: var(--sub-color);
    border-radius: 8px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;

    h3 {
      font-size: 18px;
      color: white;
      font-weight: 500;
    }

    p {
      font-size: 13px;
      color: var(--sub2-color);
    }
  }

  .items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .item {
      width: 100%;
      background-color: var(--sub-color);
      border-radius: 8px;
      height: 130px;
      padding: 0px 20px;
      padding-right: 0px;
      border-left: 5px solid var(--sub2-color);
      display: flex;
      justify-content: space-between;
      margin-top: 10px;

      .left {
        height: 100%;
        position: relative;
        width: 50%;

        .type {
          font-size: 22px;
          color: rgb(233, 233, 233);
          margin-top: 14px;
        }
        .ago {
          font-size: 13px;
          color: var(--sub2-color);
        }
        .date {
          font-size: 13px;
          position: absolute;
          bottom: 10px;
          left: 0;
          border-top: 1px solid var(--sub2-color);
          color: var(--sub2-color);
          padding-top: 10px;
        }
      }

      .right {
        width: 50%;
        height: 100%;
        position: relative;

        .redTeam {
          font-size: 40px;
          color: var(--red-color);
        }
        .blueTeam {
          font-size: 40px;
          color: var(--blue-color);
        }

        h1 {
          font-family: var(--sub-font);
          font-weight: 500;
          position: absolute;
          bottom: 10px;
          right: 50px;
          span {
            color: white;
            font-size: 20px;
            font-family: inter;
          }
        }

        .toggle {
          position: absolute;
          top: 0;
          right: 0;
          height: 100%;
          width: 40px;
          background-color: #424254;
          color: white;
          border-bottom-right-radius: 8px;
          border-top-right-radius: 8px;
          display: flex;
          justify-content: center;
          align-items: center;
          border: none;
          outline: none;
          cursor: pointer;
          transition: 0.3s ease;

          &:hover {
            background-color: #4a4a5e;
          }

          svg {
            width: 30px;
            height: 30px;
            color: white;
            transition: transform 0.3s ease;
          }
        }
        .toggle.rotate svg {
          transform: rotate(180deg);
        }
      }
    }

    
    .detileItem {
      width: 100%;
      height: 300px;
      background-color: var(--sub-color);
      margin-top: 10px;
      border-radius: 8px;
      overflow: hidden;
      display: none;
      transition: all 0.3s ease;
      margin-bottom: 20px;

      .header {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: space-between;
        padding: 0px 10px;

        p.red {
          font-size: 14px;
          color: var(--red-color);
          font-weight: 400;
        }
        p.blue {
          font-size: 14px;
          color: var(--blue-color);
          font-weight: 400;
        }

        p > span {
          font-weight: 400;
          color: var(--sub2-color);
        }

        .center {
          display: flex;
          gap: 40px;
          p {
            color: white;
            font-weight: bold;
          }
        }
      }

      .content {
        width: 100%;
        height: calc(100% - 40px);
        display: flex;
        position: relative;

        .team {
          flex: 1;
          height: 100%;
        }
        .redTeam {
          background-color: #59343b;

          ul {
            width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;

            li {
              flex: 1;
              width: 100%;
              list-style: none;
              position: relative;
              display: flex;
              align-items: center;
              .champion {
                margin-left: 10px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
              }

              .info {
                display: flex;
                flex-direction: column;
                justify-content: center;
                margin-left: 10px;

                .nickName {
                  font-size: 15px;
                  font-weight: 500;
                }
                .tier {
                  font-size: 12px;
                  color: var(--sub2-color);
                  font-weight: 400;
                }
              }

              .tierImage {
                margin-left: 20px;
                width: 35px;
                max-height: 40px;
              }

              .rolesImage {
                position: absolute;
                right: 20px;
                width: 27px;
                height: 27px;
              }
            }
          }
        }

        .blueTeam {
          background-color: #2f436e;

          ul {
            width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;

            li {
              flex: 1;
              width: 100%;
              list-style: none;
              position: relative;
              display: flex;
              align-items: center;
              flex-direction: row-reverse;
              .champion {
                margin-right: 10px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
              }

              .info {
                display: flex;
                flex-direction: column;
                justify-content: center;
                margin-right: 10px;

                .nickName {
                  font-size: 15px;
                  font-weight: 500;
                  text-align: right;
                }
                .tier {
                  font-size: 12px;
                  color: var(--sub2-color);
                  font-weight: 400;
                  text-align: right;
                }
              }

              .tierImage {
                margin-right: 20px;
                width: 35px;
                max-height: 40px;
              }

              .rolesImage {
                position: absolute;
                left: 20px;
                width: 27px;
                height: 27px;
              }
            }
          }
        }
      }
    }
    .detileItem.active {
      display: block;
    }
  }
}

#recentDaejeon .detileItem li {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#recentDaejeon .detileItem li:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

#recentDaejeon .detileItem li:hover .nickName {
  color: var(--sub3-color);
}

#search-area .search-box .search .ggText {
  cursor: pointer;
  transition: color 0.2s ease;
}

#search-area .search-box .search .ggText:hover {
  color: white;
}

#multiSearchModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.864);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 998;

  .content {
    max-width: 1200px;
    width: 90%;
    height: 90%;
    max-height: 500px;
    background-color: var(--main-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

    #closeMultiSearchModal {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 10px;
      color: white;
      background-color: var(--sub-color);
      border-radius: 8px;
      border: none;
      transition: 0.3s ease;
      cursor: pointer;

      &:hover {
        background-color: #444452;
      }
    }

    .title {
      text-align: center;
      color: white;
      font-size: 23px;
      margin-top: 20px;
    }

    .items {
      width: 100%;
      margin-top: 20px;
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      overflow-y: scroll;
      gap: 20px;
    }

    .item {
      width: 90%;
      max-width: 200px;
      height: 240px;
      background-color: var(--sub-color);
      padding: 20px;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s ease;

      &:hover {
        background-color: #393946;
      }

      .itemHeader {
        display: flex;
        align-items: center;

        .champion {
          width: 50px;
          height: 50px;
          border-radius: 50%;
          object-fit: contain;
        }

        .info {
          display: flex;
          flex-direction: column;
          margin-left: 10px;

          p {
            display: flex;
            align-items: center;
            color: var(--sub2-color);
            font-size: 15px;

            img {
              width: 25px;
              height: 25px;
            }
          }
        }
      }

      .info2 {
        margin-top: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .winRate {
          h3 {
            font-size: 15px;
            font-weight: 500;
            color: var(--sub2-color);
          }

          p {
            font-size: 20px;
            margin-top: 5px;
          }
        }

        .tier {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 5px;

          .tierImage {
            width: 30px;
            max-height: 40px;
          }

          p {
            font-size: 13px;
          }
        }
      }

      .mostChampions {
        display: flex;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
        gap: 5px;

        .mostChampion {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 5px;

          .champion {
            width: 30px;
            height: 30px;
            border-radius: 50%;
          }

          p {
            font-size: 12px;
            color: var(--sub2-color);
          }
        }
      }
    }
  }
}


.mobilePosIcons {
  display: none;
}

@media (max-width: 1110px) {
  
  #search-area {
    h1 {
      font-size: 60px;
      span {
        width: 80px;
        img {
          width: 120px;
          height: 120px;
        }
      }
    }
  }

  #search-area .search-box {
    max-width: 600px;
    height: 50px;
    font-size: 14px;
    .type p,
    .search .pTag {
      font-size: 11px;
    }
    .search .ggText {
      font-size: 20px;
    }
  }

  
  #top5 {
    justify-content: center;
    gap: 20px;
    padding-bottom: 50px;

    .item[data-rank="2"],
    .item[data-rank="3"],
    .item[data-rank="4"],
    .item[data-rank="5"] {
      --drop-y: 0px !important; 
    }
  }

  #top5 .top5PositionFilter {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  
  .detileItem .header .center p:last-child {
    display: none;
  }

  
  .detileItem .rolesImage {
    display: none !important;
  }

  
  .mobilePosIcons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    display: flex !important;
    align-items: center;
    flex-direction: column !important;
    justify-content: space-around;
    height: 100%; 
    pointer-events: none; 
  }

  .mobilePosImg {
    width: 26px;
    height: 26px;
  }

  
  .nickName,
  .tier,
  .info1 p,
  .info2 p,
  .info3 p,
  .info3 span {
    font-size: 0.85em !important;
  }

  .championName {
    font-size: 0.9em !important;
  }

  .tierText,
  .percent {
    font-size: 0.8em !important;
  }
}
.home-update {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.home-update[hidden], #top5[hidden] { display: none; }
.home-update p { margin: 0; font-size: 14px; }
.home-update button {
  padding: 8px 14px;
  border: 1px solid #607286;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.home-update button:disabled { opacity: .6; cursor: wait; }
.home-update button:focus-visible { outline: 2px solid #8bc9ff; outline-offset: 3px; }
