/* Minecraft Sketch Bros – v2
   Značka podle YouTube kanálu TGK: černo-vínový základ, červená = akce (Download),
   zlatá = verze, zelená fajfka = funguje. Rozvržení podle zvyklostí (9minecraft, Modrinth, Feed The Mods). */

@font-face { font-family: "Rubik"; src: url(fonts/rubik-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(fonts/rubik-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(fonts/rubik-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0f0b0c;
  --bg-2: #181213;
  --bg-3: #221a1b;
  --bg-4: #2c2224;
  --line: #33282a;
  --text: #f4efef;
  --muted: #b9adaf;
  --dim: #877b7d;
  --crimson: #5a0a11;
  --crimson-2: #3b060b;
  --red: #e31b25;
  --red-2: #ff3a43;
  --gold: #f7a823;
  --green: #4ad15f;
  --head: "Rubik", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: 500 12px/1 var(--mono); padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }

/* ---------- header ---------- */
.hdr__top { background: var(--crimson); border-bottom: 1px solid #000; }
.hdr__in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo__img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.logo__txt { display: flex; flex-direction: column; line-height: .9; }
.logo__mc { font: 700 11px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.logo__sb { font: 800 25px/1 var(--head); color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 0 #2a0307; margin-top: 3px; }
.hdr__search { flex: 1; max-width: 560px; margin-left: 14px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border: 0; border-radius: 8px; background: #fff; color: #6b6264; text-align: left; font-size: 15px; }
.hdr__search span { flex: 1; }
.hdr__search kbd { background: #eee6e7; color: #6b6264; }
.pf { display: flex; background: var(--crimson-2); border-radius: 8px; padding: 3px; margin-left: auto; }
.pf button { border: 0; background: none; color: #e9c9cc; padding: 7px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.pf button[aria-pressed="true"] { background: #fff; color: var(--crimson); }
.hdr__saved { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--crimson-2); text-decoration: none; font-weight: 600; font-size: 14px; color: #f3d9db; }
.hdr__saved.has { background: var(--gold); color: #2a1600; }
.hdr__menu { display: none; width: 44px; height: 40px; border: 0; border-radius: 8px; background: var(--crimson-2); position: relative; }
.hdr__menu span, .hdr__menu span::before, .hdr__menu span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; content: ""; border-radius: 2px; }
.hdr__menu span { top: 19px; } .hdr__menu span::before { top: -6px; left: 0; } .hdr__menu span::after { top: 6px; left: 0; }

.hdr__nav { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hdr__navin { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; }
.nav a { display: block; padding: 15px 14px 13px; text-decoration: none; font: 600 15px/1 var(--head); color: var(--muted); border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--red); }
.nav__yt { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 600 14px/1 var(--head); color: var(--red-2); }
.nav__yt:hover { color: #fff; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding-bottom: 48px; }
.main { min-width: 0; }
.side { display: grid; gap: 20px; }

/* ---------- buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; border: 0; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn--dl { background: var(--red); color: #fff; font: 700 17px/1 var(--head); padding: 0 24px; height: 48px; }
.btn--dl:hover { background: var(--red-2); }
.btn--ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-4); }
.btn--save[aria-pressed="true"] { background: var(--gold); color: #2a1600; border-color: var(--gold); }
.btn--yt { background: var(--red); color: #fff; }
.btn--yt:hover { background: var(--red-2); }
.btn--block { width: 100%; margin-top: 14px; }
.linkish { background: none; border: 0; color: var(--dim); text-decoration: underline; padding: 0; font-size: 14px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.chip--java { background: #13261a; border-color: #1f4a2b; color: #7fe394; }
.chip--bedrock { background: #102236; border-color: #1c3d5e; color: #7cc0ff; }
.badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font: 700 13px/1 var(--head); }
.badge--ver { background: rgba(10,6,7,.9); color: #fff; }
.badge--ver svg { color: var(--green); }
.badge--pf { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.badge--java { background: #1f7a35; color: #fff; }
.badge--bedrock { background: #1d5fa8; color: #fff; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #5a3b3f; transform: translateY(-2px); }
.card__img { position: relative; display: block; background: #000; }
.card__img img, .card__img .noimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card__type { font: 700 11.5px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.card__type--mods { color: #6fdc6a; } .card__type--shaders { color: #ffb02e; } .card__type--texture-packs { color: #c58cff; }
.card__type--maps { color: #46d3e0; } .card__type--launchers { color: #ff6b6b; } .card__type--guides { color: #f7d046; }
.card__t { margin: 0; font: 700 16.5px/1.3 var(--head); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__t a { text-decoration: none; }
.card__t a:hover { color: var(--red-2); }
.card__date { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--dim); }
.noimg { display: block; background: url(img/tgk-avatar.jpg) center / 72px no-repeat, repeating-linear-gradient(45deg, #3b060b 0 14px, #44070d 14px 28px); }
html[data-pf="java"] [data-platform="bedrock"], html[data-pf="bedrock"] [data-platform="java"] { display: none; }

/* ---------- home ---------- */
.feat { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin: 4px 0 22px; }
.feat__lead { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); }
.feat__lead:hover { border-color: #5a3b3f; }
.feat__img { position: relative; display: block; background: #000; }
.feat__lead img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feat__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.feat__t { font: 800 24px/1.25 var(--head); letter-spacing: -.01em; }
.feat__lead:hover .feat__t { color: var(--red-2); }
.feat__side { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.feat__side .mini a { padding: 10px; margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.feat__side .mini img, .feat__side .mini .noimg { width: 130px; }
.feat__side .mini__t { font-size: 15.5px; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 34px; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--gold)); text-decoration: none; }
.cat b { font: 700 15.5px/1.15 var(--head); }
.cat span { font: 500 12px/1 var(--mono); color: var(--dim); }
.cat:hover { background: var(--bg-3); }
.cat--mods { --c: #6fdc6a; } .cat--shaders { --c: #ffb02e; } .cat--texture-packs { --c: #c58cff; }
.cat--maps { --c: #46d3e0; } .cat--launchers { --c: #ff6b6b; } .cat--guides { --c: #f7d046; }

.sec { margin-bottom: 40px; }
.sec[hidden] { display: none; }
.sec__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec__h h2 { margin: 0; display: flex; align-items: center; gap: 12px; font: 800 25px/1 var(--head); letter-spacing: -.01em; }
.sec__h h2::before { content: ""; width: 6px; height: 22px; border-radius: 2px; background: var(--red); }
.sec__h a { font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.sec__h a:hover { color: #fff; border-color: #5a3b3f; }
.sec--related { padding-bottom: 20px; }

/* ---------- sidebar boxes ---------- */
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.box__h { margin: 0 0 12px; font: 800 17px/1.2 var(--head); }
.minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini a { display: flex; gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 8px; text-decoration: none; }
.mini a:hover { background: var(--bg-3); }
.mini img, .mini .noimg { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mini > a > span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mini__t { font: 600 14px/1.3 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini a:hover .mini__t { color: var(--red-2); }
.mini__k { font: 700 10.5px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; }
.vers { list-style: none; margin: 0; padding: 0; }
.vers li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.vers li:first-child { border-top: 0; padding-top: 0; }
.vers span { color: var(--muted); font-size: 14px; }
.vers b { display: inline-flex; align-items: center; gap: 6px; font: 800 17px/1 var(--head); }
.vers b svg { color: var(--green); }
.box--yt { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; background: var(--crimson); border-color: #7a1820; }
.box--yt img { border-radius: 12px; }
.box--yt .box__h { margin-bottom: 6px; font-size: 16px; }
.box--yt p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #f1d3d5; }
.box--yt .btn { grid-column: 1 / -1; background: #fff; color: var(--crimson); }
.box--yt .btn:hover { background: var(--gold); }
.box--compat .compat { margin: 0; display: grid; grid-template-columns: 82px 1fr; gap: 10px 12px; align-items: baseline; font-size: 14px; }
.compat dt { color: var(--dim); }
.compat dd { margin: 0; font-weight: 600; }
.compat__v { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- ads ---------- */
.ad { margin: 0 0 32px; text-align: center; }
.ad--top { margin: 18px 0 22px; }
.ad--top .ad-top-ins, .ad--top .ad__ph { width: 100%; height: 90px; }
@media (max-width: 640px) { .ad--top .ad-top-ins, .ad--top .ad__ph { height: 100px; } }
.ad--side { margin: 0; }
.ad--side ins.adsbygoogle, .ad--side .ad__ph { min-height: 250px; }
.ad--in { margin: 28px 0; }
.ad--in ins.adsbygoogle, .ad--in .ad__ph { min-height: 200px; }
.ad--side:has(ins[data-ad-status="unfilled"]), .ad--in:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad__ph { display: grid; place-items: center; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--bg-2) 0 12px, #1c1517 12px 24px); border: 1px dashed var(--line); color: var(--dim); font-size: 13px; }

/* ---------- listing ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.lst__h h1 { margin: 0 0 8px; font: 800 38px/1.1 var(--head); letter-spacing: -.015em; }
.lst__h p { margin: 0 0 20px; color: var(--muted); max-width: 640px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; margin-bottom: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.toolbar__n b { color: #fff; }
.sort select { margin-left: 8px; height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-weight: 600; }
.empty { padding: 28px; border-radius: var(--r); border: 1px dashed var(--line); color: var(--muted); }
.empty p { margin-top: 0; }

/* ---------- article ---------- */
.post h1 { margin: 0 0 12px; font: 800 clamp(27px, 3vw, 36px)/1.18 var(--head); letter-spacing: -.015em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.meta__by { font-size: 14px; color: var(--dim); margin-right: 8px; }
.meta__by b { color: var(--muted); }
.meta__lbl { font-size: 13px; color: var(--dim); margin-left: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.post__img { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; background: #000; }
.post__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.toc { margin: 0 0 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.toc summary { cursor: pointer; padding: 13px 16px; font: 700 15px/1 var(--head); }
.toc ol { margin: 0; padding: 0 16px 14px 38px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.75; color: #e6dfe0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .55em; font: 800 26px/1.25 var(--head); letter-spacing: -.01em; color: #fff; }
.prose h3 { margin: 1.5em 0 .5em; font: 700 20px/1.3 var(--head); color: #fff; }
.prose a { color: var(--red-2); }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); }
.prose code { font: 500 .85em var(--mono); background: var(--bg-3); color: var(--gold); padding: 2px 6px; border-radius: 5px; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-3); }

.prose .step { display: flex; align-items: center; gap: 12px; }
.step__n { flex-shrink: 0; font: 700 13px/1 var(--head); background: var(--red); color: #fff; padding: 7px 10px; border-radius: 6px; }

.dl-box { margin: 1.4em 0 2em; padding: 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.dl-box__h { margin: 0 0 12px !important; font: 800 19px/1 var(--head); color: #fff; }
.dl-box__list { display: grid; gap: 10px; }
.dl-btn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 8px; background: var(--red); color: #fff !important; text-decoration: none; font-weight: 800; line-height: 1.25; }
.dl-btn:hover { background: var(--red-2); }
.dl-btn svg { flex-shrink: 0; }
.dl-btn__v { flex: 1; font-size: 16px; }
.dl-btn__k { font-size: 12px; font-weight: 600; opacity: .75; white-space: nowrap; }
.dl-btn--guide { background: var(--bg-3); border: 1px solid var(--line); }
.dl-btn--guide:hover { background: var(--bg-4); }
.dl-box__note { margin: 12px 0 0 !important; font-size: 13px; color: var(--dim); line-height: 1.5; }

.faq { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 14px 44px 14px 16px; font-weight: 800; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 9px; font-size: 24px; color: var(--red-2); }
.faq[open] summary::after { content: "−"; }
.faq > div { padding: 0 16px 4px; color: var(--muted); }

.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--r); background: #000; overflow: hidden; margin: 1.3em 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; margin: 0; border-radius: 0; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); background: var(--red); border-radius: 12px; }
.yt__play::after { content: ""; position: absolute; left: 29px; top: 15px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt:hover .yt__play { background: var(--red-2); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- search ---------- */
.search { position: fixed; inset: 0; z-index: 90; background: rgba(6,3,4,.8); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.search[hidden] { display: none; }
.search__box { width: min(680px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 0 0 0 18px; border-bottom: 1px solid var(--line); color: var(--dim); }
.search__bar input { flex: 1; background: none; border: 0; color: var(--text); font: 600 19px/1 var(--sans); padding: 20px 0; outline: none; }
.search__bar button { align-self: stretch; background: none; border: 0; border-left: 1px solid var(--line); padding: 0 18px; font-size: 13px; color: var(--dim); }
.search__res { max-height: 62vh; overflow-y: auto; padding: 6px; }
.search__res a { display: flex; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.search__res img, .search__res .noimg { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.search__res b { display: block; font: 600 15px/1.3 var(--head); }
.search__res small { font-size: 13px; color: var(--dim); }
.search__res a.on, .search__res a:hover { background: var(--bg-3); }
.search__res mark { background: none; color: var(--red-2); }
.search__hint { padding: 12px 12px 14px; color: var(--dim); font-size: 14px; }
.search__hint button { border: 1px solid var(--line); background: var(--bg-3); border-radius: 6px; padding: 6px 11px; margin: 8px 6px 0 0; font-size: 14px; }
.search__hint button:hover { border-color: var(--red); }

/* ---------- footer ---------- */
.ftr { background: #080506; border-top: 3px solid var(--crimson); margin-top: 20px; color: var(--muted); }
.ftr__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 44px 0 32px; }
.ftr__brand p { font-size: 14px; max-width: 38ch; margin: 14px 0 16px; }
.ftr h3 { margin: 6px 0 14px; font: 700 15px/1 var(--head); color: #fff; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 8px; font-size: 14px; }
.ftr li a { text-decoration: none; }
.ftr li a:hover { color: #fff; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hdr__search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .ad--side { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf { display: none; }
  .hdr__menu { display: block; }
  .hdr__saved { margin-left: auto; }
  .hdr__nav .nav__yt { display: none; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 13px 11px 11px; font-size: 14.5px; }
  .feat { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .hdr__in { height: 62px; gap: 10px; position: relative; }
  .logo__img { width: 38px; height: 38px; }
  .logo__sb { font-size: 21px; }
  .hdr__search { flex: 0 0 44px; width: 44px; height: 40px; padding: 0; justify-content: center; margin: 0 0 0 auto; background: var(--crimson-2); color: #fff; }
  .hdr__search span, .hdr__search kbd { display: none; }
  .hdr__saved { margin-left: 0; }
  .hdr__menu { display: none; }
  .grid, .grid--4 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .feat__t { font-size: 21px; }
  .feat__side .mini img, .feat__side .mini .noimg { width: 104px; }
  .sec__h h2 { font-size: 22px; }
  .lst__h h1 { font-size: 30px; }
  .actions .btn--dl { flex: 1 1 100%; }
  .actions .btn--ghost { flex: 1; padding: 0 10px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .dl-btn__k { display: none; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__base { flex-direction: column; }
  .toolbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- SEO doplňky ---------- */
.home__h1 { margin: 6px 0 16px; font: 800 24px/1.2 var(--head); letter-spacing: -.01em; }
.home__h1 span { color: var(--muted); font-weight: 600; }
.box__more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--red-2); text-decoration: none; }
.box__more:hover { color: #fff; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.topics a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; }
.topics a:hover { background: var(--bg-3); }
.topics b { font: 700 15px/1.2 var(--head); }
.topics a:hover b { color: var(--red-2); }
.topics span { font-size: 13px; color: var(--dim); }
.help { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.help ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.help a { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.help a:hover { color: var(--red-2); }
.lst__h p a { color: var(--red-2); }
@media (max-width: 640px) { .home__h1 { font-size: 20px; } }

/* ---------- QA opravy ---------- */
main > .layout:first-child { padding-top: 26px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.pf--m { display: none; }
@media (max-width: 1180px) {
  .feat { grid-template-columns: 1fr; }
  .feat__side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat__side .mini a { flex-direction: column; align-items: stretch; height: 100%; }
  .feat__side .mini img, .feat__side .mini .noimg { width: 100%; }
}
@media (max-width: 980px) {
  .pf--m { display: flex; margin: 0; border-radius: 0; padding: 6px 12px; gap: 6px; background: var(--crimson-2); }
  .pf--m button { flex: 1; background: rgba(255,255,255,.06); padding: 8px 6px; }
  .hdr__nav { position: relative; }
  .hdr__nav::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1px; width: 40px; background: linear-gradient(90deg, transparent, var(--bg-2)); pointer-events: none; }
}
@media (max-width: 640px) {
  .feat__side { grid-template-columns: 1fr; }
  .feat__side .mini a { flex-direction: row; align-items: center; }
  .feat__side .mini img, .feat__side .mini .noimg { width: 104px; }
  .grid .card { flex-direction: row; align-items: stretch; }
  .grid .card__img { flex: 0 0 132px; }
  .grid .card__img img, .grid .card__img .noimg { height: 100%; min-height: 92px; aspect-ratio: auto; }
  .grid .card .badges { left: 6px; bottom: 6px; }
  .grid .card .badge--pf { display: none; }
  .grid .card .badge--ver { height: 20px; font-size: 11.5px; padding: 0 6px; }
  .grid .card__body { padding: 10px 12px; gap: 4px; }
  .grid .card__t { font-size: 15px; -webkit-line-clamp: 3; }
  .grid .card__date { font-size: 12px; }
  .grid { gap: 12px; }
  .noimg { background-size: 48px, auto; }
}
@media (min-width: 1181px) {
  .feat__side { grid-auto-rows: 1fr; align-content: stretch; }
  .feat__side .mini, .feat__side .mini a { height: 100%; }
  .feat__side .mini img, .feat__side .mini .noimg { width: 150px; }
}

/* sidebar 28. 11. – bez sticky */
.browse { list-style: none; margin: 0; padding: 0; }
.browse a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font: 600 15px/1.2 var(--head); }
.browse li:first-child a { border-top: 0; padding-top: 2px; }
.browse b { font-weight: 700; font-size: 12px; line-height: 1; color: var(--dim); background: var(--bg-3); padding: 4px 7px; border-radius: 5px; min-width: 30px; text-align: center; }
.browse a:hover span { color: var(--red-2); }
.starts { list-style: none; margin: 0; padding: 0; }
.starts a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font: 600 14.5px/1.3 var(--head); }
.starts li:first-child a { border-top: 0; padding-top: 2px; }
.starts a::after { content: "→"; color: var(--dim); }
.starts a:hover::after { color: var(--red-2); }
.starts a:hover { color: var(--red-2); }
.prose code { overflow-wrap: anywhere; }
