/*
 * «Vídeos de Javier» (src/site/videos-page.ts, 2026-11-18): a page designed by Claude at Jose's request, in the
 * type and colours of the home (#1B3D14 text, #4A5D43 secondary text, #3A7A26 and #4C9D33 greens, #F6F4EE cream,
 * #D3E5CB lines). Each card is a 9:16 facade; public/assets/js/article.js swaps it for the player.
 */
.vd-main {
  background: #ffffff;
  color: #1b3d14;
}

.vd-dentro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px);
}

.vd-cabecera {
  background: #f6f4ee;
  border-bottom: 1px solid #e6e2d6;
}

.vd-cabecera .vd-dentro {
  padding-top: 36px;
}

.vd-migas {
  font-size: 15px;
  color: #4a5d43;
}

.vd-migas a {
  color: #3a7a26;
}

.vd-kicker {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #3a7a26;
}

.vd-titulo {
  max-width: 900px;
  margin: 12px 0 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.vd-entradilla {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: #4a5d43;
}

.vd-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-card {
  min-width: 0;
}

.vd-card__video,
.vd-card .g-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #1b3d14;
  box-shadow: 0 10px 28px rgba(27, 61, 20, 0.12);
}

.vd-card__video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-card .g-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: rgba(16, 38, 12, 0.72);
  transition: background 0.15s ease;
}

.vd-card .g-video__play::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 24px;
  border-width: 11px 0 11px 17px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.vd-card__video:hover .g-video__play,
.vd-card__video:focus-visible .g-video__play {
  background: #4c9d33;
}

.vd-card__video:focus-visible {
  outline: 3px solid #4c9d33;
  outline-offset: 3px;
}

.vd-card__duracion {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 38, 12, 0.78);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.vd-card__titulo {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-wrap: pretty;
}

.vd-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vd-mas {
  margin: 36px 0 0;
  font-size: 17px;
}

.vd-mas a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #2f6b20;
  font-weight: 700;
}

.vd-llamada {
  background: #1b3d14;
  color: #eef6ea;
}

.vd-llamada h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.vd-llamada p {
  margin: 12px 0 24px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: #c6ddbc;
}

.vd-boton {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #4c9d33;
  color: #10260c;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.vd-boton:focus-visible,
.vd-mas a:focus-visible,
.vd-migas a:focus-visible {
  outline: 3px solid #4c9d33;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .vd-rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .vd-card__titulo {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vd-card .g-video__play {
    transition: none;
  }
}
