/*
 * Artist YouTube video — click-to-load facade on the gallery page.
 * The facade shows the video thumbnail with a play button; the real
 * iframe is only injected on click (see javascript/artistvideo-raw.js).
 */

.artistvideo-wrap {
  max-width: 640px;
  margin: 0 auto 30px auto;
  padding: 0 10px;
}

/* 16:9 responsive box */
.artistvideo-facade {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background-color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.artistvideo-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.artistvideo-facade:hover .artistvideo-thumb,
.artistvideo-facade:focus .artistvideo-thumb {
  transform: scale(1.03);
  opacity: 0.85;
}

/* YouTube-style play button */
.artistvideo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.artistvideo-facade:hover .artistvideo-play,
.artistvideo-facade:focus .artistvideo-play {
  background-color: #ff0000;
}

/* CSS triangle so no extra icon asset is needed */
.artistvideo-play::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}

.artistvideo-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Caption under the player */
.artistvideo-caption {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  padding-top: 8px;
}

/* Mobile: keep side padding tight from 320px up */
@media (max-width: 480px) {
  .artistvideo-wrap {
    padding: 0 6px;
    margin-bottom: 20px;
  }

  .artistvideo-play {
    width: 56px;
    height: 40px;
  }

  .artistvideo-play::after {
    border-width: 9px 0 9px 15px;
  }
}
