:root {
  --bg: #0b0614; --panel: #151026; --panel-2: #1d1534; --line: #3a1f63;
  --ink: #efe8ff; --muted: #a99cc9; --purple: #7c3aed; --purple-2: #a78bfa; --gold: #ffe066;
  --font: 'Pixelify Sans', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font);
  display: flex; flex-direction: column;
  /* faint CRT scanlines */
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
a { color: inherit; }

.top { padding: 40px 16px 8px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 28px;
  box-shadow: 4px 4px 0 #3b1a7a; border-radius: 6px;
}
h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); font-weight: 700; letter-spacing: .02em; line-height: 1; }
h1 span { color: var(--purple-2); }
.tag { margin: 14px 0 0; color: var(--muted); font-size: 18px; max-width: 60ch; }

main { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 16px 48px; }
.shelf-title { font-size: 20px; font-weight: 400; color: var(--gold); margin: 0 0 16px; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 #000;
  transition: transform .12s steps(2), border-color .12s, box-shadow .12s;
}
a.card:hover, a.card:focus-visible { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #000; border-color: var(--purple-2); outline: none; }
a.card:focus-visible { border-color: var(--gold); }

.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-bottom: 2px solid var(--line); }
.art img, .art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.art video { opacity: 0; transition: opacity .2s; }
.art.live video { opacity: 1; }
.art.empty { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #120c22 0 8px, #160f2a 8px 16px); }
.blink { color: var(--muted); font-size: 20px; letter-spacing: .1em; animation: blink 1.2s steps(1) infinite; }

.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.body h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.line { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.35; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 2px 7px; background: var(--panel-2); border: 1px solid var(--line); color: var(--purple-2); }
.foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.controls { color: var(--muted); font-size: 14px; }
.play { background: var(--purple); color: #fff; padding: 6px 14px; font-size: 16px; box-shadow: 3px 3px 0 #3b1a7a; }
a.card:hover .play, a.card:focus-visible .play { background: var(--gold); color: #1a1030; box-shadow: 3px 3px 0 #7a5a00; }
.soon { opacity: .7; border-style: dashed; box-shadow: none; }

.bottom { max-width: 1080px; width: 100%; margin: 0 auto; padding: 18px 16px 28px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 2px solid var(--line); }
.bottom a { color: var(--purple-2); text-decoration: none; }
.bottom a:hover, .bottom a:focus-visible { color: var(--gold); text-decoration: underline; outline: none; }

@media (prefers-reduced-motion: reduce) { .caret, .blink { animation: none; } .card { transition: none; } }
