:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --overlay: rgba(0, 0, 0, 0.35);
  --card: #111827;
  --ring: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.header {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.logo {
  height: clamp(96px, 18vw, 192px);
  width: auto;
}

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

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--ring);
}

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

.cover .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.cover:hover .overlay { background: rgba(0, 0, 0, 0.45); }

.icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: white;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta {
  text-align: center;
  padding: 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.footer {
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}

/* Subtle glitter overlay (pure CSS, low-cost) */
.glitter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.09), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05), transparent 45%);
  opacity: 0.65;
  mix-blend-mode: screen;
}
