/* CNN Prima News – barvy odvozené z oficiálního loga (Wikimedia Commons) */
:root {
  --cnn-red: #CC0000;
  --prima-navy: #002F68;
  --prima-blue: #013F7E;
  --prima-sky: #1281EC;
  --paper: #F6F9FF;
  --silver: #D9D9D9;
  --ok: #138a36; --warn: #c77700; --bad: #CC0000;
  --bg: #eef2f8; --card: #ffffff; --text: #0d1726; --muted: #5a6577; --line: #d8dee8;
  --radius: 14px; --tap: 52px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #07111f; --card: #0f1d33; --text: #eef3fb; --muted: #9fb0c8; --line: #22344f; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; padding-bottom: calc(68px + var(--safe-bottom)); font-size: 17px; line-height: 1.4; }
a { color: var(--prima-sky); }
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--safe-top)) 14px 8px; background: var(--prima-navy); border-bottom: 3px solid var(--cnn-red); }
.brand { display: flex; align-items: center; }
.logo { height: 34px; width: auto; display: block; border-radius: 3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { color: #fff; text-decoration: none; font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #888; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.live-dot.on { background: #2ecc71; } .live-dot.off { background: var(--cnn-red); }
main { padding: 14px; max-width: 760px; margin: 0 auto; outline: none; }
h1 { font-size: 24px; margin: 4px 0 12px; } h2 { font-size: 19px; margin: 18px 0 8px; } h3 { margin: 0 0 6px; font-size: 17px; }
.muted { color: var(--muted); font-size: 15px; } .small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; }
.card.accent { border-left: 6px solid var(--cnn-red); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row > .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { appearance: none; border: 0; border-radius: 12px; min-height: var(--tap); padding: 12px 16px; font-size: 17px; font-weight: 650;
  background: var(--prima-blue); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn:active { transform: scale(.98); } .btn[disabled] { opacity: .5; }
.btn.red { background: var(--cnn-red); } .btn.sky { background: var(--prima-sky); } .btn.ok { background: var(--ok); } .btn.warn { background: var(--warn); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn.block { width: 100%; } .btn.big { min-height: 72px; font-size: 20px; } .btn.sm { min-height: 40px; padding: 6px 12px; font-size: 15px; }
.btn.sel { outline: 4px solid var(--prima-sky); outline-offset: 2px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 15px; }
input, textarea, select { width: 100%; font: inherit; font-size: 17px; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--prima-sky); outline-offset: 0; border-color: transparent; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 96px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; justify-content: space-between; }
.tile b { font-size: 17px; } .tile span.ic { font-size: 28px; } .tile small { color: var(--muted); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 8px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabbar a span { font-size: 22px; } .tabbar a.active { color: var(--cnn-red); }
.badge { position: absolute; top: 4px; right: 22%; background: var(--cnn-red); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 6px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-btn { min-height: 110px; font-size: 21px; flex-direction: column; }
.status-btn small { font-weight: 500; font-size: 13px; opacity: .9; }
.st-jedu { background: var(--warn); } .st-na_miste { background: var(--prima-sky); } .st-vysilam { background: var(--cnn-red); } .st-hotovo { background: var(--ok); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #fff; background: #667; }
.pill.jedu { background: var(--warn); } .pill.na_miste { background: var(--prima-sky); } .pill.vysilam { background: var(--cnn-red); } .pill.hotovo { background: var(--ok); }
.pill.prijedu { background: var(--ok); } .pill.neprijedu { background: var(--cnn-red); } .pill.nevim { background: var(--warn); } .pill.none { background: #6b7688; }
.map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0; z-index: 0; }
.results { list-style: none; padding: 0; margin: 6px 0; } .results li { padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; } .results li:active { background: var(--line); }
.list-item { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; text-decoration: none; color: inherit; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { padding: 4px 0 10px 12px; position: relative; font-size: 15px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--prima-sky); }
.toasts { position: fixed; left: 10px; right: 10px; top: calc(70px + var(--safe-top)); z-index: 3000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--prima-navy); color: #fff; border-left: 6px solid var(--cnn-red); padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 16px; animation: tin .25s ease-out; }
.toast b { display: block; } @keyframes tin { from { transform: translateY(-10px); opacity: 0; } }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.hint { background: rgba(18,129,236,.12); border: 1px solid rgba(18,129,236,.4); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.hint.warn { background: rgba(199,119,0,.12); border-color: rgba(199,119,0,.5); }
.counter { font-variant-numeric: tabular-nums; font-weight: 700; } .counter.over { color: var(--cnn-red); }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; }
.switch input { width: 52px; height: 30px; accent-color: var(--prima-sky); }
.rec { animation: pulse 1s infinite; } @keyframes pulse { 50% { opacity: .55; } }
.login-wrap { max-width: 420px; margin: 20px auto; } .login-logo { width: 100%; max-width: 360px; display: block; margin: 10px auto 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Prompter */
.prompter { position: fixed; inset: 0; z-index: 5000; background: #000; color: #fff; display: flex; flex-direction: column; }
.prompter .pbar { display: flex; gap: 6px; padding: calc(8px + var(--safe-top)) 8px 8px; background: #111; flex-wrap: wrap; align-items: center; }
.prompter .pbar .btn { min-height: 44px; padding: 6px 12px; font-size: 16px; }
.prompter .ptext { flex: 1; overflow-y: auto; padding: 30vh 6vw 60vh; font-size: var(--pfs, 38px); line-height: 1.35; font-weight: 600; white-space: pre-wrap; }
.prompter .ptext h4 { color: #ffcf33; font-size: .6em; text-transform: uppercase; letter-spacing: .08em; margin: 1.2em 0 .3em; }
.prompter.mirror .ptext { transform: scaleX(-1); }
.prompter .guide { position: absolute; left: 0; right: 0; top: 34%; height: 3px; background: rgba(204,0,0,.6); pointer-events: none; }
.leaflet-container { font: inherit; }
[hidden] { display: none !important; }

/* ---- živá poloha, navigace, záznamy ---- */
.livedot { border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c), 0 2px 6px rgba(0,0,0,.35); animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 2px var(--c), 0 0 0 0 rgba(18,129,236,.45); } 50% { box-shadow: 0 0 0 2px var(--c), 0 0 0 10px rgba(18,129,236,0); } }
.card.live { border-left: 6px solid #1281EC; }
.card.live.stale { border-left-color: #b9b9b9; background: #f5f5f5; }
.card.sharebar { border: 2px solid #CC0000; background: #fff6f6; }
.livestats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; text-align: center; }
.livestats > div { background: #F6F9FF; border-radius: 10px; padding: 6px 4px; }
.livestats small { display: block; color: #556; font-size: 12px; }
.livestats b { font-size: 18px; color: #002F68; }
.navscreen { position: fixed; inset: 0; z-index: 3000; background: #fff; display: flex; flex-direction: column; }
.navtop { background: #002F68; color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; }
.navturn { font-size: 22px; font-weight: 800; line-height: 1.2; }
.navturnd { font-size: 16px; opacity: .85; margin-top: 2px; }
.navmap { flex: 1; min-height: 200px; }
.navfollow { position: absolute; right: 12px; top: calc(env(safe-area-inset-top) + 110px); z-index: 3100; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.3); color: #1281EC; }
.navfollow.off { color: #999; }
.navbottom { padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px); background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters label { margin: 0; font-size: 13px; }
.filters label:first-child { grid-column: 1 / -1; }
.filters select, .filters input { width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 5px 4px; border-bottom: 1px solid #D9D9D9; }
