/* ============================================
   ОБЩИЕ СТИЛИ (Mobile First)
   ============================================ */

/* Контейнер прелоадера - МОБИЛЬНЫЙ */
#cinema-loader-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #2a2a2a 0%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* Скрываем мобильный на десктопе */
@media (min-width: 1025px) {
    #cinema-loader-mobile {
        display: none !important;
    }
}

.loader-content-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Анимация вращения SVG - МОБИЛЬНЫЙ */
.orbit-circles-mobile {
    animation: orbit-spin-mobile 3s linear infinite;
    transform-origin: 229px 256px;
}

@keyframes orbit-spin-mobile {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Текст с процентами - МОБИЛЬНЫЙ */
#cinema-loader-mobile p {
    color: #c9a227;
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(201, 162, 39, 0.4);
    animation: textGlowMobile 2s infinite ease-in-out;
}

@keyframes textGlowMobile {
    0%, 100% { opacity: 0.9; text-shadow: 0 2px 10px rgba(201, 162, 39, 0.4); }
    50% { opacity: 1; text-shadow: 0 2px 20px rgba(201, 162, 39, 0.7); }
}

/* Полоса загрузки - МОБИЛЬНЫЙ */
.loader-progress-mobile {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar-mobile {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9a227, #f0d878, #c9a227);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.1s ease-out;
    animation: shimmerMobile 2s linear infinite;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

@keyframes shimmerMobile {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Скрытие прелоадера - МОБИЛЬНЫЙ */
.loader-hidden-mobile {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   СТИЛИ ДЕСКТОП (min-width: 1025px)
   ============================================ */

/* Контейнер прелоадера - ДЕСКТОП */
#cinema-loader-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #2a2a2a 0%, #0f0f0f 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* Показываем десктоп на больших экранах */
@media (min-width: 1025px) {
    #cinema-loader-desktop {
        display: flex !important;
    }
}

.loader-content-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Верхняя строка: KINOBAG + SVG - ДЕСКТОП */
.loader-top-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Логотип KINOBAG с градиентом - ДЕСКТОП */
.kinobag-logo-desktop {
    font-size: 130px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9a227 0%, #f0d878 25%, #fff5c3 50%, #f0d878 75%, #c9a227 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 15px rgba(201, 162, 39, 0.6));
    animation: gradientShiftDesktop 3s ease infinite, textPulseDesktop 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes gradientShiftDesktop {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textPulseDesktop {
    0%, 100% { 
        filter: drop-shadow(0 4px 15px rgba(201, 162, 39, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 6px 25px rgba(201, 162, 39, 0.9));
        transform: scale(1.02);
    }
}

/* SVG анимация - ДЕСКТОП */
.orbit-circles-desktop {
    animation: orbit-spin-desktop 3s linear infinite;
    transform-origin: 229px 256px;
}

@keyframes orbit-spin-desktop {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Текст с процентами - ДЕСКТОП */
#cinema-loader-desktop p {
    color: #c9a227;
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(201, 162, 39, 0.4);
    animation: textGlowDesktop 2s infinite ease-in-out;
}

@keyframes textGlowDesktop {
    0%, 100% { opacity: 0.9; text-shadow: 0 2px 10px rgba(201, 162, 39, 0.4); }
    50% { opacity: 1; text-shadow: 0 2px 20px rgba(201, 162, 39, 0.7); }
}

/* Полоса загрузки - ДЕСКТОП */
.loader-progress-desktop {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar-desktop {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9a227, #f0d878, #c9a227);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.1s ease-out;
    animation: shimmerDesktop 2s linear infinite;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

@keyframes shimmerDesktop {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Скрытие прелоадера - ДЕСКТОП */
.loader-hidden-desktop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
