.answer-blocks:empty { display: none; }
.answer-blocks { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.answer-blocks img,.answer-blocks video { max-width: 100%; max-height: 30vh; object-fit: contain; }
.answer-blocks audio { max-width: 100%; }
.answer-explanation { white-space: pre-wrap; font-size: .7em; line-height: 1.4; color: #d8d1ee; }
/* Показ ответа с медиа вместо окна вопроса: ответ сверху, медиа на всё оставшееся место. */
.answer-show > .question-content { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 12px; }
.answer-show > .reveal-answer { text-align: center; }
.answer-show .question-media video { width: 100%; max-height: 45dvh; object-fit: contain; }
/* Телевизор: картинка и видео вписываются в карточку целиком, без прокрутки. */
.tv-mode .question-card.answer-show > .question-content { overflow: hidden; }
.tv-mode .answer-show .question-content > .question-media:has(video),
.tv-mode .answer-show .question-content > .question-images { flex: 1 1 0; min-height: 0; width: 100%; }
.tv-mode .answer-show .question-media video { width: 100%; height: 100%; max-height: none; }
.tv-mode .answer-show .question-images .question-image { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.tv-mode .answer-show .external-video { flex: 1 1 0; min-height: 0; width: 100%; }
.tv-mode .answer-show .external-frame { height: 100%; min-height: 0; aspect-ratio: auto; }
/* Пульт: медиа ответа не выдавливает вопрос из карточки. */
.host-answer-panel .answer-blocks img, .host-answer-panel .answer-blocks video { max-height: 18dvh; }
/* Телефон: в витрине нет таймера, отступ под него не нужен. */
.player-mode .player .question-card.reveal-card.answer-show { padding-right: 20px; }
/* Round the actual picture, rather than a full-width object-fit letterbox. */
:is(.tv-mode, .player-mode) .question-card.answer-show .question-content > .question-images .question-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
}
.tv-mode .question-card.answer-show .question-content > .question-images { container-type: size; }
.tv-mode .question-card.answer-show .question-content > .question-images .question-image {
  width: min(100cqw, calc(100cqh * var(--image-ratio, 1)));
  height: min(100cqh, calc(100cqw / var(--image-ratio, 1)));
}
/* Узкий телевизор растёт по содержимому: медиа получает свою высоту, а не остаток. */
@media (max-width: 900px) {
  .tv-mode .question-card.answer-show > .question-content { overflow: visible; }
  .tv-mode .answer-show .question-content > .question-media:has(video),
  .tv-mode .answer-show .question-content > .question-images,
  .tv-mode .answer-show .external-video { flex: none; }
  .tv-mode .answer-show .question-media video,
  .tv-mode .answer-show .question-images .question-image { height: auto; max-height: 55dvh; }
  .tv-mode .question-card.answer-show .question-content > .question-images { container-type: inline-size; }
  .tv-mode .question-card.answer-show .question-content > .question-images .question-image {
    width: min(100cqw, calc(55dvh * var(--image-ratio, 1)));
    height: auto;
    max-height: 55dvh;
  }
}
