.ranking-block .header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
}

.ranking-block .header h3 .rank-head-wrapper {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ranking-block .header h3 .rank-head-title {
  text-transform: capitalize;
  margin: 0 auto 0 1em;
}

.ranking-block .header h3 .rank-head-title a:hover {
  text-decoration: none;
}

.ranking-block .header h3 .rank-head-more {
  white-space: nowrap;
  text-transform: uppercase;
}

@media (min-width:465px) {
  .rank-title-wrapper {
    white-space: nowrap;
  }
}

.ranking-block .header h3 .rank-head-more a:hover {
  text-decoration: none;
}

.ranking-block .rank-body {
  padding: 24px 16px 0;
  margin-bottom: 10px;
  max-height: 300px;
  overflow: hidden;
}

.ranking-block .rank-body.expand {
  max-height: 100% !important;
}

.ranking-block button {
  color: var(--primary);
  padding: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  will-change: box-shadow, transform;
  border: 0;
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  outline: 0;
  position: relative;
  align-items: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 0;
  vertical-align: middle;
  -moz-appearance: none;
  justify-content: center;
  text-decoration: none;
  background-color: transparent;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  box-sizing: border-box;
  touch-action: manipulation;
  text-transform: uppercase;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  letter-spacing: 0.055em;
  color: inherit;
  overflow: hidden;
  flex-direction: row;
  text-align: center;
}

.ranking-block button .show-more {
  width: 100%;
  display: inherit;
  align-items: inherit;
  justify-content: inherit;
  position: relative;
  z-index: 1;
  flex-direction: inherit;
  color: var(--primary);
  pointer-events: none;
}

.ranking-block button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: var(--bg-inverse);
  opacity: 0;
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
  will-change: box-shadow, transform;
}

.ranking-block button:hover::before {
  background: var(--primary);
  opacity: 0.04;
}

.row-rank {
  width: 100%;
  padding: 0;
}
/* @media (max-width: 500px) {
  .row-rank {
    width: 130px;
  }
} */

.row-rank .image-container {
  width: 60px;
  min-width: 60px;
  /* margin-bottom: 12px; */
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 56%, 0.15),
    hsla(0, 0%, 39%, 0.15)
  );
  border-radius: 0.375rem;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.row-rank .image-container > .image-wrapper {
  background-position: 50%;
  object-fit: cover;
  aspect-ratio: 2/3;
  background-size: cover;
  max-width: 100%;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease-in-out;
  transform-origin: left center;
}
.row-rank .image-container > .icons {
  top: 0;
  position: absolute;
}
.row-rank .title {
  position: relative;
  color: var(--text-primary);
  font-family: "Exo 2";
  margin-left: 16px;
  border-top: unset;
  text-shadow: unset;
  margin-top: unset;
  height: unset;
  background-image: none;
  max-width: unset;
}
.row-rank .title h4 {
  display: -webkit-box;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  overflow: hidden;
  font-size: 0.975rem;
  line-height: 1.2;
  font-weight: 400;
}
.row-rank a {
  padding: 3px 8px 3px 3px;
  overflow: hidden;
  outline: none;
  display: flex;
  position: relative;
  align-items: center;
  margin-bottom: 4px;
  border-radius: 4px;
  width: 100%;
}
.row-rank a::after {
  transition: opacity 125ms ease-in-out 0s;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 0px;
}
.row-rank a:hover {
  text-decoration: none;
}
.row-rank a:hover .gloss {
  transform: perspective(1000px) rotateY(-30deg) translateX(100%) scaleX(5);
}

.row-rank a:hover .image-container > .image-wrapper {
  transform: scale(1.01) perspective(1000px) rotateY(-30deg);
}
.row-rank a:hover::after {
  opacity: 0.1;
}
.row-rank .gloss {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  overflow: hidden;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.2s;
  transform: translateX(-50%) rotateY(0deg);
  transform-origin: left center;
}
.row-rank h3 {
  font-family: "Exo 2";
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.235;
  margin: 12px;
}
