.flow-audio-track-player {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    overflow: hidden;
}

.flow-audio-track-player-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(36px);
    opacity: 0.5;
    z-index: 0;
    transform: scale(1.1);
}

.z-index-10 {
    z-index: 10;
}

.flow-audio-track-player-background {
    z-index: -1;
    pointer-events: none;
}

.track-image {
    flex-shrink: 0;
    width: 60px;
    /* Reduce size for mobile */
    height: 60px;
    margin-right: 12px;
    margin-bottom: 8px;
    /* Add space when wrapping */
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.track-details {
    flex-grow: 1;
    min-width: 0;
    /* Allow content to shrink below its minimum content size */
    margin-right: 12px;
}

.track-title {
    font-size: 14px;
    /* Slightly smaller for mobile */
    font-weight: bold;
    /* margin-bottom: 4px; */
    white-space: nowrap;
    color: rgb(44, 44, 44);
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    /* Slightly smaller for mobile */
    color: rgb(91, 91, 91);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-pause-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    position: relative;
}

.play-pause-btn::before {
    content: '\25B6';
    /* Unicode for play triangle */
    display: block;
    font-size: 16px;
    transform: scale(1.2) translateX(1px);
    /* Slightly enlarge and move the play icon */
}

.play-pause-btn.playing::before {
    content: '\2503\2503';
    /* Unicode for slightly thinner vertical bars */
    font-size: 18px;
    transform: scaleY(0.8);
    /* Slightly squish the bars vertically */
    letter-spacing: -9px;
    /* Reduce space between pause bars */
    margin-left: -9px;
    margin-top: -4px;
}

.progress-container {
    position: relative;
    height: 5px;
    background-color: #ddd;
    border-radius: 2.5px;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #333;
    /* Dark background */
    width: 0;
}

.duration {
    font-size: 12px;
    color: #474747;
    text-align: left;
    /* margin-top: 5px; */
}

.duration-share-download-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.share-download-container {
    display: flex;
}

.download-link,
.share-link {
    text-decoration: none;
    transition: color 0.3s ease;
    /* Color and typography are now controlled by Elementor */
}

/* Remove the hover styles from here as they're now controlled by Elementor */

@media (min-width: 480px) {

    .download-link,
    .share-link {
        font-size: 16px;
    }
}

/* Add a media query for larger screens */
@media (min-width: 480px) {
    .flow-audio-track-player {
        padding: 8px;
    }

    .track-image {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }

    .track-title {
        font-size: 18px;
    }

    .track-artist {
        font-size: 14px;
    }

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

    .play-pause-btn::before {
        font-size: 18px;
        /* Slightly larger icon for bigger screens */
    }

    .play-pause-btn.playing::before {
        font-size: 20px;
        letter-spacing: -9px;
        margin-left: -9px;
        margin-top: -4px;
        /* Further reduce space for larger screens */
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    .share-btn::before {
        font-size: 18px;
    }
}

.progress-duration-container {
    width: 100%;
    margin-top: 8px;
}

@media screen and (max-width: 450px) {
    .track-details {
        max-width: 275px;
    }
}