.home-video-player[hidden],
.home-video-player [hidden] { display: none !important; }
.home-video-player {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: grid;
  place-items: center;
  color: #F2E8D5;
  font-family: 'DM Sans', sans-serif;
}
.home-video-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, .84);
}
.home-video-player-window {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid rgba(242,232,213,.2);
  border-radius: 14px;
  background: #17101F;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.home-video-player-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 18px;
}
.home-video-player.is-docked .home-video-player-header { cursor: grab; touch-action: none; }
.home-video-player.is-docked.is-interacting .home-video-player-header { cursor: grabbing; }
.home-video-player-header h2 {
  overflow: hidden;
  margin: 0;
  color: inherit;
  font: 500 15px/1.3 'DM Sans', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-video-player-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.home-video-player-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.home-video-player-actions button[hidden] { display: none; }
.home-video-player-actions button:hover { background: rgba(242,232,213,.12); }
.home-video-player-actions button:focus-visible {
  outline: 2px solid #FFDE59;
  outline-offset: 2px;
}
.home-video-player-actions svg { width: 18px; height: 18px; }
.home-video-player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.home-video-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-video-player-resize {
  position: absolute;
  z-index: 1;
  bottom: 6px;
  left: 6px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(242,232,213,.58);
  border-radius: 6px;
  background: rgba(23,16,31,.82);
  color: #F2E8D5;
  cursor: nesw-resize;
  touch-action: none;
}
.home-video-player-resize svg { width: 19px; height: 19px; }
.home-video-player-resize:focus-visible { outline: 2px solid #FFDE59; outline-offset: 2px; }
body.home-video-player-expanded { overflow: hidden; }
body.home-panorama:not(.home-video-player-expanded) #timelineNav { z-index: 1000003; }

.home-video-player.is-docked {
  inset: auto 24px 24px auto;
  display: block;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(242,232,213,.2);
  border-radius: 12px;
  background: #17101F;
  box-shadow: 0 12px 42px rgba(0,0,0,.45);
}
.home-video-player.is-docked .home-video-player-backdrop { display: none; }
.home-video-player.is-docked .home-video-player-window { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.home-video-player.is-docked .home-video-player-header { min-height: 40px; padding-left: 12px; }
.home-video-player.is-docked .home-video-player-header h2 { font-size: 13px; }
.home-video-player.is-docked .home-video-player-actions button { width: 32px; height: 32px; }
.home-video-player.is-docked .home-video-player-actions { gap: 1px; }
.home-video-player.is-docked .home-video-player-actions button { width: 30px; height: 30px; }
.home-video-player.is-docked .home-video-player-actions svg { width: 16px; height: 16px; }
.home-video-player.is-docked .home-video-player-resize { opacity: .8; }

@media (max-width: 768px) {
  .home-video-player.is-expanded { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); box-sizing: border-box; }
  .home-video-player.is-expanded .home-video-player-window {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
  }
  .home-video-player.is-expanded .home-video-player-frame { flex: 0 0 auto; }
  .home-video-player.is-docked {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
    left: auto;
    width: min(260px, calc(100vw - 24px));
  }
  .home-video-player.is-docked .home-video-player-header { min-height: 42px; }
}
