/* Anime Slideshow Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.anime-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: slideshow 12s infinite;
    filter: brightness(0.4) blur(1px);
}

.slide:nth-child(1) {
    animation-delay: 0s;
}
.slide:nth-child(2) {
    animation-delay: 3s;
}
.slide:nth-child(3) {
    animation-delay: 6s;
}
.slide:nth-child(4) {
    animation-delay: 9s;
}

@keyframes slideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 0.7;
    }
    20% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    30% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(229, 9, 20, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1.5s ease-in-out infinite;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.loading-text {
    position: absolute;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    animation: pulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(0.95); }
}