html.showcase-video-open,
html.showcase-video-open body {
  overflow: hidden;
}

.showcase-video-modal {
  width: min(1180px, calc(100vw - 36px));
  height: min(790px, calc(100dvh - 36px));
  min-width: min(560px, calc(100vw - 36px));
  min-height: min(360px, calc(100dvh - 36px));
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  resize: both;
  color: var(--ink, #112033);
  background: #fff;
  border: 1px solid #83adc9;
  border-radius: 17px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.showcase-video-modal[open] {
  display: flex;
  flex-direction: column;
}

.showcase-video-modal::backdrop {
  background: rgba(9, 26, 43, .7);
  backdrop-filter: blur(4px);
}

.showcase-video-modal::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-right: 3px solid #1767a7;
  border-bottom: 3px solid #1767a7;
  border-radius: 0 0 4px 0;
  pointer-events: none;
}

.showcase-video-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(120deg, #103954, #1767a7);
}

.showcase-video-header span {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.showcase-video-header h2 {
  margin: 0;
  color: inherit;
  font-size: 19px;
  line-height: 1.3;
}

.showcase-video-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
}

.showcase-video-close:hover { background: rgba(255, 255, 255, .24); }
.showcase-video-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.showcase-video-player {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.showcase-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.showcase-video-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px 14px 18px;
  color: var(--muted, #5f6d7c);
  background: #f5f8fb;
  font-size: 12px;
}

.showcase-video-footer p { margin: 0; }
.showcase-video-resize-hint { margin-top: 3px !important; }
.showcase-video-footer a {
  color: #0f4c7d;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .showcase-video-modal {
    width: calc(100vw - 16px);
    height: fit-content;
    min-width: 0;
    min-height: 0;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    resize: none;
    overflow-y: auto;
  }
  .showcase-video-player { flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .showcase-video-header { padding: 12px; }
  .showcase-video-header h2 { font-size: 17px; }
  .showcase-video-footer { align-items: flex-start; flex-direction: column; padding: 12px; }
  .showcase-video-modal::after, .showcase-video-resize-hint { display: none; }
}
