.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.background-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080808;
}

.background-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(242, 13, 24, 0.18), transparent 55%),
    linear-gradient(135deg, #161616, #050505);
}

.background-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.background-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-preview span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.background-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.background-copy strong,
.background-copy small {
  display: block;
}

.background-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.background-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.background-actions button {
  padding: 8px 10px;
  font-size: 11px;
}

.background-card.uploading {
  opacity: 0.62;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .background-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .background-copy { align-items: stretch; flex-direction: column; }
  .background-actions button { flex: 1; }
}
