* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #1677ff;
    margin-bottom: 30px;
    font-size: 28px;
}

.amount-input {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.amount-input label {
    font-size: 18px;
    color: #333;
}

.amount-input input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    width: 150px;
    text-align: center;
    transition: border-color 0.3s;
}

.amount-input input:focus {
    outline: none;
    border-color: #1677ff;
}

.amount-input span {
    font-size: 18px;
    color: #333;
}

.play-btn {
    background: #1677ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(22, 119, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
}

.play-btn:active {
    transform: translateY(0);
}

.play-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.play-btn.playing {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.audio-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.audio-controls label {
    font-size: 16px;
    color: #333;
}

.audio-controls input[type="range"] {
    width: 200px;
}

.status {
    min-height: 24px;
    margin-bottom: 30px;
    font-size: 16px;
    color: #1677ff;
    font-weight: 500;
}

.visualization {
    display: flex;
    justify-content: center;
    gap: 5px;
    height: 60px;
    align-items: flex-end;
    margin-top: 20px;
    position: relative;
}

.wave {
    width: 8px;
    background: #1677ff;
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0s;
    height: 20px;
}

.wave:nth-child(2) {
    animation-delay: 0.2s;
    height: 40px;
}

.wave:nth-child(3) {
    animation-delay: 0.4s;
    height: 60px;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.3);
    }
}

.notes {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 30px;
}

.note {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: float 1.5s ease-out forwards;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .amount-input input {
        width: 120px;
        font-size: 16px;
    }
    
    .play-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}