/* OK1M.cz – dark theme */
:root {
  --bg: #0b0f14;
  --bg-2: #10161d;
  --surface: #151c25;
  --surface-2: #1b2430;
  --border: #253141;
  --text: #e3e9f0;
  --muted: #94a3b5;
  --accent: #4da8ff;        /* clear sky blue */
  --accent-2: #5fd3a8;      /* phosphor green */
  --link: #7cbcff;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 80% -200px, rgba(77, 168, 255, .08), transparent 70%);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: rgba(124, 188, 255, .35); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.brand-call { font-family: var(--mono); font-weight: 800; letter-spacing: .02em; color: var(--accent); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar, .site-nav > ul { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { text-decoration: none; font-size: 1.35rem; display: flex; align-items: baseline; }
.brand-dot { color: var(--muted); font-family: var(--mono); font-weight: 600; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.lang {
  font: 700 .8rem/1 var(--mono); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 11px; background: var(--surface);
}
.lang:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; position: relative;
}
.nav-toggle span:first-child,
.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
  position: absolute; left: 10px; width: 18px; height: 2px; background: var(--text); content: ""; transition: .2s;
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:first-child::before { left: 0; top: -6px; }
.nav-toggle span:first-child::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 8px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 6px 11px; border-radius: 8px; color: var(--muted);
  text-decoration: none; font-size: .93rem; white-space: nowrap;
}
.site-nav a:hover, .site-nav li.active > a, .site-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav .ext { font-size: .75em; margin-left: 3px; opacity: .7; }
.site-nav li[data-sub] > a { padding-right: 4px; display: inline-block; }
.sub-toggle {
  border: 0; background: none; color: var(--muted); cursor: pointer; width: 22px; height: 30px; padding: 0;
  vertical-align: middle;
}
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.site-nav li ul {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
@media (hover: hover) and (min-width: 961px) {
  .site-nav li[data-sub]:hover > ul { opacity: 1; visibility: visible; transform: none; }
}
.site-nav li[data-sub].open > ul, .site-nav li[data-sub]:focus-within > ul { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; border-top: 1px solid var(--border); max-height: calc(100vh - 58px); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 10px 16px 16px; }
  .site-nav a { padding: 10px 12px; font-size: 1rem; }
  .site-nav li[data-sub] { display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav li[data-sub] > a { flex: 1; }
  .sub-toggle { width: 44px; height: 40px; }
  .site-nav li ul {
    position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: 0; border-left: 2px solid var(--border);
    margin: 0 0 6px 14px; border-radius: 0; padding: 0 0 0 6px;
  }
  .site-nav li[data-sub].open > ul { display: block; }
  .bar, .site-nav > ul { padding-left: 16px; padding-right: 16px; }
}

/* ---------- layout ---------- */
.page { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 36px; }
.page.with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 960px) {
  .page.with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 20px 16px 48px; }
}
main { min-width: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; margin-bottom: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11, 15, 20, .96) 0%, rgba(11, 15, 20, .82) 45%, rgba(11, 15, 20, .45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 44px 36px 38px; max-width: 640px; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.2rem); line-height: 1; margin: 6px 0 14px; }
.hero .lead { color: #c9d3de; font-size: 1.08rem; margin: 0 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font: 600 .75rem/1.4 var(--mono); color: var(--accent-2); margin: 0; }
@media (max-width: 600px) { .hero-inner { padding: 30px 20px 26px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 13px; border-radius: 999px; text-decoration: none; font-size: .88rem;
  border: 1px solid var(--border); background: rgba(21, 28, 37, .8); color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.section-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 16px; font-weight: 600; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; }
.card {
  display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #3a4a5e; }
.card.has-img { grid-template-columns: 240px minmax(0, 1fr); }
.card-img { display: block; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.card-body { padding: 18px 20px; }
.card h2 { font-size: 1.2rem; line-height: 1.35; margin: 6px 0 8px; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.more { font-size: .9rem; font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .card.has-img { grid-template-columns: 1fr; }
  .card-img img { aspect-ratio: 16 / 9; }
}

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: .8rem/1.4 var(--mono); color: var(--muted); }
.tag {
  font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  color: var(--accent-2); border: 1px solid rgba(95, 211, 168, .3); padding: 4px 8px; border-radius: 999px;
}
.tag:hover { color: #000; background: var(--accent-2); }

/* ---------- entry / content ---------- */
.entry > h1, .archive-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 8px 0 22px; letter-spacing: -.01em; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.archive-head { margin-bottom: 22px; }
.archive-head h1 { margin-bottom: 14px; }

.content { font-size: 1.02rem; }
.content > :first-child { margin-top: 0; }
.content h2 { font-size: 1.4rem; margin: 2em 0 .6em; line-height: 1.3; }
.content h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.content h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: .25em 0; }
.content li::marker { color: var(--accent); }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.content strong { color: #fff; }
.content code, .mono { font-family: var(--mono); font-size: .92em; }
.content figure { margin: 1.6em 0; }
.content figure img { display: block; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); }
.content figure.small img { max-width: 420px; width: 100%; }
.content figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; text-align: center; }
.content a[data-lb] { display: block; cursor: zoom-in; }
.content iframe { border: 1px solid var(--border); border-radius: 10px; background: #fff; max-width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.6em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: 5px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.content table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.content th, .content td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: right; }
.content th:first-child, .content td:first-child { text-align: left; }
.content thead th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.content tfoot td, .content tr.total td { font-weight: 700; color: var(--accent); border-bottom: 0; }

.box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 1.4em 0;
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box h2::before, .box h3::before { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.off { color: #ff7a7a; border-color: rgba(255, 122, 122, .35); }

.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 1em 0 1.5em; }
.specs dt { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.specs dd { margin: 0; }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } .specs dd { margin-bottom: 8px; } }

.result-list { display: grid; gap: 14px; margin: 1.2em 0; }
.result {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 18px;
}
.result h2 { margin: 0 0 4px; font-size: 1.12rem; }
.result h2::before { display: none; }
.result p { margin: 0; color: var(--muted); }
.result .place { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); }
.result .place.gold::before { content: "🏆 "; }

.link-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 1.6em 0; }
.link-groups section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.link-groups h2 { font-size: 1.05rem; margin: 0 0 8px; }
.link-groups h2::before { display: none; }
.link-groups ul { margin: 0; padding-left: 1.1em; }
.link-groups li { font-size: .95rem; }

.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 2em; }
.subpage {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.subpage span { color: var(--muted); font-size: .88rem; }
.subpage:hover { border-color: var(--accent); color: var(--text); }

.contact-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.contact-card img.avatar { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.contact-card dl { margin: 0; flex: 1; min-width: 240px; }
address { font-style: normal; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); }
.post-nav a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.post-nav a span { font: 500 .78rem/1.3 var(--mono); color: var(--muted); }
.post-nav a:hover { color: var(--accent); }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 961px) { .sidebar { position: sticky; top: 130px; align-self: start; } }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.widget h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.cat-list, .cat-list ul { list-style: none; margin: 0; padding: 0; }
.cat-list ul { padding-left: 14px; border-left: 1px solid var(--border); margin: 2px 0 6px 4px; }
.cat-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.cat-list li > ul { flex-basis: 100%; }
.cat-list a { color: var(--text); text-decoration: none; padding: 4px 0; }
.cat-list a:hover { color: var(--accent); }
.cat-list span { font: .75rem/1 var(--mono); color: var(--muted); background: var(--bg-2); padding: 3px 7px; border-radius: 999px; }
.station-card .call { font: 800 1.8rem/1 var(--mono); color: var(--accent); margin-bottom: 10px; }
.station-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: .9rem; }
.station-card dt { color: var(--muted); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.station-card dd { margin: 0; }

.search-box { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); padding: 11px 14px; font: inherit; outline: none; }
.search-box button { background: none; border: 0; color: var(--muted); padding: 0 14px; cursor: pointer; }
.search-box button:hover { color: var(--accent); }
.search-box.big input { font-size: 1.15rem; padding: 14px 18px; }
.results { margin-top: 22px; display: grid; gap: 12px; }
.results a.hit { display: block; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); }
.results a.hit:hover { border-color: var(--accent); }
.results a.hit strong { display: block; color: var(--accent); }
.results a.hit span { color: var(--muted); font-size: .9rem; }
.results mark { background: rgba(77, 168, 255, .3); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); font-size: .9rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 960px) { .footer-inner { padding: 22px 16px; } }

.notfound { padding: 40px 0; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 11, .94); display: none;
  align-items: center; justify-content: center; padding: 50px 60px;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb button {
  position: absolute; background: rgba(21, 28, 37, .8); color: #fff; border: 1px solid var(--border);
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1;
}
.lb button:hover { border-color: var(--accent); color: var(--accent); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; padding: 0 70px; }
@media (max-width: 600px) { .lb { padding: 60px 8px; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 10px; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
