:root {
  --bg: #12131a;
  --panel: #1c1e29;
  --line: #2c2f3e;
  --text: #ecedf3;
  --muted: #9a9db0;
  --accent: #ffcc33;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--accent); text-decoration: none; letter-spacing: .02em; }
.back { margin-left: auto; text-decoration: none; }
#search {
  flex: 1; max-width: 420px; margin-left: auto;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1rem;
}

.cats { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.cats button {
  flex: none; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit;
}
.cats button.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }

main { max-width: 1200px; margin: 0 auto; padding: 0 16px 32px; }
.note { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .12s, border-color .12s;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent); }
.thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }
.thumb.ph { display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: rgba(255,255,255,.9); }
.card .name { padding: 8px 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.play h1 { margin: 16px 0 12px; font-size: 1.6rem; }
.frame {
  position: relative; width: 100%; background: #000;
  border-radius: var(--radius); overflow: hidden;
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame.fake-fs { position: fixed; inset: 0; z-index: 100; border-radius: 0; aspect-ratio: auto !important; max-width: none !important; width: 100vw; height: 100vh; }
.controls { display: flex; align-items: center; gap: 12px; margin: 10px 0 20px; }
.controls button {
  padding: 8px 16px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: #111; font: inherit; font-weight: 700;
}
.tag { color: var(--muted); font-size: .9rem; }
.info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 12px; margin-bottom: 24px; }
.info h2 { font-size: 1.05rem; margin: 14px 0 4px; }
.credit { color: var(--muted); font-size: .85rem; }

.foot { text-align: center; color: var(--muted); padding: 24px 16px; border-top: 1px solid var(--line); }
.page { max-width: 720px; }

.hero { margin: 18px 0 2px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
