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

body {
    font-family: 'Courier New', monospace;
    background: #000011;
    color: #00ffff;
    overflow: hidden;
}

.warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.warning-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.warning-content h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 24px;
}

.warning-content p {
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.5;
}

.warning-content button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.warning-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#controls-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    min-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.control-section {
    margin-bottom: 20px;
}

.control-section h3 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.power-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.power-btn.off {
    background: linear-gradient(135deg, #333, #555);
    color: #888;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.power-btn.on {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.8); }
}

.power-icon {
    font-size: 20px;
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.channel-btn {
    background: linear-gradient(135deg, #2a2a4a, #1a1a3a);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.channel-btn:hover {
    background: linear-gradient(135deg, #3a3a5a, #2a2a4a);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.channel-btn.active {
    background: linear-gradient(135deg, #00ffff, #00cccc);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.slider-group {
    margin-bottom: 12px;
}

.slider-group label {
    display: block;
    color: #ffffff;
    font-size: 12px;
    margin-bottom: 5px;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #00cccc);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.toggle-group input[type="checkbox"] {
    accent-color: #00ffff;
}

#info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px;
    min-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

#channel-info h4 {
    color: #00ffff;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#channel-info p {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
}

footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #333;
}

footer a {
    color: #888;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00ffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #controls-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
        min-width: auto;
    }
    
    #info-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
    }
    
    footer {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .channel-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .power-btn {
        height: 50px;
        font-size: 14px;
    }
}

/* Scan line effect */
#scene-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Glow effects */
.control-section h3,
#channel-info h4 {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6); }
}