/* Prospero video overlay / PiP */
.pv-root {
  --pv-navy: #021b73;
  --pv-sky: #56aeff;
  --pv-white: #ffffff;
  --pv-ink: #0e131f;
  --pv-shadow: 0 18px 50px rgba(2, 27, 115, 0.28);
  --pv-radius: 14px;
  --pv-font: "Source Sans 3", "Segoe UI", sans-serif;
  position: fixed;
  z-index: 10050;
  font-family: var(--pv-font);
  color: var(--pv-white);
  touch-action: none;
  user-select: none;
}

.pv-root[hidden] {
  display: none !important;
}

.pv-frame {
  position: relative;
  background: #000;
  border-radius: var(--pv-radius);
  box-shadow: var(--pv-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: grab;
}

.pv-root.is-dragging .pv-frame {
  cursor: grabbing;
}

.pv-root.is-center .pv-frame {
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1),
    height 1s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.4s ease;
}

.pv-root.is-animating-dock .pv-frame,
.pv-root.is-animating-dock {
  transition: top 1s cubic-bezier(0.22, 1, 0.36, 1),
    left 1s cubic-bezier(0.22, 1, 0.36, 1),
    right 1s cubic-bezier(0.22, 1, 0.36, 1),
    width 1s cubic-bezier(0.22, 1, 0.36, 1),
    height 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pv-root.is-entering .pv-frame {
  animation: pv-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pv-enter {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  vertical-align: middle;
}

.pv-big-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: clamp(4.25rem, 18%, 5.75rem);
  height: clamp(4.25rem, 18%, 5.75rem);
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  display: none;
  place-items: center;
  pointer-events: auto;
}

.pv-root.is-paused .pv-big-play {
  display: grid;
}

.pv-root.is-ended .pv-big-play {
  display: none;
}

.pv-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2.5%, 0.7rem);
  padding: 0 0.4rem;
  box-sizing: border-box;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
}

.pv-end:not([hidden]) {
  display: flex;
}

.pv-end-btn {
  position: relative;
  flex: 0 0 auto;
  width: clamp(2.55rem, 11%, 3.6rem);
  height: clamp(2.55rem, 11%, 3.6rem);
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  pointer-events: auto;
  display: grid;
  place-items: center;
}

.pv-end-btn--primary {
  width: clamp(3.35rem, 14%, 4.75rem);
  height: clamp(3.35rem, 14%, 4.75rem);
}

.pv-end-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(2, 27, 115, 0.72);
  border: 2px solid rgba(86, 174, 255, 0.85);
  box-shadow: 0 12px 36px rgba(2, 27, 115, 0.35), 0 0 0 8px rgba(86, 174, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.pv-end-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58%;
  height: 58%;
  color: #fff;
}

.pv-end-btn--primary .pv-end-icon {
  width: 62%;
  height: 62%;
}

.pv-end-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.pv-end-btn:hover .pv-end-ring,
.pv-end-btn:focus-visible .pv-end-ring {
  background: rgba(86, 174, 255, 0.95);
  box-shadow: 0 14px 40px rgba(2, 27, 115, 0.4), 0 0 0 10px rgba(86, 174, 255, 0.18);
  transform: scale(1.06);
  outline: none;
}

.pv-end-btn:hover .pv-end-icon,
.pv-end-btn:focus-visible .pv-end-icon {
  color: var(--pv-navy);
}

.pv-end-btn:focus-visible {
  outline: none;
}

.pv-end-btn[hidden] {
  display: none !important;
}

.pv-big-play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(2, 27, 115, 0.72);
  border: 2px solid rgba(86, 174, 255, 0.85);
  box-shadow: 0 12px 36px rgba(2, 27, 115, 0.35), 0 0 0 8px rgba(86, 174, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.pv-big-play-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  margin-left: 6%;
  color: #fff;
}

.pv-big-play-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.pv-big-play:hover .pv-big-play-ring,
.pv-big-play:focus-visible .pv-big-play-ring {
  background: rgba(86, 174, 255, 0.95);
  box-shadow: 0 14px 40px rgba(2, 27, 115, 0.4), 0 0 0 10px rgba(86, 174, 255, 0.18);
  transform: scale(1.06);
  outline: none;
}

.pv-big-play:hover .pv-big-play-icon,
.pv-big-play:focus-visible .pv-big-play-icon {
  color: var(--pv-navy);
}

.pv-big-play:focus-visible {
  outline: none;
}

.pv-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 28%,
    transparent 62%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pv-root.is-paused .pv-chrome,
.pv-root.is-ended .pv-chrome,
.pv-root:hover .pv-chrome,
.pv-root:focus-within .pv-chrome {
  opacity: 1;
}

.pv-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.pv-bar-top {
  justify-content: space-between;
  min-height: 3rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.pv-bar .pv-btn,
.pv-big-play,
.pv-nav a {
  pointer-events: auto;
  cursor: pointer;
}

.pv-bar-bottom {
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

.pv-progress {
  position: relative;
  flex: 1 1 auto;
  min-width: 3.5rem;
  height: 1.35rem;
  display: grid;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.pv-progress-track {
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.pv-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--pv-sky);
  box-shadow: 0 0 0 1px rgba(86, 174, 255, 0.25);
}

.pv-progress-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.pv-progress:hover .pv-progress-track,
.pv-progress:focus-within .pv-progress-track {
  height: 0.38rem;
}

.pv-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pv-btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--pv-white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.pv-btn:hover,
.pv-btn:focus-visible {
  background: rgba(86, 174, 255, 0.85);
  color: var(--pv-navy);
  outline: none;
}

.pv-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.pv-btn-text {
  min-width: auto;
  padding: 0 0.65rem;
  height: 2.1rem;
  letter-spacing: 0.02em;
}

.pv-nav {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  gap: 0.45rem;
  pointer-events: auto;
  z-index: 10060;
}

.pv-nav[hidden] {
  display: none !important;
}

.pv-nav a,
.pv-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--pv-navy);
  color: var(--pv-white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(86, 174, 255, 0.45);
}

.pv-nav a:hover,
.pv-nav a:focus-visible {
  background: var(--pv-sky);
  color: var(--pv-navy);
  outline: none;
}

.pv-nav span.is-disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 960px) {
  .pv-root.is-entering {
    animation: none;
  }

  .pv-root.is-animating-dock,
  .pv-root.is-animating-dock .pv-frame,
  .pv-root.is-center .pv-frame {
    transition: none !important;
  }

  .pv-chrome {
    opacity: 1;
  }
}
