body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Contenedores principales */
.container, .synopsis, .canciones {
    width: 90%;
    max-width: 800px;
    margin: auto;
    background: rgba(220, 220, 220, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Botones de temporadas */
.season {
    margin-bottom: 10px;
    cursor: pointer;
    background: #ddd;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#serverContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    text-align: center;
}

#serverSelector {
    font-size: 18px;
    padding: 8px;
    border-radius: 5px;
}

.season:hover {
    background: #ccc;
}

/* Lista de episodios */
.episodes {
    display: none;
    padding-left: 20px;
    text-align: left;
}

.filler {
    color: red;
}

.canon {
    color: green;
}

/* Iframe para el manga */
#mangaFrame {
    width: 100%;
    height: 70vh;
    max-width: 800px;
    border: 2px solid #000;
    border-radius: 10px;
    background-color: white;
    display: block;
    margin: auto;
}

/* 📌 Ajuste para imágenes de personajes */
.character-img {
    max-width: 100%; /* Se adapta al tamaño del contenedor */
    height: auto; /* Mantiene la proporción correcta */
    display: block;
    margin: auto;
}

.personaje-contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    padding: 10px;
    max-width: 800px;
    margin: auto;
}

.personaje-texto {
    flex: 1;
    padding: 10px;
}

/* 🎯 MEDIA QUERIES PARA RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container, .synopsis, .canciones {
        width: 95%;
        padding: 15px;
    }

    .season {
        font-size: 14px;
        padding: 8px;
    }

    #mangaFrame {
        height: 60vh;
    }

    /* 📌 En móviles, las imágenes se colocan arriba del texto y se centran */
    .personaje-contenedor {
        flex-direction: column;
        text-align: center;
    }

    .character-img {
        width: 80%; /* Reduce el tamaño en móviles */
        max-width: 300px; /* Máximo tamaño permitido en móviles */
    }
}

@media (max-width: 480px) {
    .season {
        font-size: 12px;
        padding: 6px;
    }

    #mangaFrame {
        height: 50vh;
    }

    .character-img {
        width: 90%; /* Ajusta la imagen en pantallas más pequeñas */
        max-width: 250px;
    }
}
