/* Inficko – vzhled. Systémové písmo pro text (rychlost), Baloo 2 pro logo a nadpisy sekcí. */
@font-face {
  font-family: "Baloo 2"; src: url("../fonts/Baloo2.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
}

:root {
  --brand: #ff5a2a; --brand-2: #ff3d5a; --brand-ink: #d63d12; --sun: #ffc233; --teal: #12b5a5;
  --ink: #14213d; --text: #2b3445; --muted: #667085; --line: #ebe6e1; --line-2: #f3efeb;
  --bg: #faf7f4; --card: #fff; --soft: #fff2ea;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 4px 16px rgba(20, 33, 61, .05);
  --shadow-h: 0 2px 4px rgba(20, 33, 61, .06), 0 10px 28px rgba(20, 33, 61, .1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Baloo 2", var(--font);
  --header: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.small { font-size: 14px; color: var(--muted); }
.dot { color: #c3bcb5; margin: 0 6px; }
.empty { padding: 28px; background: var(--card); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ------------------------------------------------ hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.wm { font: 800 31px/1 var(--display); letter-spacing: -.5px; position: relative; top: 2px; }
.di { position: relative; }
.di::after { content: ""; position: absolute; left: 50%; top: .02em; width: .2em; height: .2em; margin-left: -.1em;
  border-radius: 50%; background: var(--sun); }
.di2::after { background: var(--teal); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.header-day { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; line-height: 1.3; }
.header-day b { color: var(--ink); font-weight: 600; }
.header-day a { color: var(--brand-ink); font-weight: 600; }
.holiday { display: inline-block; background: #fff4d6; color: #8a5a00; border-radius: 99px; padding: 1px 9px; font-size: 13px; font-weight: 600; }
.search { margin-left: auto; display: flex; align-items: center; background: var(--line-2); border-radius: 99px;
  padding: 0 4px 0 16px; width: min(340px, 34vw); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { background: #fff; border-color: var(--brand); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; padding: 9px 0; min-width: 0; color: var(--ink); outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.search button:hover { color: var(--brand); }
.search-toggle { display: none; margin-left: auto; border: 0; background: var(--line-2); width: 42px; height: 42px; border-radius: 50%; color: var(--ink); cursor: pointer; place-items: center; }

.nav { border-top: 1px solid var(--line-2); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a { --c: var(--brand); flex: none; padding: 6px 13px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; position: relative; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a[aria-current] { background: var(--c); color: #fff; }
.nav .nav-util { color: var(--muted); }
.nav .nav-util:first-of-type { margin-left: 10px; }
.nav .nav-util:first-of-type::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 1px; background: var(--line); }

.crumbs { padding-top: 16px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #c3bcb5; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs [aria-current] { color: var(--text); display: inline-block; max-width: min(50ch, 80vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ------------------------------------------------ obecné prvky */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-head h2, .sec-title, .box-head h2 { font: 800 25px/1.15 var(--display); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sec-title { margin: 30px 0 14px; }
.sec-head h2 svg { color: var(--brand); }
.sec-more, .box-head a { color: var(--brand-ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sec-more:hover svg, .box-head a:hover svg { transform: translateX(3px); }
.sec-more svg, .box-head a svg { transition: transform .2s; }
.live { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } * { transition: none !important; } }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font: 600 15px/1 var(--font); padding: 12px 20px;
  border-radius: 99px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255, 90, 42, .3); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--brand-ink); }

.tag { --c: var(--brand); display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--c); margin-bottom: 6px; }
.tag:hover { color: var(--c); text-decoration: underline; }
.src { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); white-space: nowrap; }
.src i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); row-gap: 4px; }
.more-src { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 10px 3px 8px; border-radius: 99px;
  background: var(--soft); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.more-src:hover { background: var(--brand); color: #fff; }
.row .more-src { margin-left: 0; }
.perex { color: #4a5262; margin: 6px 0 10px; font-size: 15px; }

/* ------------------------------------------------ karty */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: var(--shadow-h); }
.card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17px; line-height: 1.32; font-weight: 700; margin-bottom: 10px; letter-spacing: -.1px; }
.card-title a:hover { color: var(--brand-ink); }
.card .meta { margin-top: auto; }
.thumb { --c: var(--brand); display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 6%, #fff)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px var(--display); color: color-mix(in srgb, var(--c) 70%, #000); opacity: .5; }
.thumb.noimg img { display: none; }

.card-xl { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 18px; }
.card-xl .thumb { aspect-ratio: auto; min-height: 300px; }
.card-xl .card-body { padding: 24px 26px; }
.card-xl .card-title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -.4px; }
.card-xl .perex { font-size: 16px; }
.card-l .card-title { font-size: 19px; }
.card-s { box-shadow: none; background: none; border-radius: 0; overflow: visible; }
.card-s:hover { box-shadow: none; }
.card-s .card-body { padding: 0; }
.card-s .card-title { font-size: 16px; margin-bottom: 6px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.list-compact { list-style: none; margin: 18px 0 0; padding: 6px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.list-compact li { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.list-compact li:nth-last-child(-n+2) { border-bottom: 0; }

/* ------------------------------------------------ úvod */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 22px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header) + 14px); }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.box-head h2 { font-size: 21px; }
.box-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.box-note a { text-decoration: underline; }

.stream { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row > time { font-size: 13px; font-weight: 600; color: var(--brand-ink); padding-top: 2px; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 600; line-height: 1.35; display: block; color: var(--ink); margin-bottom: 3px; font-size: 15px; }
.row-title:hover { color: var(--brand-ink); }
.row .meta .tag { margin: 0; font-size: 11px; }
.box-live .stream { max-height: 640px; overflow-y: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }
.stream-wide { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; }
.stream-wide .row { grid-template-columns: 82px 1fr; padding: 16px 0; }
.stream-wide .row-title { font-size: 17px; }
.stream-wide .perex { font-size: 14.5px; margin: 4px 0 6px; }

.wx-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wx-mini a { display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 12px; background: #f6f9ff; }
.wx-mini a:hover { background: #eaf2ff; color: inherit; }
.wx-mini .wxi { grid-row: span 2; }
.wx-mini .wx-city { font-size: 13px; color: var(--muted); font-weight: 600; grid-column: 2 / 4; }
.wx-mini .wx-t { font: 800 22px/1 var(--display); color: var(--ink); }
.wx-mini .wx-range { font-size: 12px; color: var(--muted); }

.traffic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.traffic-stats a { background: #fff1f0; border-radius: 12px; padding: 8px 10px; text-align: center; }
.traffic-stats a:nth-child(2) { background: #fff5e8; }
.traffic-stats a:nth-child(3) { background: #f2f5fa; }
.traffic-stats b { display: block; font: 800 24px/1.1 var(--display); color: var(--ink); }
.traffic-stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.traffic-list { list-style: none; margin: 0; padding: 0; }
.traffic-list a { display: block; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.traffic-list b { display: block; font-size: 12.5px; color: #de0602; }
.traffic-list span { color: var(--text); line-height: 1.35; display: block; }

.box-svatek { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #fff6e5, #ffeede); }
.svatek-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--brand); flex: none; box-shadow: var(--shadow); }
.box-svatek p { margin: 0; }
.svatek-name { font: 800 22px/1.2 var(--display); color: var(--ink); }
.box-svatek a { font-size: 14px; font-weight: 600; color: var(--brand-ink); display: inline-flex; gap: 4px; align-items: center; }

.band { margin-top: 40px; }
.popular { list-style: none; counter-reset: pop; margin: 0; padding: 18px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; }
.popular li { counter-increment: pop; display: flex; gap: 12px; }
.popular li::before { content: counter(pop); font: 800 34px/1 var(--display); color: var(--brand); opacity: .9; min-width: 24px; }

.cat-sec { margin-top: 44px; }
.cat-sec .sec-head h2 { position: relative; padding-left: 16px; }
.cat-sec .sec-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 6px; width: 6px; border-radius: 6px; background: var(--c); }
.cat-sec .sec-head h2 a:hover { color: var(--c); }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.cat-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px; }
.cat-grid > .cat-list:only-child { grid-column: 1 / -1; }
/* řádková karta: malý náhled vlevo, titulek a zdroj vpravo */
.card-r { flex-direction: row; gap: 14px; box-shadow: none; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line-2); overflow: visible; align-items: flex-start; }
.card-r:last-child { border-bottom: 0; }
.card-r:hover { box-shadow: none; }
.card-r .thumb { width: 132px; flex: none; border-radius: 10px; aspect-ratio: 3 / 2; }
.card-r .thumb-fallback { font-size: 13px; }
.card-r .card-body { padding: 0; min-height: 88px; }
.card-r .card-title { font-size: 16px; margin-bottom: 8px; }
.card-r .meta { margin-top: auto; }

/* ------------------------------------------------ kategorie, seznamy */
.page-head { padding: 22px 20px 6px; }
.page-head h1 { font: 800 clamp(30px, 4vw, 42px)/1.1 var(--display); letter-spacing: -.5px; }
.page-head[style] h1 { display: inline-flex; align-items: center; gap: 14px; }
.page-head[style] h1::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.lead { font-size: 18px; color: #4a5262; margin: 8px 0 18px; max-width: 70ch; }
.cat-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.cat-top > .card-xl { grid-column: 1 / -1; margin: 0; }
.cat-top > .card-s { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-top > .card-s .card-body { padding: 14px 16px; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 22px 0 10px; }

/* ------------------------------------------------ téma */
.topic { padding-top: 10px; }
.topic-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--card); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.topic-head .tag { font-size: 13px; }
.topic-head h1 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.5px; line-height: 1.15; font-weight: 800; margin-bottom: 12px; }
.topic-meta { color: var(--muted); font-size: 15px; }
.topic-meta b { color: var(--ink); }
.topic-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--line-2); }
.topic-img img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.coverage { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coverage li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; border-left: 4px solid var(--line); transition: border-color .2s; }
.coverage li:hover { border-left-color: var(--c); }
.coverage h3 { font-size: 19px; margin: 6px 0 6px; line-height: 1.3; }
.coverage h3 a:hover { color: var(--brand-ink); }
.coverage p { color: #4a5262; margin: 0 0 8px; }
.cov-src { font-size: 14px; color: var(--muted); display: flex; align-items: center; }
.cov-link { font-size: 14px; font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 5px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 44px; }
.share > span { font-weight: 600; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font: 600 14px var(--font); border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; }
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn.fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.x { background: #000; border-color: #000; color: #fff; }
.share-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.copied { border-color: #22c55e; color: #15803d; }

/* ------------------------------------------------ zdroje */
.source-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.source-list a { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.source-list i { width: 12px; height: 12px; border-radius: 3px; }
.source-list span { font-size: 13px; color: var(--muted); }
.search-big { width: 100%; max-width: 640px; background: #fff; border: 1px solid var(--line); padding: 4px 4px 4px 18px; margin: 10px 0 20px; }
.search-big input { font-size: 17px; padding: 10px 0; }
.search-big .btn { padding: 10px 18px; }

/* ------------------------------------------------ počasí */
.wx-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.wx-grid a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "city icon" "t icon" "desc desc" "range range"; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; transition: box-shadow .2s; }
.wx-grid a:hover { box-shadow: var(--shadow-h); color: inherit; }
.wx-grid .wx-city { grid-area: city; font-weight: 700; color: var(--ink); }
.wx-grid .wxi { grid-area: icon; }
.wx-grid .wx-t { grid-area: t; font: 800 30px/1.1 var(--display); color: var(--ink); }
.wx-grid .wx-desc { grid-area: desc; font-size: 14px; color: var(--muted); }
.wx-grid .wx-range { grid-area: range; font-size: 13px; color: var(--muted); margin-top: 4px; }
.attribution { margin-top: 16px; }
.attribution a { text-decoration: underline; }
.wx-now { display: grid; grid-template-columns: auto auto 1fr; gap: 20px 28px; align-items: center; background: linear-gradient(135deg, #eef5ff, #fff7ef);
  border-radius: 22px; padding: 24px 28px; box-shadow: var(--shadow); }
.wx-now-t { font: 800 64px/1 var(--display); color: var(--ink); margin: 0; }
.wx-now-d { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.wx-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: end; gap: 10px 26px; margin: 0; }
.wx-facts dt { font-size: 13px; color: var(--muted); }
.wx-facts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 17px; }
.wx-hours { list-style: none; margin: 0; padding: 10px; display: flex; gap: 4px; overflow-x: auto; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-snap-type: x mandatory; }
.wx-hours li { flex: none; width: 70px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0;
  border-radius: 12px; scroll-snap-align: start; }
.wx-hours li:first-child { background: var(--soft); }
.wx-hours .h { font-size: 13px; color: var(--muted); font-weight: 600; }
.wx-hours b { font-size: 17px; color: var(--ink); }
.p { font-size: 12.5px; color: var(--muted); }
.p.wet { color: #1d6fd8; font-weight: 600; }
.wx-days { list-style: none; margin: 0; padding: 4px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.wx-days li { display: grid; grid-template-columns: 150px 44px 1fr 110px 80px 70px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.wx-days li:last-child { border-bottom: 0; }
.wx-days .d b { color: var(--ink); }
.wx-days .d { font-size: 15px; color: var(--muted); }
.wx-days .desc { font-size: 15px; }
.wx-days .t b { font-size: 18px; color: var(--ink); }
.wx-days .t span { color: var(--muted); margin-left: 6px; }
.wx-days .wind { font-size: 13px; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips a:hover { border-color: var(--brand); }

/* ------------------------------------------------ svátky */
.nd-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nd-days li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.nd-days .is-today { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; transform: scale(1.03); box-shadow: 0 10px 30px rgba(255, 90, 42, .3); }
.nd-days .is-today .nd-name, .nd-days .is-today .nd-when { color: #fff; }
.nd-when { font-size: 14px; color: var(--muted); font-weight: 600; }
.nd-name { font: 800 26px/1.15 var(--display); color: var(--ink); }
.nd-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nd-month { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.nd-month h3 { font: 800 21px var(--display); margin-bottom: 6px; color: var(--brand-ink); }
.nd-month ol { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nd-month li { padding: 3px 0; border-bottom: 1px dashed var(--line-2); }
.nd-month li span { display: inline-block; width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nd-month li em { color: #8a5a00; font-style: normal; font-size: 12.5px; background: #fff4d6; border-radius: 6px; padding: 0 6px; }
.nd-month li.is-today { background: var(--soft); border-radius: 6px; font-weight: 700; }

/* ------------------------------------------------ texty */
.prose { padding-top: 22px; padding-bottom: 20px; }
.prose h1 { font: 800 clamp(30px, 4vw, 40px)/1.1 var(--display); margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-ink); text-decoration: underline; }
.prose code { background: var(--line-2); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.table th { background: var(--line-2); }
.notfound { text-align: center; padding: 60px 20px; }
.notfound .mark { margin: 0 auto 18px; }
.notfound .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------ patička, cookies */
.site-footer { margin-top: 64px; background: var(--ink); color: #c8cfdc; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; padding-top: 44px; padding-bottom: 30px; }
.footer-brand p { margin-top: 14px; max-width: 36ch; }
.footer-h { color: #fff; font: 800 18px var(--display); margin: 0 0 10px; }
.footer-h:not(:first-child) { margin-top: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; }
.cols-2 { columns: 2; column-gap: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #98a2b6; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; z-index: 60; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(20, 33, 61, .25); padding: 18px 20px; display: flex; gap: 18px; align-items: center; }
.cookie h2 { font-size: 17px; margin-bottom: 4px; }
.cookie p { margin: 0; font-size: 14px; }
.cookie a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie[hidden] { display: none; }

/* ------------------------------------------------ responzivita */
@media (max-width: 1100px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
  .popular { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-template-columns: 1fr; }
  .card-xl .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .header-day { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 104px; }
  .home-top { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .box-live { grid-column: 1 / -1; }
  .box-live .stream { max-height: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-top, .grid-3 { grid-template-columns: 1fr 1fr; }
  .topic-head { grid-template-columns: 1fr; }
  .topic-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wx-days li { grid-template-columns: 110px 40px 1fr 90px 64px; }
  .wx-days .wind { display: none; }
  .wx-facts { grid-column: 1 / -1; justify-content: start; }
  .nd-days { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header: 100px; }
  body { font-size: 15.5px; }
  .wrap { padding: 0 14px; }
  .header-top { height: 56px; gap: 10px; }
  .wm { font-size: 27px; }
  .logo .mark { width: 32px; height: 32px; }
  .search { display: none; position: absolute; left: 10px; right: 10px; top: 8px; width: auto; z-index: 2; background: #fff; border-color: var(--brand); box-shadow: var(--shadow-h); }
  .site-header.search-open .search { display: flex; }
  .search-toggle { display: grid; }
  .nav-inner { height: 44px; padding: 0 10px; }
  .home-top { padding-top: 14px; }
  .sec-head h2, .sec-title { font-size: 22px; }
  .grid-2, .grid-3, .cat-top, .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  /* malé karty na mobilu jako řádek s náhledem vpravo – víc zpráv na obrazovku */
  .grid-2 .card-m, .grid-3 .card-m, .cat-top .card-m { flex-direction: row-reverse; align-items: stretch; }
  .grid-2 .card-m .thumb, .grid-3 .card-m .thumb, .cat-top .card-m .thumb { width: 118px; flex: none; aspect-ratio: auto; }
  .grid-2 .card-m .card-body, .grid-3 .card-m .card-body, .cat-top .card-m .card-body { padding: 12px 14px; }
  .grid-2 .card-m .card-title, .grid-3 .card-m .card-title, .cat-top .card-m .card-title { font-size: 16px; }
  .grid-2 .card-m .thumb-fallback { font-size: 14px; }
  .card-r { flex-direction: row-reverse; }
  .card-r .thumb { width: 104px; }
  .card-r .card-body { min-height: 70px; }
  .cat-list { padding: 0 14px; }
  .card-xl .card-body { padding: 16px 16px 14px; }
  .card-xl .card-title { font-size: 22px; }
  .card-xl .perex { font-size: 15px; }
  .list-compact { grid-template-columns: 1fr; padding: 4px 16px; }
  .list-compact li:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
  .side { grid-template-columns: 1fr; }
  .box-live .row:nth-child(n+7) { display: none; }
  .card-l .perex { display: none; }
  .popular { grid-template-columns: 1fr; }
  .stream-wide { padding: 4px 14px; }
  .stream-wide .row { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .stream-wide .row > time { padding: 0; }
  .topic-head { padding: 18px; border-radius: 18px; gap: 16px; }
  .crumbs li:last-child { display: none; }
  .crumbs li:nth-last-child(2)::after { content: none; }
  .topic-head .btn { width: 100%; }
  .coverage li { padding: 14px 16px; }
  .coverage h3 { font-size: 17px; }
  .source-list { grid-template-columns: 1fr; }
  .wx-now { grid-template-columns: auto 1fr; padding: 18px; }
  .wx-now .wxi { width: 72px; height: 72px; }
  .wx-now-t { font-size: 50px; }
  .wx-facts { grid-template-columns: repeat(2, auto); }
  .wx-days { padding: 4px 12px; }
  .wx-days li { grid-template-columns: 1fr 36px 76px 58px; gap: 8px; }
  .wx-days .desc { display: none; }
  .wx-days .wxi { width: 36px; height: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .nd-days { gap: 10px; }
  .nd-name { font-size: 21px; }
  .lead { font-size: 16.5px; }
}
