/* ═══════════════════════════════════════
   PulpoLopez YouTube Grid
   ═══════════════════════════════════════ */

.pulpo-youtube-section {
  background: #0a0a0a;
  padding: 80px 0;
  text-align: center;
}

.pulpo-youtube-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pulpo-youtube-heading {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 0 10px;
}

.pulpo-youtube-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #999;
  margin: 0 0 50px;
}

.pulpo-youtube-subtitle a {
  color: #9e00f9;
  text-decoration: none;
  transition: color 0.3s;
}

.pulpo-youtube-subtitle a:hover {
  color: #b833ff;
}

/* ─── Grid ─── */
.pulpo-youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Card ─── */
.pulpo-yt-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pulpo-yt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(158,0,249,0.3);
}

.pulpo-yt-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.5s ease;
}

.pulpo-yt-card:hover .pulpo-yt-thumb {
  transform: scale(1.06);
}

/* ─── Play button overlay ─── */
.pulpo-yt-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pulpo-yt-play::after {
  content: '';
  width: 60px;
  height: 60px;
  background: rgba(158,0,249,0.85);
  border-radius: 50%;
  position: relative;
}

.pulpo-yt-play::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.pulpo-yt-card:hover .pulpo-yt-play {
  opacity: 1;
}

/* ─── Info bar ─── */
.pulpo-yt-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.pulpo-yt-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .pulpo-youtube-section {
    padding: 50px 0;
  }

  .pulpo-youtube-heading {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .pulpo-youtube-subtitle {
    margin-bottom: 30px;
  }

  .pulpo-youtube-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pulpo-yt-play::after {
    width: 44px;
    height: 44px;
  }
  .pulpo-yt-play::before {
    border-left-width: 14px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
}

@media (max-width: 480px) {
  .pulpo-youtube-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
