.amazon-ranking {
  padding: 8px;
  background-color: #fff;
}

.articleList .amazon-ranking {
  margin: 24px 0;
  padding: 0;
  background-color: transparent;
  font-weight: normal;
}

.amazon-ranking h3 {
    display: flex;
    margin-bottom: 8px;
    padding-bottom: 8px;
    line-height: 1;
    border-bottom: 2px solid #404040;
}

.amazon-ranking .time-period {
  color: #aaa;
  font-size: 1.3rem;
}

.amazon-ranking .nav-wrap {
  overflow-x: auto;
  display: flex;
  margin: 16px 0;
  border-bottom: 1px solid #ddd;
}

.amazon-ranking .nav-wrap li {
  flex-shrink: 0;
  padding: 8px;
  line-height: 1.4rem;
  border-bottom: 2px solid #fff;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all ease 0.25s;
}

.amazon-ranking .nav-wrap li.active {
  color: #227aa7;
  border-bottom: 2px solid #227aa7;
}

.amazon-ranking .nav-wrap li:hover {
  color: #227aa7;
}

.amazon-ranking .content-wrap {
  position: relative;
  overflow: hidden;
}

.amazon-ranking .content-wrap .slide-btn {
  content: "";
  position: absolute;
  top: calc(50% - 40px);
  left: 4px;
  display: block;
  width: 40px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  color: #fff;
  background-color: rgba(34, 122, 167, 0.9);
  font-size: 32px;
  box-shadow: 0 2px 4px rgba(33,33,33,0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all linear 0.1s;
  z-index: 9999;
}

.amazon-ranking .content-wrap .slide-btn.next {
  left: auto;
  right: 4px;
}

.amazon-ranking .content-wrap .slide-btn.disabled {
  pointer-events: none;
  opacity: 0.2;
}

.amazon-ranking .content-wrap .slide-btn:before {
  font-family: FontAwesome;
  content: "\f104";
  transition: all ease 0.2s;
}
.amazon-ranking .content-wrap .slide-btn.next:before {
  content: "\f105";
}

.amazon-ranking .content-wrap .slide-btn.prev:hover:before {
  margin-right: 12px;
}

.amazon-ranking .content-wrap .slide-btn.next:hover:before {
  margin-left: 12px;
}

.amazon-ranking .content-slider {
  transition-timing-function: ease-out;
  transition-duration: 0ms;
}

.amazon-ranking .content-slider > li {
  display: none;
}

.amazon-ranking .content-slider > li.active {
  display: block;
}

.amazon-ranking .content-slider ul {
  display: flex;
}

.amazon-ranking .content-slider ul li {
  margin-right: 8px;
}

.amazon-ranking .content-slider ul li:last-child {
  margin-right: 0;
}

.amazon-ranking a {
  color: #aaa;
  font-size: 1.3rem;
}

.amazon-ranking .cover-img {
  position: relative;
  width: 160px;
  height: 160px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.amazon-ranking .cover-img .num {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  color: #fff;
  background-color: rgba(34, 122, 167, 0.8);
  font-size: 1.4rem;
  font-weight: bold;

}
.amazon-ranking .cover-img .category {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 4px;
  line-height: 1.3rem;
  color: #fff;
  background-color: rgba(119, 119, 119, 0.9);
  font-size: 1.3rem;
}
.amazon-ranking .cover-img .category.Switch {
  background-color: rgba(230, 0, 18, 0.9);
}
.amazon-ranking .cover-img .category.PS5 {
  background-color: rgba(0, 110, 207, 0.9);
}
.amazon-ranking .cover-img .category.Xbox {
  background-color: rgba(16, 124, 16, 0.9);
}

.amazon-ranking .title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 8px 0;
  min-height: 40px;
  line-height: 2rem;
  color: #575757;
  font-size: 1.6rem;
  font-weight: bold;
}

.amazon-ranking .date {
  font-size: 1.2rem;
}

.amazon-ranking .amount span {
  text-decoration: line-through;
}

.amazon-ranking .save-amount span {
  color: #227aa7;
  line-height: 2.4rem;
  font-size: 2.4rem;
}

.amazon-ranking .btn {
  display: block;
  margin-top: 8px;
  padding: 4px 0;
  text-align: center;
  color: #fff;
  background-color: #ff9900;
  border-radius: 4px;
}

@media screen and (max-width:1023px) {
  .amazon-ranking .content-wrap .slide-btn {
    display: none;
  }

  .amazon-ranking .content-slider {
    overflow-x: scroll;
  }
}
