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

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px #00ff41;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #cccccc !important;
    -webkit-text-fill-color: #cccccc !important;
}

.drop-zone {
    border: 3px dashed #00ff41;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 255, 65, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
    background: rgba(0, 255, 65, 0.1);
    border-color: #33ff66;
    transform: scale(1.02);
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.drop-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.file-button {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.file-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.5);
}

.player-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.play-btn {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(0, 255, 65, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
}

.volume-control, .speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.progress-section {
    margin-bottom: 15px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.track-info {
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
}

#trackName {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff41;
    margin-bottom: 5px;
}

.visualizer-section {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 255, 65, 0.3);
}

#canvas {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 1px solid #00ff41;
    border-radius: 10px;
    background: #000;
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

#canvas.matrix-mode {
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.8);
    animation: matrix-glow 2s ease-in-out infinite alternate;
}

@keyframes matrix-glow {
    from { box-shadow: 0 0 30px rgba(0, 255, 0, 0.5); }
    to { box-shadow: 0 0 60px rgba(0, 255, 0, 1); }
}

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

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.control-group label {
    font-weight: bold;
    color: #00ff41;
    min-width: 80px;
}

.control-group select, .control-group input[type="color"] {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 5px;
    padding: 5px;
}

.analysis-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.analysis-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

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

.meter label {
    color: #00ff41;
    font-weight: bold;
    min-width: 60px;
}

.level-meter {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #ffff00, #ff0000);
    width: 0%;
    transition: width 0.1s ease;
}

.info-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.info-display div {
    background: rgba(0, 255, 65, 0.1);
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
}

.playlist-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.playlist-section h3 {
    color: #00ff41;
    margin-bottom: 15px;
    text-align: center;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.playlist-item.active {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    font-weight: bold;
}

.remove-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 0.4);
}

.playlist-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.playlist-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-btn:hover, .playlist-btn.active {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    color: #00ff41;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: #00ff41;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls {
        justify-content: center;
    }
    
    .analysis-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .viz-controls {
        grid-template-columns: 1fr;
    }
    
    #canvas {
        height: 250px;
    }
    
    .playlist-controls {
        flex-direction: column;
        align-items: center;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.8);
}