.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.youtube-embed-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  aspect-ratio: 16/9;
}

.youtube-embed-container img {
  width: 100%;
}

.youtube-embed-background-blur {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #aaaaaa22;
  top: 0;
  left: 0;
  transition: background-color 0.24s;
}

.youtube-embed-container iframe {
  width: 100%;
  height: 100%;
}

.youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 70px;
  border-radius: 10px;
  background-color: #444444aa;
  z-index: 2;
}

.youtube-embed-center-icon {
  position: absolute;
  font-size: 0px;
  line-height: 0%;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-bottom: 20px solid transparent;
  border-left: 45px solid rgb(233, 233, 233);
  border-top: 20px solid transparent;
  z-index: 3;
  margin-left: 4px;
  margin-top: 1px;
}

.policy-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  background-color: rgb(248, 252, 255);
  padding: 20px 40px;
  min-width: min(100vw, 300px);
}

.policy-text a {
  color: black;
  text-decoration: underline;
  font-style: italic;
}

.policy-text a:hover {
  cursor: pointer;
}

.policy-text button {
  color: white;
  border: 1px solid gray;
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 5 / 1;
  max-height: 40px;
  max-width: 230px;
}

.youtube-embed-container:hover .youtube-embed-background-blur {
  background-color: #aaaaaa8e;
}

.youtube-embed-container:hover .youtube-play,
.youtube-embed-container:hover .youtube-embed-center-icon {
  background-color: transparent;
  border: none;
}

.youtube-embed-container:hover .policy-text {
  display: flex;
}

.children-non-exist {
  display: none;
}

.youtube-embed-container.children-non-exist {
  display: flex;
}

.youtube-embed-container.children-non-exist > *:not(.youtube-video) {
  display: none;
}
