@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    font-family: 'Orbitron', monospace;
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    border: 2px solid #333;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header h1 {
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 0 10px #00ff41;
    letter-spacing: 2px;
}

.status-indicators {
    display: flex;
    gap: 15px;
}

.indicator {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid;
    transition: all 0.3s ease;
}

.digital-audio {
    background: #001a00;
    border-color: #00ff41;
    color: #00ff41;
}

.digital-audio.active {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px #00ff41;
}

.laser-power {
    background: #1a0000;
    border-color: #ff4141;
    color: #ff4141;
}

.laser-power.error {
    animation: errorBlink 0.2s infinite;
}

@keyframes errorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.main-display {
    position: relative;
    background: #000;
    border-radius: 15px;
    border: 3px solid #333;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

#canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.1) 2px,
        rgba(0, 255, 65, 0.1) 4px
    );
    opacity: 0.7;
    pointer-events: none;
    animation: scanlineMove 0.1s linear infinite;
}

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

.info-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.now-playing {
    font-size: 16px;
    font-weight: 700;
    color: #ffb000;
    text-shadow: 0 0 8px #ffb000;
}

.disc-info {
    font-size: 14px;
    color: #888;
    font-family: 'Courier Prime', monospace;
}

.time-display {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier Prime', monospace;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    background: #000;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #00ff41;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    border: 2px solid #333;
    margin-bottom: 20px;
}

.transport-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #555;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    color: #00ff41;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

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

.play-pause {
    background: linear-gradient(145deg, #004400, #002200);
    border-color: #00ff41;
}

.mode-controls {
    display: flex;
    gap: 10px;
}

.mode-btn, .glitch-btn {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 1px solid #555;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ffb000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Orbitron', monospace;
}

.mode-btn:hover, .glitch-btn:hover {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border-color: #ffb000;
}

.glitch-btn {
    color: #ff4141;
}

.glitch-btn:hover {
    border-color: #ff4141;
    box-shadow: 0 0 10px rgba(255, 65, 65, 0.3);
}

.effects-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

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

.slider-group label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.slider-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
}

.footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00ff41;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .info-panel {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .effects-panel {
        grid-template-columns: 1fr;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
    .transport-controls {
        gap: 10px;
    }
}