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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
    color: black;
    /* iOS Safari fixes */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .container {
        padding: 4rem 2rem;
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: black;
    margin-bottom: 1rem;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid black;
    background: white;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* iOS Safari fixes */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Ensure proper touch target size */
    min-width: 44px;
    min-height: 44px;
}

.play-pause-btn:hover {
    background: black;
    color: white;
}

.play-pause-btn svg {
    width: 32px;
    height: 32px;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 280px;
}

.slider {
    width: 200px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    cursor: pointer;
    appearance: none;
    /* iOS Safari fixes */
    -webkit-appearance: none;
    touch-action: manipulation;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: black;
    cursor: pointer;
    /* iOS Safari fixes */
    -webkit-tap-highlight-color: transparent;
}

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

#volumeValue {
    font-weight: 500;
    color: black;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    position: absolute;
    right: 0;
}

.noise-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.noise-btn {
    padding: 0.5rem 1rem;
    border: 1px solid black;
    border-radius: 20px;
    background: white;
    color: black;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.noise-btn:hover {
    background: black;
    color: white;
}

.noise-btn.active {
    background: black;
    color: white;
    border-color: black;
}

.ios-hint,
.android-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
    max-width: 300px;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        /* iOS Safari viewport fixes */
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 0.5rem;
        width: auto;
    }
    
    .slider {
        width: 150px;
        /* Better touch target for mobile */
        height: 6px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    #volumeValue {
        position: static;
        text-align: center;
    }
    
    .play-pause-btn {
        /* Larger touch target for mobile */
        width: 90px;
        height: 90px;
    }
}
