/* ==========================================================================
   live-social.css — «ДИДО СПОРТ» прямой эфир в стиле соцсетей (Instagram Live).
   Полностью самостоятельный файл: только системные шрифты, без внешних CDN,
   без вмешательства в чужие стили сайта. Работает в iframe и в WebView.

   Структура:
     .soc            — корневой полноэкранный слой
     .soc__video     — видео на весь экран (object-fit: cover)
     .soc__grad      — градиенты сверху/снизу
     .soc__head      — шапка: аватар, имя, LIVE + таймер, зрители, «Поделиться»
     .soc__rail      — правая колонка: реакции, лайк, «Войти в эфир»
     .soc__chat      — лента комментариев поверх видео
     .soc__compose   — поле ввода комментария
     .soc__hearts    — контейнер «вылетающих» сердечек
     .soc__toast     — всплывающие «X присоединился»
     .soc-host       — режим ведущего (превью камеры + панель управления)
   ========================================================================== */

:root {
  --soc-bg: #000;
  --soc-white: #fff;
  --soc-muted: rgba(255, 255, 255, .68);
  --soc-live: #ff2d55;
  --soc-live-2: #ff5d3b;
  --soc-glass: rgba(0, 0, 0, .28);
  --soc-stroke: rgba(255, 255, 255, .16);
  --soc-blur: saturate(160%) blur(14px);
  --soc-safe-t: env(safe-area-inset-top, 0px);
  --soc-safe-b: env(safe-area-inset-bottom, 0px);
  --soc-safe-l: env(safe-area-inset-left, 0px);
  --soc-safe-r: env(safe-area-inset-right, 0px);
  --soc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--soc-bg); }

body.soc-body {
  font-family: var(--soc-font);
  color: var(--soc-white);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ---------- корневой слой ---------- */
.soc {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--soc-bg);
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- видео ---------- */
.soc__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 0;
}

/* Заглушка «камеры», пока нет потока (или в демо-режиме) */
.soc__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 12%, #3a1d52 0%, #1a0f2b 45%, #0a0710 100%),
    linear-gradient(180deg, #241338 0%, #0b0713 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease;
}
.soc__fallback.is-hidden { opacity: 0; pointer-events: none; }

.soc__fallback-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff2d55, #ff8a3d);
  box-shadow: 0 18px 50px rgba(255, 45, 85, .35);
  letter-spacing: .5px;
}

/* ---------- градиенты ---------- */
.soc__grad {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.soc__grad--top {
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 100%);
}
.soc__grad--bottom {
  bottom: 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .34) 48%, rgba(0, 0, 0, 0) 100%);
}

/* ---------- шапка ---------- */
.soc__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--soc-safe-t) + 12px) calc(var(--soc-safe-r) + 12px) 10px calc(var(--soc-safe-l) + 12px);
}

.soc__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ff2d55, #ff8a3d);
  border: 2px solid rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.soc__id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.soc__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.soc__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--soc-muted);
}

.soc__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(90deg, var(--soc-live), var(--soc-live-2));
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(255, 45, 85, .4);
}
.soc__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: soc-pulse 1.6s ease-in-out infinite;
}
@keyframes soc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.soc__timer { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.soc__viewers { display: inline-flex; align-items: center; gap: 4px; }

.soc__spacer { flex: 1 1 auto; }

.soc__iconbtn {
  appearance: none;
  border: 0;
  background: var(--soc-glass);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
  font-size: 16px;
}
.soc__iconbtn:active { transform: scale(.9); background: rgba(0, 0, 0, .45); }
.soc__iconbtn svg { width: 19px; height: 19px; fill: currentColor; }
.soc__iconbtn--link { text-decoration: none; display: inline-flex; }

/* ---------- правая колонка ---------- */
.soc__rail {
  position: absolute;
  right: calc(var(--soc-safe-r) + 10px);
  bottom: calc(var(--soc-safe-b) + 132px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.soc__reactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
}

.soc__reaction {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 3px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .14s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.soc__reaction:active { transform: scale(1.35); }
.soc__reaction-count {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  min-height: 11px;
}

.soc__likebtn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.soc__likebtn .soc__heart {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(255, 45, 85, .5));
  transition: transform .18s ease;
}
.soc__likebtn:active .soc__heart { transform: scale(.82); }
.soc__likebtn.is-on .soc__heart { animation: soc-beat .42s ease; }
@keyframes soc-beat {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.soc__join {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
  color: #fff;
  font-family: var(--soc-font);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 78px;
  line-height: 1.15;
  text-align: center;
}
.soc__join:active { transform: scale(.94); }
.soc__join[disabled] { opacity: .45; cursor: default; }
.soc__join[hidden] { display: none !important; }
.soc__join-ico { font-size: 19px; }

/* ---------- лента комментариев ---------- */
.soc__chat {
  position: absolute;
  left: calc(var(--soc-safe-l) + 12px);
  right: calc(var(--soc-safe-r) + 84px);
  bottom: calc(var(--soc-safe-b) + 96px);
  z-index: 5;
  max-height: 42vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(0deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 78%, transparent 100%);
}
.soc__chat::-webkit-scrollbar { display: none; }

.soc__msg {
  align-self: flex-start;
  max-width: 82%;
  background: rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.32;
  color: #fff;
  word-break: break-word;
  animation: soc-in .22s ease;
}
@keyframes soc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.soc__msg-name { font-weight: 700; margin-right: 6px; }
.soc__msg--mine { background: rgba(255, 45, 85, .3); border-color: rgba(255, 45, 85, .4); }
.soc__msg--system {
  background: none;
  border: 0;
  color: var(--soc-muted);
  font-size: 12.5px;
  padding: 2px 0;
}

/* ---------- поле ввода ---------- */
.soc__compose {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px calc(var(--soc-safe-r) + 12px) calc(var(--soc-safe-b) + 12px) calc(var(--soc-safe-l) + 12px);
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

.soc__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  color: #fff;
  font-family: var(--soc-font);
  font-size: 14px;
  padding: 0 16px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.soc__input::placeholder { color: rgba(255, 255, 255, .55); }
.soc__input:focus { border-color: rgba(255, 255, 255, .45); }

.soc__send {
  appearance: none;
  border: 0;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soc-live), var(--soc-live-2));
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 45, 85, .38);
  transition: transform .15s ease, opacity .15s ease;
}
.soc__send:active { transform: scale(.9); }
.soc__send[disabled] { opacity: .4; box-shadow: none; }

/* ---------- сердечки ---------- */
.soc__hearts {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.soc__heart-fly {
  position: absolute;
  font-size: 30px;
  line-height: 1;
  will-change: transform, opacity;
  animation: soc-fly 1.5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes soc-fly {
  0% { transform: translate(0, 0) scale(.4) rotate(0deg); opacity: 0; }
  12% { opacity: 1; transform: translate(0, -14px) scale(1.15) rotate(-8deg); }
  100% { transform: translate(var(--dx, 0px), var(--dy, -260px)) scale(.75) rotate(var(--rot, 12deg)); opacity: 0; }
}

/* ---------- всплывашки ---------- */
.soc__toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--soc-safe-t) + 74px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: max-content;
  max-width: 86vw;
}
.soc__toast-item {
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  animation: soc-toast 3.4s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes soc-toast {
  0% { opacity: 0; transform: translateY(-10px) scale(.96); }
  12% { opacity: 1; transform: none; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ---------- офлайн / приглашение ---------- */
.soc__offline {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, #3a1d52 0%, #1a0f2b 45%, #0a0710 100%),
    linear-gradient(180deg, #241338 0%, #0b0713 100%);
}
.soc__offline.is-on { display: flex; }
.soc__offline-ico {
  font-size: 54px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff2d55, #ff8a3d);
  box-shadow: 0 18px 50px rgba(255, 45, 85, .35);
  margin-bottom: 4px;
}
.soc__offline-title { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.soc__offline-sub { font-size: 14.5px; color: var(--soc-muted); max-width: 340px; line-height: 1.5; }

/* жирная красная градиентная кнопка — как в Instagram */
.soc-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--soc-font);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .01em;
  color: #fff;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2d55 0%, #ff5d3b 55%, #ff8a3d 100%);
  box-shadow: 0 12px 32px rgba(255, 45, 85, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.soc-cta:active { transform: scale(.96); filter: brightness(.94); }
.soc-cta:disabled { opacity: .5; cursor: default; }
.soc-cta--lg { font-size: 18px; padding: 18px 40px; }
.soc-cta--small { font-size: 12.5px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.soc-cta[hidden] { display: none !important; }

.soc__offline-btn {
  margin-top: 6px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  color: #fff;
  font-family: var(--soc-font);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 20px;
}
.soc__offline-note { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 2px; }

/* ---------- режим ведущего (полноэкранный, как в Instagram) ---------- */
.soc-host { position: absolute; inset: 0; z-index: 12; display: none; flex-direction: column; }
.soc-host.is-on { display: flex; }

.soc-host__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0713;
  z-index: 0;
}
/* фронтальная камера — зеркальное отражение, как в соцсетях */
.soc-host__preview--mirror { transform: scaleX(-1); }
.soc-host__preview--hidden { display: none; }

.soc-host__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(var(--soc-safe-t) + 12px) calc(var(--soc-safe-r) + 12px) 10px calc(var(--soc-safe-l) + 12px);
}

.soc-host__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(90deg, var(--soc-live), var(--soc-live-2));
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(255, 45, 85, .4);
}
.soc-host__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: soc-pulse 1.6s ease-in-out infinite;
}
.soc-host__timer { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* счётчики справа (зрители / лайки) */
.soc-host__stats {
  position: absolute;
  right: calc(var(--soc-safe-r) + 12px);
  top: calc(var(--soc-safe-t) + 62px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.soc-host__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.soc-host__stat-ico { font-size: 24px; line-height: 1; }

/* нижняя панель ведущего: круглые кнопки */
.soc-host__bottom {
  position: relative;
  z-index: 4;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px calc(var(--soc-safe-r) + 16px) calc(var(--soc-safe-b) + 22px) calc(var(--soc-safe-l) + 16px);
  background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, 0) 100%);
}

.soc-host__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }

.soc-host__round {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, background .14s ease;
}
.soc-host__round:active { transform: scale(.9); }
.soc-host__round.is-off { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .45); }
.soc-host__round--stop {
  width: 72px;
  height: 72px;
  font-size: 26px;
  background: linear-gradient(135deg, #ff2d55, #ff5d3b);
  border: 0;
  box-shadow: 0 12px 34px rgba(255, 45, 85, .5);
}
.soc-host__round--ghost { background: rgba(0, 0, 0, .34); }

.soc-host__note {
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  min-height: 18px;
  max-width: 90vw;
}

.soc-host__chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.soc-host__chip {
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
  border-radius: 12px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.soc-host__chip--live { background: rgba(255, 45, 85, .22); border-color: rgba(255, 45, 85, .45); }

.soc-host__sheet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--soc-safe-b) + 14px);
  width: min(560px, 94vw);
  max-height: 78vh;
  overflow-y: auto;
  z-index: 14;
  background: rgba(16, 12, 22, .94);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.soc-host__sheet h3 { margin: 0 0 10px; font-size: 16px; }
.soc-host__sheet input[type="file"] { font-size: 12px; color: var(--soc-muted); width: 100%; }
.soc-host__close {
  position: absolute;
  top: 10px;
  right: 12px;
  appearance: none;
  border: 0;
  background: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.soc-host__viewers {
  max-height: 30vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: var(--soc-blur);
  backdrop-filter: var(--soc-blur);
  border: 1px solid var(--soc-stroke);
  border-radius: 14px;
  padding: 6px;
  scrollbar-width: thin;
}
.soc-host__viewer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 13px;
}
.soc-host__viewer + .soc-host__viewer { border-top: 1px solid rgba(255, 255, 255, .08); }
.soc-host__viewer-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-host__viewer-role { font-size: 11px; color: var(--soc-muted); }
.soc-host__promote {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-family: var(--soc-font);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
}
.soc-host__promote[disabled] { opacity: .45; cursor: default; }

/* ---------- старт эфира в режиме ведущего ---------- */
.soc-host__start {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: radial-gradient(120% 80% at 50% 0%, #3a1d52 0%, #1a0f2b 45%, #0a0710 100%);
}
.soc-host__start.is-on { display: flex; }

/* ---------- адаптив ---------- */
@media (min-width: 720px) {
  .soc { max-width: 520px; margin: 0 auto; border-left: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08); }
  .soc__rail { bottom: calc(var(--soc-safe-b) + 150px); }
  .soc__chat { max-height: 40vh; }
  .soc__name { max-width: 300px; }
}

@media (max-height: 560px) {
  .soc__chat { max-height: 26vh; bottom: calc(var(--soc-safe-b) + 88px); }
  .soc__rail { bottom: calc(var(--soc-safe-b) + 96px); gap: 10px; }
  .soc__reactions { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .soc * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- бренд «ДИДО СПОРТ»: орёл и флаг России ---------- */
.soc__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}
.soc__avatar.soc__avatar--logo { background: transparent; }
.soc__offline-ico--logo {
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 70%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  padding: 10px;
  overflow: hidden;
}
.soc__offline-ico--logo .soc__logo-img { object-fit: contain; }

/* патриотичная лента-триколор под шапкой */
.soc__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  opacity: .9;
}
.soc-host::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 14;
  background: linear-gradient(90deg, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  opacity: .9;
}
.soc__offline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  opacity: .9;
}
.soc__offline-title { letter-spacing: .04em; }
