.yj-trending-viewall-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 10px 0 12px;
}

.yj-trending-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  text-decoration: none !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 7px 0;
  border-bottom: 1px solid #111;
  transition: gap .2s ease, opacity .2s ease, border-color .2s ease;
}

.yj-trending-viewall:hover,
.yj-trending-viewall:focus-visible {
  gap: 12px;
  opacity: .72;
  color: #111;
  border-color: #d71920;
}

.yj-trending-viewall__arrow {
  display: inline-flex;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Bottom safety CTA: only created when the section has no existing View All control. */
.yj-trending-viewall-bottom {
  display: flex;
  justify-content: center;
  margin: 24px 0 4px;
}

.yj-trending-viewall-bottom .yj-trending-viewall {
  min-width: 126px;
  justify-content: center;
  padding: 15px 22px;
  border: 1px solid #111;
  letter-spacing: .13em;
  background: #fff;
}

.yj-trending-viewall-bottom .yj-trending-viewall:hover,
.yj-trending-viewall-bottom .yj-trending-viewall:focus-visible {
  background: #111;
  color: #fff;
  opacity: 1;
  border-color: #111;
}

@media (max-width: 640px) {
  .yj-trending-viewall-wrap {
    margin: 5px 0 10px;
    padding-right: 2px;
  }

  .yj-trending-viewall {
    font-size: 10.5px;
    letter-spacing: .11em;
  }

  .yj-trending-viewall-bottom {
    margin-top: 22px;
  }

  .yj-trending-viewall-bottom .yj-trending-viewall {
    min-width: 122px;
    padding: 14px 20px;
  }
}
