.ewave-userplay-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-right: -6px;
  margin-left: -6px;
}

.ewave-userplay-card {
  display: flex;
  padding: 6px;
}

.ewave-userplay-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 164px;
  padding: 14px;
  border: 1px solid var(--bg-color-1);
  border-radius: 8px;
  background: var(--bg-color-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ewave-userplay-card.active .ewave-userplay-card__body,
.ewave-userplay-card__body:hover {
  border-color: var(--theme-color);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.ewave-userplay-card__seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-color-2);
  font-size: 12px;
  line-height: 24px;
}

.ewave-userplay-card__seller > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ewave-userplay-card__state {
  flex: none;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 173, 51, .14);
  color: #e68a00;
  font-weight: 600;
}

.ewave-userplay-card__state.is-open {
  background: rgba(90, 206, 201, .14);
  color: var(--theme-color-4);
}

.ewave-userplay-card__title {
  display: block;
  margin-top: 10px;
  color: var(--text-color-1);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
}

.ewave-userplay-card__title:hover {
  color: var(--theme-color);
}

.ewave-userplay-card__meta {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
  color: var(--text-color-3);
  font-size: 12px;
  line-height: 20px;
}

.ewave-userplay-card__meta span:first-child {
  flex: none;
}

.ewave-userplay-card__meta span + span::before {
  margin-right: 8px;
  content: "·";
}

.ewave-userplay-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
}

.ewave-userplay-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--theme-color-4);
  color: var(--theme-text-color);
  font-size: 13px;
  font-weight: 600;
}

.ewave-userplay-card__button.is-buy {
  background: #f0a52b;
  color: #fff;
}

.ewave-userplay-card__button:hover,
.ewave-userplay-card__button:focus {
  color: #fff;
  filter: brightness(1.04);
}

.ewave-downsale-card-item {
  margin-bottom: 12px;
  border: 1px solid var(--bg-color-1);
  border-radius: 8px;
}

.ewave-downsale-card-item:last-child {
  margin-bottom: 0;
}

.ewave-downsale-card-item .ewave-downsale-seller-head {
  align-items: flex-start;
}

.ewave-downsale-card-item .ewave-downsale-item {
  padding-bottom: 0;
}

.ewave-downsale-card-item .ewave-downsale-mini .ewave-downsale-action {
  min-width: 112px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ewave-userplay-card {
    width: 100%;
  }

  .ewave-userplay-card__body {
    min-height: 152px;
  }

  .ewave-downsale-card-item .ewave-downsale-seller-head,
  .ewave-downsale-card-item .ewave-downsale-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ewave-downsale-card-item .ewave-downsale-mini {
    width: 100%;
  }

  .ewave-downsale-card-item .ewave-downsale-mini .ewave-downlist-btn {
    flex: 1;
  }
}
