/* Estilos generales */
:root {
    --primary-color: #c578f8;   
    /* el de arriba es el color de las letras de digamos anime dark y los botones */

    --dark-gray: #1a1a1a;
    /* el color de arriba es el fondo de los episodios */
    
    --medium-gray: #000000;
    /* el color de los capitulos */
    --light-gray: #757575;
    --text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(10, 10, 10, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('assets/images/aot-banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Para compensar la navbar fija */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección de Series */
.series-section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.series-card {
    margin-bottom: 4rem;
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
}

.series-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.series-info {
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    width: 100%;
}

.series-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.watch-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.watch-btn:hover {
    background-color: #b2070f;
}

.episodes-container {
    padding: 2rem;
}

.episodes-container h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.episode-card {
    background-color: var(--medium-gray);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-5px);
}

.episode-thumbnail {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.episode-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.episode-card:hover .episode-thumbnail::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.episode-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
}

.episode-info {
    padding: 1rem;
}

.episode-info h5 {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-info p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Formulario de subida */
.upload-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.upload-form {
    background-color: var(--dark-gray);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--medium-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b2070f;
}

/* Reproductor de video */
.video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-container {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.player-container video {
    width: 100%;
    border-radius: 8px;
}

.video-info {
    margin-top: 1rem;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--dark-gray);
    margin-top: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Loader - Fondo completo */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a12; /* Fondo oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Siempre encima de todo */
    transition: opacity 0.5s, visibility 0.5s;
}

/* Calavera animada */
.loader .skull {
    font-size: 5rem;
    color: #ff2d54; /* Color rojo anime */
    animation: pulse 1.5s infinite; /* Animación */
}

/* Animación de latido */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7; 
    }
}

/* Clase para ocultar el loader */
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}



/* Attack on Titan */
.aot-title {
  animation: blood-effect 2s infinite;
  font-family: 'Creepster', cursive;
  color: #ff0033;
  position: relative;
}
.aot-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  animation: drip-flow 3s linear infinite;
}


/* Bungo Stray Dogs */
.bsd-title {
  animation: blood-effect 2s infinite;
  font-family: 'Creepster', cursive;
  color: #8be4ff;
  position: relative;
}
.bsd-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  animation: drip-flow 3s linear infinite;
}


.vs-title {
  animation: blood-effect 2s infinite;
  font-family: 'Creepster', cursive;
  color: #ff0000;
  position: relative;
}
.vs-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  animation: drip-flow 3s linear infinite;
}

.burichi-title {
  animation: blood-effect 2s infinite;
  font-family: 'Creepster', cursive;
  color: #ff845e;
  position: relative;
}
.burichi-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  animation: drip-flow 3s linear infinite;
}


.Bl-title {
  animation: blood-effect 2s infinite;
  font-family: 'Creepster', cursive;
  color: #141b5e;
  position: relative;
}
.Bl-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  animation: drip-flow 3s linear infinite;
}
/* aqui termina el efecto de sangre en los nombrecitos */






/* Animación de sangre pulsante */
@keyframes blood-effect {
  0%, 100% { 
    text-shadow: 0 0 5px #ff0033, 0 0 10px #800020;
    transform: translateY(0);
  }
  50% { 
    text-shadow: 0 0 15px #ff0033, 0 0 25px #800020;
    transform: translateY(-3px);
  }
}

/* Animación de goteo */
@keyframes drip-flow {
  to { background-position: 100% 0; }
}






/* Modo Yandere (Rosa Pastel) color de la letra blanca */
body.yandere-mode {
    background-color: #ffc9f3;  /* Fondo rosa pastel */
    color: #ff0000;             /* Texto rojo oscuro */
    /* fondo rosa con letra blanca */
}

.yandere-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff0033;  /* Rojo Yandere */
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.yandere-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff0033;
}

/* Iconos */
.yandere-icon {
    display: none;
}

body.yandere-mode .normal-icon {
    display: none;
}

body.yandere-mode .yandere-icon {
    display: inline;
}

body.yandere-mode .yandere-btn {
    background: #ff66b3;  /* Rosa pastel */
    box-shadow: 0 0 15px #ff66b3;
}


@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.yandere-btn:hover {
    animation: heartbeat 0.5s infinite;
}


@keyframes float {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 0 5px rgb(255, 255, 255);
  }
  50% {
    transform: translateY(-10px);
    text-shadow: 0 10px 15px rgba(77, 184, 255, 0.8);
  }
}

.logo {
  animation: float 3s ease-in-out infinite;
  display: inline-block;
  transition: all 0.3s;
}

.logo:hover {
  animation: float 1s ease-in-out infinite; /* Más rápido al hacer hover */
}


/* fondo del color  texto rojo en todo*/
:root {
            --dark-bg: #000000;
            --dark-card: #161622;
            --dark-text: #fa0000;
            --blood-red: #ffffff;
            --yandere-pink: #ff66b3;
            --accent: var(--blood-red);
        }

        body {
            font-family: 'Segoe UI', sans-serif;
            background: var(--dark-bg);
            color: var(--dark-text);
            margin: 0;
            overflow-x: hidden;
            transition: background 0.5s;
        }

        /* Efecto de corte en el logo */
        .logo-container {
            position: relative;
            display: inline-block;
            margin: 1rem 0;
        }

        .logo {
            font-family: 'Creepster', cursive;
            font-size: 3.5rem;
            background: linear-gradient(45deg, var(--blood-red), var(--yandere-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            position: relative;
            padding: 0 1rem;
        }

        .logo::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #000000, var(--blood-red), #fff, transparent);
            transform: translateY(-50%) rotate(-5deg);
            animation: cut-animation 5s infinite;
            z-index: 2;
        }

        @keyframes cut-animation {
            0% { left: -100%; opacity: 0; }
            20% { left: 100%; opacity: 1; }
            100% { left: 100%; opacity: 0; }
        }

        

        .theme-btn:hover {
            transform: rotate(360deg) scale(1.1);
        }



        /* icono de bleach*/
        .fas.fa-soul-icon.hollow::before {
  background: #ff4d4d;
  box-shadow: 0 0 8px #ff4d4d;
}
.fas.fa-soul-icon.hollow::after {
  content: "☠";
  color: rgb(255, 255, 255);
}







        

       /* Background Slideshow */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,18,0.7);
    z-index: -1;
} 


        






/* Estilos para el reproductor adaptable - VERSIÓN FIJA */
#video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Evita que el contenido se mueva */
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

#video-title {
    color: white;
    margin: 20px 0;
    text-align: center;
    max-width: 90%;
    padding: 0 5%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px currentColor;
}

/* Efectos temáticos manteniendo la "X" */
.close-btn.aot {
    color: #c00;
}

.close-btn.aot:hover {
    transform: scale(1.3) rotate(90deg);
    text-shadow: 0 0 15px #f00;
}

.close-btn.bsd {
    color: #ffcc00;
}

.close-btn.bsd:hover {
    transform: scale(1.3);
    text-shadow: 0 0 15px #ff9900;
}

.close-btn.vs {
    color: #3399ff;
}

.close-btn.vs:hover {
    transform: scale(1.3) rotate(15deg);
    text-shadow: 0 0 15px #0066cc;
}

.close-btn.burichi {
    color: #ff6600;
}

.close-btn.burichi:hover {
    transform: scale(1.3) rotate(45deg);
    text-shadow: 0 0 15px #ff3300;
}

.close-btn.Bl {
    color: #00ccff;
}

.close-btn.Bl:hover {
    transform: scale(1.3);
    text-shadow: 0 0 15px #0066ff;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .video-container {
        width: 95%;
        max-height: 60vh;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
    
    #video-title {
        font-size: 16px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .video-container {
        width: 100%;
        max-height: 50vh;
        padding: 0 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    #video-title {
        font-size: 14px;
        margin: 10px 0;
    }
}





