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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

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

.console-title {
    font-size: 3em;
    color: #00d4ff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    font-weight: 700;
}

.console-subtitle {
    color: #a0aec0;
    font-size: 1.2em;
}

.mixer-panel {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 2px solid #4a5568;
}

.deck-container {
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.deck {
    background: linear-gradient(145deg, #4a5568, #2d3748);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #718096;
}

.deck-title {
    color: #00d4ff;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.track-selector {
    margin-bottom: 20px;
}

.track-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.track-btn.active {
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.deck-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    padding: 15px;
    background: linear-gradient(145deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.control-btn.stop {
    background: linear-gradient(145deg, #f56565, #e53e3e);
}

.control-btn.stop:hover {
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.volume-control {
    margin-bottom: 15px;
}

.control-label {
    color: #a0aec0;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
}

.slider {
    width: 100%;
    height: 8px;
    background: #2d3748;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.crossfader-section {
    text-align: center;
    padding: 20px;
}

.crossfader-title {
    color: #00d4ff;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.crossfader {
    width: 150px;
    height: 8px;
    background: #2d3748;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    transform: rotate(90deg);
    margin: 40px 0;
}

.effects-panel {
    background: linear-gradient(145deg, #553c9a, #4c51bf);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.effects-title {
    color: #e2e8f0;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.effect-btn {
    padding: 15px 10px;
    background: linear-gradient(145deg, #805ad5, #6b46c1);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.effect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(128, 90, 213, 0.4);
}

.effect-btn.active {
    background: linear-gradient(145deg, #f6ad55, #ed8936);
    box-shadow: 0 0 20px rgba(246, 173, 85, 0.3);
}

.visualizer {
    background: linear-gradient(145deg, #1a202c, #2d3748);
    border-radius: 15px;
    padding: 20px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    border: 2px solid #4a5568;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #00d4ff, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    transition: height 0.1s ease;
    min-height: 5px;
}

.status-panel {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    border: 2px solid #4a5568;
}

.status-item {
    text-align: center;
}

.status-label {
    color: #a0aec0;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.status-value {
    color: #00d4ff;
    font-size: 1.5em;
    font-weight: bold;
}

.bpm-display {
    background: linear-gradient(145deg, #4a5568, #2d3748);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.bpm-value {
    font-size: 2em;
    color: #00d4ff;
    font-weight: bold;
}

.bpm-label {
    color: #a0aec0;
    font-size: 0.9em;
}

.sync-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, #f6ad55, #ed8936);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 173, 85, 0.4);
}

.record-section {
    text-align: center;
    margin-top: 20px;
}

.record-btn {
    padding: 20px 40px;
    background: linear-gradient(145deg, #f56565, #e53e3e);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(245, 101, 101, 0.4);
}

.record-btn.recording {
    background: linear-gradient(145deg, #48bb78, #38a169);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(72, 187, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

@media (max-width: 768px) {
    .deck-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .crossfader-section {
        order: -1;
    }

    .crossfader {
        transform: none;
        width: 200px;
        margin: 20px 0;
    }

    .console-title {
        font-size: 2em;
    }

    .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-panel {
        grid-template-columns: 1fr;
    }
}