/* =========================
   VIDEO – PRO UI (Drupal 11)
   Basado en HTML renderizado
   Scope: .node--type-video
   ========================= */

.page-node-type-video .region-content {
  max-width: 980px;
}

.node--type-video {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== TÍTULO ===== */
.node--type-video .node__title,
.node--type-video h1.node__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 10px 0;
  color: #111;
}

/* ===== TAGS (chips) ===== */
.node--type-video .video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px 0;
}

.node--type-video .video-tags .field__item a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.06);
}

.node--type-video .video-tags .field__item a:hover {
  background: #e9ecef;
}

/* ===== META (fecha/autor) ===== */
.node--type-video .video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 6px 0 16px 0;
  color: #666;
  font-size: 14px;
}

.node--type-video .video-meta time {
  font-style: italic;
  color: #666;
}

/* ===== PLAYER “HERO” ===== */
.node--type-video .video-player {
  margin: 10px 0 18px 0;
}

/* El iframe viene con width/height fijo; lo convertimos a responsive 16:9 */
.node--type-video .media--video-remoto .field--name-field-media-oembed-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.node--type-video .media--video-remoto .media-oembed-content {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ===== TRANSCRIPCIÓN (accordion custom) ===== */
.node--type-video .video-transcript-accordion {
  margin: 14px 0 0 0;
}

.node--type-video .video-transcript-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 14px;

  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.node--type-video .video-transcript-toggle::after {
  content: "▾";
  font-weight: 900;
  color: #0E65A5;
}

.node--type-video .video-transcript-toggle[aria-expanded="true"]::after {
  content: "▴";
}

.node--type-video .video-transcript-content {
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: #f8f9fa;
  padding: 12px 14px;
}

/* Quitar label “transcripcion” si no lo quieres visible */
.node--type-video .video-transcript-content .field__label {
  display: none;
}

.node--type-video .video-transcript-content p {
  font-size: 14px;
  line-height: 1.55;
  color: #222;
  margin: 0;
  white-space: pre-line;
}

/* ===== RESUMEN (texto pro) ===== */
.node--type-video .video-summary {
  margin: 18px 0 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.node--type-video .video-summary p {
  font-size: 17px;
  line-height: 1.6;
  margin: 10px 0;
  color: #111;
}

.node--type-video .video-summary a {
  color: #0E65A5;
  font-weight: 800;
  text-decoration: underline;
}

/* ===== Separación elegante entre secciones ===== */
.node--type-video .video-summary::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #0E65A5;
  margin-bottom: 10px;
  opacity: .9;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .node--type-video .node__title {
    font-size: 28px;
  }
  .node--type-video .video-summary p {
    font-size: 16px;
  }
}
