:root {
  --bg: #1d1533;
  --panel: #2a2148;
  --line: #40336b;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}
header {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 80px) 0 clamp(20px, 4vh, 36px);
}
.kicker {
  margin: 0 0 8px;
  color: #3ddc97;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}
.lead { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }
.grid {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.card {
  --c: #8d99c2;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--c);
  box-shadow: 0 12px 32px -12px var(--c);
  outline: none;
}
a.card:active { transform: translateY(0); }
.thumb {
  aspect-ratio: 16 / 9;
  background: #1d1533;
  border-bottom: 2px solid var(--line);
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.play {
  margin-top: auto;
  align-self: flex-start;
  background: var(--c);
  color: #1d1533;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 10px;
}
.ghost { border-style: dashed; opacity: 0.6; }
.ghost .thumb {
  background: repeating-linear-gradient(45deg, #241c40, #241c40 12px, #1d1533 12px, #1d1533 24px);
}
footer {
  max-width: 1040px;
  width: 100%;
  margin: auto auto 0;
  padding: 36px 0 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
