:root {
  --bg: #070b12;
  --card: #0f1828;
  --line: #1d2b45;
  --text: #e6edf7;
  --mute: #8a9bb6;
  --acc: #22d3ee;
  --hot: #ff4d6d;
  --ok: #39d98a;
  --warn: #ffb020;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: linear-gradient(rgba(34,211,238,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34,211,238,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: var(--acc); }
a:hover { color: #7ce9f8; }
img { max-width: 100%; height: auto; display: block; }
main, header.top, footer { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 18px; }
.brand img { border-radius: 8px; }
.brand b { color: var(--acc); font-weight: 700; }
nav a { color: var(--mute); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--acc); }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 32px 0 12px; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; margin: 4px 0 6px; }
h3 a, h2 a { color: var(--text); text-decoration: none; }
h3 a:hover, h2 a:hover { color: var(--acc); }
.acc { color: var(--acc); }
.lead { color: var(--mute); font-size: 19px; max-width: 720px; }
.mute { color: var(--mute); }
.sec { margin-top: 44px; font-family: var(--mono); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.btn { display: inline-block; background: var(--acc); color: #04121a; font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; margin: 6px 8px 6px 0; border: 1px solid var(--acc); }
.btn:hover { background: #7ce9f8; color: #04121a; }
.btn.ghost { background: transparent; color: var(--acc); }
.hero { padding: 12px 0 8px; }
.lead-story { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card > div { padding: 12px 14px 16px; }
.thumb { position: relative; display: block; background: #000; aspect-ratio: 9 / 16; max-height: 360px; overflow: hidden; }
.card .thumb { aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.big { border-radius: 12px; max-height: none; }
.play { position: absolute; inset: auto 10px 10px auto; background: rgba(7,11,18,.8); color: var(--acc); border: 1px solid var(--acc); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 16px; }
.meta { font-family: var(--mono); font-size: 13px; color: var(--mute); margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kind { color: var(--acc); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.k-news { color: var(--hot); }
.k-weekly { color: var(--warn); }
.status, .cve { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.s-exploited, .cve.kev { color: var(--hot); border-color: var(--hot); }
.s-patched, .s-closed { color: var(--ok); border-color: var(--ok); }
.sum { color: var(--mute); font-size: 15px; margin: 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 28px; align-items: start; }
.story .text p { margin: 0 0 14px; }
.video { position: sticky; top: 16px; }
.yt { position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.yt-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--acc); color: #04121a; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 16px; cursor: pointer; }
.consent { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 12px; font-size: 12px; background: rgba(7,11,18,.85); color: var(--mute); }
.yt.on iframe { width: 100%; height: 100%; border: 0; }
.watch { font-size: 14px; color: var(--mute); }
.sources, .posts, .timeline { padding-left: 20px; }
.sources li, .posts li { margin: 6px 0; }
.timeline li { margin: 0 0 12px; }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-right: 6px; }
.timeline .news { color: var(--mute); font-size: 15px; }
.note { background: var(--card); border-left: 3px solid var(--acc); padding: 10px 14px; border-radius: 6px; color: var(--mute); font-size: 15px; }
.tags span { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-right: 10px; }
.legal { max-width: 760px; }
.post { max-width: 760px; }
code { font-family: var(--mono); background: var(--card); padding: 1px 4px; border-radius: 4px; }
footer { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 22px; padding-bottom: 40px; color: var(--mute); font-size: 14px; }
footer .links a { color: var(--mute); margin-right: 14px; }
@media (max-width: 720px) {
  .lead-story, .story-grid { grid-template-columns: 1fr; }
  .video { position: static; max-width: 360px; margin: 0 auto; }
  nav a { margin-left: 12px; }
}
