/* Lysá Monitor: barvy, písmo a logo převzaté z www.mestolysa.cz */
:root {
  --red: #e4032e;          /* hlavní barva webu města */
  --red-soft: #fdecef;
  --ink: #252525;          /* barva textu webu města */
  --slate: #435563;
  --muted: #6b7680;
  --line: #e3e6e8;
  --bg: #ffffff;
  --page-bg: #f4f5f6;
  --soft: #f7f8f9;

  /* vyznění */
  --tone-pos: #1d7a52;
  --tone-pos-soft: #e7f3ec;
  --tone-neu: #9aa5ae;
  --tone-neu-soft: #eef1f3;
  --tone-mix: #d48a00;
  --tone-mix-soft: #fbf1df;
  --tone-neg: #e4032e;
  --tone-neg-soft: #fdecef;

  /* barvy sítí */
  --fb: #1877f2;
  --yt: #ff0000;
  --ig: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 5px;             /* zaoblení webu města */
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .05), 0 6px 20px rgba(20, 30, 40, .05);
  --shadow-hover: 0 2px 4px rgba(20, 30, 40, .06), 0 14px 32px rgba(20, 30, 40, .10);
  --page: 1140px;
  --gutter: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Hlavička ---------- */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--page); margin: 0 auto; padding: 14px var(--gutter); }
.home-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.top img { height: 44px; width: auto; display: block; }
.app-name { border-left: 1px solid var(--line); padding-left: 16px; font-size: 18px; font-weight: 500; }

main { max-width: var(--page); margin: 0 auto; padding: 36px var(--gutter) 72px; }
h1 { font-size: 34px; font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.lede { margin: 8px 0 0; color: var(--slate); font-size: 16px; max-width: 62ch; }
.loading { color: var(--muted); }
.error { color: var(--red); }

/* ---------- Ikony ---------- */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.i .f { fill: currentColor; stroke: none; }
.tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff;
}
.tile .i { width: 25px; height: 25px; stroke-width: 1.9; }
.tile.zpravy { background: var(--red); }
.tile.instagram { background: var(--ig); }
.tile.youtube { background: var(--yt); }
.tile.facebook { background: var(--fb); }
.tile.lg { width: 60px; height: 60px; border-radius: 16px; }
.tile.lg .i { width: 32px; height: 32px; }

/* ---------- Přehled ---------- */
.hero { margin-bottom: 26px; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; min-width: 0;
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow);
  text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card:hover .go .i { transform: translateX(3px); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top h2 { font-size: 19px; }
.card-top p { margin: 0; font-size: 13px; color: var(--muted); }
.card-body { display: grid; gap: 14px; }
.big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big b { font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big span { color: var(--slate); font-size: 15px; }
.line { display: block; color: var(--slate); font-size: 14px; }
.line strong { color: var(--ink); font-weight: 600; }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.go .i { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }

.off-state { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-sm); background: var(--soft); border: 1px dashed #cdd3d7; }
.off-state b { font-size: 17px; font-weight: 600; }
.off-state span { font-size: 14px; color: var(--slate); }

/* mini sloupce v bloku */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.spark i { flex: 1; background: #d5dbdf; border-radius: 3px 3px 0 0; min-height: 3px; }
.spark i:last-child { background: var(--slate); }
.spark-cap { font-size: 12px; color: var(--muted); margin-top: -8px; }

/* náhledy v bloku */
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.thumbs.square img { aspect-ratio: 1; }

/* loga médií */
.logo { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
.logo.sm { width: 26px; height: 26px; border-radius: 7px; }
.logo.sm img { width: 18px; height: 18px; }
.logo .ini { font-size: 12px; font-weight: 700; color: var(--slate); }
.logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-stack { display: flex; }
.logo-stack .logo { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.logo-stack .logo:first-child { margin-left: 0; }

/* vyznění: obličeje */
.face { width: 20px; height: 20px; flex: none; }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.facepill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facepill small { font-weight: 400; color: var(--slate); }
.t-pos { background: var(--tone-pos-soft); color: var(--tone-pos); }
.t-neu { background: var(--tone-neu-soft); color: #5d6973; }
.t-mix { background: var(--tone-mix-soft); color: #9a6400; }
.t-neg { background: var(--tone-neg-soft); color: #c4022a; }

/* ---------- Stránka s podrobnostmi ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.back .i { width: 18px; height: 18px; stroke-width: 2.2; }
.page { display: grid; gap: 20px; }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.page-head .lede { margin-top: 4px; }

.panel { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.panel-head > div:not(.seg) { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.panel-note { margin: 0; font-size: 14px; color: var(--slate); max-width: 70ch; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.kpi-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--slate); }
.kpi-ic.red { background: var(--red-soft); color: var(--red); }
.kpi-txt { display: grid; gap: 1px; min-width: 0; }
.kpi-label { font-size: 13px; color: var(--slate); }
.kpi-value { font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-value.word { font-size: 18px; line-height: 1.35; padding: 3px 0; }
.kpi-sub { font-size: 13px; color: var(--muted); }

/* přepínač týdny / měsíce / roky */
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--slate); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* sloupcový graf */
.colchart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 8px; align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; gap: 6px; }
.col-n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.col-n.zero { color: var(--muted); font-weight: 400; }
.col-bar { width: min(100%, 52px); display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.col-bar i { display: block; width: 100%; }
.col-base { grid-column: 1 / -1; height: 1px; background: #c9cfd3; margin-top: 2px; }
.col-lab { font-size: 12px; color: var(--muted); text-align: center; padding-top: 8px; line-height: 1.25; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* vyznění: dlaždice */
.tone-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tone-tile { border-radius: 10px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.tone-tile .face { width: 30px; height: 30px; margin-bottom: 4px; }
.tone-tile b { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.tone-tile b small { font-size: 14px; font-weight: 500; color: var(--slate); margin-left: 6px; }
.tone-tile strong { font-size: 14px; font-weight: 600; }
.tone-tile span { font-size: 13px; color: var(--slate); line-height: 1.35; }
.sentence { margin: 0; font-size: 16px; line-height: 1.55; max-width: 72ch; }
.sentence strong { font-weight: 600; }

/* vodorovné pruhy */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; min-width: 0; }
.bars li.noicon { grid-template-columns: minmax(0, 1fr); }
.bars li > .logo { grid-row: span 2; }
.bar-ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; background: var(--soft); color: var(--slate); display: grid; place-items: center; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; min-width: 0; }
.bar-top > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-top .strong { font-weight: 700; color: var(--red); }
.bar-top .val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.bar-fill { display: flex; height: 100%; gap: 2px; border-radius: 5px; overflow: hidden; min-width: 4px; }
.bar-fill i { display: block; height: 100%; }

/* čárový graf */
.linechart svg { display: block; width: 100%; height: auto; overflow: visible; }
.linechart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }

/* videa a příspěvky jako karty */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.media { display: grid; gap: 8px; text-decoration: none; min-width: 0; }
.media .ph { position: relative; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.media.square .ph { aspect-ratio: 1; }
.media .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.media:hover .ph img { transform: scale(1.03); }
.media .rank { position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.media .badge { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 20, 20, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.media h3 { font-size: 15px; line-height: 1.35; }
.media:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--slate); }
.stats-row span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.stats-row .i { width: 16px; height: 16px; }

/* seznamy */
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px 6px 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--slate);
}
.chip.plain { padding-left: 12px; }
.chip .face { width: 18px; height: 18px; }
.chip:hover { border-color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { flex: 1 1 220px; max-width: 300px; height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font-size: 14px; margin-left: auto; background: var(--soft); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.rows li:first-child { border-top: 0; }
.rows a { text-decoration: none; font-weight: 600; line-height: 1.35; }
.rows a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.rows .meta { display: block; font-size: 13px; color: var(--slate); margin-top: 3px; }
.rows .thumb { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.rows .thumb.square { width: 64px; aspect-ratio: 1; }
.rows li > .tile { width: 64px; height: 64px; }
.media .ph > .tile { position: absolute; inset: 0; margin: auto; }
.rows .right { font-size: 13px; color: var(--slate); white-space: nowrap; text-align: right; }
.tone-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tone-tag .face { width: 18px; height: 18px; }
.more-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--ink); }
.btn .i { width: 17px; height: 17px; }
.empty { color: var(--muted); margin: 0; }

/* nepřipojená síť */
.connect { display: grid; gap: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps code, .help code { font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--slate); margin: 0; max-width: 72ch; }

/* nápověda */
.help { margin-top: 32px; }
.help summary { cursor: pointer; color: var(--slate); font-size: 14px; font-weight: 600; }
.help-in { padding-top: 14px; display: grid; gap: 12px; max-width: 72ch; font-size: 14px; color: var(--slate); }
.help-in p { margin: 0; }
.help-in .faces { display: grid; gap: 8px; }
.help-in .facepill { justify-self: start; }

/* ---------- Úzké obrazovky ---------- */
@media (max-width: 860px) {
  .board, .pair { grid-template-columns: minmax(0, 1fr); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tone-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  main { padding-top: 26px; }
  .top img { height: 38px; }
  .app-name { font-size: 16px; }
  h1 { font-size: 26px; }
  .card, .panel { padding: 18px; }
  .big b { font-size: 38px; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi-value { font-size: 24px; }
  .colchart { column-gap: 4px; }
  .colchart.dense .col-lab:nth-of-type(even) { visibility: hidden; }
  .col-n { font-size: 11px; }
  .col-lab { font-size: 11px; }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: auto minmax(0, 1fr); }
  .rows li > .right, .rows li > .tone-tag { grid-column: 2; justify-self: start; }
  .rows .thumb { width: 88px; }
  .search { max-width: none; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .go .i, .media .ph img { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Tlačítko srovnání v hlavičce stránky ---------- */
.page-head { flex-wrap: wrap; }
.page-head > div { flex: 1 1 260px; min-width: 0; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-primary .i { width: 18px; height: 18px; }

/* ---------- Vyhledávání obce ---------- */
.finder { position: relative; max-width: 560px; }
.finder-in { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid #cfd5d9; border-radius: 999px; padding: 0 8px 0 16px; box-shadow: var(--shadow); }
.finder-in:focus-within { border-color: var(--ink); }
.finder-in .i { color: var(--muted); width: 20px; height: 20px; }
.finder input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 16px; outline: none; }
.finder-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-hover); list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; }
.finder-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.finder-list li[aria-selected="true"], .finder-list li:hover { background: var(--soft); }
.finder-list b { font-weight: 600; }
.finder-list span { font-size: 13px; color: var(--muted); }
.finder-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0 4px; }
.hero .finder { margin-top: 18px; }

/* ---------- Srovnání ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pod { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 6px; align-content: start; position: relative; overflow: hidden; }
.pod::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--line); }
.pod.me::before { background: var(--red); }
.pod.best::before { background: var(--tone-pos); }
.pod.top::before { background: var(--ink); }
.pod-label { font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.pod-label .i { width: 18px; height: 18px; }
.pod-name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.pod-name a { text-decoration: none; }
.pod-name a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.pod-value { font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pod-sub { font-size: 13px; color: var(--muted); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.rank-list .pos { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rank-list li.me .pos { background: var(--red); color: #fff; }
.rank-list li.me .bar-top > :first-child { color: var(--red); font-weight: 700; }
.rank-list a { text-decoration: none; }
.rank-list a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.rank-gap { text-align: center; color: var(--muted); letter-spacing: .3em; }

/* srovnání dvou obcí */
.versus { display: grid; gap: 18px; }
.vs-row { display: grid; gap: 6px; }
.vs-row h3 { font-size: 14px; color: var(--slate); font-weight: 600; }
.vs-bar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.vs-bar .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-bar .val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Video: shrnutí a přepis ---------- */
.video-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.player { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #111; box-shadow: var(--shadow); }
.player img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.player .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 14px; background: var(--yt); display: grid; place-items: center; color: #fff; transition: transform .2s; }
.player:hover .play { transform: scale(1.06); }
.player .play .i { width: 30px; height: 30px; }
.video-info { display: grid; gap: 12px; align-content: start; }
.video-info h2 { font-size: 22px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--slate); }
.chips .i { width: 16px; height: 16px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.points li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; }
.ts { display: inline-flex; justify-content: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 3px 6px; text-decoration: none; }
.ts:hover { background: var(--red); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fact { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.4; }
.fact .i { color: var(--red); margin-top: 1px; }
.transcript { display: grid; gap: 2px; }
.transcript p { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 12px; margin: 0; padding: 6px 0; line-height: 1.55; align-items: start; }
.transcript mark { background: #ffe9a8; border-radius: 3px; padding: 0 2px; }
.noise { color: var(--muted); font-style: italic; }
.summary-line { display: block; font-size: 13px; color: var(--slate); margin-top: 4px; line-height: 1.45; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; margin-top: 6px; }
.link-more .i { width: 15px; height: 15px; stroke-width: 2.2; }
.skeleton { color: var(--muted); padding: 30px 0; }

@media (max-width: 860px) {
  .podium, .video-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vs-bar { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; }
  .points li, .transcript p { grid-template-columns: 4rem minmax(0, 1fr); }
}
