/* Beat / kit card — single source of truth */

.beat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.beat-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.beat-card .beat-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px !important;
  background: var(--fill-secondary);
}

.beat-card .beat-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.beat-card .beat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beat-card .beat-cover .play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0;
  border: none;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.55);
  color: var(--label-primary);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 2;
}

.beat-card .beat-cover:hover .play-button,
.beat-card .beat-cover:focus-within .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.beat-card .beat-cover .play-button svg,
.beat-card .beat-cover .play-button .lucide {
  width: 20px;
  height: 20px;
  display: block;
}

.beat-card .beat-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.beat-card .beat-title-link {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.beat-card .beat-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--label-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.beat-card .beat-user {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--label-secondary);
  font-size: 13px;
}

.beat-card .beat-user-avatar {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.beat-card .beat-user-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--label-secondary);
  text-decoration: none;
}

.beat-card .beat-user-link:hover {
  color: var(--label-primary);
}

.beat-card .beat-user-verified {
  flex-shrink: 0;
  color: var(--label-tertiary);
}

.beat-card .beat-user-verified svg {
  width: 14px;
  height: 14px;
}

.beat-card .beat-footer {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 2px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.beat-card .price-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 36px !important;
  padding: 0 14px !important;
  border: none;
  border-radius: 10px !important;
  background: var(--fill-primary);
  color: var(--label-primary);
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none;
  white-space: nowrap;
}

.beat-card .price-btn:hover {
  background: var(--fill-tertiary);
}

.beat-card .favorite-btn,
.beat-card .cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0;
  border: none;
  border-radius: 10px !important;
  background: var(--fill-primary);
  color: var(--label-secondary);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.beat-card .favorite-btn:hover,
.beat-card .cart-btn:hover {
  background: var(--fill-tertiary);
  color: var(--label-primary);
}

.beat-card .favorite-btn svg,
.beat-card .favorite-btn .lucide,
.beat-card .cart-btn svg,
.beat-card .cart-btn .lucide {
  width: 16px;
  height: 16px;
  display: block;
}

.beat-card .favorite-btn.favorited,
.beat-card .favorite-btn.is-liked {
  color: var(--system-red);
}

.beats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .beats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .beats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
