/* ==========================================================================
   SEÇÃO YOUTUBE
   ========================================================================== */

#youtube {
  background-image: radial-gradient(720px 460px at 0% 0%, rgba(180, 42, 31, 0.22), transparent 70%);
}

.yt__layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* ---------- Player em destaque ---------- */
.yt__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.yt__player iframe,
.yt__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt__poster {
  display: block;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.yt__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s;
}
.yt__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
}
.yt__poster:hover img { transform: scale(1.04); }

.yt__play {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 92px);
  aspect-ratio: 1;
  color: var(--white);
  background: var(--scarlet);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(180, 42, 31, 0.6), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.3s;
  animation: yt-pulse 2.6s ease-out infinite;
}
.yt__play svg { width: 42%; margin-left: 6%; }
.yt__poster:hover .yt__play { transform: translate(-50%, -50%) scale(1.1); background: var(--scarlet-dark); }

@keyframes yt-pulse {
  70% { box-shadow: 0 0 0 22px rgba(180, 42, 31, 0), 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(180, 42, 31, 0), 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
}

.yt__now {
  margin: 1.4rem 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8f82;
}
.yt__title { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

/* ---------- Lista de vídeos ---------- */
.yt__list { display: grid; gap: 0.8rem; }
.yt__item {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.6rem;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: rgba(248, 243, 236, 0.05);
  border: 1px solid rgba(248, 243, 236, 0.12);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.yt__item:hover { background: rgba(248, 243, 236, 0.1); transform: translateX(4px); }
.yt__item[aria-current] { background: rgba(255, 143, 130, 0.14); border-color: #ff8f82; }

.yt__thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.yt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt__label {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.yt__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 880px) {
  .yt__layout { grid-template-columns: 1fr; }
  .yt__item:hover { transform: none; }
}
@media (max-width: 600px) {
  .yt__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .yt__play { animation: none; }
  .yt__poster img, .yt__item { transition: none; }
}
