/* 🔵 Single-Espisode */
.contenedor-banner-titulo {
  margin-top: 0;
  padding-top: 0;
}
header {
  margin: 0;
  padding: 0;
  display: none;
}

.navbar {
  margin-bottom: 0 !important;
}

/* Contenedor principal */
/* Banner grande con bordes redondeados */
.single-banner {
  position: relative; /* ✅ Posiciona el título dentro del banner */
}

.single-banner img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 20px 20px;
  max-width: 100%;
}

/* ✅ Contenedor con overflow para que se vean los bordes redondeados en todo */
.contenedor-banner-limitado {
  max-width: 1850px;
  margin: 0 auto;
  padding: 0 5px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Portada sobresalida hacia la izquierda */
.portada-wrapper {
  position: absolute;
  bottom: -30px;
  left: 40px;
  z-index: 10;
  width: 150px;
  height: 210px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  background: white;
}

.portada-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ Título dentro del banner, perfectamente alineado */
.hentai-title-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 20px 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  border-radius: 0 0 20px 20px; /* Igual que el banner */
}

.hentai-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

/* Zona principal con sidebar */
.contenedor-con-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Main */
.contenedor-con-sidebar main {
  flex: 3;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px 60px 30px 30px;
  border-radius: 12px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Botones de servidor */
.server-buttons {
  margin: 20px 0 10px 20px;
}

.server-buttons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.3s;
}
.server-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Video */
.video-player-wrapper {
  margin-left: 20px;
  margin-top: 20px;
  background-color: #000;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Navegación */
.video-navigation {
  position: relative;
  margin-top: 20px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-buttons a,
.nav-buttons span {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.nav-buttons span {
  opacity: 0.6;
}

#openModal {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
#openModal:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal de descarga */
#downloadModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

#downloadModal > div {
  background-color: #ffffff;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#downloadModal h3 {
  font-size: 22px;
  color: #4b0082;
  margin-bottom: 20px;
  text-align: center;
}

#downloadModal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

#downloadModal ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

#downloadModal ul li span {
  flex: 1;
  color: #333;
  font-weight: 500;
  text-align: left;
}

#downloadModal ul li a {
  flex-shrink: 0;
  padding: 8px 14px;
  background-color: #4b0082;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
#downloadModal ul li a:hover {
  background-color: #6a0dad;
}

#downloadModal button {
  display: block;
  margin: 0 auto;
  background-color: #4b0082;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
#downloadModal button:hover {
  background-color: #6a0dad;
}

/* Sidebar */
.sidebar-anuncios-episode {
  width: 600px;
  flex-shrink: 0;
  margin-top: 0;
  margin-left: 20px; /* ✅ Separación respecto al reproductor */
}

.bloque-anuncio-episode {
  background-color: rgba(30, 30, 30, 0.75);
  border-radius: 15px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Responsivo */
@media (max-width: 1024px) {
  .contenedor-con-sidebar {
    flex-direction: column;
  }

  .video-player-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  .sidebar-anuncios-episode {
    width: 100%;
    max-width: 100%;
  }

  .nav-buttons {
    justify-content: center;
  }

  .server-buttons {
    margin-left: 0;
  }

  .server-buttons > div {
    justify-content: flex-start;
  }

  #downloadModal > div {
    max-width: 90%;
  }
}

/* 🔹 Comentarios alineados dentro de main sin salirse */
.comentarios-single {
  width: 100%;
  background-color: rgba(30, 30, 30, 0.75); /* Fondo similar al main */
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: #fff;
}
.comentarios-single-separado {
  max-width: 1350px;
  margin: 40px auto; /* Separación superior e inferior */
  padding: 30px;
  background-color: rgba(30, 30, 30, 0.75); /* Semitransparente */
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.titulo-comentarios {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

/* Asegura que main y aside estén bien alineados */
.contenedor-con-sidebar main {
  flex: 3;
  display: flex;
  flex-direction: column;
}

/* 🔵 Single-Espisode Fin */
