html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  font-family: sans-serif;
  height: 100%;
  width: 100%;
}

* {
  font-size: 24px;
}

.btn {
  padding: 0.5rem;
  cursor: pointer;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 10px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
}

.btn:hover {
  background: #666;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.persona {
  width: 100vw;
  height: calc(100vh - 4rem);
  position: relative;
  display: flex;
  justify-content: center;
}
.chat {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}
.chat div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

textarea {
  outline: none;
  resize: none;
  width: 100%;
  border-radius: 0.25rem;
}

video {
  position: absolute;
  height: 100%;
  object-fit: cover;
  background: #000;
  object-position: center;
}

#videoPlayers {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.tt-format video {
  top: 15%;
  height: 70vh;
}

.tt-format .text-style {
  max-width: 35%;
  -webkit-text-stroke: none;

  /* Полупрозрачный фон */
  background: none;
  /* Чёрный фон с 50% прозрачностью */
  backdrop-filter: none;
}

.text-style {
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  text-shadow: none;
  /* Убираем тени */
  -webkit-text-stroke: 0.4px black;
  /* Едва заметная черная обводка */
  z-index: 2;
  font-weight: bold;
  max-width: 25%;
  /* Полупрозрачный фон */
  background: rgba(0, 0, 0, 0.4);
  /* Чёрный фон с 50% прозрачностью */
  padding: 10px;
  /* Внутренние отступы, чтобы текст не лип к краям */
  border-radius: 10px;
  /* Закругляем края */
  /* Дополнительно: эффект размытия */
  backdrop-filter: blur(3px);
  /* Отступы от внешней части */
  margin-top: 30px;
  margin-left: 30px;
}

#topic {
  white-space: normal;
  /* Разрешаем перенос строк */
  overflow: hidden;
  /* Скрываем выходящий за границы текст */
  text-overflow: ellipsis;
  /* Добавляем "..." если текст обрезается */
  word-wrap: break-word;
  /* Переносим длинные слова */
  width: 100%;
  /* Ограничиваем ширину блока */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Обрезаем до 2 строк */
  -webkit-box-orient: vertical;
}

#tt-instruction {
  display: none;
}

.tt-format #tt-instruction {
  display: block;
  position: absolute;
  text-align: center;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  color: #ffffff;
  font-size: 30px;
  width: 90%;
}

#note {
  position: absolute;
  top: 20px;
  right: 30px;
}

#subtitles {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 32px;
  /* Увеличил размер шрифта */
  background: rgba(0, 0, 0, 0.4);
  /* Чёрный фон с 50% прозрачностью */
  text-shadow: none;
  /* Убрал тени */

  z-index: 2;
  padding: 0 20px;
  box-sizing: border-box;
}

.tt-format #subtitles {
  bottom: 20%;
}

video::-webkit-media-controls {
  display: none !important;
}

.chatbox {
  z-index: 400;
  bottom: 0.25rem;
  position: fixed;
}

#startScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 999;
}

#startBtn {
  padding: 20px 40px;
  border: none;
  border-radius: 10px;
  transition: background 0.3s;
}