:root {
  --bg: #070a14;
  --panel: #10182b;
  --line: rgba(120, 160, 255, 0.18);
  --text: #e8eefc;
  --muted: #9aa8c7;
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 250, 0.14), transparent 55%),
    var(--bg);
}
.hero { position: relative; padding: 3.5rem 1.5rem 1.5rem; text-align: center; max-width: 920px; margin: 0 auto; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(110,231,255,.18), transparent 55%);
}
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-size: .75rem; margin: 0 0 .75rem; }
h1 {
  margin: 0 0 .75rem; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 auto; max-width: 40rem; color: var(--muted); line-height: 1.55; }
.grid {
  display: grid; gap: 1.1rem; padding: 1.25rem 1.25rem 3rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: 1100px; margin: 0 auto;
}
.card {
  display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent), var(--panel);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
  color: inherit; padding: 0; font: inherit;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: rgba(110,231,255,.45); outline: none; }
.cover {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  display: grid; place-items: center; position: relative;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,10,20,.85));
}
.cover-emoji { font-size: 3rem; position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.meta { padding: 1rem 1.1rem 1.15rem; }
.meta h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.meta p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.tag {
  display: inline-block; margin-top: .7rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(110,231,255,.35); border-radius: 999px; padding: .2rem .55rem;
}
.tag.warn { color: #fcd34d; border-color: rgba(252,211,77,.35); }
.footnote { max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 1.25rem; color: var(--muted); font-size: .85rem; }
.player { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 40; }
.player.hidden { display: none; }
.player-bar {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem;
  background: #0c1222; border-bottom: 1px solid var(--line);
}
.back {
  border: 1px solid var(--line); background: #152038; color: var(--text);
  border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font: inherit;
}
.back:hover { border-color: var(--accent); }
.player-title { color: var(--muted); font-size: .9rem; }
#frame { flex: 1; width: 100%; border: 0; background: #000; }
