.player-content:has(iframe) {
  padding: 57% 0 0 0;
  position: relative;
  object-fit: contain;
  width: 100%;
  height: 0;
}

.player-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.player-content:has(img) {
  padding: 75% 0 0 0;
  position: relative;
  object-fit: contain;
  width: 100%;
  height: 0;
}

.player-content img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  object-fit: contain;
}

.player-content-ttl {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper.logged-out::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.video-wrapper.logged-out:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.video-wrapper.logged-out:hover .player-content-ttl {
  opacity: 1;
}

a:has(.video-wrapper.logged-out):not(.disabled):hover {
  opacity: 1 !important;
}

.video-wrapper.logged-in::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.video-wrapper.logged-in:hover::before {
  background-color: rgba(255, 255, 255, 0.193);
}

.video-wrapper.logged-in:hover .player-content-ttl {
  opacity: 0;
}

.video-wrapper:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.player-content:hover .player-content-ttl {
  opacity: 1;
}

@media (max-width: 768px) {
  .player-content-ttl {
      font-size: 24px;
  }
}
