/* ZipNationMovies — boshlang'ich yuklanish ekrani */
html.zn-loading body {
    overflow: hidden;
}

.zn-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    overflow: hidden;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.zn-loader.zn-loader-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Foydalanuvchi bergan rasm — to'liq ko'rinsin, kesilmasin */
.zn-loader-picture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.zn-loader-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    animation: zn-loader-img-in 0.9s ease-out forwards;
}

@keyframes zn-loader-img-in {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress faqat pastki qismda — rasm ustida emas */
.zn-loader-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        transparent 100%
    );
    pointer-events: none;
}

.zn-loader-percent {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(229, 9, 20, 0.5);
    font-variant-numeric: tabular-nums;
    min-width: 4.5ch;
    text-align: center;
}

.zn-loader-progress {
    width: min(380px, 100%);
}

.zn-loader-track {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.zn-loader-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b20710 0%, #e50914 50%, #ff5555 100%);
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zn-loader-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: zn-loader-shine 1.8s ease-in-out infinite;
}

@keyframes zn-loader-shine {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.8; }
}

.zn-loader-label {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.zn-loader.zn-loader-done .zn-loader-fill {
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
    .zn-loader-overlay {
        padding-bottom: calc(2.25rem + env(safe-area-inset-bottom));
    }

    .zn-loader-track {
        height: 6px;
    }
}
