/* ═══════════════════════════════════════════════════════════════
   ENTERPRISE MOTO — youtube.css
   Estilos compartidos: youtube-video + youtube-reels
   ═══════════════════════════════════════════════════════════════ */

/* ── Tipografía compartida ── */
.ent-yt-heading {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .06em;
  color: var(--gold, #f2c118);
  margin: 0 0 16px;
}

/* ── Tarjeta base ── */
.ent-yt-card,
.ent-reel-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Cabecera de metadatos ── */
.ent-yt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  gap: 8px;
}
.ent-yt-channel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold, #f2c118);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ent-yt-channel-icon {
  font-size: 9px;
  color: #ff0000;
}
.ent-yt-duration {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  letter-spacing: .04em;
  background: #0e0e0e;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Stage: contenedor del vídeo ── */
.ent-yt-stage {
  position: relative;
  aspect-ratio: var(--yt-ratio, 16/9);
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.ent-yt-stage--reel {
  aspect-ratio: 9/16;
}

/* ── Miniatura ── */
.ent-yt-thumb {
  position: absolute;
  inset: 0;
}
.ent-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ent-yt-stage:hover .ent-yt-thumb img {
  transform: scale(1.03);
}
.ent-yt-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.0)  40%,
    rgba(0,0,0,.55) 100%
  );
}

/* ── Botón de play ── */
.ent-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  border: 2px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  z-index: 2;
}
.ent-yt-play:hover {
  background: rgba(255, 0, 0, .85);
  border-color: rgba(255,255,255,.5);
  transform: translate(-50%, -50%) scale(1.1);
}
.ent-yt-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
/* Ocultar play cuando el iframe está activo */
.ent-yt-stage.is-playing .ent-yt-play,
.ent-yt-stage.is-playing .ent-yt-thumb {
  display: none;
}

/* ── Iframe ── */
.ent-yt-iframe-wrap {
  position: absolute;
  inset: 0;
}
.ent-yt-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Pie: título y descripción ── */
.ent-yt-footer {
  padding: 12px 14px;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
}
.ent-yt-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1rem;
  letter-spacing: .04em;
  color: #f0f0f0;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ent-yt-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* ── Bloque vídeo único ── */
.ent-yt-wrap {
  margin: 28px 0;
}
.ent-yt-wrap--short .ent-yt-card {
  max-width: 380px;
  margin: 0 auto;
}
.ent-yt-wrap--short .ent-yt-play {
  width: 52px;
  height: 52px;
}

/* ══════════════════════════════════════════════════
   REELS — galería de Shorts — carrusel unificado
══════════════════════════════════════════════════ */
.ent-reels-wrap {
  margin: 28px 0;
  position: relative;
}

/* Carrusel: igual en móvil y desktop */
.ent-reels-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.ent-reels-track::-webkit-scrollbar { display: none; }

.ent-reel-card {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: center;
}

/* Dots — visibles siempre */
.ent-reels-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.ent-reels-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.ent-reels-dot:hover { background: rgba(0,0,0,.45); }
.ent-reels-dot.is-active {
  background: var(--gold, #f2c118);
  transform: scale(1.4);
}

/* Flechas prev/next — solo en desktop */
.ent-reels-prev,
.ent-reels-next {
  display: none;
}
@media (min-width: 701px) {
  .ent-reels-prev,
  .ent-reels-next {
    display: flex;
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
    line-height: 1;
  }
  .ent-reels-prev:hover,
  .ent-reels-next:hover { background: rgba(0,0,0,.9); }
  .ent-reels-prev { left: -20px; }
  .ent-reels-next { right: -20px; }
}
@media (max-width: 700px) {
  .ent-reel-card { flex: 0 0 82vw; }
}
