.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ======= Layout principal ======= */
.ammoi-tv {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: stretch; /* ✅ aligne les deux colonnes en hauteur */
}

/* Bloc vidéo principal */
.tv-main {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.tv-main .video-responsive {
  flex: 1;
  height: 100%;
  border-radius: 10px;
}
.tv-main .tv-title {
  margin-top: 10px;
  text-align: center;
  font-size: 1.3rem;
  color: #fff;
}

/* Bloc de droite (miniatures) */
.tv-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  height: 100%; /* ✅ pour caler à la même hauteur que la vidéo */
}

/* ---- Miniatures ---- */
.tv-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: #000;
  flex: 1;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

.tv-card .tv-thumb {
  display: block;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.tv-card:hover .tv-thumb {
  transform: scale(1.08);
}
.tv-card .tv-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  letter-spacing: 0.5px;
  z-index: 1;
}
.tv-card.is-active {
  border: 2px solid #f0c040;
}
.tv-card.is-active::before {
  border-color: #f0c040;
}

/* ======= Responsive ======= */
@media (max-width: 960px) {
  .ammoi-tv {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  /* ✅ sur mobile : 2 miniatures sur la même ligne */
  .tv-grid {
    flex-direction: row;
    gap: 4px;
  }
  .tv-card {
    flex: 1;
    height: auto;
  }
  .tv-card .tv-thumb {
    aspect-ratio: 16/9;
  }
}

