:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface-1: #15181d;
  --surface-2: #1c2027;
  --border: #2a2f38;
  --grid: #262a31;
  --text-primary: #f0efec;
  --text-secondary: #c3c2b7;
  --text-muted: #8d8c85;
  --accent: #3987e5;
  --bar: #3987e5;
  --bar-hover: #6da7ec;
  --hot: #ec835a;
  --bad: #ff4d5e;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text-primary); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--border); background: var(--surface-1); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #0ca30c; box-shadow: 0 0 0 3px rgba(12,163,12,.2); }
.upd { color: var(--text-muted); font-size: 13px; }
.intro { padding: 28px 0 8px; max-width: 820px; }
h1 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.25; margin: 0 0 12px; text-wrap: balance; }
.intro p { color: var(--text-secondary); margin: 0; }
h2 { font-size: 13px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 12px; }
h2 .sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-muted); }
h2.mt { margin-top: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.kpi { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.kl { color: var(--text-secondary); font-size: 13px; }
.kv { font-size: clamp(26px, 4vw, 36px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 4px 0 2px; }
.ks { color: var(--text-muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.live { margin-bottom: 12px; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.live-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.onair { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.6); } 100% { box-shadow: 0 0 0 9px rgba(229,72,77,0); } }
.live-tools { display: flex; align-items: center; gap: 12px; }
.rate { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; }
.globe-wrap { position: relative; min-width: 0; }
.legend { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); background: rgba(13,15,18,.7); padding: 4px 10px; border-radius: 6px; pointer-events: none; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg-b { background: var(--bad); } .lg-n { background: var(--hot); } .lg-h { background: var(--accent); height: 8px !important; width: 8px !important; border-radius: 50% !important; }
.globe-off:not([hidden]) + .legend { display: none; }
.feed-box { position: relative; height: 480px; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.feed-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--surface-2)); pointer-events: none; }
.feed { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.feed li { padding: 8px 10px 8px 12px; border-radius: 6px; border-left: 3px solid var(--hot); background: var(--surface-1); display: flex; flex-direction: column; gap: 2px; }
.feed li.bad { border-left-color: var(--bad); }
.feed li.new { animation: slidein .5s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); background: rgba(236,131,90,.18); } to { opacity: 1; transform: none; } }
.f-top, .f-bot { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.f-c { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.f-t { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-bot { font-size: 13px; color: var(--text-secondary); }
.f-n { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.f-b { margin-left: auto; font-size: 11px; font-weight: 600; color: #ff9b9e; background: rgba(229,72,77,.15); padding: 1px 7px; border-radius: 10px; }
.feed-empty { color: var(--text-muted); font-size: 14px; padding: 16px; margin: 0; }
.live:fullscreen { margin: 0; border-radius: 0; border: 0; padding: 20px; display: flex; flex-direction: column; background: var(--bg); }
.live:fullscreen .live-grid { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 380px; }
.live:fullscreen .globe, .live:fullscreen .feed-box { height: 100%; }
.live:fullscreen .live-head h2 { font-size: 18px; }
.live:fullscreen .feed li { font-size: 16px; }
.globe { height: 480px; border-radius: 8px; overflow: hidden; position: relative;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 64%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 52% 40%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 92% 30%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 6% 56%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(ellipse at 50% 50%, #0b1630 0%, #05070d 70%); }
.globe-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(255,77,94,0); }
.globe-wrap.hit::after { animation: hitflash .9s ease-out; }
@keyframes hitflash { 0% { box-shadow: inset 0 0 60px 6px rgba(255,77,94,.55); } 100% { box-shadow: inset 0 0 0 0 rgba(255,77,94,0); } }
.hud { position: absolute; top: 10px; left: 10px; right: 10px; max-width: 360px; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border-radius: 8px; background: rgba(13,15,18,.78); border-left: 3px solid var(--hot);
  opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; pointer-events: none; backdrop-filter: blur(4px); }
.hud.show { opacity: 1; transform: none; }
.hud.bad { border-left-color: var(--bad); }
.hud-k { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--hot); }
.hud.bad .hud-k { color: #ff8a94; }
.hud-c { font-size: 17px; font-weight: 650; }
.hud-g { font-size: 13px; color: var(--text-secondary); }
.live:fullscreen .hud { max-width: 480px; } .live:fullscreen .hud-c { font-size: 24px; } .live:fullscreen .hud-g { font-size: 16px; }
.globe-off { height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; background: var(--surface-2); border-radius: 8px; padding: 16px; color: var(--text-secondary); }
.globe-off p { margin: 0; font-size: 14px; }
button { font: inherit; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
button:hover { border-color: var(--accent); }
.note { color: var(--text-muted); font-size: 12px; margin: 10px 0 0; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 14px; }
.bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.bars .val { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bars .track { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--bar); border-radius: 3px; }
.bars .empty { color: var(--text-muted); display: block; }
.chart { position: relative; height: 200px; }
.chart.short { height: 130px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--grid); stroke-width: 1; }
.chart .ax { fill: var(--text-muted); font-size: 11px; }
.chart .b { fill: var(--bar); }
.chart .hit:hover + .b, .chart .b.on { fill: var(--bar-hover); }
.tips { margin: 12px 0; }
.tips .lead { color: var(--text-secondary); margin: 0 0 12px; }
.tip-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); }
.tip-list b { color: var(--text-primary); }
.report { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--hot); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--text-secondary); }
.report b, #contact { color: var(--text-primary); font-weight: 600; }
.foot { color: var(--text-muted); font-size: 12px; padding: 16px 0 32px; }
.tip { position: fixed; pointer-events: none; z-index: 20; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
@media (max-width: 900px) { .grid, .live-grid { grid-template-columns: minmax(0, 1fr); } .globe { height: 360px; } .feed-box { height: 300px; } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .globe { height: 320px; } .rate { display: none; } }
@media (prefers-reduced-motion: reduce) { .onair, .feed li.new, .globe-wrap.hit::after { animation: none; } .hud { transition: none; } }
