:root {
  color-scheme: light dark;
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --page-bg: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.06);
  --text-main: #f7f1f7;
  --text-muted: #c7c2d0;
  --accent: #ff8dd9;
  --accent-strong: #ff4fbd;
  background-color: var(--page-bg);
  color: var(--text-main);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, rgba(255, 116, 209, 0.25), transparent 50%),
    var(--page-bg);
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
  line-height: 1.6;
}

.page-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  margin-bottom: 2.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin: 0.2rem 0 1rem;
}

.hero-content .lede {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  min-width: 140px;
}

.hero-meta strong {
  display: block;
  color: #fff;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 93, 188, 0.8), rgba(146, 62, 194, 0.85));
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-card button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem;
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: #c21875;
  cursor: pointer;
}

.hero-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-card .muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.filter-section {
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input,
select {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 0.9rem;
  background: rgba(10, 10, 15, 0.6);
  color: var(--text-main);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wallpaper-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wallpaper-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1b1b1f;
}

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

.wallpaper-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}

.wallpaper-card h3 {
  margin: 0;
  font-size: 1rem;
}

.wallpaper-card .meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wallpaper-card .download {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.55rem 1.1rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.filter-hint {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.error,
.empty {
  font-size: 1rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 960px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
}
