.strategy-video { position: relative; }
.strategy-expand { display: none; }
.strategy-player-button {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #071827dc;
  color: white;
  cursor: pointer;
}
.strategy-player-button svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 1000px) {
  .strategy-expand { display: block; }
}
.strategy-player-open { overflow: hidden; }
.strategy-video dialog:modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: black;
  overflow: hidden;
}
.strategy-video dialog::backdrop { background: black; }
.strategy-video dialog:modal video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (orientation: portrait) {
  .strategy-video dialog:modal video {
    inset: 50% auto auto 50%;
    margin: 0;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.strategy-video dialog[open]:not(:modal) {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.strategy-video dialog:not(:modal) .strategy-close,
.strategy-video dialog:modal .strategy-expand { display: none; }
