/* Grid principal */
.fs-shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 100%;
}

@media (max-width: 1024px) {
  .fs-shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fs-shorts-grid {
    grid-template-columns: 1fr;
  }
}

.fs-shorts-item iframe {
  width: 100%;
  aspect-ratio: 9/16;
  border: none;
  display: block;
  position: relative;
  z-index: 1;
}

/* Wrapper opcional */
.fs-shorts-wrapper {
  position: relative;
  display: inline-block;
}

.fs-shorts-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 63 !important;
  background-image: var(--yt-thumb);
}

/* Grid secundarios */
.fs-shorts-secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: 80%;
  margin: 0 auto;
  justify-items: center;
}

@media (max-width: 1024px) {
  .fs-shorts-secondary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fs-shorts-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* Contenedor fijo vertical */
.fs-shorts-secondary-item {
  position: relative;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  border-radius: 10px;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fs-shorts-secondary-item::before {
  content: "";
  display: block;
  padding-top: 177.78%;
}

.fs-shorts-secondary-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

/* ---- NUEVO: Grid horizontal/landscape para las 5 playlists ---- */
.fs-shorts-landscape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .fs-shorts-landscape-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fs-shorts-landscape-grid {
    grid-template-columns: 1fr;
  }
}

.fs-shorts-landscape-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: black;
}

.fs-shorts-landscape-item::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.fs-shorts-landscape-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}