/* Agenturní monitor – TV (16:9). 1rem = 1 % šířky obrazovky (nastavuje app.js), takže 4K i Full HD vypadají stejně.
   Konzervativní CSS kvůli Tizen 5.0 (Chromium ~63): bez gap ve flexu, aspect-ratio, inset, clamp(), backdrop-filter. */
:root {
  --bg: #0a0e16;
  --panel: #111827;
  --panel2: #172033;
  --line: #243049;
  --text: #f3f6fb;
  --muted: #93a1b8;
  --dim: #64748b;
  --red: #e11d2e;
  --amber: #f5b301;
  --focus: #ffd23f;
}
html { font-size: 1vw; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SamsungOne", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}
#app { position: relative; width: 100rem; height: 56.25rem; margin: 0 auto; overflow: hidden; }
.hidden { display: none !important; }

/* ---------- hlavička ---------- */
#top {
  position: absolute; left: 0; top: 0; width: 100rem; height: 5rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; border-bottom: 0.1rem solid var(--line);
  background: #0d1320;
}
.brand { display: flex; align-items: center; font-weight: 800; font-size: 1.55rem; letter-spacing: 0.12rem; }
.live { width: 1rem; height: 1rem; border-radius: 50%; background: var(--red); margin-right: 0.9rem; -webkit-animation: pulse 1.6s infinite; animation: pulse 1.6s infinite; }
@-webkit-keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.status { color: var(--muted); font-size: 0.95rem; flex: 1; text-align: center; padding: 0 2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status .err { color: #fca5a5; }
.right { display: flex; align-items: center; }
.clock { text-align: right; margin-left: 1.6rem; }
#time { font-size: 2.3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
#time small { font-size: 1.2rem; color: var(--muted); margin-left: 0.2rem; }
#date { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- filtry ---------- */
#filters {
  position: absolute; left: 0; top: 5rem; width: 100rem; height: 3.6rem;
  display: flex; align-items: center; padding: 0 1.6rem; white-space: nowrap;
  border-bottom: 0.1rem solid var(--line);
}
#fin { display: flex; align-items: center; white-space: nowrap; }
.flabel { color: var(--dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08rem; text-transform: uppercase; margin-right: 0.6rem; }
.fsep { width: 0.1rem; height: 1.8rem; background: var(--line); margin: 0 0.8rem 0 0.6rem; }
.chip {
  display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  padding: 0.32rem 0.55rem; margin-right: 0.12rem; border-radius: 2rem;
  border: 0.12rem solid transparent; cursor: pointer;
}
.chip .dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: 0.05rem; }
.chip.on { background: #e8eef8; color: #0a0e16; }
.chip.focus { border-color: var(--focus); color: var(--text); }
.chip.on.focus { color: #0a0e16; box-shadow: 0 0 0 0.15rem var(--focus); }
.chip.lang { font-size: 1.05rem; font-weight: 800; padding: 0.4rem 1rem; border-color: var(--line); color: var(--text); margin: 0; }
.chip.lang.focus { border-color: var(--focus); }

/* ---------- hlavní plocha ---------- */
#main { position: absolute; left: 0; top: 8.6rem; width: 100rem; height: 44.25rem; padding: 1.2rem 2rem 1rem; }
#hero { position: absolute; left: 2rem; top: 1.2rem; width: 40rem; height: 42rem; }
#listWrap { position: absolute; left: 43.5rem; top: 1.2rem; width: 54.5rem; height: 42rem; overflow: hidden; }
#list { position: relative; top: 0; -webkit-transition: top 0.25s; transition: top 0.25s; }

/* hero */
.himg { position: relative; width: 40rem; height: 20.5rem; border-radius: 0.8rem; overflow: hidden; background: var(--panel2); }
.himg img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--panel2); }
.himg .ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 6rem; font-weight: 800; }
.hmeta { margin-top: 1.1rem; font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; }
.hmeta > * { margin-right: 0.8rem; }
.htitle { font-size: 2.05rem; font-weight: 800; line-height: 1.18; margin-top: 0.6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hsum { font-size: 1.22rem; line-height: 1.42; color: #d5deeb; margin-top: 0.75rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hsrc { margin-top: 0.9rem; }
.hsrc .row { font-size: 0.92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.35rem; }
.hsrc .row b { color: var(--text); font-weight: 600; margin-right: 0.5rem; }
.hero-fade { -webkit-animation: fadein 0.6s; animation: fadein 0.6s; }
@-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* štítky */
.cat { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06rem; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 0.3rem; color: #0a0e16; }
.brk { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06rem; padding: 0.18rem 0.55rem; border-radius: 0.3rem; background: var(--red); color: #fff; -webkit-animation: pulse 1.2s infinite; animation: pulse 1.2s infinite; }
.imp { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06rem; padding: 0.18rem 0.55rem; border-radius: 0.3rem; background: var(--amber); color: #0a0e16; }
.src { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--text); background: #1d2940; padding: 0.15rem 0.5rem; border-radius: 0.3rem; margin-right: 0.3rem; margin-bottom: 0.2rem; white-space: nowrap; }
.src i { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: 0.06rem; }
.ncount { color: var(--muted); font-size: 0.85rem; }

/* seznam */
.it {
  position: relative; display: flex; padding: 0.85rem 1rem 0.85rem 1.2rem; margin-bottom: 0.5rem;
  background: var(--panel); border-radius: 0.6rem; border: 0.14rem solid transparent;
}
.it .bar { position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 0.3rem; border-radius: 0.2rem; }
.it .tm { width: 5.2rem; flex: none; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 0.05rem; }
.it .tm small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--dim); margin-top: 0.2rem; }
.it .bd { flex: 1; min-width: 0; }
.it .ti { font-size: 1.32rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it .su { font-size: 1rem; line-height: 1.35; color: var(--muted); margin-top: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .mt { margin-top: 0.45rem; }
.it .mt .cat, .it .mt .brk, .it .mt .imp { margin-right: 0.4rem; }
.it.b { background: #2a1015; }
.it.fresh { -webkit-animation: fresh 2.5s ease-out 4; animation: fresh 2.5s ease-out 4; }
@-webkit-keyframes fresh { 0% { background: #3b3410; } 100% { background: var(--panel); } }
@keyframes fresh { 0% { background: #3b3410; } 100% { background: var(--panel); } }
.it.fresh .tm { color: var(--focus); }
body:not(.idle) .it.focus { border-color: var(--focus); background: var(--panel2); }
body.idle .it.hl { border-color: #34435f; }
.empty { color: var(--muted); font-size: 1.4rem; padding: 4rem 2rem; text-align: center; }

/* mimořádně – pruh nahoře přes obsah */
.banner {
  position: absolute; left: 0; top: 8.6rem; width: 100rem; height: 3.6rem; z-index: 5;
  background: var(--red); color: #fff; display: flex; align-items: center; padding: 0 2rem;
  font-size: 1.5rem; font-weight: 800; white-space: nowrap; overflow: hidden;
}
.banner .tag { background: #fff; color: var(--red); padding: 0.25rem 0.8rem; border-radius: 0.3rem; margin-right: 1.2rem; font-size: 1.15rem; letter-spacing: 0.1rem; -webkit-animation: pulse 1s infinite; animation: pulse 1s infinite; }
#bannerText { overflow: hidden; text-overflow: ellipsis; }

/* ticker */
#ticker { position: absolute; left: 0; top: 52.85rem; width: 100rem; height: 3.4rem; display: flex; background: #e8eef8; color: #0a0e16; overflow: hidden; }
.tlabel { flex: none; background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.1rem; padding: 0 1.4rem; display: flex; align-items: center; }
.tview { position: relative; flex: 1; overflow: hidden; }
#tickerInner { position: absolute; left: 0; top: 0; height: 3.4rem; line-height: 3.4rem; white-space: nowrap; font-size: 1.3rem; font-weight: 600; will-change: transform; }
#tickerInner span { margin-right: 1.2rem; }
#tickerInner .tt { color: var(--muted); font-weight: 700; margin-right: 0.6rem; }
#tickerInner .sep { color: var(--red); margin-right: 1.2rem; }
#tickerInner .b { color: var(--red); font-weight: 800; }
@-webkit-keyframes tick { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* toast */
.toast { position: absolute; right: 2rem; top: 9.4rem; z-index: 6; background: var(--focus); color: #0a0e16; font-weight: 800; font-size: 1.15rem; padding: 0.6rem 1.2rem; border-radius: 0.5rem; }

/* detail */
.detail { position: absolute; left: 0; top: 0; width: 100rem; height: 56.25rem; background: rgba(5, 8, 14, 0.88); z-index: 10; }
.dbox { position: absolute; left: 12rem; top: 4rem; width: 76rem; height: 48.25rem; background: var(--panel); border-radius: 1rem; border: 0.12rem solid var(--line); overflow: hidden; padding: 2rem 2.4rem; }
.dbox .dmeta { font-size: 1rem; color: var(--muted); }
.dbox .dmeta > * { margin-right: 0.8rem; }
.dbox h1 { font-size: 2.4rem; line-height: 1.18; margin: 0.8rem 0 0; font-weight: 800; }
.dbox .dsum { font-size: 1.4rem; line-height: 1.45; color: #d5deeb; margin-top: 1rem; }
.dbox h2 { font-size: 0.95rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1rem; margin: 1.6rem 0 0.6rem; }
.dbox .ditem { display: flex; padding: 0.65rem 0; border-top: 0.1rem solid var(--line); font-size: 1.15rem; line-height: 1.35; }
.dbox .ditem .dt { width: 4.6rem; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.dbox .ditem .ds { width: 9.5rem; flex: none; }
.dbox .ditem a { color: var(--text); text-decoration: none; }
.dbox .ditem a:hover { text-decoration: underline; }
.dbox .dscroll { position: relative; }
.dbox .dhelp { position: absolute; right: 2.4rem; top: 2rem; color: var(--dim); font-size: 0.9rem; }
