body.is-document-protected-video-open {
  overflow: hidden;
}

.document-protected-video-wrap {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  box-sizing: border-box;
  padding: 16px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: rgba(2, 6, 23, 0.94);
}

.document-protected-video-wrap[data-video-view="window"],
.document-protected-video-wrap[data-video-view="fullscreen"] {
  padding: 0;
  background: #000;
}

.document-protected-video-popup {
  display: grid;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.document-protected-video-wrap[data-video-view="window"] .document-protected-video-popup,
.document-protected-video-wrap[data-video-view="fullscreen"] .document-protected-video-popup {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.document-protected-video-popup[data-video-toolbar-overlay="true"] {
  position: relative;
  grid-template-rows: minmax(0, 1fr);
}

.document-protected-video-popup[data-video-toolbar-overlay="true"] .document-protected-video-toolbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}

.document-protected-video-toolbar {
  display: flex;
  min-height: 58px;
  padding: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.document-protected-video-title {
  margin-right: auto;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.document-protected-video-view-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.document-protected-video-view-button,
.document-protected-video-sound,
.document-protected-video-close {
  min-height: 34px;
  padding: 7px 12px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.9);
  font: 600 0.78rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.document-protected-video-view-button:hover,
.document-protected-video-view-button:focus-visible,
.document-protected-video-sound:hover,
.document-protected-video-sound:focus-visible,
.document-protected-video-close:hover,
.document-protected-video-close:focus-visible {
  color: #fff;
  border-color: #93c5fd;
  background: #1d4ed8;
  outline: none;
}

.document-protected-video-view-button.is-active {
  color: #fff;
  border-color: #60a5fa;
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.document-protected-video-sound {
  border-color: rgba(253, 230, 138, 0.6);
  background: rgba(120, 53, 15, 0.82);
}

.document-protected-video-close {
  border-color: rgba(248, 113, 113, 0.54);
  background: rgba(127, 29, 29, 0.76);
}

.document-protected-video-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #000;
}

.document-protected-video-canvas {
  display: grid;
  box-sizing: border-box;
  place-items: center;
}

.document-protected-video-display {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.document-protected-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.document-protected-video-countdown {
  padding: 5px 9px;
  color: #fff;
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.74);
  font: 700 12px/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .document-protected-video-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .document-protected-video-title {
    width: 100%;
  }

  .document-protected-video-view-controls {
    flex: 1 1 auto;
    overflow-x: auto;
  }

  .document-protected-video-view-button,
  .document-protected-video-sound,
  .document-protected-video-close {
    flex: 0 0 auto;
  }
}
