body {
    background: linear-gradient(-45deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    font-family: 'Arial', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.audio-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#fileName {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

input[type="file"] {
    display: none;
}

label[for="audioInput"] {
    background-color: #6a11cb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 15px 0;
    display: inline-block;
}

label[for="audioInput"]:hover {
    background-color: #2575fc;
}

#progressContainer {
    position: relative;
    background: #ddd;
    border-radius: 10px;
    height: 10px;
    margin: 20px 0;
    overflow: hidden;
    cursor: pointer;
}

#progressBar {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s ease;
}

.controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}

button {
    background-color: #6a11cb;
    border: none;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: white;
}

button:hover {
    background-color: #2575fc;
    transform: scale(1.1);
}

button i {
    font-size: 20px;
}

#speedContainer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#playbackSpeed {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 8px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#playbackSpeed::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #6a11cb;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#playbackSpeed::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #6a11cb;
    border-radius: 50%;
    cursor: pointer;
}

#speedLabel {
    color: white;
    font-size: 14px;
    margin-top: 5px;
}

.credits{
    position: absolute;
    bottom:0;
    padding-bottom: 10px;
    color:#ff7300;
    font-weight: 900;
    font-size: 20px;
}

@media screen and (max-width: 600px) {
    .controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .row-1 {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    #rewind,
    #playPause,
    #forward {
        flex: 1 1 auto;
        max-width: 30%;
        text-align: center;
    }

    .row-2 {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    #loopToggle,
    #muteToggle {
        flex: 1 1 auto;
        max-width: 45%;
        text-align: center;
    }

    #speedContainer {
        width: 100%;
        margin-top: 10px;
        padding-top: 5px;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    button {
        padding: 10px;
        font-size: 16px;
        border-radius: 8px;
        transition: background-color 0.3s;
    }

    button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #progress {
        margin: 10px 0;
        width: 100%;
        height: 8px;
        border-radius: 5px;
        background: linear-gradient(90deg, #ff5722, #ff9800);
    }
}