@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(/fonts/inter-tight-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(/fonts/inter-tight-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url(/fonts/inter-tight-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url(/fonts/inter-tight-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }

:root { --bg: #050506; --fg: #f4f4f6; --dim: rgba(244,244,246,.55); --glass: rgba(255,255,255,.07); --line: rgba(255,255,255,.14); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.4 "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1400px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px 64px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.brand { color: var(--fg); text-decoration: none; font-weight: 800; font-size: clamp(22px, 4vw, 34px); letter-spacing: -.02em; }
.tag { color: var(--dim); font-size: 15px; }

.gate { margin: auto; width: min(340px, 100%); display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12vh; }
.gate__field { flex: 1; }
.gate input { width: 100%; height: 52px; padding: 0 20px; border-radius: 26px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); font: inherit; font-size: 17px; outline: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.gate input:focus { border-color: rgba(255,255,255,.4); }
.gate__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--fg); color: var(--bg); font: 800 20px/1 "Inter Tight", sans-serif; cursor: pointer; }
.gate__btn:disabled { opacity: .5; cursor: progress; }
.gate__msg { flex-basis: 100%; margin: 4px 20px 0; min-height: 1.4em; color: var(--dim); font-size: 14px; }
.gate.is-bad input { border-color: #ff5a5a; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 32px 20px; }
.item { margin: 0; }
.item video { display: block; width: 100%; aspect-ratio: auto 16 / 9; background: #000; border-radius: 14px; object-fit: contain; }
.item figcaption { margin-top: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
