:root {
  --bg: #07070a;
  --bg2: #101014;
  --card: #16161c;
  --ink: #f3f3f6;
  --muted: #8c8c99;
  --line: #2a2a33;
  --hot: #ff2d6a;
  --hot-dim: #ff2d6a22;
  --ok: #3ee0a0;
  --warn: #ffb020;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 15px/1.45 "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--hot); }

header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; letter-spacing: .14em; font-size: 14px;
}
.plus {
  color: var(--bg); background: var(--hot); border-radius: 3px;
  padding: 1px 5px; font-size: 10px; letter-spacing: .08em; margin-left: 6px;
}
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 13px;
}
nav a.on, nav a:hover { color: var(--ink); background: var(--bg2); }
nav a.on { outline: 1px solid var(--hot); color: var(--hot); }

main { flex: 1; padding: 18px 18px 40px; }
.toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 16px; margin: 28px 0 12px; color: var(--muted); font-weight: 600; }
.lede { color: var(--muted); max-width: 62ch; }
.kicker { color: var(--hot); letter-spacing: .16em; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.search input, .stack input, .stack select {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 8px 10px; width: min(320px, 100%);
}
.stack { display: grid; gap: 10px; max-width: 520px; }
.stack label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.stack input, .stack select { width: 100%; }
button, .btn {
  background: var(--hot); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; cursor: pointer; display: inline-block;
}
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.err { color: #ff6b6b; }
.ok { color: var(--ok); }

.masonry { columns: 5 180px; column-gap: 10px; }
.tile {
  break-inside: avoid; display: block; margin: 0 0 10px;
  background: var(--card); border-radius: 12px; overflow: hidden;
  position: relative;
}
.tile img, .tile video { width: 100%; display: block; background: #000; vertical-align: top; }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, #000c);
  font-size: 13px;
}

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: grid; gap: 6px;
}
.link-card .src { color: var(--hot); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.link-card .url { color: var(--muted); font-size: 12px; word-break: break-all; }

.watch { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } }
.hero { width: 100%; max-height: 72vh; background: #000; border-radius: 12px; display: block; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.pill, .tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg2);
  border: 1px solid var(--line); color: var(--muted);
}
.pill { color: var(--hot); border-color: var(--hot); }
a.tag.on { color: var(--hot); border-color: var(--hot); }
.ad {
  background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px;
  min-height: 90px; padding: 8px; margin-bottom: 12px;
}
.ad.placeholder { color: var(--muted); font-size: 12px; display: grid; place-items: center; }

.empty {
  border: 1px dashed var(--line); border-radius: 16px; padding: 40px 20px;
  text-align: center; color: var(--muted);
}
.empty a { color: var(--hot); }

.narrow { max-width: 720px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
td a { color: var(--ink); }

footer {
  border-top: 1px solid var(--line); padding: 14px 18px;
  display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px;
}
footer a { color: var(--muted); }

body.gate { display: grid; place-items: center; min-height: 100vh; background:
  radial-gradient(800px 400px at 50% -10%, var(--hot-dim), transparent), var(--bg); }
.gate-card {
  width: min(440px, calc(100% - 32px)); background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.gate-card h1 { font-size: 26px; margin: 0 0 10px; }
.gate-card button { width: 100%; margin-top: 12px; }
.fine { text-align: center; margin-top: 14px; }
.fine a { color: var(--muted); }

.out .reddit-embed-bq { margin: 16px 0; }
