/* Atlas Map — совместная геопозиция: плавающие «таблетки» (общие с записью следа), панель зрителя, маркер участника. */

.atlas-pills { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 39; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; max-width: calc(100% - 24px); }
.offline-banner.show ~ .atlas-pills { top: 58px; }
.pill { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; pointer-events: auto; white-space: nowrap; border: 1px solid var(--border); }
.pill .pill-ico { width: 18px; height: 18px; color: var(--blue); }
.pill .iconbtn { width: 34px; height: 34px; border-radius: 50%; }
.pill .iconbtn .ico { width: 18px; height: 18px; }
.pill .iconbtn.stop { color: var(--red); }
.pill.err .pill-text::after { content: " · нет связи"; color: var(--red); font-weight: 500; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); animation: live-pulse 1.6s infinite; flex: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }

/* панель зрителя */
.live-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.live-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(45, 108, 223, .12); color: var(--blue); flex: none; }
.live-avatar svg { width: 26px; height: 26px; }
.live-avatar.off { background: var(--input-bg); color: var(--muted); }
.live-title { font-size: 18px; }
.live-ago { font-size: 13px; }
.live-kv { padding: 6px 16px 10px; }
.live-actions .act.on { background: rgba(45, 108, 223, .12); }
.live-actions .act.on .ico { color: var(--blue); }
.live-ttl { margin-bottom: 6px; }

/* маркер участника трансляции */
.live-marker { position: relative; width: 44px; height: 44px; }
.live-marker-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(45, 108, 223, .35); animation: live-ring 2s infinite; }
.live-marker-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.live-marker-arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -24px 0 0 -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--blue); transform-origin: 7px 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.live-marker.stale .live-marker-dot { background: #8B93A7; }
.live-marker.stale .live-marker-pulse { animation: none; background: rgba(139, 147, 167, .25); }
.live-marker.stale .live-marker-arrow { border-bottom-color: #8B93A7; }
@keyframes live-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }

@media (max-width: 899px) {
  .atlas-pills { top: calc(var(--top-h) + 10px); max-width: calc(100% - 20px); }
  .offline-banner.show ~ .atlas-pills { top: calc(var(--top-h) + 54px); }
  .pill { font-size: 13px; }
  .toasts { top: calc(var(--top-h) + 60px); }
}
