.yt-static-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.yt-static-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-static-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  z-index: 2;
}

/* Overlay background, hidden by default */
.yt-static-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 1;
}

/* Text hidden by default */
.yt-static-link span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;                /* hide text initially */
  transition: opacity 0.3s ease;  /* fade in on hover */
}

/* Hover overlay */
.yt-static-wrapper:hover .yt-static-link::before {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

/* Hover text */
.yt-static-wrapper:hover .yt-static-link span {
  opacity: 1;   /* show text fully on hover */
}
