/* Video thumbnail player — 21st.dev-style: poster, glass play, title on image, inline embed */
.lmyc-vtp {
  width: 100%;
  max-width: 100%;
}

.lmyc-vtp__stage {
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(66, 89, 54, 0.12);
  background: #111;
  box-shadow:
    0 1px 2px rgba(47, 61, 40, 0.06),
    0 16px 40px rgba(47, 61, 40, 0.12);
}

.lmyc-vtp__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1410;
}

.lmyc-vtp__thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.lmyc-vtp.has-poster .lmyc-vtp__thumb {
  opacity: 0.42;
  filter: brightness(0.52) saturate(0.8);
}

.lmyc-vtp--cinematic .lmyc-vtp__media {
  background:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(66, 89, 54, 0.14), transparent 68%),
    linear-gradient(165deg, #1a2118 0%, #0d100c 48%, #080a08 100%);
}

.lmyc-vtp--cinematic .lmyc-vtp__scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.78) 34%,
    rgba(0, 0, 0, 0.62) 58%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.lmyc-vtp--cinematic:not(.has-poster) .lmyc-vtp__description {
  opacity: 0.72;
}

.lmyc-vtp--cinematic .lmyc-vtp__play {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.lmyc-vtp--cinematic .lmyc-vtp__play svg {
  width: 1.65rem;
  height: 1.65rem;
}

.lmyc-vtp__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.4s ease;
}

.lmyc-vtp__overlay:focus-visible {
  outline: 2px solid #425936;
  outline-offset: 3px;
}

.lmyc-vtp__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.34) 38%,
    rgba(0, 0, 0, 0.08) 62%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lmyc-vtp__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
  pointer-events: none;
}

.lmyc-vtp__play svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.2rem;
}

.lmyc-vtp__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1rem, 3vw, 1.5rem);
  pointer-events: none;
}

.lmyc-vtp__title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-heading-family, Georgia, serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.01em;
}

.lmyc-vtp__description {
  display: block;
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.875rem, 1.4vw, 0.98rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.lmyc-vtp__player {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transition: opacity 0.45s ease;
}

.lmyc-vtp__player iframe,
.lmyc-vtp__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.lmyc-vtp__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lmyc-vtp__loader::after {
  content: '';
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: lmyc-vtp-spin 0.75s linear infinite;
}

@keyframes lmyc-vtp-spin {
  to {
    transform: rotate(360deg);
  }
}

.lmyc-vtp__overlay:hover .lmyc-vtp__thumb,
.lmyc-vtp__overlay:focus-visible .lmyc-vtp__thumb {
  transform: scale(1.03);
}

.lmyc-vtp.has-poster .lmyc-vtp__overlay:hover .lmyc-vtp__thumb,
.lmyc-vtp.has-poster .lmyc-vtp__overlay:focus-visible .lmyc-vtp__thumb {
  opacity: 0.52;
  filter: brightness(0.58) saturate(0.85);
}

.lmyc-vtp__overlay:hover .lmyc-vtp__play,
.lmyc-vtp__overlay:focus-visible .lmyc-vtp__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255, 255, 255, 0.26);
}

.lmyc-vtp.is-loading .lmyc-vtp__loader {
  opacity: 1;
  pointer-events: auto;
}

.lmyc-vtp.is-playing .lmyc-vtp__overlay {
  opacity: 0;
  pointer-events: none;
}

.lmyc-vtp.is-playing .lmyc-vtp__thumb {
  opacity: 0;
  transform: scale(1);
}

.lmyc-vtp.is-playing .lmyc-vtp__player {
  opacity: 1;
  pointer-events: auto;
}

.lmyc-vtp.is-playing .lmyc-vtp__loader {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-vtp__thumb,
  .lmyc-vtp__overlay,
  .lmyc-vtp__play,
  .lmyc-vtp__player,
  .lmyc-vtp__loader {
    transition: none;
  }

  .lmyc-vtp__loader::after {
    animation: none;
  }
}
