html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.onepeace-root { cursor: none; }
.onepeace-root * { cursor: none !important; }
.onepeace-root, .onepeace-root * {
  box-sizing: border-box !important;
}
.onepeace-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #0f0026 0%, #1a0033 50%, #0a1a2f 100%);
  color: #f5e9d4;
  font-family: 'Bangers', cursive !important;
  overflow: hidden;
  z-index: 99999;
}
.onepeace-root::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,0,255,0.05) 0 2px, transparent 2px 40px),
              repeating-linear-gradient(180deg, rgba(0,255,255,0.05) 0 2px, transparent 2px 40px);
  z-index: 0;
}
.onepeace-root .portada {
  width: 100%;
  height: 18vh;
  min-height: 120px;
  max-height: 200px;
  background: linear-gradient(90deg, #0f0026 0%, #ff00cc 100%);
  border-bottom: 6px solid #00fff7;
  margin-bottom: 0;
  position: relative;
  box-shadow: 0 0 40px #ff00cc88, 0 4px 24px #00fff788;
  z-index: 1;
}

.onepeace-root .portada-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 20px;
}

.onepeace-root .portada-texto {
  font-family: 'Bangers', cursive;
  font-size: 4em;
  color: #fff;
  text-shadow: 0 0 12px #00fff7, 0 0 32px #ff00cc, 2px 2px 0 #0ff, 0 0 2px #fff;
  letter-spacing: 0.08em;
  text-align: center;
  flex: 1;
  border-bottom: 4px solid #ff00cc;
  border-radius: 8px;
  background: rgba(15,0,38,0.7);
  box-shadow: 0 0 24px #ff00cc88, 0 2px 12px #00fff788;
}
.onepeace-root .container {
  display: flex;
  width: 95vw;
  height: calc(82vh - 6px);
  margin: auto;
  box-shadow: 0 0 32px #ff00cc55, 0 0 32px #00fff755;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15,0,38,0.92);
  z-index: 1;
  position: relative;
}
.onepeace-root .episodios {
  width: 30%;
  background: linear-gradient(120deg, #1a0033 80%, #0ff 100%);
  border-right: 4px solid #ff00cc;
  padding: 40px 30px;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
  box-shadow: 0 0 24px #00fff755 inset;
}
.onepeace-root .episodios h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #00fff7;
  text-shadow: 0 0 8px #ff00cc, 0 0 16px #00fff7;
  letter-spacing: 0.1em;
}
.onepeace-root .episodios ul {
  list-style: none;
  padding: 0;
}
.onepeace-root .episodios li {
  margin-bottom: 22px;
  cursor: pointer;
  font-size: 1.3em;
  color: #fff;
  background: rgba(15, 0, 38, 0.6);
  border-left: 6px solid #00fff7;
  border-radius: 6px;
  padding: 10px 16px;
  transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px #00fff7aa;
}
.onepeace-root .episodios li:hover {
  color: #ff00cc;
  background: rgba(0, 255, 247, 0.1);
  border-color: #ff00cc;
  transform: translateX(5px);
  box-shadow: 0 0 12px rgba(255, 0, 204, 0.6);
}
.onepeace-root .reproductor {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 10px 20px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
.onepeace-root .reproductor video {
  width: 90%;
  max-width: 1200px;
  min-height: 300px;
  max-height: 80%;
  border: 8px solid #ff00cc;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 0 20px rgba(0, 255, 247, 0.6), 0 0 12px rgba(255, 0, 204, 0.4);
  outline: 2px solid #00fff7;
  outline-offset: 2px;
  transition: box-shadow 0.3s ease;
  display: block;
  margin: auto;
}

.onepeace-root .reproductor iframe {
  width: 90%;
  max-width: 1200px;
  min-height: 300px;
  max-height: 80%;
  height: 70vh;
  border: 8px solid #ff00cc;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 0 20px rgba(0, 255, 247, 0.6), 0 0 12px rgba(255, 0, 204, 0.4);
  outline: 2px solid #00fff7;
  outline-offset: 2px;
  transition: box-shadow 0.3s ease;
  display: block;
  margin: auto;
}

/* Video principal */
.onepeace-root .video-container {
  position: relative;
  display: inline-block;
  width: 90%;
  max-width: 1200px;
}

/* Controles de navegación */
.controles-navegacion {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .controles-navegacion {
  opacity: 1;
}

.btn-navegacion {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff00cc 0%, #00fff7 100%);
  border: 2px solid #fff;
  border-radius: 25px;
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.1em;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 204, 0.4);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.btn-navegacion:hover {
  background: linear-gradient(135deg, #00fff7 0%, #ff00cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 247, 0.6);
}

.btn-navegacion:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 0, 204, 0.8);
}

.btn-navegacion.disabled {
  background: linear-gradient(135deg, #666 0%, #999 100%);
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-navegacion.disabled:hover {
  background: linear-gradient(135deg, #666 0%, #999 100%);
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

.btn-navegacion svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

/* Estilo para episodio actual */
.episodio-actual {
  background: linear-gradient(90deg, #ff00cc 0%, #00fff7 100%) !important;
  color: #0f0026 !important;
  font-weight: bold !important;
  box-shadow: 0 0 15px rgba(255, 0, 204, 0.8) !important;
  transform: scale(1.02) !important;
}

.episodio-actual span {
  color: #0f0026 !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8) !important;
}

.onepeace-root .acordeon {
  width: 100%;
  display: block;
}

/* Estilos para separadores de sagas */
.saga-header {
  margin: 25px 0 15px 0;
  padding: 0;
}

/* Comentado - causaba texto invisible
.saga-titulo {
  font-family: 'Bangers', cursive;
  font-size: 1.6em;
  color: #ff00cc;
  text-shadow: 0 0 12px #ff00cc, 0 0 24px #00fff7;
  margin: 0 0 8px 0;
  text-align: center;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ff00cc, #00fff7, #ff00cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
*/

.saga-line {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff00cc 20%, #00fff7 50%, #ff00cc 80%, transparent 100%);
  margin: 8px auto;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 0, 204, 0.6);
  animation: sagaGlow 3s ease-in-out infinite alternate;
}

@keyframes sagaGlow {
  from {
    box-shadow: 0 0 8px rgba(255, 0, 204, 0.6);
  }
  to {
    box-shadow: 0 0 16px rgba(0, 255, 247, 0.8);
  }
}

/* Estilos mejorados para títulos de arcos */
.onepeace-root .acordeon-titulo {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  background: linear-gradient(90deg, #0f0026 0%, #ff00cc 100%) !important;
  color: #fff !important;
  font-family: 'Bangers', cursive !important;
  font-size: 1.2em !important;
  padding: 14px 22px 14px 44px !important;
  border: none !important;
  outline: none !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, border 0.2s !important;
  border-bottom: 2px solid #00fff7 !important;
  box-shadow: 0 2px 8px #00fff733, 0 0 0 0 #ff00cc !important;
  border-radius: 12px 12px 0 0 !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2;
}

.arco-nombre {
  flex: 1;
  text-align: left;
}

.arco-episodios {
  font-size: 0.85em;
  color: #00fff7;
  text-shadow: 0 0 4px rgba(0, 255, 247, 0.8);
  font-weight: normal;
}

/* Placeholders para arcos no disponibles */
.acordeon-item.placeholder {
  opacity: 0.6;
  background: linear-gradient(90deg, #333 60%, #66666622 100%);
  border: 2px solid #666;
}

.acordeon-titulo-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(90deg, #666 0%, #333 100%);
  color: #ccc;
  font-family: 'Bangers', cursive;
  font-size: 1.2em;
  padding: 14px 22px;
  border-bottom: 2px solid #666;
  border-radius: 12px 12px 0 0;
}

.placeholder-text {
  font-size: 0.75em;
  color: #999;
  font-style: italic;
}
.onepeace-root .acordeon-item {
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 0 16px #00fff7aa, 0 0 8px #ff00cc55;
  border: 2px solid #00fff7;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, #1a0033 60%, #ff00cc22 100%);
  transition: box-shadow 0.3s, border-color 0.3s;
  z-index: 1;
}
.onepeace-root .acordeon-item:not(:last-child)::after {
  content: '';
  display: block;
  height: 2px;
  width: 90%;
  background: linear-gradient(90deg, #00fff7 0%, #ff00cc 100%);
  margin: 0 auto;
  opacity: 0.18;
  border-radius: 2px;
}
.onepeace-root .acordeon-titulo {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #0f0026 0%, #ff00cc 100%) !important;
  color: #fff !important;
  font-family: 'Bangers', cursive !important;
  font-size: 1.2em !important;
  padding: 14px 22px 14px 44px !important;
  border: none !important;
  outline: none !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, border 0.2s !important;
  border-bottom: 2px solid #00fff7 !important;
  box-shadow: 0 2px 8px #00fff733, 0 0 0 0 #ff00cc !important;
  border-radius: 12px 12px 0 0 !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2;
}
.onepeace-root .acordeon-titulo .acordeon-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  filter: drop-shadow(0 0 6px #00fff7) drop-shadow(0 0 12px #ff00cc) !important;
  pointer-events: none !important;
}
.onepeace-root .acordeon-titulo.active .acordeon-icon {
  transform: translateY(-50%) rotate(180deg) scale(1.15) !important;
  filter: drop-shadow(0 0 12px #ff00cc) drop-shadow(0 0 24px #00fff7) !important;
}
.onepeace-root .acordeon-titulo.active, .onepeace-root .acordeon-titulo:hover {
  background: linear-gradient(90deg, #ff00cc 0%, #0f0026 100%) !important;
  color: #00fff7 !important;
  box-shadow: 0 0 24px #ff00cc, 0 0 16px #00fff7 !important;
  border-bottom: 2px solid #ff00cc !important;
}
.onepeace-root .acordeon-panel {
  max-height: 0;
  overflow: hidden;
  background: rgba(15,0,38,0.7);
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  box-shadow: 0 2px 8px #00fff733 inset;
  border-radius: 0 0 12px 12px;
  border-bottom: 2px solid #00fff7;
  margin-bottom: 10px;
  position: relative;
}
.onepeace-root .acordeon-panel.open {
  max-height: 2000px;
  padding: 12px 0 12px 10px;
  box-shadow: 0 0 24px #00fff7 inset, 0 0 16px #ff00cc44 inset;
  background: linear-gradient(120deg, rgba(15,0,38,0.9) 80%, #00fff733 100%);
  transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
  overflow-y: auto;
}
.onepeace-root .acordeon-panel ul {
  margin: 0;
  padding: 0 0 0 8px;
}
.onepeace-root .acordeon-titulo:focus {
  outline: 2px solid #ff00cc;
  outline-offset: 2px;
}
.episodio-link-btn {
  background: none;
  border: none;
  margin-left: 8px;
  padding: 2px 4px;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 6px #00fff7aa;
  outline: none;
}
.episodio-link-btn:hover, .episodio-link-btn:focus {
  background: #0ff2;
  box-shadow: 0 0 12px #ff00cc, 0 0 8px #00fff7;
}
.episodio-visto-btn {
  background: none;
  border: none;
  margin-left: 8px;
  padding: 2px 4px;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 6px #00fff7aa;
  outline: none;
}
.episodio-visto-btn:hover, .episodio-visto-btn:focus {
  background: #0ff2;
  box-shadow: 0 0 12px #00ff00, 0 0 8px #00fff7;
}
.acordeon-panel ul li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.acordeon-panel ul li span {
  flex: 1;
  cursor: pointer;
  user-select: none;
}
.acordeon-panel ul li.episodio-visto {
  opacity: 0.6;
  background: rgba(0, 255, 0, 0.1) !important;
  border-left: 6px solid #00ff00 !important;
}

/* RESPONSIVE DESIGN MEJORADO PARA MÓVILES */
@media (max-width: 900px) {
  .onepeace-root {
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .onepeace-root .portada {
    height: 12vh;
    min-height: 80px;
    max-height: 120px;
  }
  
  .onepeace-root .portada-content {
    padding: 0 15px;
  }
  
  /* Controles de navegación en móvil */
  .controles-navegacion {
    bottom: 50px;
    gap: 15px;
    opacity: 1; /* Siempre visible en móvil */
  }
  
  .btn-navegacion {
    font-size: 0.9em;
    padding: 10px 16px;
    gap: 6px;
  }
  
  .btn-navegacion svg {
    width: 18px;
    height: 18px;
  }
  
  .onepeace-root .portada-texto {
    font-size: 1.8em;
    padding: 8px 12px;
    border-bottom: 2px solid #ff00cc;
  }
  
  .onepeace-root .portada .cast-button {
    width: 40px;
    height: 40px;
    margin-left: 10px;
  }
  
  .onepeace-root .container {
    flex-direction: column;
    width: 98vw;
    height: calc(88vh - 6px);
    margin: 0 auto;
  }
  
  /* Lista de episodios en móvil */
  .onepeace-root .episodios {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #ff00cc;
    padding: 15px 8px;
    max-height: 40vh;
    min-height: 150px;
    overflow-y: auto;
  }
  
  .onepeace-root .episodios h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
  }
  
  /* Acordeón más compacto en móvil */
  .onepeace-root .acordeon-item {
    margin-bottom: 8px;
    border-radius: 8px;
  }
  
  /* Sagas responsivas en móvil */
  .saga-header {
    margin: 15px 0 10px 0;
  }
  
  .saga-titulo {
    font-size: 1.3em;
  }
  
  .saga-line {
    height: 2px;
  }
  
  .onepeace-root .acordeon-titulo {
    font-size: 1em !important;
    padding: 10px 15px 10px 35px !important;
    border-radius: 8px 8px 0 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  
  .arco-episodios {
    font-size: 0.75em !important;
    align-self: flex-end !important;
  }
  
  .onepeace-root .acordeon-titulo {
    font-size: 1em !important;
    padding: 10px 15px 10px 35px !important;
    border-radius: 8px 8px 0 0 !important;
  }
  
  .onepeace-root .acordeon-titulo .acordeon-icon {
    left: 12px !important;
  }
  
  .onepeace-root .acordeon-panel {
    border-radius: 0 0 8px 8px;
  }
  
  .onepeace-root .acordeon-panel.open {
    padding: 8px 0 8px 8px;
    max-height: 800px;
  }
  
  .onepeace-root .episodios li {
    font-size: 1.1em;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 4px solid #00fff7;
  }
  
  /* Reproductor optimizado para móvil */
  .onepeace-root .reproductor {
    padding: 8px;
    max-height: 48vh;
    min-height: 200px;
    flex: 1;
  }
  
  .onepeace-root .reproductor video {
    width: 98%;
    min-height: 160px;
    max-height: 90%;
    border: 4px solid #ff00cc;
    border-radius: 12px;
  }
  
  .onepeace-root .video-container {
    width: 98%;
  }
  
  /* Botones más grandes para touch */
  .episodio-link-btn, .episodio-visto-btn {
    padding: 6px 8px;
    margin-left: 6px;
  }
  
  /* Menú de cast adaptado para móvil */
  .cast-menu-item {
    padding: 15px 12px;
    font-size: 1.2em;
    margin-bottom: 8px;
  }
}

/* Para pantallas muy pequeñas (teléfonos en vertical) */
@media (max-width: 480px) {
  /* Controles de navegación compactos */
  .controles-navegacion {
    bottom: 40px;
    gap: 10px;
  }
  
  .btn-navegacion {
    font-size: 0.8em;
    padding: 8px 12px;
    gap: 4px;
  }
  
  .btn-navegacion span {
    display: none; /* Ocultar texto en pantallas muy pequeñas */
  }
  
  .btn-navegacion svg {
    width: 16px;
    height: 16px;
  }
  
  /* Sagas ultra compactas en móviles pequeños */
  .saga-titulo {
    font-size: 1.1em;
  }
  
  .arco-episodios {
    font-size: 0.7em !important;
  }
  
  .acordeon-titulo-placeholder {
    font-size: 1em;
    padding: 10px 15px;
  }
@media (max-width: 480px) {
  .onepeace-root .portada_texto {
    font-size: 1.4em;
  }
  
  .onepeace-root .portada .cast-button {
    width: 35px;
    height: 35px;
  }
  
  .onepeace-root .portada .cast-button svg {
    width: 16px;
    height: 16px;
  }
  
  .onepeace-root .episodios {
    max-height: 35vh;
    padding: 10px 5px;
  }
  
  .onepeace-root .reproductor {
    max-height: 53vh;
  }
  
  .onepeace-root .reproductor video {
    min-height: 140px;
    border: 3px solid #ff00cc;
  }
  
  .onepeace-root .acordeon-titulo {
    font-size: 0.9em !important;
    padding: 8px 12px 8px 30px !important;
  }
  
  .onepeace-root .episodios li {
    font-size: 1em;
    padding: 6px 10px;
  }
}

/* Para tablets y pantallas medianas */
@media (min-width: 901px) and (max-width: 1200px) {
  .onepeace-root .container {
    width: 96vw;
  }
  
  .onepeace-root .episodios {
    width: 30%;
    padding: 30px 20px;
  }
  
  .onepeace-root .reproductor video {
    width: 92%;
  }
}

/* MEJORAS ESPECÍFICAS PARA TOUCH Y MÓVILES */
@media (hover: none) and (pointer: coarse) {
  /* Estilos para dispositivos táctiles */
  .onepeace-root .episodios li {
    min-height: 44px; /* Tamaño mínimo para touch */
    display: flex;
    align-items: center;
  }
  
  .onepeace-root .acordeon-titulo {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .episodio-link-btn, .episodio-visto-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .cast-menu-item {
    min-height: 50px;
  }
  
  /* Mejorar hover states para touch */
  .onepeace-root .episodios li:active {
    background: rgba(0, 255, 247, 0.2);
    transform: scale(0.98);
  }
  
  .onepeace-root .acordeon-titulo:active {
    transform: scale(0.98);
  }
}

/* Scroll suave para móviles */
.onepeace-root .episodios {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.onepeace-root .acordeon-panel.open {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Asegurar que no haya scroll horizontal */
.onepeace-root {
  overflow-x: hidden;
}

.onepeace-root .container {
  overflow-x: hidden;
}
}

/* Custom cursor overlay */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15vmin; /* fallback initial size before JS adjusts */
  height: auto;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  image-rendering: auto;
  display: none; /* shown after image loads */
}

/* === TABS DE SAGAS === */
.saga-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 10px;
  border-bottom: 2px solid #ff00cc;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff00cc #0f0026;
}

.saga-tabs::-webkit-scrollbar {
  height: 6px;
}

.saga-tabs::-webkit-scrollbar-track {
  background: #0f0026;
  border-radius: 3px;
}

.saga-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff00cc, #00fff7);
  border-radius: 3px;
}

.saga-tab {
  background: linear-gradient(135deg, #0f0026 0%, #1a0040 100%);
  border: 2px solid #ff00cc;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 20px;
  color: #00fff7;
  font-family: 'Bangers', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(0, 255, 247, 0.6);
}

.saga-tab:hover {
  background: linear-gradient(135deg, #1a0040 0%, #2a0060 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 204, 0.3);
  text-shadow: 0 0 8px rgba(0, 255, 247, 0.8);
}

.saga-tab.active {
  background: linear-gradient(135deg, #ff00cc 0%, #cc0099 100%);
  color: #0f0026;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 204, 0.5);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.saga-tab.disabled {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  border-color: #666;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
  text-shadow: none;
}

.saga-tab.disabled:hover {
  transform: none;
  box-shadow: none;
  text-shadow: none;
}

/* Badge para mostrar episodios disponibles */
.saga-tab-badge {
  background: #00fff7;
  color: #0f0026;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
  font-weight: bold;
  text-shadow: none;
}

.saga-tab.active .saga-tab-badge {
  background: #0f0026;
  color: #00fff7;
}

/* Contenido de saga activa */
.saga-content {
  display: none;
}

.saga-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive para tabs */
@media (max-width: 900px) {
  .saga-tab {
    font-size: 12px;
    padding: 10px 15px;
  }
  
  .saga-tab-badge {
    font-size: 9px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .saga-tabs {
    padding: 0 5px;
    gap: 4px;
  }
  
  .saga-tab {
    font-size: 11px;
    padding: 8px 12px;
  }
  
  .saga-tab-badge {
    font-size: 8px;
    padding: 1px 3px;
    margin-left: 4px;
  }
}

/* === ACORDEÓN DE DOS NIVELES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.saga-item {
  margin-bottom: 8px;
  animation: fadeInUp 0.4s ease-out;
  border-radius: 8px;
  background: rgba(15, 0, 38, 0.15);
  padding: 3px;
  border: 1px solid rgba(0, 255, 247, 0.1);
}

.saga-titulo {
  background: linear-gradient(135deg, #ff00cc 0%, #cc0099 50%, #ff00cc 100%) !important;
  color: #ffffff !important;
  font-family: 'Bangers', cursive !important;
  font-size: 1.2em !important;
  font-weight: normal !important;
  -webkit-text-stroke: 1px #000000 !important;
  border: 2px solid #00fff7 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-bottom: 3px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  box-shadow: 0 2px 8px rgba(255, 0, 204, 0.3), 0 0 12px rgba(0, 255, 247, 0.2) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  overflow: hidden !important;
}

.saga-titulo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.saga-titulo:hover::before {
  left: 100%;
}

.saga-titulo:hover {
  background: linear-gradient(135deg, #00fff7 0%, #ff00cc 50%, #00fff7 100%) !important;
  border-color: #ff00cc !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 4px 12px rgba(255, 0, 204, 0.4), 0 0 15px rgba(0, 255, 247, 0.3) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.saga-titulo.active {
  background: linear-gradient(135deg, #ff00cc 0%, #00fff7 50%, #ff00cc 100%) !important;
  border-color: #00fff7 !important;
  box-shadow: 0 3px 10px rgba(255, 0, 204, 0.5), 0 0 12px rgba(0, 255, 247, 0.4) !important;
  transform: scale(1.02) !important;
}

.saga-panel {
  padding: 6px 4px;
  background: linear-gradient(135deg, #0f0026 0%, #1a0040 100%);
  border: 2px solid #ff00cc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-bottom: 0;
}

.arco-item {
  margin-bottom: 3px;
}

.arco-titulo {
  background: linear-gradient(135deg, #ff00cc 0%, #cc0099 50%, #ff00cc 100%);
  color: #ffffff;
  font-family: 'Bangers', cursive;
  font-size: 1.2em;
  font-weight: normal;
  -webkit-text-stroke: 1px #000000;
  padding: 8px 12px;
  border: 2px solid #00fff7;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: center;
  margin: 2px 0;
  box-shadow: 0 2px 8px rgba(255, 0, 204, 0.3), 0 0 12px rgba(0, 255, 247, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.arco-titulo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.arco-titulo:hover::before {
  left: 100%;
}

.arco-titulo:hover {
  background: linear-gradient(135deg, #00fff7 0%, #ff00cc 50%, #00fff7 100%);
  border-color: #ff00cc;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 0, 204, 0.4), 0 0 15px rgba(0, 255, 247, 0.3);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.arco-titulo.disabled {
  background: linear-gradient(135deg, #666 0%, #333 100%) !important;
  border-color: #666 !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  -webkit-text-stroke: none !important;
}

.arco-titulo.disabled:hover {
  background: linear-gradient(135deg, #666 0%, #333 100%) !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.arco-titulo.disabled::before {
  display: none !important;
}

.arco-titulo.active {
  background: linear-gradient(135deg, #ff00cc 0%, #00fff7 50%, #ff00cc 100%);
  border-color: #00fff7;
  box-shadow: 0 3px 10px rgba(255, 0, 204, 0.5), 0 0 12px rgba(0, 255, 247, 0.4);
  transform: scale(1.02);
}

.arco-panel {
  padding: 4px 0;
  background: rgba(15, 0, 38, 0.3);
  border-radius: 0 0 6px 6px;
}

.episodio-item {
  padding: 4px 8px;
  margin: 1px 0;
  background: rgba(255, 0, 204, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episodio-item:hover {
  background: rgba(0, 255, 247, 0.2);
  transform: translateX(2px);
}

.episodio-numero {
  color: #ff00cc;
  font-weight: bold;
  margin-right: 6px;
  min-width: 20px;
  font-size: 0.9em;
}

.episodio-titulo {
  color: #00fff7;
  flex: 1;
  font-size: 0.9em;
}

.episodio-item.episodio-visto {
  opacity: 0.6;
  background: rgba(0, 255, 0, 0.1) !important;
  border-left: 4px solid #00ff00;
}

.episodio-item.episodio-visto .episodio-titulo {
  color: #00ff00;
  text-decoration: line-through;
}

/* === BOTÓN VOLVER === */
.boton-volver {
  background: linear-gradient(135deg, #2a0060 0%, #1a003d 100%);
  color: #ffffff;
  font-family: 'Bangers', cursive;
  font-size: 0.9em;
  font-weight: normal;
  padding: 6px 12px;
  border: 1px solid #00fff7;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.boton-volver:hover {
  background: linear-gradient(135deg, #00fff7 0%, #2a0060 100%);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 2px 6px rgba(0, 255, 247, 0.4);
}