﻿@import url('css2');
      
        body {
            font-family: 'Rajdhani', sans-serif;
            background-color: #0a0a1a;
            color: #00f0ff;
            overflow-x: hidden;
        }
        
        .cyberpunk-text {
            font-family: 'Orbitron', sans-serif;
            text-shadow: 0 0 10px #00f0ff, 0 0 10px #00f0ff;
        }
        
        .cyberpunk-border {
            border: 2px solid #00f0ff;
            box-shadow: 0 0 15px #00f0ff;
        }
        
        .cyberpunk-glow {
            box-shadow: 0 0 20px #00f0ff;
        }
        
        #visitorCounter {
            position: fixed;
            top: 10px;
            left: 0;
            width: 100%;
            text-align: center;
            z-index: 20;
            animation: visitorGlow 2s infinite alternate;
        }

        @keyframes visitorGlow {
            0% { text-shadow: 0 0 5px #00f0ff; }
            100% { text-shadow: 0 0 15px #00f0ff, 0 0 20px #9d00ff; }
        }
        
        .shake {
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
            20%, 40%, 60%, 80% { transform: translateX(2px); }
        }

        .play-btn {
            width: 60px;
            height: 60px;
            background: rgba(0, 240, 255, 0.2);
            border: 3px solid #00f0ff;
            transition: all 0.3s ease;
            z-index: 10;
        }

        @media (min-width: 768px) {
            .play-btn {
                width: 80px;
                height: 80px;
            }
        }

        #pauseIcon {
            filter: drop-shadow(0 0 5px #00f0ff);
        }
        
        .play-btn:hover {
            background: rgba(0, 240, 255, 0.4);
            transform: scale(1.05);
            box-shadow: 0 0 25px #00f0ff;
        }

        .animate-pulse {
            animation: buttonPulse 0.5s cubic-bezier(0.4, 0, 0.6, 1);
        }

        @keyframes buttonPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 15px #00f0ff;
            }
            50% {
                transform: scale(1.1);
                box-shadow: 0 0 30px #00f0ff, 0 0 20px #9d00ff;
            }
        }
        
        .equalizer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100vw;
            height: 120px;
            display: none;
            z-index: 5;
        }
        
        .equalizer-line {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00f0ff, transparent);
        }
        
        .equalizer-wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(to top, rgba(0, 240, 255, 0.1), transparent);
        }
        
        .pulse {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(0, 240, 255, 0.2);
            opacity: 0;
            z-index: -1;
            transform-origin: center;
        }
        
        .pulse-1 {
            animation: pulse 2s infinite;
        }
        
        .pulse-2 {
            animation: pulse 2s infinite 0.66s;
        }
        
        .pulse-3 {
            animation: pulse 2s infinite 1.33s;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(0.95);
                opacity: 0.5;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        @media (min-width: 768px) {
            @keyframes pulse {
                0% {
                    transform: scale(0.95);
                    opacity: 0.5;
                }
                100% {
                    transform: scale(3);
                    opacity: 0;
                }
            }
        }
        
        .slogan-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: flipIn 12s infinite cubic-bezier(0.5, 0, 0.5, 1);
            opacity: 0;
            transform-origin: bottom center;
            transform-style: preserve-3d;
            backface-visibility: hidden;
        }

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

        @keyframes flipIn {
            0% {
                transform: rotateX(90deg);
                opacity: 0;
            }
            5%, 25% {
                transform: rotateX(0deg);
                opacity: 1;
            }
            30%, 100% {
                transform: rotateX(-90deg);
                opacity: 0;
            }
        }

        .equalizer-bar {
            position: relative;
            bottom: 0;
            width: 100%;
            min-width: 2px;
            max-width: 4px;
            background-color: #9d00ff;
            box-shadow: 0 0 5px #9d00ff;
            animation: equalize 1.5s infinite ease-in-out;
            margin: 0 1px;
            flex: 1 1 auto;
        }

        @keyframes equalize {
            0%, 100% {
                height: 7px;
                opacity: 0.7;
            }
            50% {
                height: 40px;
                opacity: 1;
            }
        }

        @media (min-width: 768px) {
            .equalizer-bar {
                min-width: 2px;
                max-width: 6px;
            }
            @keyframes equalize {
                0%, 100% {
                    height: 10px;
                    opacity: 0.7;
                }
                50% {
                    height: 80px;
                    opacity: 1;
                }
            }
        }

        @media (min-width: 1024px) {
            .equalizer {
                height: 150px;
            }
            .equalizer-bar {
                min-width: 5px;
                max-width: 10px;
            }
            @keyframes equalize {
                0%, 100% {
                    height: 10px;
                    opacity: 0.7;
                }
                50% {
                    height: 60px;
                    opacity: 1;
                }
            }
        }
  
       
        .logo {
            filter: drop-shadow(0 0 33px #9d00ff);
            transition: filter 0.5s ease;
        }

        .logo-animate {
            animation: logoFloat 6s ease-in-out infinite, logoColorChange 4s ease-in-out infinite alternate;
        }

        @keyframes logoColorChange {
            0%, 100% {
                filter: drop-shadow(0 0 33px #9d00ff);
            }
            50% {
                filter: drop-shadow(0 0 33px #00f0ff);
            }
        }

        .logo-animate svg text {
            animation: textColorChange 4s ease-in-out infinite alternate;
        }

        .logo-animate svg rect {
            animation: borderColorChange 4s ease-in-out infinite alternate;
        }

        @keyframes textColorChange {
            0%, 100% {
                fill: #9d00ff;
            }
            50% {
                fill: #00f0ff;
            }
        }

        @keyframes borderColorChange {
            0%, 100% {
                stroke: #9d00ff;
            }
            50% {
                stroke: #00f0ff;
            }
        }

        .connection-notification {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(10, 10, 26, 0.9);
            border: 2px solid #00f0ff;
            border-radius: 10px;
            padding: 16px;
            color: #00f0ff;
            text-align: center;
            font-family: 'Orbitron', sans-serif;
            font-size: 18px;
            z-index: 1000;
            display: none;
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
            max-width: 90%;
            width: auto;
            white-space: nowrap;
        }

        .connection-notification.error {
            color: #ff0000;
            border-color: #ff0000;
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        }

        @media (max-width: 768px) {
            .connection-notification {
                font-size: 16px;
                padding: 12px;
                white-space: normal;
                max-width: 80%;
            }
        }

        @media (max-width: 480px) {
            .connection-notification {
                font-size: 14px;
                padding: 10px;
                max-width: 90%;
            }
        }

        .typing-animation::after {
            content: '';
            display: inline-block;
            width: 2px;
            height: 1em;
            background: #00f0ff;
            margin-left: 2px;
            vertical-align: middle;
            animation: blink-caret 0.75s step-end infinite;
        }

        .connection-error-message {
            position: fixed;
            bottom: 50%;
            left: 50%;
            transform: translate(-50%, 50%);
            background: rgba(10, 10, 26, 0.9);
            padding: 10px 20px;
            border: 1px solid #ff0000;
            color: #ff0000;
            text-shadow: 0 0 5px #ff0000;
            border-radius: 5px;
            z-index: 1000;
            max-width: 80%;
            text-align: center;
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .connection-error .typing-animation {
            display: block;
        }

        .connection-error #equalizer,
        .connection-error #sloganSlider {
            display: none !important;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: #00f0ff }
        }

        .blinking-cursor {
            animation: blink-caret 0.75s step-end infinite;
            color: #00f0ff;
        }

        @keyframes logoFloat {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-10px) rotate(2deg);
            }
        }

        @media (max-width: 768px) {
            .logo-animate {
                animation: logoFloat 4s ease-in-out infinite, logoColorChange 3s ease-in-out infinite alternate;
            }
            @keyframes logoFloat {
                0%, 100% {
                    transform: translateY(0) rotate(0deg);
                }
                50% {
                    transform: translateY(-5px) rotate(1deg);
                }
            }
            @keyframes logoColorChange {
                0%, 100% {
                    filter: drop-shadow(0 0 15px #9d00ff);
                }
                50% {
                    filter: drop-shadow(0 0 15px #00f0ff);
                }
            }
        }
        
        .bg-city {
            background-image: url('bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            opacity: 1;
        }

        .bg-city.animated {
            animation: zoomIn 15s infinite ease-in-out;
        }

        @keyframes zoomIn {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(10, 0, 0, 1) 3%, rgba(10, 10, 26, 0.1));
            z-index: -1;
        }


#listenersCounter {
    backdrop-filter: blur(10px);
    border: 2px solid #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4),
                0 0 40px rgba(157, 0, 255, 0.3);
    animation: listenerGlow 3s infinite alternate;
    transition: all 0.3s ease;
    min-width: 100px;
}

#listenersCounter:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6),
                0 0 50px rgba(157, 0, 255, 0.4);
}

@keyframes listenerGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4),
                    0 0 20px rgba(157, 0, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6),
                    0 0 40px rgba(157, 0, 255, 0.5);
    }
}

/* Анимация изменения числа */
.count-change {
    animation: numberPulse 0.5s ease-in-out;
}

@keyframes numberPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 5px #00ff00;
    }
    50% { 
        transform: scale(1.2);
        text-shadow: 0 0 15px #00ff00, 0 0 20px #00ff00;
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 5px #00ff00;
    }
}

/* Стили для статуса сервера */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    animation: statusPulse 2s infinite;
}

.status-dot::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.text-green-400 .status-dot::before {
    background-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.text-red-400 .status-dot::before {
    background-color: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #listenersCounter {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        transform: scale(0.9);
    }
    
    #listenersCount {
        font-size: 1.3rem;
    }
    
    .text-xs {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    #listenersCounter {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        transform: scale(0.8);
    }
    
    #serverStatus {
        display: none !important; /* Скрываем статус на очень маленьких экранах */
    }
}


/* Анимация для счетчика */
.count-pulse {
    animation: countPulse 0.6s ease-in-out;
}

@keyframes countPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px #00f0ff;
    }
    50% {
        transform: scale(1.3);
        text-shadow: 0 0 15px #00f0ff, 
                     0 0 25px #9d00ff;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px #00f0ff;
    }
}

/* Стили для счетчика онлайн */
#onlineCounter {
    transition: all 0.3s ease;
}

#onlineCounter:hover {
    transform: translateY(-1px);
}

/* Internet status notification styles */
#offlineNotification, #onlineNotification {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#offlineNotification {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid #ff3366 !important;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    color: #ff3366;
}

#onlineNotification {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid #33ff66 !important;
    box-shadow: 0 0 20px rgba(51, 255, 102, 0.5);
    color: #33ff66;
}

/* Mobile optimization */
@media (max-width: 768px) {
    #offlineNotification, #onlineNotification {
        min-width: 250px;
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #offlineNotification, #onlineNotification {
        min-width: 200px;
        padding: 12px;
        font-size: 14px;
    }
}

/* Connection notification improvements */
.connection-notification {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Animation for notifications */
@keyframes notificationSlideIn {
    0% { 
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#offlineNotification, #onlineNotification, .connection-notification, #reconnectNotification {
    animation: notificationSlideIn 0.3s ease-out forwards;
}

/* Improved connection status display */
.connection-status {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00f0ff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

        /* Glitch effect styles */
        .glitch-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: transparent;
            z-index: 9999;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .glitch-active {
            opacity: 1;
        }
        
        .glitch-line {
            position: absolute;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #9d00ff, #00f0ff);
            opacity: 0.7;
            transform: scaleY(0);
            transform-origin: top;
            animation: glitchLine 0.5s linear forwards;
        }
        
        .glitch-scanline {
            position: absolute;
            width: 100%;
            height: 1px;
            background: rgba(0, 240, 255, 0.2);
            animation: scanline 6s linear infinite;
        }
        
        @keyframes glitchLine {
            0% { transform: scaleY(0); opacity: 0; }
            10% { transform: scaleY(1); opacity: 0.7; }
            90% { transform: scaleY(1); opacity: 0.7; }
            100% { transform: scaleY(0); opacity: 0; }
        }
        
        @keyframes scanline {
            0% { top: 0%; }
            100% { top: 100%; }
        }
        
        /* Shake animation */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        .shake-animation {
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        .connection-notification, #reconnectNotification {
            transition: opacity 0.3s ease;
        }
        .hidden {
            display: none !important;
        }
        #reconnectNotification {
            background: rgba(0, 0, 0, 0.9) !important;
            backdrop-filter: blur(10px);
            border: 2px solid #00f0ff !important;
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
            border-radius: 12px;
            padding: 20px;
            min-width: 300px;
            max-width: 90%;
        }
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
