:root {
  --bg: #07060d;
  --panel: #110f1d;
  --panel-edge: #262140;
  --text: #ece9ff;
  --muted: #9a94bf;
  --accent: #7c5cff;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 clamp(16px, 4vw, 48px) 48px;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 43, 214, 0.12), transparent 70%),
    linear-gradient(transparent 0 97%, rgba(124, 92, 255, 0.08) 97% 100%) 0 0 / 100% 48px,
    linear-gradient(90deg, transparent 0 97%, rgba(124, 92, 255, 0.08) 97% 100%) 0 0 / 48px 100%;
  mask-image: linear-gradient(black 40%, transparent);
}

.masthead {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 112px) 0 clamp(28px, 5vh, 56px);
}

.masthead__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__title {
  margin: 0;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fff 20%, #b9a8ff 55%, #ff7ae6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.masthead__tagline {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

main {
  max-width: 1100px;
  margin: 0 auto;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.card {
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 80ms);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card__link:hover,
.card__link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 50px -12px color-mix(in srgb, var(--accent) 55%, transparent);
  outline: none;
}

.card__thumb {
  aspect-ratio: 16 / 9;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card__link:hover .card__thumb img {
  transform: scale(1.04);
}

.card__placeholder {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.card__tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
}

.card__tags li {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  color: var(--muted);
}

.card__controls {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.card__play {
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-start;
  font-weight: 700;
  color: var(--accent);
}

.empty {
  color: var(--muted);
}

.footer {
  max-width: 1100px;
  margin: 64px auto 0;
  font-size: 13px;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .card__link,
  .card__thumb img {
    transition: none;
  }
}
