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

body {
    background: #0a0a0f;
    color: #f4a460;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
    background: rgba(10, 10, 15, 0.8);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 164, 96, 0.2);
}

.play-btn {
    background: transparent;
    border: 2px solid #f4a460;
    color: #f4a460;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.play-btn:hover {
    background: rgba(244, 164, 96, 0.1);
}

.play-btn.playing {
    background: rgba(244, 164, 96, 0.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-label {
    font-size: 14px;
    opacity: 0.8;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(244, 164, 96, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #f4a460;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #f4a460;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.synth-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.synth-label {
    font-size: 14px;
    opacity: 0.8;
}

.synth-select {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(244, 164, 96, 0.1);
    border: 1px solid rgba(244, 164, 96, 0.4);
    color: #f4a460;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f4a460' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.synth-select:hover {
    background-color: rgba(244, 164, 96, 0.2);
    border-color: rgba(244, 164, 96, 0.6);
}

.synth-select:focus {
    outline: none;
    border-color: #f4a460;
}

.synth-select option {
    background: #1a1a24;
    color: #f4a460;
    padding: 8px;
}

.info {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.info:hover {
    opacity: 1;
}

.info p {
    font-size: 14px;
    margin-bottom: 4px;
}

.info .subtitle {
    font-size: 12px;
    opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .controls {
        bottom: 30px;
        padding: 16px 24px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
        max-width: 85vw;
    }

    .play-btn {
        padding: 14px 48px;
        font-size: 16px;
        min-width: 120px;
    }

    .volume-container {
        width: 100%;
        justify-content: center;
    }

    .volume-slider {
        width: 120px;
    }

    .volume-label,
    .synth-label {
        display: none;
    }

    .synth-select {
        padding: 8px 28px 8px 10px;
        font-size: 13px;
    }

    .info {
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 0 10px;
    }

    .info p {
        font-size: 13px;
        line-height: 1.4;
    }

    .info .subtitle {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    .play-btn {
        padding: 16px 48px;
        min-height: 48px;
    }

    .volume-slider {
        height: 6px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .volume-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
}

/* Safe area for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .controls {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }

    @media (max-width: 600px) {
        .controls {
            padding-bottom: calc(16px + env(safe-area-inset-bottom));
            bottom: 10px;
        }

        .info {
            top: calc(40px + env(safe-area-inset-top));
        }
    }
}
