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

body {
    background: linear-gradient(135deg, #2c1810, #1a0f08);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crt-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
}

.crt-frame {
    position: relative;
    background: linear-gradient(145deg, #8b4513, #654321);
    border-radius: 20px;
    padding: 40px 30px 50px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.3),
        0 20px 40px rgba(0,0,0,0.5);
    border: 3px solid #5d2f0a;
}

.brand-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

#canvas {
    border: 8px solid #2a2a2a;
    border-radius: 8px;
    background: #000;
    box-shadow: 
        inset 0 0 30px rgba(0,255,0,0.1),
        0 0 20px rgba(0,0,0,0.8);
    filter: contrast(1.1) brightness(1.1);
}

.screen-glow {
    position: absolute;
    top: 40px;
    left: 30px;
    right: 30px;
    bottom: 50px;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,255,0,0.15);
    pointer-events: none;
}

.control-panel {
    background: linear-gradient(145deg, #8b4513, #654321);
    border-radius: 15px;
    padding: 30px;
    border: 3px solid #5d2f0a;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.3),
        0 15px 30px rgba(0,0,0,0.4);
    min-width: 300px;
}

.power-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #5d2f0a;
}

.power-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 2px solid #444;
    transition: all 0.3s;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.power-led.on {
    background: #00ff00;
    border-color: #00cc00;
    box-shadow: 
        inset 0 0 5px rgba(0,0,0,0.3),
        0 0 15px rgba(0,255,0,0.8);
}

.power-button {
    background: linear-gradient(145deg, #ff4444, #cc3333);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.power-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.power-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.source-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.source-btn {
    background: linear-gradient(145deg, #666, #444);
    color: #ffd700;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.source-btn.active {
    background: linear-gradient(145deg, #ffd700, #ccaa00);
    color: #000;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.source-btn:hover:not(.active) {
    background: linear-gradient(145deg, #777, #555);
}

.knobs-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.knob {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #888, #333);
    border: 3px solid #222;
    position: relative;
    cursor: pointer;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.3);
}

.knob-indicator {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: #ffd700;
    border-radius: 2px;
    transition: transform 0.1s;
}

.knob-led {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffff00;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 0 8px rgba(255,255,0,0.8);
}

.knob-group label {
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.toggles-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffd700;
}

.toggle-group label {
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
}

.sliders-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-group label {
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    accent-color: #ffd700;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    background: linear-gradient(145deg, #666, #444);
    color: #ffd700;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.action-btn:hover {
    background: linear-gradient(145deg, #777, #555);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(1px);
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .crt-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .control-panel {
        min-width: unset;
        width: 100%;
        max-width: 600px;
    }
    
    .knobs-section {
        justify-content: space-around;
    }
}

@media (max-width: 700px) {
    #canvas {
        width: 100%;
        height: auto;
        max-width: 480px;
    }
    
    .crt-frame {
        padding: 20px 15px 30px;
    }
    
    .control-panel {
        padding: 20px;
    }
    
    .knobs-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}