.home-top{
  position: relative;
  padding: 22px 18px 18px;
  min-height: 390px;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
}

.home-top::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/images/bg.jpg") center center / cover no-repeat;
  opacity: 0.22;
  z-index: -2;
  pointer-events: none;
}

.home-top::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,12,22,0.68) 0%, rgba(7,12,22,0.78) 38%, rgba(7,12,22,0.88) 100%);
  z-index: -1;
  pointer-events: none;
}

.home-top-overlay{
  display: none;
}

.home-top-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  min-height: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.home-top-meta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(238,243,255,0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.home-main-title{
  margin: 0;
  color: #f5f7ff;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.home-main-search{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}

.home-main-search-input{
  width: min(100%, 560px);
  height: 58px;
  padding: 0 20px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,18,31,0.92);
  color: #eef2ff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.home-main-search-input::placeholder{
  color: rgba(207,216,255,0.58);
}

.home-main-search-input:focus{
  border-color: rgba(88,135,255,0.70);
  box-shadow: 0 0 0 3px rgba(88,135,255,0.14), 0 12px 26px rgba(0,0,0,0.24);
}

.home-section{
  position: relative;
  z-index: 1;
  padding-top: 18px;
  padding-bottom: 10px;
}

.section-head{
  max-width: 1280px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2{
  margin: 0;
  color: #f5f7ff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head-center{
  justify-content: center;
  text-align: center;
}

.section-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #2d6bff;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: 0.18s ease;
}

.section-link:hover{
  transform: translateY(-1px);
  background: #3a78ff;
  color: #ffffff;
}

.patch-home-grid{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.patch-home-card{
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,24,40,0.96) 0%, rgba(11,17,29,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.patch-home-card:hover{
  transform: translateY(-3px);
  border-color: rgba(88,135,255,0.28);
  box-shadow: 0 20px 38px rgba(0,0,0,0.28);
}

.patch-home-card-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0f1727;
}

.patch-home-card-img--placeholder{
  background: linear-gradient(135deg, rgba(42,62,99,0.9) 0%, rgba(18,28,48,0.95) 100%);
}

.patch-home-card-body{
  padding: 16px 16px 18px;
}

.patch-home-card-body h3{
  margin: 0 0 10px;
  color: #f5f7ff;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 900;
}

.patch-home-card-body p{
  margin: 0;
  color: rgba(228,235,255,0.76);
  font-size: 14px;
  line-height: 1.6;
}

.home-tierlist-card{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.home-tierlist-card-inner{
  width: 100%;
  max-width: 860px;
  padding: 24px 22px 24px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17,25,42,0.94) 0%, rgba(12,18,31,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.home-tierlist-card-inner h3{
  margin: 0 0 8px;
  color: #f5f7ff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.home-tierlist-card-inner p{
  margin: 0 0 18px;
  color: rgba(228,235,255,0.72);
  font-size: 15px;
  line-height: 1.6;
}

.home-tierlist-preview{
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.home-tierlist-preview-row{
  display: grid;
  grid-template-columns: 44px auto;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.home-tier-badge{
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f5f7ff;
  font-size: 20px;
  font-weight: 900;
}

.home-tier-icons{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}

.home-tier-icons a{
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .16s ease;
}

.home-tier-icons a:hover{
  transform: translateY(-2px);
}

.home-tier-icons img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.home-tier-empty{
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 700;
}

.home-tierlist-link-wrap{
  padding-top: 20px;
  text-align: center;
}

.home-tierlist-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  background: #ea5b49;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transition: 0.18s ease;
}

.home-tierlist-link:hover{
  transform: translateY(-1px);
  background: #f06654;
  color: #ffffff;
}

/* NEW CHAMPIONS */
.new-champions-showcase{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.new-champion-showcase-card{
  position: relative;
  display: block;
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.new-champion-showcase-card:hover{
  transform: translateY(-4px);
  border-color: rgba(88,135,255,0.24);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.new-champion-showcase-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.new-champion-showcase-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,20,0.16) 0%, rgba(8,12,20,0.36) 36%, rgba(8,12,20,0.82) 100%);
}

.new-champion-showcase-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 20px 18px;
}

.new-champion-showcase-top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.new-champion-showcase-top h3{
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.new-champion-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #59d44a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.new-champion-showcase-content p{
  max-width: 270px;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.94);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 700;
}

.new-champion-showcase-link{
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.home-section-card{
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17,25,42,0.92) 0%, rgba(12,18,31,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.trending-row{
  display: grid;
  grid-template-columns: repeat(8, 88px);
  gap: 12px;
  justify-content: start;
}

.trend-card{
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform .15s ease;
}

.trend-card:hover{
  transform: translateY(-2px);
}

.champ-card-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.no-data{
  max-width: 1280px;
  margin: 0 auto;
  color: rgba(255,255,255,0.70);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1200px){
  .patch-home-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-champions-showcase{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .new-champion-showcase-card{
    height: 340px;
  }

  .trending-row{
    grid-template-columns: repeat(6, 88px);
  }
}

@media (max-width: 992px){
  .home-top{
    min-height: 340px;
  }

  .home-top-inner{
    min-height: 310px;
  }

  .home-main-title{
    font-size: 40px;
  }

  .home-main-search-input{
    width: min(100%, 520px);
    height: 54px;
    font-size: 15px;
  }

  .home-tierlist-card-inner h3{
    font-size: 24px;
  }

  .home-tier-icons a{
    width: 48px;
    height: 48px;
  }

  .trending-row{
    grid-template-columns: repeat(4, 88px);
  }
}

@media (max-width: 768px){
  .page-section{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .home-top{
    min-height: 285px;
    padding: 16px 12px 10px;
    border-radius: 0 0 20px 20px;
  }

  .home-top-inner{
    min-height: 255px;
    gap: 14px;
  }

  .home-top-meta{
    padding: 7px 12px;
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .home-main-title{
    font-size: 28px;
  }

  .home-main-search-input{
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 13px;
  }

  .section-head{
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .section-head h2{
    font-size: 22px;
  }

  .section-link{
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 10px;
  }

  .patch-home-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .patch-home-card{
    border-radius: 16px;
  }

  .patch-home-card-body{
    padding: 14px 14px 16px;
  }

  .patch-home-card-body h3{
    font-size: 18px;
  }

  .patch-home-card-body p{
    font-size: 13px;
  }

  .home-tierlist-card-inner{
    max-width: 100%;
    padding: 18px 14px 18px;
    border-radius: 18px;
  }

  .home-tierlist-card-inner h3{
    font-size: 22px;
  }

  .home-tierlist-card-inner p{
    font-size: 13px;
    margin-bottom: 14px;
  }

  .home-tierlist-preview{
    width: 100%;
  }

  .home-tierlist-preview-row{
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }

  .home-tier-badge{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }

  .home-tier-icons{
    gap: 6px;
  }

  .home-tier-icons a{
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .home-tier-icons img{
    border-radius: 8px;
  }

  .home-tierlist-link{
    min-height: 40px;
    padding: 0 16px;
    font-size: 12px;
    border-radius: 10px;
  }

  .new-champions-showcase{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .new-champion-showcase-card{
    height: 300px;
    border-radius: 18px;
  }

  .new-champion-showcase-content{
    padding: 18px 16px 18px;
  }

  .new-champion-showcase-top h3{
    font-size: 20px;
  }

  .new-champion-showcase-content p{
    font-size: 13px;
    max-width: 220px;
  }

  .new-champion-showcase-link{
    font-size: 14px;
  }

  .home-section-card{
    padding: 16px 14px 18px;
    border-radius: 18px;
  }

  .trending-row{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .trend-card{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .champ-card-img{
    border-radius: 8px;
  }
}

@media (max-width: 520px){
  .home-main-title{
    font-size: 24px;
  }

  .section-head h2{
    font-size: 20px;
  }

  .home-tier-icons a{
    width: 36px;
    height: 36px;
  }

  .trending-row{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}