:root {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --bg: #0f0215;
  --panel: rgba(25, 5, 41, 0.88);
  --text: #f8eaff;
  --muted: #cab6dc;
  --accent: #ff86f5;
  color: var(--text);
  background-color: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
  background: radial-gradient(circle at 15% 10%, rgba(255, 134, 245, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(124, 92, 255, 0.35), transparent 55%), var(--bg);
  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.5rem);
  margin: 0.1rem 0 1rem;
}

.hero-content .lede {
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 134, 245, 0.8);
}

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

.hero-meta div {
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 134, 245, 0.35);
  background: rgba(22, 4, 38, 0.85);
  min-width: 150px;
}

.hero-card {
  background: linear-gradient(145deg, rgba(86, 16, 181, 0.9), rgba(255, 92, 197, 0.85));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
}

.hero-card button {
  width: 100%;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 2, 21, 0.85);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.hero-card button:hover {
  background: rgba(15, 2, 21, 0.95);
}

.hero-card .muted {
  color: rgba(15, 2, 21, 0.75);
  font-size: 0.85rem;
}

.filter-section {
  border-radius: 1.1rem;
  background: rgba(22, 4, 38, 0.85);
  border: 1px solid rgba(255, 134, 245, 0.22);
  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(--muted);
}

input,
select {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 134, 245, 0.3);
  background: rgba(15, 2, 21, 0.85);
  color: var(--text);
  padding: 0.65rem 0.9rem;
}

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

.wallpaper-card {
  margin: 0;
  background: rgba(22, 4, 38, 0.85);
  border: 1px solid rgba(255, 134, 245, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wallpaper-card picture {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f0215;
}

.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 .meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.wallpaper-card .download {
  border-radius: 999px;
  border: 1px solid rgba(255, 134, 245, 0.45);
  padding: 0.55rem 1.1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

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

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

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