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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
}

header p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.monitor-bezel {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
    border: 3px solid #333;
}

#hdmi-display {
    display: block;
    border-radius: 8px;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    height: auto;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.status-message {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 20px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.monitor-stand {
    width: 80px;
    height: 60px;
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
    border-radius: 0 0 15px 15px;
    position: relative;
}

.monitor-stand::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
    border-radius: 10px;
}

.control-panel {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 165, 245, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.control-group {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group h3 {
    margin-bottom: 15px;
    color: #42a5f5;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(66, 165, 245, 0.3);
    padding-bottom: 5px;
}

.control-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.control-row label {
    min-width: 100px;
    font-size: 0.9rem;
    color: #ccc;
}

select, input[type="range"] {
    flex: 1;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(66, 165, 245, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

select {
    cursor: pointer;
}

select:focus, input:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 0.9rem;
}

.indicator-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: blink 2s infinite;
}

.indicator-light.green {
    background: #4caf50;
    color: #4caf50;
}

.indicator-light.yellow {
    background: #ffeb3b;
    color: #ffeb3b;
}

.indicator-light.orange {
    background: #ff9800;
    color: #ff9800;
}

.indicator-light.red {
    background: #f44336;
    color: #f44336;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.chaos-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.chaos-btn {
    padding: 10px;
    background: linear-gradient(145deg, #333 0%, #222 100%);
    border: 1px solid rgba(66, 165, 245, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chaos-btn:hover {
    background: linear-gradient(145deg, #444 0%, #333 100%);
    border-color: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 165, 245, 0.2);
}

.chaos-btn.danger {
    border-color: #f44336;
    background: linear-gradient(145deg, #5d1a1a 0%, #3d1010 100%);
}

.chaos-btn.danger:hover {
    border-color: #ff5722;
    background: linear-gradient(145deg, #7d2a2a 0%, #5d1a1a 100%);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.2);
}

.chaos-btn.active {
    background: linear-gradient(145deg, #42a5f5 0%, #2196f3 100%);
    border-color: #1976d2;
}

.audio-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.audio-info div {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border-left: 3px solid #42a5f5;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

footer a {
    color: #42a5f5;
    text-decoration: none;
}

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

footer em {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .control-panel {
        order: -1;
    }
    
    .chaos-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .monitor-bezel {
        padding: 15px;
    }
    
    #hdmi-display {
        width: 100%;
        max-width: 640px;
        height: auto;
    }
    
    .status-message {
        font-size: 1.5rem;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .control-row label {
        min-width: auto;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(66, 165, 245, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 165, 245, 0.8);
}