* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    color: white;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
    cursor: pointer;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.controls:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.control-group input[type="range"] {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.button {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.button:active {
    transform: translateY(0);
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
}

.status.connected {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.status.disconnected {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #ccc;
    max-width: 300px;
}

.info h3 {
    margin-bottom: 10px;
    color: #00d4ff;
}

.info p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.control-header {
    margin-bottom: 20px;
    text-align: center;
}

.control-header h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 18px;
}

.menu-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-toggle.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border-color: #00d4ff;
}

.control-menu {
    display: none;
    animation: fadeIn 0.3s ease;
}

.control-menu.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.control-hint {
    font-size: 12px;
    color: #ccc;
    margin-left: 10px;
    font-style: italic;
}

.control-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
}



.audio-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.track-name {
    font-weight: bold;
    color: #00d4ff;
    font-size: 14px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-time {
    font-size: 12px;
    color: #ccc;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-bar:hover .progress-fill {
    background: linear-gradient(90deg, #00ffff, #00d4ff);
}

input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(45deg, #00ffff, #00d4ff);
}

/* Add any additional custom styles below */

/* File input styling */
#audioFile {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px;
    width: 200px;
}

/* Audio info display */
#audioInfo {
    display: none;
}
