.kt-demo-player {
  width: min(100%, 840px);
  margin: 18px auto 8px;
}

.kt-demo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #090b10;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.kt-demo-video {
  display: block;
  width: 100%;
  height: auto;
  background: #090b10;
  object-fit: contain;
}

.kt-demo-big-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 68px;
  height: 68px;
  padding: 0;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 17, 24, 0.72);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease;
}

.kt-demo-big-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(22, 28, 40, 0.9);
}

.kt-demo-big-play svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.kt-demo-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: #f4f6fa;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, 0.94) 26%);
}

.kt-demo-controls button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.kt-demo-controls button:hover,
.kt-demo-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.kt-demo-controls button:focus-visible,
.kt-demo-controls input:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.kt-demo-controls svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.kt-demo-controls .kt-demo-mute svg,
.kt-demo-controls .kt-demo-fullscreen svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.kt-demo-time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kt-demo-seek {
  min-width: 40px;
  flex: 1 1 auto;
}

.kt-demo-volume {
  width: 76px;
  flex: 0 1 76px;
}

.kt-demo-controls input[type="range"] {
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #3d8bff);
  cursor: pointer;
}

.kt-demo-speed {
  min-width: 38px;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

.kt-demo-player.is-playing .kt-demo-big-play,
.kt-demo-player.is-playing .kt-icon-play,
.kt-demo-player:not(.is-playing) .kt-icon-pause {
  display: none;
}

@media (max-width: 600px) {
  .kt-demo-frame { border-radius: 12px; }
  .kt-demo-controls { min-height: 46px; gap: 4px; padding: 6px 8px; }
  .kt-demo-controls button { width: 30px; height: 30px; }
  .kt-demo-controls svg { width: 18px; height: 18px; }
  .kt-demo-time { font-size: 11px; }
  .kt-demo-volume { display: none; }
}

.questions-demo-intro {
  width: 100%;
}

.questions-demo-intro > .eyebrow {
  text-align: center;
}

/* RU-only subtitle visibility correction. */
html[lang="ru"] .kt-demo-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1608 / 1080;
}

html[lang="ru"] .kt-demo-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

html[lang="ru"] .kt-demo-controls {
  position: relative;
  inset: auto;
}

html[lang="ru"] .kt-demo-player:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  display: grid;
  place-items: center;
  background: #090b10;
}

html[lang="ru"] .kt-demo-player:fullscreen .kt-demo-frame {
  width: min(100vw, calc(100vh * 1608 / 1080));
}
