* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Базовый градиентный фон с эффектом дыма */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(139, 0, 0, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(220, 20, 60, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(40, 40, 40, 0.3) 0%, transparent 60%);
    z-index: 0;
}

/* Анимированный эффект дыма/тумана */
body::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(80, 80, 80, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(100, 100, 100, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(70, 70, 70, 0.1) 0%, transparent 35%);
    animation: smoke 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes smoke {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(-8%, -5%) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(5%, 8%) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translate(6%, -6%) scale(1.05);
        opacity: 0.75;
    }
}

/* Эффект сценических лучей света */
.light-beams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.beam {
    position: absolute;
    width: 100px;
    height: 400%;
    top: -200%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(220, 20, 60, 0.03) 30%, 
        rgba(220, 20, 60, 0.06) 50%, 
        rgba(220, 20, 60, 0.03) 70%, 
        transparent 100%);
    transform-origin: top center;
    opacity: 0.7;
}

.beam:nth-child(1) {
    left: 15%;
    animation: rotateBeam 8s ease-in-out infinite;
}

.beam:nth-child(2) {
    left: 50%;
    animation: rotateBeam 10s ease-in-out infinite 2s;
}

.beam:nth-child(3) {
    left: 85%;
    animation: rotateBeam 12s ease-in-out infinite 4s;
}

@keyframes rotateBeam {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Контейнер для изображения */
.image-container {
    position: relative;
    z-index: 10;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Рамка с эффектом свечения */
.frame {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.5), 
        rgba(139, 0, 0, 0.3),
        rgba(180, 30, 50, 0.4));
    border-radius: 4px;
    box-shadow: 
        0 0 60px rgba(220, 20, 60, 0.25),
        0 0 120px rgba(139, 0, 0, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.7);
    animation: frameGlow 6s ease-in-out infinite;
}

@keyframes frameGlow {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(220, 20, 60, 0.25),
            0 0 120px rgba(139, 0, 0, 0.15),
            inset 0 0 30px rgba(0, 0, 0, 0.7);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(220, 20, 60, 0.4),
            0 0 160px rgba(139, 0, 0, 0.25),
            inset 0 0 30px rgba(0, 0, 0, 0.7);
    }
}

.image-wrapper {
    position: relative;
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Изображение для десктопа */
.desktop-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1400px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(1) contrast(1.05);
}

/* Изображение для мобильных */
.mobile-image {
    display: none;
    width: 100%;
    height: auto;
    max-width: 600px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(1) contrast(1.05);
}

/* Эффект при наведении */
.image-wrapper:hover .desktop-image,
.image-wrapper:hover .mobile-image {
    transform: scale(1.01);
    filter: brightness(1.05) contrast(1.08);
}

/* Декоративные углы в стиле сценического оформления */
.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(220, 20, 60, 0.7);
    z-index: 5;
}

.corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(220, 20, 60, 0.4);
    border-radius: 50%;
}

.corner-tl {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
}

.corner-tl::after {
    top: -4px;
    left: -4px;
}

.corner-tr {
    top: -12px;
    right: -12px;
    border-left: none;
    border-bottom: none;
}

.corner-tr::after {
    top: -4px;
    right: -4px;
}

.corner-bl {
    bottom: -12px;
    left: -12px;
    border-right: none;
    border-top: none;
}

.corner-bl::after {
    bottom: -4px;
    left: -4px;
}

.corner-br {
    bottom: -12px;
    right: -12px;
    border-left: none;
    border-top: none;
}

.corner-br::after {
    bottom: -4px;
    right: -4px;
}

/* Мерцающие точки (эффект огней на сцене) */
.light-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 20, 60, 0.6);
    border-radius: 50%;
    animation: flicker 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.8);
}

.dot:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.dot:nth-child(2) { top: 8%; right: 15%; animation-delay: 1s; }
.dot:nth-child(3) { top: 95%; left: 20%; animation-delay: 2s; }
.dot:nth-child(4) { top: 92%; right: 25%; animation-delay: 1.5s; }
.dot:nth-child(5) { top: 15%; left: 85%; animation-delay: 0.5s; }
.dot:nth-child(6) { top: 85%; left: 90%; animation-delay: 2.5s; }

@keyframes flicker {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    .frame {
        padding: 2px;
    }

    .corner {
        width: 20px;
        height: 20px;
    }

    .corner::after {
        width: 6px;
        height: 6px;
    }

    .image-container {
        padding: 15px;
        max-height: 92vh;
    }

    .beam {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .image-container {
        padding: 10px;
    }

    .corner {
        width: 18px;
        height: 18px;
    }

    .frame {
        padding: 1.5px;
    }

    .beam {
        width: 60px;
    }

    .dot {
        width: 3px;
        height: 3px;
    }
}

/* Плавное появление при загрузке */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-container {
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Плавное появление фона */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.light-beams {
    animation: fadeIn 2s ease-in;
}