.page { display: none; }
.page.is-active { display: block; }



@font-face {
  font-family: 'Mozilla Text';
  src: url('/fonts/MozillaText.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
}

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #000000;
  --surface: #000000;
  --card: #252525;
  --text: #F5F0E8;
  --muted: #999999;
  --stroke: #333333;
  --red: #CC2222;
  --red-hover: #E83333;
  --red-dark: #991A1A;
  --radius: 18px;
  --ad-h: 40px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:  #003881;
  color: var(--text);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-top: var(--topbar-h, 64px);
}

/* ===== BACKGROUND ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(220,38,38,.4) 0%, rgba(220,38,38,.2) 35%, rgba(220,38,38,.1) 55%, transparent 75%),
    radial-gradient(1200px 600px at 85% 0%, rgba(255,0,0,.35) 0%, rgba(255,0,0,.15) 40%, transparent 75%);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  background: #090027;
  padding: 7px 0;
  box-shadow: 0 0 60px 8px rgba(255, 220, 50, 0.08);
}



.topbar__inner {
  display: grid;
  grid-template-columns: auto auto auto auto 1fr;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.topbar__inner > .auth-actions {
  justify-self: end;
}

.topbar__inner > .auth-actions {
  justify-self: end;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.topbar a { text-decoration: none; }

/* Brand */
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 0;
}
.topbar__brand img { height: 34px; flex: 0 0 auto; }
.brand__name {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 600;
  font-family: 'Mozilla Text', sans-serif;
  white-space: nowrap;
}

/* Nav */
.topbar__nav {
  display: flex;
  gap: 26px;
  justify-content: flex-start;
}

.nav__item {
  font-size: clamp(14px, 2vw, 15px);
  font-family: 'Mozilla Text', sans-serif;
  font-weight: 500;
  color: var(--muted);
}
.nav__item:hover,
.nav__item.active { color: var(--text); }

.topbar__nav, .nav__item, .topbar__brand {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  justify-content: center;
}

.topbar__nav-wrap {
  position: relative;
  z-index: 1;
}

/* Auth buttons */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}

.auth-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.auth-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}
.auth-btn--register {
  background: rgba(204,34,34,.55);
  border-color: rgba(204,34,34,.85);
}
.auth-btn--register:hover { background: rgba(232,51,51,.75); }



/* Burger */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}


/* ============================================================
   PROMO RUNWAY
   ============================================================ */
.promo-track {
  position: sticky;
  top: 0;
  z-index: 20000;
  overflow: hidden;
  white-space: nowrap;
  background: hwb(0 6% 57% / 0.507);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 25px;
  display: flex;
  align-items: center;
}
.promo-track .promo-text {
  display: inline-block;
  font-size: 11px;
  padding: 0 24px;
  will-change: transform;
  animation: fz-marquee 25s linear infinite;
}
.promo-track .promo-text + .promo-text { margin-left: 22px; }

@keyframes fz-marquee {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-100%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-track .promo-text { animation-duration: 28s; }
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 12px 0 8px; }



.section__title{
  font-size:24px;
  font-weight:700;
  font-family: 'Mozilla Text', sans-serif;
}


/* Live dot */
.section__title--live {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.liveDot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(204,34,34,0.35), 0 0 10px rgba(204,34,34,0.6);
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: .3; }
  100% { opacity: 1; }
}

/* No live box */
.noLiveBox {
  display: none;
  margin: 10px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: rgba(234,240,255,.72);
  font-size: 14px;
  line-height: 1.4;
}

.card__viewers{
  opacity:1;    
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:5px;
  padding:2px 6px;
  border-radius:6px;
  background:#ff7b00      /*#e11d2a*/;
  color:#fff;
  font-family:'Mozilla Text', sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1;
}

.card__viewers svg{
  width:14px;
  height:14px;
}

/* Jump section */
.jump-section-wrap {
  margin-top: 28px;
  margin-bottom: 18px;
}
.jump-title { margin-bottom: 14px; }
.jump-section {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.jump-section::-webkit-scrollbar { display: none; }

.jump-card {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(26,26,26,.85);
  color: rgba(255,255,255,.9);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
}
.jump-card:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
}
.jump-card.is-active {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.jump-card.is-hidden { display: none; }



/* Left column */
.stream-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.stream-video {
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}
/* Стало — добавлен блок для новой страницы стрима */
.stream-player-box {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  position: relative;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

/* Info bar */

.stream-info-bar {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stream-info-bar .stream-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.stream-info-bar .stream-meta {
  font-size: 13px;
  color: var(--muted);
}

/* Placeholder */
.stream-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  text-align: center;
  padding: 24px;
  z-index: 6;
}
.stream-placeholder.is-on { display: flex; }
.ph-title { font-size: 18px; font-weight: 700; }
.ph-timer {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.ph-sub { font-size: 13px; opacity: .85; }

/* Right — chat */
.stream-chat {
  flex: 0 0 520px;
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.chat-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.chat-status {
  font-size: 12px;
  color: #4caf50;
  margin-left: auto;
}

.chat-body {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #040018;
}

.chat-body::-webkit-scrollbar { display: none; }

.chat-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  padding: 12px 12px;
  font-size: 20px;
  outline: none;
  transition: border-color .15s;
}

/* iframe fallback */
.iframe-fallback {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 50;
}
.tap-to-play { display: none !important; }


/* ============================================================
   CHAT MESSAGES
   ============================================================ */

.chat-wrap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 48px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(4,0,24,0), #040018);
}

.chat-form {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: 14px;
  padding-right: 14px;
}

/* Pill-обёртка для поля + смайла */
.chat-form__pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 6px 0 16px;
  border-radius: 3px;
  background: #000000;
  border: 1px solid #2a2a2a;
  transition: border-color .15s, box-shadow .15s;
}

.chat-form__pill:focus-within {
  border-color: #2a2a2a;
  box-shadow: none;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  font-family: 'Mozilla Text', sans-serif;
  font-size: 15px;
}

/* Шрифт указан и здесь: часть браузеров не наследует
   font-family в псевдоэлемент плейсхолдера. */
.chat-form input::placeholder {
  color: rgba(255,255,255,.4);
  font-family: 'Mozilla Text', sans-serif;
}
.chat-form input:disabled { opacity: .7; cursor: not-allowed; }

/* Смайл-кнопка внутри pill */
.chat-emoji-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .70);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.chat-emoji-btn:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.chat-emoji-btn:disabled { opacity: .4; cursor: not-allowed; }
.chat-emoji-btn svg { width: 22px; height: 22px; }

/* Квадратная кнопка отправки с белой подсветкой */
.chat-form button#chatSend {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.473);
    background: #000000;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 255, 255, .10);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.chat-form button#chatSend:hover {
  background: #0d0d0d;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .07),
              0 0 22px rgba(255, 255, 255, .22);
}

.chat-form button#chatSend:active {
  transform: translateY(1px);
}

.chat-form button#chatSend:disabled {
  opacity: .4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .45);
  box-shadow: none;
}

.chat-form button#chatSend svg {
  width: 22px;
  height: 22px;
  transform: translate(-1.5px, 0px);
}

.chat-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(234,240,255,.55);
}
.chat-sys {
  font-size: 13px;
  color: rgba(234,240,255,.55);
  padding: 10px 6px;
}

.chat-msg {
  padding: 3px 10px;
  border-bottom: none;
  border-radius: 4px;
  line-height: 1.4;
  position: relative;
  transition: background .08s ease;
}
.chat-msg:hover {
  background: rgba(255,255,255,.04);
}
.chat-msg:nth-child(even) {
  background: rgba(255,255,255,.015);
}
.chat-msg:nth-child(even):hover {
  background: rgba(255,255,255,.05);
}
.chat-msg__meta {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0;
}
.chat-msg__name {
  font-weight: 600;
  font-size: 13px;
  margin-right: 5px;
}
.chat-msg__name::after {
  content: ":";
  margin-left: 1px;
  opacity: .55;
}
.chat-msg__time { display: none; }
.chat-msg__text {
  display: inline;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(234,240,255,.85);
  overflow-wrap: anywhere;
}

/* Admin chat */
.chat-admin-menu {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 50;
  min-width: 88px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(26,26,26,.97);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chat-admin-menu__btn {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ff6b6b;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}
.chat-admin-menu__btn:hover { background: rgba(255,255,255,.06); }

/* Admin name */
.chat-msg__name.chat-msg__name--admin {
  color: var(--red-hover) !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  text-shadow: 0 0 6px rgba(255,0,0,.6);
  animation: adminShake 0.35s infinite;
}
.chat-msg__name--admin::before {
  content: "";
  width: 17.5px;
  height: 17.5px;
  display: inline-block;
  background: url("/favicon.png") no-repeat center;
  background-size: contain;
  margin-right: 4px;
  transform: none;
}
@keyframes adminShake {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-0.35px, 0.35px); }
  50%  { transform: translate(0.35px, -0.35px); }
  75%  { transform: translate(-0.35px, 0.35px); }
  100% { transform: translate(0,0); }
}

/* Elite chat name */
.chat-msg__name.chat-msg__name--elite:not(.chat-msg__name--admin) {
  background: linear-gradient(90deg, #ff4d4d, #ff9a3c, #ffd93c, #4dff88, #3cd9ff, #4d7cff, #b84dff, #ff4d4d);
  background-size: 400% auto;
  font-weight: 800 !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eliteRainbowMove 6s linear infinite;
}
@keyframes eliteRainbowMove {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.chat-msg__elite-crown {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 6px rgba(255,215,0,.55));
  margin-right: 2.6px;
  -webkit-text-fill-color: #ffd54a !important;
}

/* System messages */
.chat-msg--system .chat-msg__name {
  color: #FFC400 !important;
  font-weight: 900 !important;
  font-family: 'Mozilla Text', sans-serif;
}
.chat-msg--system .chat-sys-icon { color: inherit; }
.chat-msg--system .chat-msg__text { color: rgba(236, 228, 228, 0.904); }
.chat-msg--system {
  z-index: 5;
  padding: 6px 8px;
  margin-top: 6px;
}

/* Drag handle */
.chat-drag-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 28px;
  border-radius: 999px;
  cursor: ns-resize;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.chat-drag-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  box-shadow: 0 -6px 0 rgba(255,255,255,0.12), 0 6px 0 rgba(255,255,255,0.12);
}
.chat-drag-handle.is-dragging::before {
  background: rgba(204,34,34,0.55);
  box-shadow: 0 -6px 0 rgba(204,34,34,0.35), 0 6px 0 rgba(204,34,34,0.35);
}

.oauth-ic img {
  width: 24px;
  height: 24px;
  transform: translateY(2px);
  display: block;
  object-fit: contain;
}


/* ============================================================
   VIP PAGE
   ============================================================ */
.access-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 16px 80px; }

.access-features {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 22px 18px;
  margin-bottom: 28px;
}
.access-features__head { text-align: center; margin-bottom: 18px; }
.access-features__head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.access-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.access-feature { display: flex; align-items: flex-start; gap: 10px; }
.access-check { color: #fff; opacity: .85; font-size: 14px; transform: translateY(2px); }
.access-feature h3 { margin: 0; font-size: 14px; font-weight: 600; }
.access-feature p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }

.access-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.access-plan { border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface); padding: 24px 22px; }
.access-plan h2 { margin: 0; font-size: 26px; font-weight: 700; }
.access-plan__sub { margin: 6px 0 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.access-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.access-price span { font-size: 34px; font-weight: 700; }
.access-price small { font-size: 13px; color: rgba(255,255,255,.5); }
.access-actions { display: flex; gap: 14px; }
.access-btn {
  flex: 1;
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(204,34,34,.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.access-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }

/* VIP Banner */
.vip-banner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 18px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(40,8,12,0.95) 0%, rgba(18,4,6,0.95) 100%);
  border: 1px solid rgba(220,38,38,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  color: #ff5a5a;
}
.vip-banner__line { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.vip-banner__line--top { font-size: 16.5px; font-weight: 400; }
.vip-banner__divider { height: 1px; background: rgba(220,38,38,0.6); margin: 12px 0; }
.vip-banner__label { font-weight: 800; }
.vip-banner__link { color: var(--text); text-decoration: none; font-weight: 800; }
.vip-banner__link:hover { text-decoration: underline; }

/* VIP card decorations */
.vip-card--popular { position: relative; border: none !important; overflow: visible; }
.vip-card--popular::before {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201000%201080%22%20preserveAspectRatio%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22%0A%20%20%20%20M%2060%2090%0A%20%20%20%20H%20370%0A%20%20%20%20C%20410%2090%20440%2020%20500%2020%0A%20%20%20%20C%20560%2020%20590%2090%20630%2090%0A%20%20%20%20H%20940%0A%20%20%20%20Q%20980%2090%20980%20130%0A%20%20%20%20V%20950%0A%20%20%20%20Q%20980%201020%20910%201020%0A%20%20%20%20H%2090%0A%20%20%20%20Q%2020%201020%2020%20950%0A%20%20%20%20V%20130%0A%20%20%20%20Q%2020%2090%2060%2090%0A%20%20%20%20Z%0A%20%20%22%20fill%3D%22none%22%20stroke%3D%22%23f5c400%22%20stroke-width%3D%226%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%0A%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 3;
}
.vip-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5c400;
  z-index: 4;
  white-space: nowrap;
}
.vip-grid > .vip-card:nth-child(2) {
  position: relative;
  border: 5px solid hsl(212,100%,48%);
  border-radius: 20px;
  overflow: visible;
}
.vip-grid > .vip-card:nth-child(2)::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 145px;
  height: 15px;
  border-radius: 80px 80px 0 0;
  background: hsl(212,100%,48%);
}
.vip-grid > .vip-card:nth-child(2)::after {
  content: "MOST POPULAR";
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 715;
  color: hsl(0,0%,100%);
  z-index: 2;
  pointer-events: none;
}
.vip-grid > .vip-card:nth-child(3) {
  position: relative;
  isolation: isolate;
  border: 5px solid transparent;
  border-radius: 20px;
  overflow: visible;
  background:
    linear-gradient(#252525, #252525) padding-box,
    linear-gradient(90deg, #ff0000, #ff7a00, #ffff00, #00ff00, #00e1ff, #7a00ff, #ff0000) border-box;
  background-size: 100% 100%, 400% 100%;
  animation: eliteFlow 14s linear infinite;
  z-index: 1;
}
.vip-grid > .vip-card:nth-child(3)::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 178px;
  height: 13px;
  border-radius: 80px 80px 0 0;
  background: linear-gradient(90deg, #ff0000, #ff7a00, #ffff00, #00ff00, #00e1ff, #7a00ff, #ff0000);
  background-size: 400% 100%;
  animation: eliteFlow 14s linear infinite;
  z-index: -1;
  pointer-events: none;
}
.vip-grid > .vip-card:nth-child(3)::after {
  content: "LIFETIME ACCESS DEAL";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 715;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
@keyframes eliteFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: -400% 0%; }
}

.vip-price__old {
  position: relative;
  font-size: 15px;
  color: #ffffffde;
  margin-left: 10px;
  display: inline-block;
}
.vip-price__old::before,
.vip-price__old::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,0,0,0.89);
  border-radius: 10px;
}
.vip-price__old::before { transform: rotate(25deg); }
.vip-price__old::after  { transform: rotate(-25deg); }

/* Rainbow feature text */
@keyframes rainbowText {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.vip-features li .rainbow {
  background: linear-gradient(90deg, #ff0000, #ff7a00, #ffd000, #00ff4c, #00e1ff, #7a00ff, #ff00c8, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rainbowText 4s linear infinite;
  font-weight: 750;
}


/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-empty {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.archive-icon { color: rgba(255,255,255,0.35); }
.archive-text { color: rgba(255,255,255,0.45); font-size: 14px; font-weight: 500; }


/* ============================================================
   REQUEST PAGE
   ============================================================ */
.request-stack {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.request-stack .request-card { width: 100%; max-width: 100%; }

.request-btn {
  position: relative;
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.request-btn.is-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: transparent;
}
.request-btn.is-success::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: 100%;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(14,14,14,.85);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.footer__center { color: rgba(255,255,255,0.9); text-align: center; flex: 1; }
.footer__left, .footer__right { flex: 0 0 auto; }
.footer__link { color: rgba(255,255,255,.7); text-decoration: none; transition: opacity .2s ease; }
.footer__link:hover { opacity: .6; }
.footer__discord { height: 30px; width: auto; opacity: 0.75; transition: opacity .2s ease, transform .2s ease; cursor: pointer; }
.footer__discord:hover { opacity: 1; transform: scale(1.08); }
.footer__logo { height: 30px; width: auto; opacity: 0.9; }


/* ============================================================
   TOAST
   ============================================================ */
.fz-toast {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 9999;
  width: 320px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(25,20,5,.95), rgba(40,30,10,.95));
  border: 1px solid rgba(255,200,0,.25);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(15px);
  transition: .25s ease;
}
.fz-toast.is-show { opacity: 1; transform: translateY(0); }
.fz-toast__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fz-toast__title { font-weight: 700; font-size: 14px; color: #ffd54a; }
.fz-toast__close { font-size: 14px; cursor: pointer; opacity: .6; transition: .2s; color: #fff; }
.fz-toast__close:hover { opacity: 1; }
.fz-toast__text { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.4; }
.fz-link { color: #ffd54a; cursor: pointer; text-decoration: none; border-bottom: 1px solid rgba(255,213,74,.4); }
.fz-link:hover { color: #ffe27a; }
#fzToastNever:hover { opacity: 1; text-decoration: underline; }

.fz-paywall__discord-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 700;
}
.fz-paywall__discord-link:hover { opacity: 0.85; }


/* ============================================================
   ADMIN ALIAS BAR
   ============================================================ */
.admin-alias-bar { margin-bottom: 10px; }
.admin-alias-bar__title { font-size: 11px; color: rgba(234,240,255,.55); margin-bottom: 6px; padding-left: 2px; }
.admin-alias-list { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-alias-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--surface);
  color: rgba(234,240,255,.82);
  font-size: 12px;
  cursor: pointer;
  transition: .15s ease;
}
.admin-alias-btn:hover { border-color: rgba(255,255,255,.22); }
.admin-alias-btn.is-active { background: rgba(153,26,26,0.45); border-color: rgba(255,255,255,.22); color: #fff; }
.admin-alias-btn--reset { min-width: 32px; padding: 0 8px; font-weight: 700; }


/* ============================================================
   AD
   ============================================================ */
#ad-top {
  width: 100%;
  height: var(--ad-h);
  max-height: var(--ad-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E0E0E;
  padding: 0;
}
#ad-top iframe {
  width: 70%;
  max-width: 900px;
  height: var(--ad-h);
  max-height: var(--ad-h);
  border: 0;
  display: block;
}


body.stream-open #ad-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 26000;
  width: 100%;
  height: var(--ad-h);
  max-height: var(--ad-h);
  --ad-h: 23px;
  background: #0E0E0E;
  
}

body.stream-open .stream-overlay.active {
  top: var(--topbar-h, 64px);
  height: auto;
  bottom: 0;
}
body.stream-open #ad-top iframe { height: var(--ad-h); max-height: var(--ad-h); border: 0; }
body.stream-open #ad-top2.ad-mask { display: none !important; }

#ad-top2.ad-mask {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  z-index: 99999 !important;
  background: transparent !important;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
#ad-top2.ad-mask.inactive { pointer-events: none !important; }
#ad-top2.ad-mask .ad-click-trap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important; height: 100% !important;
  background: transparent;
  z-index: 10;
}
#ad-top2.ad-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.008);
  pointer-events: none;
  z-index: 5;
}


/* ============================================================
   LANDSCAPE FIX
   ============================================================ */
@media screen and (orientation: landscape) {
  body { width: 100vw; min-height: 100vh; }
}


/* ============================================================
   MOBILE — ≤768px
   ============================================================ */
@media (max-width: 768px) {

  .topbar__inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
  } 

  .topbar__nav-wrap { display: none; }

  .jump-section { flex-wrap: wrap; overflow-x: visible; }
  .jump-card { height: 42px; padding: 0 14px; font-size: 13px; }
  .section { padding: 20px 0 14px; }

  .access-features__grid { grid-template-columns: 1fr; gap: 14px; }
  .access-plans { grid-template-columns: 1fr; }
  .access-actions { flex-direction: column; }

  .vip-banner { margin: 0 16px 16px; max-width: calc(100% - 32px); }

  .request-wrap { padding: 28px 0 48px; }
  .request-head { padding: 18px 18px 14px; }
  .request-body { padding: 18px 18px 20px; }
  .type-row { flex-wrap: wrap; gap: 14px; min-width: 0; }

  .fz-toast {
    position: fixed;
    left: 12px; right: 12px;
    bottom: 300px;
    top: auto;
    width: auto;
    max-width: none;
    z-index: 20001;
  }

  :root { --ad-h: 38px; }
  #ad-top iframe { width: 100%; }


body.stream-open .stream-overlay.active {
  top: var(--topbar-h, 64px);
  height: calc(100vh - var(--topbar-h, 64px));
}

  #motorsportCards .card[style*="display: none"],
  #wrestlingCards .card[style*="display: none"],
  #hockeyCards .card[style*="display: none"] { display: none !important; }
}

/* Landscape + mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .fz-toast { left: auto; right: 12px; bottom: 90px; width: 240px; }
  body.stream-open #ad-top { display: flex !important; }
  /* СТАЛО */
body.stream-open .stream-overlay.active {
  top: var(--topbar-h, 64px);
  height: calc(100vh - var(--topbar-h, 64px));
}
}

/* Mobile — ≤520px */
@media (max-width: 520px) {

  .burger-btn { display: flex !important; }

  .promo-track { height: 22px; padding: 0; }
  .promo-track .promo-text { font-size: 8.5px; padding: 0 22px; animation-duration: 22s; }

  .auth-modal { padding: 12px; }
  .auth-card__head { padding: 22px 18px 16px; }
  .auth-card__title { font-size: 24px; }
  .auth-card__body { padding: 18px 18px 20px; }
  .auth-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .auth-btn { height: 30px; padding: 0 8px; font-size: 12px; border-radius: 6px; white-space: nowrap; }

  .topbar__left { flex: 1; width: 100%; min-width: 0; gap: 12px; }
  .topbar__inner { flex-wrap: nowrap; }
  .auth-actions { flex: 0 0 auto; gap: 8px; }

  .topbar__nav-wrap { position: relative; min-width: 0; flex: 1; }
  .topbar__nav {
    min-width: 0;
    flex: 1;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0 10px;
    gap: 10px;
    justify-content: flex-start !important;
  }
  .topbar__nav::-webkit-scrollbar { display: none; }
  .topbar__nav .nav__item { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }

  .topbar__nav-wrap::before,
  .topbar__nav-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 22px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity .15s ease;
  }
  .topbar__nav-wrap::before { left: 0; background: linear-gradient(to right, rgba(14,14,14,.95) 0%, rgba(14,14,14,0) 100%); }
  .topbar__nav-wrap::after  { right: 0; background: linear-gradient(to left, rgba(14,14,14,.95) 0%, rgba(14,14,14,0) 100%); }
  .topbar__nav-wrap.has-left-fade::before { opacity: 1; }
  .topbar__nav-wrap.has-right-fade::after  { opacity: 1; }

  .stream-overlay.active {
    flex-direction: column;
  }

  .stream-main {
    flex: 0 0 50vh;
    height: 50vh;
    min-height: 0;
    width: 100%;
  }

  .stream-chat {
    flex: 1 1 auto;
    height: auto;
    width: 100%;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .chat-body {
    min-height: 0;
    overflow-y: auto;
  }

  body.is-splitting {
    overscroll-behavior: none;
    touch-action: none;
  }

/* Desktop only */
@media (min-width: 769px) {
  .burger-btn { display: none; }
}

.live-empty {
  color: var(--muted);
  font-size: 15px;
  padding: 12px 0 24px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-menu__sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 12px 0 32px;
}

.mobile-menu__handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__item {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu__item:last-child {
  border-bottom: none;
}

.mobile-menu__item.active {
  color: rgb(238, 255, 2);
}

/* Анимация */
.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 0.3s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}

.stream-overlay__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(14,14,14,0.96);
  border-bottom: 1px solid var(--stroke);
  flex-shrink: 0;
  flex-direction: row;
}

.stream-overlay__back {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.stream-overlay__back:hover {
  background: rgba(255,255,255,.15);
}

.stream-overlay__title {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  font-family: 'Mozilla Text', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__nickname {
  font-size: 13px;
  font-family: 'Mozilla Text', sans-serif;
  font-weight: 700;
  color: #fff;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-sys-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: inherit;
}

.chat-sys-link {
  color: #c5fc00;
  text-decoration: underline;
}

.chat-sys-link:hover {
  color: #0015ff;
}

/* ===== PINNED CARD — PLAVNOE POYAVLENIE (TransitionGroup) ===== */
.pin-fade-enter-active {
  transition: opacity .5s ease, transform .5s ease;
}

.pin-fade-enter-from {
  opacity: 0;
  transform: translateY(12px);
}

.pin-fade-move {
  transition: transform .4s ease;
}
}

.confirm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
}

.confirm__box {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(245, 168, 0, .30);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
  text-align: center;
}

.confirm__text {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.confirm__actions {
  display: flex;
  gap: 8px;
}

.confirm__btn {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}

.confirm__btn:hover { background: rgba(255, 255, 255, .12); }

.confirm__btn--danger {
  border-color: rgba(255, 70, 70, .45);
  background: rgba(255, 70, 70, .18);
}

.confirm__btn--danger:hover { background: rgba(255, 70, 70, .30); }

/* ─── Поиск в топбаре ───────────────────────────────────── */

.topbar__search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  transition: background .15s ease, border-color .15s ease;
}

.topbar__search:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.topbar__search:focus-within {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(245, 168, 0, .50);
}

.topbar__search:focus-within .topbar__search-icon {
  color: rgba(255, 255, 255, .75);
}

.topbar__search-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .45);
}

.topbar__search-input {
  flex: 1;
  min-width: 0;          /* иначе поле не сожмётся и разорвёт топбар */
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}

.topbar__search-input::placeholder {
  color: rgba(255, 255, 255, .38);
}


@media (max-width: 768px) {
  .topbar__search-wrap { display: none; }

  .mobile-search .topbar__search { display: flex; }
}

/* ─── Выпадающий список поиска ──────────────────────────── */

.topbar__search-wrap {
  position: relative;
}

.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  max-width: 90vw;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #0d0d16;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .70);
  z-index: 20001;   /* топбар лежит на 20000 */
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}

.search-item:hover {
  background: rgba(255, 255, 255, .06);
}

.search-item__poster {
  flex: 0 0 auto;
  width: 92px;
  height: 52px;
  border-radius: 6px;
  background: #1a1a26 center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Заглушка, когда картинки нет */
.search-item__poster--fallback::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(40% 60% at 25% 30%, rgba(255, 214, 0, .5), transparent 70%),
    radial-gradient(45% 65% at 78% 72%, rgba(255, 138, 0, .32), transparent 70%),
    radial-gradient(70% 90% at 50% 50%, rgba(38, 38, 56, .92), #0f0f16 78%);
  filter: blur(14px);
  pointer-events: none;
}

.search-item__logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
  pointer-events: none;
}

.search-item__body {
  flex: 1;
  min-width: 0;
}

.search-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;

  /* Две строки максимум, иначе длинные названия растянут список. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .50);
}

.search-item__cat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item__time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.search-item__time.is-live {
  color: #ff4646;
  font-weight: 700;
}

/* ─── Состояния поиска ──────────────────────────────────── */

.search-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 78px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.search-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: rgba(245, 168, 0, .85);
  animation: search-spin .7s linear infinite;
}

@keyframes search-spin {
  to { transform: rotate(360deg); }
}

/* У тебя уже есть блок prefers-reduced-motion — сюда добавлено
   отдельно, чтобы правило лежало рядом со спиннером. */
@media (prefers-reduced-motion: reduce) {
  .search-spinner {
    animation-duration: 2s;
  }
}

/* ─── Нижняя панель поиска (телефон) ────────────────────── */

.mobile-search {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20001;
  display: none;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 0, 39, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .10);

  /* Прячем сдвигом, а не display: none — иначе не будет анимации. */
  transform: translateY(110%);
  transition: transform .25s ease;
}

.mobile-search.is-visible {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .mobile-search { display: block; }
}

/* Список результатов раскрывается вверх от поля. */
.search-drop--up {
  top: auto;
  bottom: calc(100% + 8px);
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  max-height: 55vh;
}

/* Поле внутри панели тянется на всю ширину. */
.mobile-search .topbar__search {
  width: 100%;
  height: 40px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-search { transition: none; }
}

/* ─── Квадратные кнопки топбара ─────────────────────────── */

.topbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .65);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.topbar__icon-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.topbar__icon-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  /* Сетка из пяти колонок здесь не нужна: навигация и поиск скрыты.
     Flex позволяет прижать кнопки входа к краю одним margin-right. */
  .topbar__inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
  }

  /* Бренд — единственный элемент, которому разрешено сжиматься (0 1 auto).
     При длинных локалях он обрежется многоточием, а не порвёт строку. */
  .topbar__brand {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
  }
  .topbar__brand img { height: 28px; }
  .brand__name {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__icon-btn { display: flex; width: 32px; height: 32px; }
  .topbar__icon-btn svg { width: 16px; height: 16px; }

  /* Финальные размеры кнопок задаём здесь: этот блок в файле ниже,
     чем @media (max-width: 520px), и перебивает его. */
  .auth-actions { flex: 0 0 auto; gap: 6px; }
  .auth-btn {
    height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .burger-btn { flex: 0 0 auto; width: 28px; height: 28px; }

  /* Всё, что правее глобуса, уезжает к правому краю. */
  .topbar__lang { margin-right: auto; }

  /* Кнопка теперь слева — список раскрываем вправо,
     иначе он вылезет за границу экрана. */
  .lang-drop {
    left: 0;
    right: auto;
  }
}
/* ─── Выбор языка ───────────────────────────────────────── */

.topbar__lang {
  position: relative;
}

.topbar__icon-btn.is-active {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(245, 168, 0, .50);
  color: #fff;
}

.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border-radius: 11px;
  background: #0d0d16;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .70);
  z-index: 20001;
}

.lang-drop__item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .70);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.lang-drop__item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.lang-drop__item.is-current {
  color: #fff;
  font-weight: 700;
  background: rgba(245, 168, 0, .12);
}

img.emoji {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}

/* ============================================================
   NO iOS ZOOM ON INPUT FOCUS
   Safari зумит страницу, если у поля в фокусе шрифт < 16px.
   ============================================================ */
@media (max-width: 768px) {
  input,
  textarea,
  select,
  .chat-form input,
  .topbar__search-input,
  .auth-input input {
    font-size: 16px !important;
  }
}

/* =====================================================================
   ВЫРАВНИВАНИЕ ШАПКИ И СТРАНИЦЫ
   Топбар сидел в .container с max-width:1240px и центрировался по окну,
   а список событий с недавних пор идёт почти во всю ширину (поле 60px
   слева). Из-за этого логотип начинался примерно в 350px от края, а ряды
   в 60px — шапка и страница жили на разных осях. Тянем шапку к тому же
   левому краю.
   ===================================================================== */

@media (min-width: 1201px) {
  .topbar__inner.container {
    max-width: none;
    padding: 0 60px;
  }
}

/* Запасная высота топбара до того, как её измерит JS. Реальное значение
   выставляет useTopbar() в --topbar-h на <html>. */
:root { --topbar-h: 48px; }

/* Пустая LIVE-секция вообще не имела боковых полей и прилипала к краю окна */
.live-empty {
  padding: 12px 60px 24px;
}

@media (max-width: 1200px) {
  .live-empty { padding: 12px 24px 24px; }
}

@media (max-width: 768px) {
  .live-empty { padding: 12px 12px 20px; }
}


/* =====================================================================
   ПАЛИТРА «ПРОСТО СВЕТЛЕЕ»
   Тёмная тема остаётся, но фон уходит из почти чёрного в графитово-синий,
   поверхности заметно светлее фона, обводка серая вместо жёлтой.
   Жёлтый остаётся акцентом: логотип, VS, наведение.
   ===================================================================== */

:root {
  --fz-bg: #1b1f2a;        /* фон страницы */
  --fz-bg-top: #232838;    /* шапка */
  --fz-row: #262c3a;       /* ряды, плашки, карточки */
  --fz-row-2: #1f2431;     /* бегущая строка, колонка Discord */
  --fz-stroke: #3941547a;  /* обводка объектов */
  --fz-live: #ff5a6a;      /* эфир: на светлом фоне #ff3b3b звенел */
  --fz-ink: #eef1f7;

  /* переменные проекта подтягиваем туда же */
  --text: #eef1f7;
  --muted: #9aa3b5;
  --stroke: #394154;
}

body { background: var(--fz-bg); }

/* Жёлтое свечение под шапкой на светлом фоне читалось как грязь */
.topbar {
  background: var(--fz-bg-top);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}
