body.player-page {
  height: auto;
  overflow-y: auto;
}

.is-h5p .di4y-player-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 20px;
}

.h5p-course-meta {
  color: var(--muted);
  font-size: 13px;
}

.h5p-player-stage {
  display: flex;
  min-height: calc(100vh - 54px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.h5p-player-content {
  width: 100%;
  max-width: min(1280px, calc((100dvh - 150px) * 16 / 9));
  background: var(--white);
  box-shadow: 0 8px 30px rgba(45, 20, 25, 0.1);
}

.h5p-player-content iframe {
  display: block;
  width: 100%;
  border: 0;
}

.h5p-player-message {
  padding: 64px 24px;
  text-align: center;
}

.h5p-player-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 700px) {
  .is-h5p .di4y-player-header {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 10px;
  }

  .h5p-course-meta {
    display: none;
  }

  .h5p-player-stage {
    min-height: 0;
    padding: 16px 8px;
  }

  .h5p-player-content {
    max-width: 100%;
  }
}
