.music-container {
    margin: 0 auto;
    max-width: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, 256px);
    place-items: center;
    gap: 10px;
}

.music {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 256px;

    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.music-img {
    width: 256px;
    height: 256px;
    position: relative;
    overflow: hidden;
}

.music-img::before {
    width: 256px;
    height: 256px;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background-color: rgba(255, 255, 255, 0.5);
}

.music-img.red::before {
    background-color: rgba(255, 170, 170, 0.5);
}

.music-img.orange::before {
    background-color: rgba(255, 192, 147, 0.5);
}

.music-img.yellow::before {
    background-color: rgba(255, 246, 115, 0.5);
}

.music-img.green::before {
    background-color: rgba(192, 255, 200, 0.5);
}

.music-img.blue::before {
    background-color: rgba(107, 216, 252, 0.5);
}

.music-img.purple::before {
    background-color: rgba(255, 170, 255, 0.5);
}

.music-img.pink::before {
    background-color: rgba(255, 192, 203, 0.5);
}

.music-img img {
    width: 256px;
    height: 256px;
}

.music-info {
    width: 256px;
    height: 256px;

    text-align: center;

    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.music-info .artist {
    --color-1: 255, 255, 255;
    --color-2: 250, 250, 250;
    --color-3: 245, 245, 245;
    --color-4: 240, 240, 240;
    --color-5: 235, 235, 235;

    font-size: 40px;

    color: transparent;
    text-shadow:
        -4px 4px rgba(var(--color-1), .4),
        -3px 3px rgba(var(--color-2), .2),
        -2px 2px rgba(var(--color-1), .2),
        -1px 1px rgba(var(--color-1), .2),
        0px 0px rgba(var(--color-3), .5),
        1px -1px rgba(var(--color-5), .6),
        2px -2px rgba(var(--color-5), .7),
        3px -3px rgba(var(--color-4), .8),
        4px -4px rgba(var(--color-5), .9),
        5px -5px rgba(var(--color-4), 1);

    margin: 0;
    white-space: nowrap;
}

.music-info .track {
    font-size: 24px;

    color: #FFFFFF;
    text-shadow: 1px 1px 0px grey, 2px 2px 0px grey;
}

.music audio {
    width: 256px;
    background-color: rgb(255, 192, 203);
    letter-spacing: 3px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 30px;
    background: rgba(127, 127, 127, 0.2);
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 25px;
    padding: 0;
    cursor: pointer;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--color-secondary);
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--color-secondary);
    cursor: pointer;
    border-radius: 50%;
}
