:root {
  --bg: #0b0d17;
  --card: #141726;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0fa;
  --muted: #9aa0bd;
  --accent: #e4f24b;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 40px;
}

a { color: inherit; }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.top h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.top .by { color: var(--muted); margin-top: 4px; }
.top input {
  width: 300px; max-width: 100%;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font: inherit; font-size: 14px;
}
.top input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

section + section { margin-top: 48px; }
h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: rgba(228, 242, 75, 0.45); transform: translateY(-2px); }
.cover { display: block; aspect-ratio: 16 / 9; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 700; font-size: 22px; background: #13206f; }

.meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta h2 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.meta h2 a { text-decoration: none; }
.meta h2 a:hover { color: var(--accent); }
.meta p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.row { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.links { display: flex; align-items: center; gap: 14px; }
.links a { text-decoration: none; color: var(--text); white-space: nowrap; }
.links a:hover { color: var(--accent); }
.links a.dl { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }
.links a.dl:hover { border-color: var(--accent); }
.badge { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; vertical-align: 2px; }

.empty { color: var(--muted); padding: 40px 0; }
.empty code { font-family: var(--mono); color: var(--text); }
.foot { margin-top: 56px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
