/* The video stays opaque; the surrounding dialog provides the glass material. */
.fa-video[data-fa-video] {
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.fa-text-link[data-fa-video] {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
#faVideoDialog {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(18px, 3vw, 30px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-lg, 24px);
  background: rgba(22, 29, 27, .91);
  color: #f6f7f4;
  color-scheme: dark;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}
#faVideoDialog::backdrop {
  background: rgba(8, 13, 11, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#faVideoDialog[open] { animation: fa-video-enter 180ms ease-out; }
.fa-video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
#faVideoDialog h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.fa-video-dialog-copy {
  margin: 0 0 20px;
  color: #d8ded8;
  font-size: 14px;
  line-height: 1.6;
}
#faVideoPlayer {
  display: block;
  width: 100%;
  max-height: 62vh;
  max-height: 62dvh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  background: #080c0a;
}
#faVideoPlayer[hidden], #faVideoDialog [hidden] { display: none; }
.fa-video-dialog-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}
#faVideoStatus {
  flex: 1 1 240px;
  margin: 16px 0 0;
  min-height: 1.6em;
  color: #e1e6df;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fa-video-dialog-feedback #faVideoStatus { margin: 0; }
#faVideoDialog [data-fa-video-close],
#faVideoDialog [data-fa-video-retry] {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
#faVideoDialog [data-fa-video-close]:hover,
#faVideoDialog [data-fa-video-retry]:hover { background: rgba(255, 255, 255, .18); }
#faVideoDialog :focus-visible {
  outline: 3px solid var(--accent-light, #d1efb3);
  outline-offset: 4px;
}
[data-fa-video]:focus-visible {
  outline: 3px solid var(--accent-texto, #1f652a);
  outline-offset: 4px;
}
@keyframes fa-video-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  #faVideoDialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 20px;
  }
  .fa-video-dialog-head { gap: 12px; }
  #faVideoDialog [data-fa-video-close] { padding: 10px; }
  #faVideoPlayer { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #faVideoDialog[open] { animation: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #faVideoDialog {
    background: #161d1b;
    border-color: #aab6af;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  #faVideoDialog::backdrop {
    background: rgba(8, 13, 11, .92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
