.project[data-demo="knowledge"] .project-cover--film,
.project[data-demo="consultant"] .project-cover--film,
.project[data-demo="quiz"] .project-cover--film,
.project[data-demo="voice"] .project-cover--film {
  padding: 0;
  background: var(--paper);
  border-color: var(--line);
}

.knowledge-main { padding-top: 36px; }
.project[data-knowledge-preview], .project[data-project-preview] { position: relative; }
.project[data-demo="consultant"] .project-cover--film { background: #171b19; }
.knowledge-film.consultant-film { background: #171b19; }
.project[data-demo="quiz"] .project-cover--film,
.knowledge-film.questionnaire-film { background: #152c24; }
.project-cover--film video { display: block; width: 100%; height: 100%; object-fit: contain; }

.knowledge-preview-toggle,
.knowledge-film-sound {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7dce2;
  border-radius: 50%;
  color: #1b2433;
  background: #ffffffed;
  cursor: pointer;
}
.knowledge-preview-toggle:hover,
.knowledge-film-sound:hover { background: #fff; border-color: var(--blue); }
.knowledge-preview-toggle:focus-visible,
.knowledge-film-sound:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.knowledge-preview-toggle .icon,
.knowledge-film-sound .icon { width: 20px; height: 20px; }
.knowledge-main .detail-summary { margin-top: 14px; }

.knowledge-film {
  position: relative;
  width: min(100%, 960px);
  margin: 28px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f5f5;
}

.knowledge-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.knowledge-film.is-portrait {
  width: min(100%, 344px);
  aspect-ratio: 9 / 16;
}

.knowledge-film-play {
  position: absolute;
  inset: auto auto 58px 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 22px rgb(13 36 83 / 18%);
  transform: translateX(-50%);
  transition: background-color 160ms, box-shadow 160ms;
}

.knowledge-film-play .icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: currentColor;
}

.knowledge-film.is-portrait .knowledge-film-play {
  inset: auto 18px 58px auto;
  transform: none;
}

.knowledge-film-play:hover {
  background: #1947a8;
  box-shadow: 0 7px 26px rgb(13 36 83 / 24%);
}

.knowledge-film-play:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.knowledge-actions { justify-content: center; margin-top: 24px; }
.knowledge-film-error { margin-top: 16px; text-align: center; }

@media (min-width: 961px) and (max-height: 820px) {
  .knowledge-film { width: min(100%, max(600px, calc((100svh - 350px) * 16 / 9))); }
}

@media (max-width: 640px) {
  .knowledge-main { padding-top: 28px; }
  .knowledge-film { margin-top: 24px; }
  .knowledge-film-play { width: 60px; height: 60px; }
  .knowledge-actions { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-film-play { transition: none; }
}

@media print {
  .knowledge-film, .knowledge-film-error { display: none; }
}
