/* ============================================================
   24sport — общие стили
   Дизайн-токены, шапка, футер, страницы, адаптив.
   ============================================================ */

:root {
  --bg: #FBFAF7;          /* фон страницы (панель из макета) */
  --white: #ffffff;
  --ink: #17171B;         /* основной тёмный текст */
  --ink-2: #44423D;       /* вторичный тёмный (неактивные табы) */
  --muted: #8A877F;
  --border: #E7E5DF;
  --soft: #F1EFE9;        /* инпуты, группа табов */
  --red: #FA2B2B;
  --red-dark: #DE1E1E;
  --green: #2BD17A;
  --faint: #CFCCC3;
  --donate-bg: #FDE7E4;
  --silhouette: #FBFAF7;  /* цвет силуэта в иконке кабинета */

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --maxw: 1180px;
  --radius: 12px;
  --z: 1;                 /* множитель zoom (см. блок «Масштаб под крупные разрешения») */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: calc(100vh / var(--z, 1));   /* компенсируем zoom, иначе липкий футер растягивает страницу */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ============================================================
   Логотип
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.logo span { color: var(--red); }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
}
.header-inner > .logo { justify-self: start; }

/* навигация по видам спорта */
.sport-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--soft);
  padding: 5px;
  border-radius: 12px;
}
.sport-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 18px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.sport-tab:hover { color: var(--ink); }
.sport-tab.is-active {
  font-weight: 700;
  color: #fff;
  background: var(--red);
}
.sport-tab.is-active:hover { color: #fff; }

/* иконка кабинета */
.account-icon {
  justify-self: end;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.account-icon .person { position: absolute; inset: 0; }
.account-icon .person::before {
  content: "";
  position: absolute;
  top: 24%; left: 50%;
  transform: translateX(-50%);
  width: 29%; height: 29%;
  border-radius: 50%;
  background: var(--silhouette);
}
.account-icon .person::after {
  content: "";
  position: absolute;
  bottom: 18%; left: 50%;
  transform: translateX(-50%);
  width: 53%; height: 29%;
  border-radius: 50% 50% 0 0;
  background: var(--silhouette);
}
/* серый вариант (не залогинен) */
.account-icon--muted { background: var(--border); --silhouette: var(--muted); }
/* аватар с инициалами (профиль) */
.account-icon--avatar {
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

/* ============================================================
   Футер
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
}
.site-footer .logo { font-size: 16px; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

/* ============================================================
   Заголовки секций / hero
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 6px 0 0;
}

/* ============================================================
   1 · ГЛАВНАЯ
   ============================================================ */
.home {
  padding: 48px 0 64px;
}
.home__hero {
  text-align: center;
  margin-bottom: 28px;
}
.sport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.sport-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sport-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.sport-card__label {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sport-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 42px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.sport-card__rule {
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 11px 0 9px;
}
.fx { position: absolute; pointer-events: none; }
.fx-shade { inset: 0; z-index: 2; }

/* Футбол */
.sport-card--football {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 40px, transparent 40px 80px),
    radial-gradient(130% 100% at 50% 12%, #2f8048, #16542c 58%, #0a3a1d);
}
.sport-card--football .fx-circle {
  left: 50%; top: 50%;
  width: 118px; height: 118px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.sport-card--football .fx-line {
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgba(255,255,255,.16);
}
.sport-card--football .fx-shade {
  background: linear-gradient(180deg, rgba(8,40,20,.32), rgba(8,40,20,.64));
}

/* Хоккей */
.sport-card--hockey {
  background: radial-gradient(130% 100% at 50% 16%, #6a9bca, #2f5d8c 55%, #16344f);
}
.sport-card--hockey .fx-zone-l { left: 24%; top: 0; bottom: 0; width: 7px; background: rgba(38,92,196,.4); }
.sport-card--hockey .fx-zone-r { right: 24%; top: 0; bottom: 0; width: 7px; background: rgba(38,92,196,.4); }
.sport-card--hockey .fx-circle {
  left: 50%; top: 50%;
  width: 96px; height: 96px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(231,46,46,.55);
  border-radius: 50%;
}
.sport-card--hockey .fx-shade {
  background: linear-gradient(180deg, rgba(13,40,64,.34), rgba(13,40,64,.6));
}

/* Баскетбол */
.sport-card--basketball {
  background: radial-gradient(130% 100% at 50% 16%, #e29744, #b5631f 55%, #7e3f12);
}
.sport-card--basketball .fx-hoop {
  left: 50%; bottom: -66px;
  width: 170px; height: 170px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.sport-card--basketball .fx-key {
  left: 50%; bottom: 0;
  width: 84px; height: 50px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.2);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.sport-card--basketball .fx-shade {
  background: linear-gradient(180deg, rgba(70,32,8,.3), rgba(70,32,8,.6));
}

/* ММА */
.sport-card--mma {
  background: radial-gradient(110% 90% at 50% 42%, #4a181b, #1d0f12 55%, #0d0a0c);
}
.sport-card--mma .fx-cage {
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 15px);
}
.sport-card--mma .fx-glow {
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(250,43,43,.36), transparent 56%);
}
.sport-card--mma .fx-shade {
  background: linear-gradient(180deg, rgba(13,10,12,.22), rgba(13,10,12,.5));
}

/* ============================================================
   2 · СТРАНИЦА ТРАНСЛЯЦИИ
   ============================================================ */
.broadcast {
  display: flex;
  min-height: 600px;
}
.broadcast__main {
  width: 70%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.broadcast__side {
  width: 30%;
  border-left: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* окно видео (заглушка под плеер) */
.video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, #1A1A1F 0 16px, #141418 16px 32px);
}
.video__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.16);
}

/* встроенный внешний плеер */
.video__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}
/* чистый плеер: прячем фейковые контролы и центральный счёт; бейджи не блокируют клики */
.video--embed .video__placeholder,
.video--embed .video__score,
.video--embed .video__time,
.video--embed .video__controls { display: none; }
.video__live, .video__meta { pointer-events: none; }
.video--embed .video__live,
.video--embed .video__meta { z-index: 2; }
.video__live {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  color: #fff;
}
.video__live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.video__meta {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  gap: 8px;
}
.video__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.video__score {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(14,14,16,.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 16px 26px;
  border-radius: 14px;
}
.score-team { text-align: center; }
.score-team__logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #2A2A30;
  margin: 0 auto;
}
.score-team__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-top: 8px;
}
.score-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: #fff;
  letter-spacing: 0.02em;
}
.score-value span { color: var(--muted); }
.video__time {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 6px 12px;
  border-radius: 6px;
}
.video__controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
}
.video__play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.video__play::before {
  content: "";
  width: 10px; height: 13px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  margin-left: 2px;
}
.video__progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
}
.video__progress > span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 2px;
  background: var(--red);
}
.video__controls .live-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
}

/* строка с названием матча */
.match-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.match-bar__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.match-bar__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
}

/* донат */
.donate-block { padding: 18px; }
.btn-donate {
  width: 100%;
  border: none;
  background: var(--red);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  transition: filter .15s ease;
}
.btn-donate:hover { filter: brightness(1.05); }
.btn-donate__ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.donate-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* чат */
.chat-head {
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}
.chat-online .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* чат занимает место рядом с видео и скроллится внутри, не растягивая страницу.
   Абсолютный .chat-body не отдаёт свою высоту в раскладку, поэтому страницу
   определяет видео, а чат заполняет остаток и прокручивается. */
.chat-scroll {
  flex: 1;
  min-height: 0;
  position: relative;
}
.chat-body {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;               /* меньше расстояние между сообщениями */
}
.chat-msg {
  position: relative;
  margin: 0;              /* убираем дефолтные отступы <p>, иначе сообщения далеко друг от друга */
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-msg__name { font-weight: 700; color: var(--ink-2); }
.chat-msg__name::after { content: ':'; }   /* «efwkjenk:» */
.chat-msg__text { color: var(--ink); }

/* цитата комментария, на который отвечают */
.chat-msg__quote {
  font-size: 11.5px;
  color: var(--muted);
  border-left: 2px solid var(--red);
  padding: 1px 0 1px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* текст сообщения слева, мини-иконки действий — у правого края */
.chat-msg__row {
  display: flex; align-items: flex-start; gap: 8px;
}
.chat-msg__line { flex: 1; min-width: 0; }

/* мини-иконки действий у правого края сообщения */
.chat-msg__actions {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  margin-top: 1px;
}
.chat-msg__reply-btn,
.chat-msg__react {
  border: none; background: none; padding: 0; line-height: 1;
  font-family: var(--font-body); color: var(--muted);
}
/* «ответить» — только для авторизованных, проявляется при наведении */
.chat-msg__reply-btn {
  font-size: 13px; cursor: pointer;
  opacity: 0; transition: opacity .15s ease;
}
.chat-msg:hover .chat-msg__reply-btn { opacity: 1; }
.chat-msg__reply-btn:hover { color: var(--ink-2); }
/* рейтинг лайков/дизлайков виден всегда и всем (если он не нулевой) */
.chat-msg__react {
  display: inline-flex; align-items: center; gap: 2px; font-size: 11px; cursor: pointer;
}
.chat-msg__react--static { cursor: default; }          /* гость: только просмотр */
.chat-msg__react:not(.chat-msg__react--static):hover { color: var(--ink-2); }
/* нулевой рейтинг не показываем; авторизованный видит пустую кнопку (без цифры)
   при наведении, чтобы поставить первый голос — гостю её не показываем вовсе */
.chat-msg__react--zero { display: none; }
.chat-msg__react--zero .chat-msg__react-n { display: none; }
.chat-msg:hover button.chat-msg__react--zero { display: inline-flex; }
.chat-msg__react[data-react="like"].is-active { color: var(--green); }
.chat-msg__react[data-react="dislike"].is-active { color: var(--red-dark); }
.chat-msg__react-ico { display: inline-flex; }
.chat-msg__react-ico svg { width: 13px; height: 13px; display: block; }
.chat-msg__react-n { font-variant-numeric: tabular-nums; }

/* плашка «вы отвечаете на…» над полем ввода */
.chat-reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-top: 1px solid var(--line, #E7E5DF);
  font-family: var(--font-body); font-size: 12px; color: var(--ink-2);
}
.chat-reply-bar__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply-bar__cancel {
  border: none; background: none; cursor: pointer; color: var(--muted);
  font-size: 13px; padding: 0 2px;
}
.chat-reply-bar__cancel:hover { color: var(--red-dark); }

.chat-login-note {
  flex: 1; text-align: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--red-dark); padding: 11px 14px;
}

.chat-donate {
  background: var(--donate-bg);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 10px 12px;
}
.chat-donate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-donate__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--red-dark);
}
.chat-donate__sum {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--red-dark);
}
.chat-donate__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  margin-top: 3px;
}

.chat-input {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input__field {
  flex: 1;
  background: var(--soft);
  border: none;
  border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}
.chat-input__field::placeholder { color: var(--muted); }
.chat-input__send {
  width: 42px;
  border: none;
  background: var(--ink);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
}

/* ============================================================
   3 · ВХОД / РЕГИСТРАЦИЯ
   ============================================================ */
.auth {
  padding: 48px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.auth-toggle {
  display: flex;
  background: var(--soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-toggle__btn {
  flex: 1;
  text-align: center;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.auth-toggle__btn.is-active {
  background: #fff;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.auth-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-card__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.field { margin-top: 16px; }
.field:first-of-type { margin-top: 22px; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.field__input {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }

.auth-forgot {
  text-align: right;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--red-dark);
}
.auth-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--red-dark);
  background: var(--donate-bg);
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 14px;
}
.btn-primary {
  width: 100%;
  border: none;
  background: var(--red);
  color: #fff;
  padding: 15px;
  border-radius: 11px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  transition: filter .15s ease;
}
.btn-primary:hover { filter: brightness(1.05); }

.auth-switch-bottom {
  display: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.auth-switch-bottom button {
  border: none;
  background: none;
  color: var(--red-dark);
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

/* ============================================================
   4 · ПРОФИЛЬ
   ============================================================ */
.profile {
  padding: 36px 24px 40px;
}
.profile__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.profile__avatar {
  width: 96px; height: 96px;
  border-radius: 26px;
  background: var(--red);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: #fff;
}
.profile__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
}
.profile__handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.profile__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
}
.stat-card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
}
.stat-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.profile__section { text-align: left; margin-top: 24px; }
.profile__section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.account-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}
.account-row {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.account-row + .account-row { border-top: 1px solid var(--soft); }
.account-row span { color: var(--muted); }
.btn-logout {
  width: 100%;
  border: 1px solid var(--red);
  background: var(--bg);
  color: var(--red-dark);
  padding: 14px;
  border-radius: 11px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  transition: background .15s ease;
}
.btn-logout:hover { background: var(--soft); }
.profile__admin {
  border-color: var(--ink);
  color: var(--ink);
  margin-top: 24px;
}
.profile__admin:hover { background: var(--ink); color: #fff; }

/* ============================================================
   АДАПТИВ — мобильная раскладка (как мобайл-макет)
   ============================================================ */
@media (max-width: 900px) {
  /* шапка: только лого + иконка, табы скрыты */
  .header-inner { grid-template-columns: auto auto; padding: 12px 18px; }
  .sport-nav { display: none; }

  .footer-inner { padding: 16px 18px; }

  /* страница трансляции — в колонку */
  .broadcast { flex-direction: column; min-height: 0; }
  .broadcast__main { width: 100%; padding: 14px; gap: 12px; }
  .broadcast__side {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .match-bar { display: none; }           /* в мобайл-макете не показывается */
  .video__score { gap: 12px; padding: 10px 16px; }
  .score-value { font-size: 24px; }
  .score-team__logo { width: 30px; height: 30px; }
  .score-team__name { font-size: 12px; }
  .chat-scroll { display: contents; }              /* на мобиле без абсолюта */
  .chat-body { position: static; max-height: 320px; }

  /* главная — карточки в колонку */
  .home { padding: 28px 0 40px; }
  .sport-grid { grid-template-columns: 1fr; gap: 12px; max-width: 460px; }
  .sport-card { height: 150px; }
  .sport-card__name { font-size: 32px; }

  /* вход: карточка как на вебе — белый фон, рамка, отступы 32px по тексту;
     переключатель сверху скрыт, ссылка снизу видна */
  .auth { padding: 28px 18px 40px; }
  .auth-toggle { display: none; }
  .auth-switch-bottom { display: block; }

  /* профиль */
  .profile { padding: 24px 18px 32px; }
  .profile__avatar { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
  .profile__name { font-size: 20px; }
}

@media (max-width: 420px) {
  .section-title { font-size: 26px; }
  .sport-card__name { font-size: 28px; }
  .header-inner { padding: 10px 14px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   МАСШТАБ ПОД КРУПНЫЕ РАЗРЕШЕНИЯ (1200px+)
   Композиция «вылизана» на 1200px. Выше — пропорционально
   увеличиваем ВСЁ (текст, иконки, отступы, контейнер) через zoom,
   коэффициент ≈ ширина / 1200. 1.0 на 1200 → ~1.6 на 1920.
   Шаги подобраны так, что контейнер (1180px·zoom) всегда
   укладывается в окно без горизонтальной прокрутки.
   ============================================================ */
@media (min-width: 1280px) { :root { zoom: 1.06; --z: 1.06; } }
@media (min-width: 1366px) { :root { zoom: 1.13; --z: 1.13; } }
@media (min-width: 1440px) { :root { zoom: 1.20; --z: 1.20; } }
@media (min-width: 1536px) { :root { zoom: 1.28; --z: 1.28; } }
@media (min-width: 1600px) { :root { zoom: 1.33; --z: 1.33; } }
@media (min-width: 1680px) { :root { zoom: 1.40; --z: 1.40; } }
@media (min-width: 1792px) { :root { zoom: 1.49; --z: 1.49; } }
@media (min-width: 1920px) { :root { zoom: 1.60; --z: 1.60; } }
@media (min-width: 2048px) { :root { zoom: 1.70; --z: 1.70; } }
@media (min-width: 2240px) { :root { zoom: 1.86; --z: 1.86; } }
@media (min-width: 2560px) { :root { zoom: 2.13; --z: 2.13; } }

/* ============================================================
   Админка
   ============================================================ */
.admin { padding: 40px 0 64px; }
.admin__title {
  font-family: var(--font-display); font-weight: 900; font-size: 28px;
  letter-spacing: -0.02em; color: var(--ink); margin: 0;
}
.admin__sub { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin: 6px 0 28px; }
.admin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.admin-card__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink);
}
.admin-card__status { font-family: var(--font-mono); font-size: 12px; color: var(--green); }
.admin-card__status.is-error { color: var(--red-dark); }
.admin-card .field { margin: 0; }
.admin-card .btn-primary { margin-top: 4px; }
@media (max-width: 760px) { .admin__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Тост-уведомление
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1000;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* доступность: уважать prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
