body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f5f5f5;
}

header {
  max-width: 960px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

#search {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 1rem;
}

main#demos {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.demo-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-content {
  padding: 0.9rem 1rem 1rem;
}

.demo-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.demo-desc {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.demo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.demo-tags {
  opacity: 0.8;
}

.demo-link {
  background: #38bdf8;
  color: #020617;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}