.rb-recent-sold {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
}

.rb-recent-sold__frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rb-recent-sold__viewport {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.rb-recent-sold__viewport::-webkit-scrollbar {
  display: none;
}

.rb-recent-sold__track,
.rb-recent-sold__group {
  display: flex;
  gap: 14px;
  width: max-content;
}

.rb-recent-sold__nav {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: #f5fffd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rb-recent-sold__nav span {
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.rb-recent-sold__nav:hover,
.rb-recent-sold__nav:focus-visible {
  border-color: rgba(0, 212, 196, 0.5);
  background: rgba(0, 212, 196, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.rb-recent-sold__nav[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.rb-recent-sold__item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 calc((100vw - 140px) / 5);
  max-width: 340px;
  min-width: 0;
  min-height: 104px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(135deg, rgba(0, 212, 196, 0.06) 0%, rgba(33, 33, 33, 0) 65%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.20);
}

.rb-recent-sold__item:hover,
.rb-recent-sold__item:focus-visible {
  border-color: rgba(0, 212, 196, 0.50);
  background:
    linear-gradient(180deg, rgba(0, 212, 196, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(135deg, rgba(0, 212, 196, 0.08) 0%, rgba(33, 33, 33, 0) 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(0, 212, 196, 0.10);
  transform: translateY(-2px);
  outline: none;
}

.rb-recent-sold__img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.rb-recent-sold__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rb-recent-sold__info {
  min-width: 0;
  flex: 1 1 auto;
}

.rb-recent-sold__info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-recent-sold__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.rb-recent-sold__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rb-recent-sold__badge--label {
  color: #ebfffc;
  background: linear-gradient(180deg, rgba(0, 212, 196, 0.22) 0%, rgba(0, 212, 196, 0.12) 100%);
  border-color: rgba(0, 212, 196, 0.24);
}

@media (max-width: 1200px) {
  .rb-recent-sold__item {
    flex-basis: calc((100vw - 126px) / 4);
  }
}

@media (max-width: 1024px) {
  .rb-recent-sold__frame {
    gap: 10px;
  }

  .rb-recent-sold__nav {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .rb-recent-sold__item {
    flex-basis: calc((100vw - 108px) / 3);
  }
}

@media (max-width: 640px) {
  .rb-recent-sold {
    margin: 0;
  }

  .rb-recent-sold__frame {
    gap: 0;
  }

  .rb-recent-sold__nav {
    display: none;
  }

  .rb-recent-sold__viewport {
    padding: 8px 0 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .rb-recent-sold__track,
  .rb-recent-sold__group {
    gap: 10px;
  }

  .rb-recent-sold__item {
    flex-basis: 240px;
    min-width: 240px;
    max-width: 240px;
    min-height: 92px;
    padding: 10px 14px;
    gap: 12px;
    scroll-snap-align: start;
  }

  .rb-recent-sold__img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .rb-recent-sold__badge {
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
  }

  .rb-recent-sold__badge--label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
