.case-video-link {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  touch-action: manipulation;
}

.case-video-icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--play-diameter);
  height: var(--play-diameter);
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 50%;
  background: rgb(12 14 18 / 76%);
  transition: background-color .18s ease, border-color .18s ease;
}

.case-video-icon::after {
  content: "";
  width: 30%;
  height: 34%;
  margin-inline-start: 5%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.case-video-link--detail {
  top: 4.3%;
  right: 5.7%;
  display: inline-flex;
  justify-content: center;
  gap: clamp(4px, .45vw, 7px);
  min-height: clamp(24px, 2.65vw, 40px);
  padding-inline: clamp(7px, .85vw, 14px);
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 100px;
  background: rgb(13 15 19 / 82%);
  color: #fff;
  font: 400 clamp(10px, .95vw, 15px)/1 "思源黑体 CN Medium", sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}

.case-video-link--detail .case-video-icon {
  width: clamp(7px, .7vw, 11px);
  height: clamp(9px, .86vw, 13px);
  border: 0;
  border-radius: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.case-video-link--detail .case-video-icon::after { content: none; }
.case-video-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}
.case-video-caption [lang="en"] {
  font: 400 clamp(8px, .69vw, 11px)/1 Arial, sans-serif;
  letter-spacing: .015em;
  color: #f0f0f2;
}
#shadow-watcher-gallery .case-video-link--detail { top: 2.5%; right: 4%; }
#white-bone .case-video-link--detail   { top: auto; bottom: 36.4%; right: 6.25%; }
#pixverse .case-video-link--detail     { top: 76.8%; right: 9.5%; }
#lenovo .case-video-link--detail       { top: auto; bottom: 8.5%; right: 10%; }
#jd-618 .case-video-link--detail       { top: 47%; right: 6%; }
#paiwo .case-video-link--detail,
#mae .case-video-link--detail {
  top: 42.2%;
  right: 6%;
  translate: 0 -50%;
}

.case-video-link--card {
  --hit-size: clamp(24px, min(3.5vw, 6.22dvh), 44px);
  --play-diameter: clamp(20px, min(2.45vw, 4.36dvh), 32px);
  width: var(--hit-size);
  height: var(--hit-size);
  margin: clamp(3px, min(1.07vw, 1.9dvh), 18px) 1px 0 0;
}

@media (max-width: 600px) {
  .case-video-link--card { --play-diameter: clamp(13px, 3.6vw, 20px); }
  /* With a 24px touch button, keep 7px below the last visible calibration tick. */
  #lenovo .case-video-link--detail { bottom: clamp(2px, calc(19.5% - 31px), 8.5%); }
}

.case-video-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #161a20;
}

@media (hover: hover) {
  .case-video-link--card:hover .case-video-icon,
  .case-video-link--detail:hover {
    background-color: #252a32;
    border-color: #fff;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .panel.has-sequence:not(.in-view) .case-video-link {
    opacity: 0;
  }
  html:not(.reduce-motion) .panel.in-view .case-video-link {
    animation: case-video-appear 560ms cubic-bezier(.22,.68,.28,1) var(--play-delay, 340ms) both;
  }
  html:not(.reduce-motion) .panel .case-video-link:focus-visible {
    animation: none;
    opacity: 1;
  }
}

@keyframes case-video-appear {
  from { opacity: 0; scale: .94; }
  to { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .case-video-icon { transition: none; }
}

.reduce-motion .case-video-icon { transition: none; }
