.player-shell {
  background-color: #000;
  background-image: var(--player-poster, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.player-shell.is-empty {
  aspect-ratio: 16 / 9;
}
.player-shell .player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.player-shell.is-playing .player-poster,
.player-shell.is-ready .player-poster {
  display: none;
}
.player-shell.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: player-spin .7s linear infinite;
}
@keyframes player-spin {
  to { transform: rotate(360deg); }
}
.player-shell video {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
  vertical-align: top;
  opacity: 0;
}
.player-shell.is-ready video,
.player-shell.is-playing video,
.player-shell .fluid_video_wrapper video {
  opacity: 1;
}
.player-shell .fluid_video_wrapper {
  position: absolute !important;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #000;
  z-index: 2;
}
.player-shell .fluid_video_wrapper video {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}
.player-shell .fluid_controls_container {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}
.player-shell .player-error {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 8;
  margin: 0;
  padding: 10px 12px;
  background: rgba(42, 16, 16, .92);
  color: #f0b4b4;
  font-size: 13px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .player-shell {
    border-radius: 8px;
  }
  .player-shell .fluid_video_wrapper,
  .player-shell .fluid_video_wrapper video {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

body.is-light .player-shell { box-shadow: 0 10px 28px rgba(24, 24, 27, .08); }
