/* Estilos para tarjetas de video */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  grid-auto-rows: 1fr;
}

.videos-container h2 {
  font-size: 1.8rem;
  color: #1f1f1f;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.video-card {
  background-color: #dbdbdb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

.video-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.75rem;
  color: #1f1f1f;
  line-height: 1.4;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.9 * 0.78rem * 2);
}

.video-meta {
  border-top: 1px solid #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 1rem 0.5rem 1rem;
  font-size: 0.65rem;
  color: #888;
  gap: 0.5rem;
  margin-top: auto;
}

.video-meta .author {
  color: #666;
  font-weight: 600;
  font-size: 0.65rem;
}

/* Media queries para videos */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== estilos movidos desde css/famous.css ===== */

/* Sección Mas Famosos */
.famous-section {
  padding: 2rem 0; /* full-width section; inner .container will align content */
  background-color: #ffffff;
}

.famous-section h2 {
  font-size: 1.8rem;
  color: #1f1f1f;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.famous-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  grid-auto-rows: 1fr;
}

@media (max-width: 1024px) {
  .famous-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .famous-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}