body.ranking {
  font-size: 17px;
  color: white;
  background-image: url(../images/ranking/bg-champ.png);
  width: 100%;
  height: 100%;
  position: absolute;
  background-attachment: fixed;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-2 {
  margin-top: 120px;
  display: none;
  min-height: 100%;
}

.section-2.is-active {
  display: block;
}

.body-main {
  background-image: url(../images/ranking/bg-champ.png);
  width: 100%;
  height: 100%;
  position: absolute;
  background-attachment: fixed;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rank-banner {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  margin: auto;
  padding-top: 80px;
  max-width: 199px;
}

.rank-banner.first {
  background: url(../images/ranking/banner-first.png) no-repeat center;
  background-size: cover;
  aspect-ratio: 1/3;
  max-height: 492px;
}

.rank-banner.second {
  background: url(../images/ranking/banner-second.png) no-repeat center;
  background-size: cover;
  aspect-ratio: 1/2.5;
  max-height: 422px;
}

.rank-banner.third {
  background: url(../images/ranking/banner-third.png) no-repeat center;
  background-size: cover;
  aspect-ratio: 1/2.5;
  max-height: 422px;
}

.rank-icon {
  margin-bottom: 24px;
}
.player-info .container {
  width: 83.92%;
  margin-bottom: 5px;
  display: flex;
}
.player-info .name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.player-info .level,
.player-info .guild {
  font-size: 0.9rem;
  margin: 0 8px;
}

.player-info .cp-container {
  position: relative;
  padding-top: 4px;
  padding-bottom: 4px;
}

.player-info .cp-container::before,
.player-info .cp-container::after {
  content: "";
  position: absolute;
  left: 40;
  height: 1px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.player-info .cp-container::before {
  top: 0;
  left: 0;
}

.player-info .cp-container::after {
  bottom: 0;
  left: 0;
}

.player-info .cp-container.first::before,
.player-info .cp-container.first::after {
  background: linear-gradient(
    90deg,
    rgba(255, 208, 98, 0) 0%,
    #f3dda9 51.92%,
    rgba(255, 208, 98, 0) 92.79%
  );
}

.player-info .cp-container.second::before,
.player-info .cp-container.second::after {
  background: linear-gradient(
    90deg,
    rgba(98, 171, 255, 0) 0%,
    #a9c7f3 51.92%,
    rgba(98, 195, 255, 0) 92.79%
  );
}

.player-info .cp-container.third::before,
.player-info .cp-container.third::after {
  background: linear-gradient(
    90deg,
    rgba(255, 153, 98, 0) 0%,
    #e49666 50%,
    rgba(255, 153, 98, 0) 92.79%
  );
}

.cp {
  width: 83.92%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1rem;
  margin: auto;
  font-weight: bold;
}

.cp img {
  width: 24px;
  height: 24px;
}

.cp.first {
  background: linear-gradient(
    90deg,
    rgba(226, 181, 77, 0) 0%,
    rgba(245, 171, 32, 0.5) 49.52%,
    rgba(226, 181, 77, 0) 100%
  );
}

.cp.second {
  background: linear-gradient(
    90deg,
    rgba(77, 112, 226, 0) 0%,
    rgba(32, 124, 245, 0.5) 49.52%,
    rgba(77, 112, 226, 0) 100%
  );
}

.cp.third {
  background: linear-gradient(
    90deg,
    rgba(188, 119, 69, 0) 0%,
    rgba(206, 111, 59, 0.5) 41.83%,
    rgba(203, 112, 61, 0.417355) 58.17%,
    rgba(188, 119, 69, 0) 100%
  );
}

.btn:hover {
  color: #ffe873;
}

.menu-item {
  cursor: pointer;
  width: 120px;
  display: flex;
  color: white;
  flex-direction: column;
  align-items: center;
  font-family: "Prompt", sans-serif;
  font-size: 15px;
  height: 153px;
  text-align: center;
  position: relative;
  border: none;
  background: transparent;
}

.menu-item.is-active {
  color: #ffe873;
  font-weight: 600;
  background: linear-gradient(
    270deg,
    rgba(234, 189, 84, 0.1) 0%,
    rgba(234, 189, 84, 0) 95.75%
  );
  background-blend-mode: overlay;
}

.icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.nav-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
}

.arrow-icon {
  position: absolute;
  top: 50%;
  right: -5;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: none;
}
.rank-footer {
  position: absolute !important;
  bottom: 0;
}
.arrow-icon.is-active {
  display: initial;
}

.ranking-list {
  width: 100%;
  height: 100%;
  max-height: 824px;
  overflow: hidden;
  overflow-y: scroll;
  margin: auto;
}

.ranking-list::-webkit-scrollbar {
  width: 2px;
}
.ranking-list::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(220, 94, 83, 0) 0%,
    #dc5e53 47.6%,
    rgba(220, 94, 83, 0) 100%
  );
}

.ranking-list::-webkit-scrollbar-button {
  width: 30px;
  background-color: #a9c7f3;
}

.ranking-list::-webkit-scrollbar-corner {
  background-color: white;
  width: 30px;
}
/* Scrollbar thumb with gradient and pointed cap */
.ranking-list::-webkit-scrollbar-thumb {
  width: 5px;
  background: linear-gradient(180deg, #ff7f6a 0%, #ffad9f 100%);
  border-radius: 50px;
  position: relative;
}

.ranking-list-grid {
  position: relative;
  height: 61px;
  background: linear-gradient(
    90deg,
    rgba(44, 4, 4, 0) 0%,
    rgba(33, 8, 8, 0.7) 20.19%,
    rgba(36, 7, 7, 0.7) 82.06%,
    rgba(56, 6, 6, 0) 100%
  );
  display: grid;
  align-items: center;
  gap: 0px;
}
 /* รอเปิดใช้ union-name */
.ranking-list-grid.champ,
.ranking-list-grid.throne {
  grid-template-columns: 7% 20% 29% 23% 20%;
}
 /* ของใหม่ */
/* .ranking-list-grid.champ,
.ranking-list-grid.throne {
  grid-template-columns: 7% 40% 30%  20%;
} */
.ranking-list-grid.flag {
  grid-template-columns: 8.42% 46.96% 22.17% 22.44%;
}

.ranking-list-grid::after {
  content: "";
  position: absolute;
  left: 40;
  height: 2px;
  width: 100%;
  display: flex;
  justify-content: center;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(121, 18, 18, 0) 0%,
    #ce6321 52.4%,
    rgba(121, 18, 18, 0) 100%
  );
}

.gradient-font {
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(180deg, #ddb051 0%, #fcf7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0px 0px 8px rgba(255, 199, 70, 0.5);
}

.brown-font {
  color: rgba(239, 175, 129, 1);
}

.rank-sidebar {
  position: relative;
  border: none;
}

.rank-sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  height: 100%;
  width: 2px;
  display: flex;
  justify-content: center;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(220, 94, 83, 0) 0%,
    #dc5e53 47.6%,
    rgba(220, 94, 83, 0) 100%
  );
}

.nav-section {
  border: 1px solid rebeccapurple;
}

.rank-description {
  color: #eabd54;
}

.rank-banner-section {
  display: flex;
  justify-content: space-around;
  height: 100%;
  gap: 8px;
}

.combo-point-container {
  width: auto;
  height: auto;
}

.combo-point-container img {
  width: auto;
  height: auto;
  margin-right: 4px;
}

/* Container */
.rank-dropdown-toggle {
  background: linear-gradient(180deg, #2d0b0b 0%, #561111 100%);
  border: none;
  color: #f9d791;
  padding: 0.5rem 1rem;
  width: 100%;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}
.dropdown-toggle::after {
  display: none;
}

/* Arrow */
.rank-dropdown-toggle .dropdown-arrow {
  transition: transform 0.3s ease;
}

/* Rotate arrow when active */
.rank-dropdown-toggle.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.rank-dropdown-menu {
  background: linear-gradient(180deg, #2d0b0b 0%, #561111 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.25);
  padding: 0.5rem 0;
  width: 100%;
}

/* Dropdown Item */
.rank-dropdown-item {
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  transition: background 0.2s;
}

/* Hover effect */
.rank-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffe49d;
}

/* Selected Item Highlight */
.rank-dropdown-item.selected {
  background: rgba(44, 80, 121, 0.4);
  color: #aee9ff;
  border: 1px solid #63b3ff;
  border-radius: 4px;
  margin: 2px 8px;
}

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .menu-item.is-active {
    background: linear-gradient(
      0deg,
      rgba(234, 189, 84, 0.6) 0%,
      rgba(234, 189, 84, 0) 100%
    );
    background-blend-mode: overlay;
  }

  .arrow-icon {
    position: absolute;
    bottom: 0;
    left: 37%;
    transform: translateY(100%) rotate(90deg);
    width: 24px;
    height: 24px;
  }
  .rank-sidebar::after {
    content: "";
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(220, 94, 83, 0) 0%,
      #dc5e53 47.6%,
      rgba(220, 94, 83, 0) 100%
    );
  }
}

@media (max-width: 500px) {
  .combo-point-container img {
    width: 16px;
    height: 17px;
    margin-right: 4px;
  }
}

@media (min-width: 1600px) {
  .col-xxl-4 {
    width: 41.33333333%;
  }
  .col-xxl-7 {
    width: 50.33333333%;
  }
}
