/* ============================================================
   Minuto Video Shorts — Frontend CSS
   ============================================================ */

/* ── Sección completa ── */
.mvs-seccion {
  margin: 28px 0;
}

/* ── Encabezado ── */
.mvs-seccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid #e53935;
  flex-wrap: wrap;
  gap: 10px;
}

.mvs-titulo {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.mvs-titulo-icon { color: #e53935; font-size: 1.1em; }

.mvs-plataformas { display: flex; gap: 8px; flex-wrap: wrap; }

.mvs-plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mvs-plat-yt { background: #fee2e2; color: #c0392b; }
.mvs-plat-tt { background: #f0f0f0; color: #111; }

/* ── Grid de videos ── */
.mvs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

[data-cols="3"] .mvs-grid { grid-template-columns: repeat(3, 1fr); }
[data-cols="2"] .mvs-grid { grid-template-columns: repeat(2, 1fr); }
[data-cols="5"] .mvs-grid { grid-template-columns: repeat(5, 1fr); }

/* ── Tarjeta individual ── */
.mvs-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mvs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.mvs-card--destacado {
  border: 2px solid #f9a825;
  box-shadow: 0 2px 10px rgba(249,168,37,0.2);
}

/* ── Contenedor 9:16 — EL MÁS IMPORTANTE ── */
.mvs-video-wrap {
  width: 100%;
  position: relative;
}

.mvs-video-inner {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 = 100/(9/16) = 177.78% */
  background: #000;
  overflow: hidden;
}

/* Thumbnail cubre todo el 9:16 */
.mvs-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}

.mvs-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mvs-thumb:hover .mvs-thumb-img { transform: scale(1.04); }

.mvs-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

/* Overlay oscuro + botón play */
.mvs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.mvs-thumb:hover .mvs-overlay { background: rgba(0,0,0,0.5); }

.mvs-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: #e53935;
  transition: transform 0.2s ease, background 0.2s ease;
  padding-left: 4px; /* centrar el triángulo del play */
}

.mvs-play-btn:hover {
  transform: scale(1.12);
  background: #fff;
}

/* Badges sobre la imagen */
.mvs-badge-destacado {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f9a825;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.mvs-badge-plat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mvs-badge-youtube { background: #e53935; color: #fff; }
.mvs-badge-tiktok  { background: rgba(0,0,0,0.75); color: #fff; }

/* iframe al reproducir */
.mvs-iframe-wrap {
  position: absolute;
  inset: 0;
}

.mvs-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón cerrar video */
.mvs-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ── Info de la tarjeta ── */
.mvs-card-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mvs-card-cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e53935;
}

.mvs-plat-tiktok .mvs-card-cat { color: #111; }

.mvs-card-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a2e;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mvs-card-extracto {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mvs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.68rem;
  color: #888;
  gap: 6px;
  flex-wrap: wrap;
}

.mvs-ver-original {
  color: #1565c0;
  font-weight: 700;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mvs-ver-original:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mvs-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px; }
}

@media (max-width: 768px) {
  .mvs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .mvs-seccion-header { flex-direction: column; align-items: flex-start; }
  .mvs-play-btn { width: 46px; height: 46px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .mvs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .mvs-card-info { padding: 8px 10px; }
  .mvs-card-titulo { font-size: 0.78rem; }
  .mvs-card-extracto { display: none; }
}
