/* ---------- Демо-записи: верхняя панель (сервер + поиск) ---------- */
/* Контент страницы режем по умолчанию (.wapper > .content overflow:hidden),
   иначе шторке серверов некуда выпадать — открываем только на странице демок */
.wapper > .content:has(.xz-demos-bar) {
  overflow: visible;
}
.wapper > .content:has(.xz-demos-bar)::after {
  content: " ";
  clear: both;
  display: table;
}
.xz-demos {
  border-radius: 10px;
}
.xz-demos-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #6a1fb0 0%, #e91e63 60%, #ff5722 130%);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.35);
}
.xz-demos-bar::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}
.xz-demos-server {
  position: relative;
  flex: 0 0 auto;
}
.xz-demos-server-btn {
  white-space: nowrap;
}
.xz-demos-server-btn .glyphicon {
  margin-right: 6px;
  font-size: 12px;
}
.xz-demos-server-btn .caret {
  margin-left: 6px;
}
.xz-demos-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1200;
  min-width: 240px;
  max-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: linear-gradient(#342650, #2a1d40) padding-box, linear-gradient(135deg, #7b2cbf, #e91e63) border-box;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(123, 44, 191, 0.25);
}
.xz-demos-drawer.open {
  display: block;
  animation: xzDemosDrawerIn 0.2s ease;
}
@keyframes xzDemosDrawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.xz-demos-drawer li {
  margin-bottom: 2px;
}
.xz-demos-drawer li:last-child {
  margin-bottom: 0;
}
.xz-demos-drawer li a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: #cfc6e4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}
.xz-demos-drawer li a:hover {
  background: rgba(123, 44, 191, 0.35);
  color: #ffffff;
}
.xz-demos-drawer li.active a {
  background: linear-gradient(90deg, #7b2cbf, #e91e63);
  color: #ffffff;
}
.xz-demos-search {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.xz-demos-search .form-control {
  flex: 1 1 auto;
  min-width: 0;
  background-color: rgba(45, 32, 68, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.xz-demos-search .form-control::placeholder {
  color: #a89cc4;
}
.xz-demos-search .form-control:focus {
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.xz-demos-search .btn2 {
  flex: 0 0 auto;
}
@media (max-width: 767.99px) {
  .xz-demos-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .xz-demos-server-btn {
    width: 100%;
  }
  .xz-demos-drawer {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .xz-demos-search {
    width: 100%;
  }
}

/* ---------- Демо-записи: компактные карточки ---------- */
.xz-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #32244d;
  border: 1px solid #4d2f6e;
  border-radius: 10px;
  padding: 10px 14px 10px 10px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.xz-demo:hover {
  border-color: #9b4dd6;
  box-shadow: 0 4px 18px rgba(123, 44, 191, 0.25);
}
.xz-demo-thumb {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  height: 112px;
  background-size: cover;
  background-position: center;
  background-color: #2d2044;
  border-radius: 8px;
  padding: 2px;
  background-clip: content-box;
}
.xz-demo-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #7b2cbf 0%, #e91e63 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.xz-demo-info {
  flex: 1 1 auto;
  min-width: 0;
}
.xz-demo-map {
  color: #ffffff;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.xz-demo-date {
  color: #a89cc4;
  font-size: 13px;
}
.xz-demo-date .glyphicon {
  color: #e91e63;
  font-size: 12px;
  margin-right: 4px;
}
.xz-demo-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xz-demo-dl {
  white-space: nowrap;
}
.xz-demo-dl .glyphicon {
  margin-right: 6px;
  font-size: 12px;
}
.xz-demo-size {
  opacity: 0.75;
  font-weight: 400;
  font-size: 12px;
}
.demo-chat-btn {
  color: #ff6bcb;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.demo-chat-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Мобильный вид демок ---------- */
@media (max-width: 767.99px) {
  .xz-demo {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }
  .xz-demo-thumb {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .xz-demo-info {
    flex: 1 1 100%;
    text-align: center;
  }
  .xz-demo-map {
    font-size: 15px;
    white-space: normal;
  }
  .xz-demo-actions {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 8px;
  }
  .xz-demo-dl {
    width: 100%;
    text-align: center;
  }
}

/*# sourceMappingURL=primary.css.map */

/* Лог чата демки (стиль как чат сайта) */
.demo-chat-btn { margin-right: 8px; }
.demo-chat { margin: 0 0 10px; text-align: left; background: #2d2044; border: 1px solid #4d2f6e; border-radius: 10px; padding: 8px 12px; }
.demo-chat-messages { max-height: 320px; overflow-y: auto; overflow-x: hidden; border: none; border-radius: 0; padding: 0; }
.demo-chat-messages::-webkit-scrollbar { width: 8px; }
.demo-chat-messages::-webkit-scrollbar-track { background: transparent; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: #7b2cbf; border-radius: 4px; }
.demo-chat-messages::-webkit-scrollbar-thumb:hover { background: #e91e63; }
.demo-chat-message { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.demo-chat-message:last-child { border-bottom: none; }
.demo-chat-message .user_img { float: left; border-radius: 50%; height: 44px; width: 44px; padding: 2px; background-color: #7b2cbf; object-fit: cover; }
.demo-chat-message .message { word-wrap: break-word; margin-left: 54px; position: relative; overflow: hidden; font-size: 13px; line-height: 18px; color: #b7bacd; }
.demo-chat-message .message .info { display: block; margin-bottom: 3px; height: 16px; }
.demo-chat-message .message .info .author { font-size: 13px; font-weight: normal; float: left; position: relative; }
.demo-chat-message .message .info .date { font-size: 11px; font-weight: 600; position: relative; float: right; line-height: 12px; color: #8f94ad; }
.demo-chat-team { font-weight: normal; opacity: 0.7; font-size: 11px; }
.demo-chat-empty { text-align: center; padding: 15px; opacity: 0.7; }
@media (max-width: 767.99px) {
  .demo-chat-messages { max-height: 260px; }
  .demo-chat-message .user_img { height: 38px; width: 38px; }
  .demo-chat-message .message { margin-left: 46px; }
}
