/* =========================================================
   知识库正文视频：前端水印、全屏与下载限制
   ========================================================= */

.article-video-shell {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.article-video-shell video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  -webkit-touch-callout: none;
  user-select: none;
}

.article-video-shell video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.article-video-watermark {
  position: absolute;
  top: 2.5%;
  right: 2%;
  z-index: 3;
  display: block;
  width: 18%;
  max-width: 320px;
  min-width: 120px;
  height: auto;
  opacity: .9;
  pointer-events: none;
  user-select: none;
}

.article-video-fullscreen {
  position: absolute;
  right: 26px;
  bottom: 23px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 50px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
  opacity: .92;
  transition: background .15s ease, opacity .15s ease;
}

.article-video-fullscreen-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
  pointer-events: none;
}

.article-video-fullscreen-icon.is-collapse {
  display: none;
}

.article-video-fullscreen[data-fullscreen="true"] .is-expand {
  display: none;
}

.article-video-fullscreen[data-fullscreen="true"] .is-collapse {
  display: block;
}

.article-video-fullscreen:hover {
  background: rgba(255, 255, 255, .14);
  opacity: 1;
}

.article-video-fullscreen:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: -3px;
}

.article-video-fullscreen[hidden] {
  display: none;
}

.article-video-shell:fullscreen,
.article-video-shell:-webkit-full-screen,
.article-video-shell.is-pseudo-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.article-video-shell:fullscreen video,
.article-video-shell:-webkit-full-screen video,
.article-video-shell.is-pseudo-fullscreen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.article-video-shell.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

body.article-video-pseudo-fullscreen-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .article-video-watermark {
    top: 3%;
    right: 3%;
    width: 30%;
    min-width: 100px;
  }
}
