.c-player__container {
    display: flex;
    align-items: center;
    border: 1px solid theme('colors.gray.400');
    margin: 2rem 1rem;
    height: 25.375rem;
    padding: 0.5rem;
    background-color: #fff;
    flex-direction: column;

    @screen md {
        display: flex;
        align-items: center;
        border: 1px solid theme('colors.gray.400');
        margin: 2rem auto;
        max-width: 35rem;
        height: 12.5rem;
        padding: 0.5rem;
        background-color: #fff;
        flex-direction: row;
    }

    @screen lg {
        display: flex;
        align-items: center;
        border: 1px solid theme('colors.gray.400');
        margin: 2rem auto;
        max-width: 35rem;
        height: 12.5rem;
        padding: 0.5rem;
        background-color: #fff;
        flex-direction: unset;
    }
}

.c-audio-player__image {
    flex: 0 0 180px;
    height: 12.5rem;
    object-fit: cover;
    background: #F3F5F7;
    width: 100%;

    @screen md {
        height: 11.25rem;
        margin-right: 1rem;
        width: 11.25rem;
    }

    @screen lg {
        height: 11.25rem;
        margin-right: 1rem;
    }
}

.c-audio-player__image svg {
    margin-left: 5rem;

    @screen md {
        margin-left: 0;
    }

    @screen lg {
        margin-left: 0;
    }
}

.c-audio-player__details {
    margin-bottom: 2.8rem;
    padding-left: 1rem;

    @screen md {
        margin-bottom: 4.8rem;
        padding-left: 0;
    }

    @screen lg {
        margin-bottom: 4.8rem;
        padding-left: 0;
    }
}

.c-audio-player__headline {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.c-audio-player__subline {
    font-size: 0.875rem;
    color: theme('colors.gray.600');
    margin: 0;
}

.c-audio-player__container {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    padding: 0.5rem;
    position: relative; 
    margin: 0;

    @screen md {
        margin-top: -2.5rem !important;
        margin-left: -.5rem;
    }

    @screen lg {
        margin-top: -2.5rem !important;
        margin-left: -.5rem;
    }
}

.c-audio-player {
    display: flex;
    padding: 0.5rem;
    position: relative; 

    @screen md {
        margin-top: -2.5rem !important;
        margin-left: -.5rem;
    }

    @screen lg {
        margin-top: -2.5rem !important;
        margin-left: -.5rem;
    }
}

.c-audio-player__bg-image {
    position: absolute;
    top: 0;
    z-index: 0;
    margin-top: -2.6rem;
}

.c-audio-player__player {
    height: 2rem;
    width: 20.75rem; /* Increased width to accommodate new buttons */
    background: #484F59;
    font-family: arial;
    color: white;
    font-size: 0.75em;
    overflow: hidden;
    display: grid;
    grid-template-rows: 6px auto;
    border-radius: 0.375rem;
    z-index: 1;
    margin-left: 0;
    
    @screen md {
        margin-left: 0;
    }
    @screen md {
        margin-left: 0;
    }

    .timeline {
        background: white;
        width: 100%;
        position: relative;
        cursor: pointer;
        height: 5px;
        margin-top: 1.65rem;
        margin-left: 1rem;
        
        .progress {
        background: gray;
        width: 50%;
        height: 100%;
        transition: 0.25s;
        }
    }
  
    .controls {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 20px;

        > * {
            display: flex;
            justify-content: stretch;
            align-items: center;
        }

        .rewind {
            cursor: pointer;
            background-size: cover;
            margin-top: 1.6rem;
            margin-left: 0rem;
            &:hover {
                transform: scale(1.1);
            }
        }
    
        .forward {
            cursor: pointer;
            background-size: cover;
            margin-top: 1.6rem;
            margin-left: 0.45rem;
            &:hover {
                transform: scale(1.1);
            }
        }
    
        .toggle-play {
            &.play {
                cursor: pointer;
                position: relative;
                height: 0;
                width: 0;
                border: 7px solid #0000;
                border-left: 13px solid white;
                margin-left: 1rem;
                margin-top: 1.6rem;
                
                &:hover {
                    transform: scale(1.1);
                }
            }
            &.pause {
                height: 15px;
                width: 20px;
                cursor: pointer;
                position: relative;
                margin-left: 1rem;
                margin-top: 1.6rem;
                
                &:before {
                    position: absolute;
                    top: 0;
                    left: 0px;
                    background: white;
                    content: "";
                    height: 15px;
                    width: 3px;
                }
                &:after {
                    position: absolute;
                    top: 0;
                    right: 8px;
                    background: white;
                    content: "";
                    height: 15px;
                    width: 3px;
                }
                &:hover {
                    transform: scale(1.1);
                }
            }
        }
    
        .time {
            display: flex;
            align-items: center;
            margin-left: 1.2rem;
            margin-top: 1.7rem;
            margin-right: 0.5rem;

            > * {
                padding: 0px;
            }
        }
    
        .volume-container {
            cursor: pointer;
            margin-right: -1rem;
            margin-top: 2.5rem;
            position: relative;
            z-index: 2;

            .volume-button {
                display: flex;
                align-items: center;
                margin-left: 0.75rem;
                margin-right: 0.75rem;
                margin-top: -0.9rem;
            
                .volume {
                    transform: scale(0.7);
                }

            }

            .volume-button .mute-icon {
                display: none;
            }
        
            .volume-slider {
                position: absolute;
                left: -2px; 
                top: 1rem;
                z-index: 1;
                width: 0;
                height: 10px;
                background: white;

                transition: .25s;
            
                .volume-percentage {
                    background: orange;
                    height: 100%;
                    width: 75%;
                }
            }
        
            &:hover {
                .volume-slider {
                    margin-top: -1.5rem;
                    margin-left: -6rem;
                    margin-right: 3rem;
                    width: 6.6rem;
                }
            }
        }
    }
}

