/* ROW */


.netflix-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 999999 !important;
  display: none;
}

/* asegura que esté por encima de TODO */
body {
  position: relative;
  z-index: 1;
}

.netflix-row {
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

.netflix-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 40px;
}

.netflix-track::-webkit-scrollbar {
  display: none;
}

/* CARD */
.card {
  flex: 0 0 auto;
  width: 260px;
  cursor: pointer;
  transition: transform .3s;
}

.card img {
  width: 100%;
  border-radius: 12px;
}

.card:hover {
  transform: scale(1.1);
  z-index: 2;
}

/* BOTONES */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}

.nav.prev { left: 0; }
.nav.next { right: 0; }


/* MODAL */
.netflix-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9999;
}

.modal-body {
  width: 80%;
  height: 70%;
  margin: 60px auto 0;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
}

/* cerrar */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* nav modal */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-nav.prev { left: 20px; }
.modal-nav.next { right: 20px; }

/* thumbs */
.modal-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.modal-thumbs img {
  width: 120px;
  opacity: .6;
  cursor: pointer;
  border-radius: 8px;
}

.modal-thumbs img.active {
  opacity: 1;
  border: 2px solid white;
}