/* ============ YOUTUBE CHANNEL ============ */
.yt {
  background: var(--white);
}

.yt__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}

/* ---- Feature video card ---- */
.yt__feature {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.yt__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1s var(--ease), opacity 0.5s var(--ease);
}
.yt__feature:hover img { transform: scale(1.05); opacity: 1; }

/* ---- Play button ---- */
.yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.yt__play span {
  position: relative;   /* contains the pulse ring — without this it sizes to the whole card */
  display: grid;
  place-items: center;
  width: clamp(52px, 6vw, 74px);
  height: clamp(52px, 6vw, 74px);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(225, 29, 42, 0.45);
  transition: transform 0.4s var(--ease);
}
.yt__feature:hover .yt__play span,
.yt__card:hover .yt__play span { transform: scale(1.12); }

/* Pulsing ring */
.yt__play span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ytPulse 2.2s ease-out infinite;
}
@keyframes ytPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---- Copy ---- */
.yt__copy .section-title { margin-top: 12px; }
.yt__text {
  margin-top: 18px;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--text-muted);
}
.yt__copy .btn { margin-top: 26px; }

/* ---- Thumbnail row ---- */
.yt__row {
  margin-top: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.yt__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}
.yt__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
}
.yt__card:hover img { transform: scale(1.07); opacity: 1; }
.yt__card .yt__play span {
  width: 42px;
  height: 42px;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(225, 29, 42, 0.4);
}
.yt__card .yt__play span::after { animation: none; }

.yt__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ---- Duration badge ---- */
.yt__dur {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

@media (max-width: 900px) {
  .yt__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .yt__row { grid-template-columns: 1fr; }
}
