/* Reset and base styles - Only for audio player containers */
.audio-player-container *,
.audio-player-container2 *,
.audio-player-container3 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.audio-player-container,
.audio-player-container2,
.audio-player-container3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

/* Audio Player Container */
.audio-player-container,
.audio-player-container2,
.audio-player-container3 {
    max-width: 700px;
    margin: 0.5rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .audio-player-container,
.audio-player-container2,
.audio-player-container3 {
    max-width: 100%;
    margin: 0;
    padding: 0;
    }
}

/* Hide the WordPress-compatible audio element */
.gb-audio-source {
    display: none !important;
}

.audio-player,
.audio-player2,
.audio-player3 {
    background: #ffffff !important;
    border: 1px solid hsl(325, 92%, 25%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    height: 100px;
    position: relative;
    padding: 12px;
}

.audio-player:hover,
.audio-player2:hover,
.audio-player3:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Featured Image Section */
.player-image,
.player-image2,
.player-image3 {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 16px;
}

.album-cover,
.album-cover2,
.album-cover3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.audio-player:hover .album-cover,
.audio-player2:hover .album-cover2,
.audio-player3:hover .album-cover3 {
    transform: scale(1.02);
}

.image-overlay,
.image-overlay2,
.image-overlay3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.play-pause-btn,
.play-pause-btn2,
.play-pause-btn3 {
    background: hsl(325, 92%, 25%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
}

.play-pause-btn:hover,
.play-pause-btn2:hover,
.play-pause-btn3:hover {
    background: hsl(325, 92%, 25%);
    transform: scale(1.1);
    color: #ffffff;
}

.play-icon, .pause-icon,
.play-icon2, .pause-icon2,
.play-icon3, .pause-icon3 {
    display: none;
}

.play-icon.active, .pause-icon.active,
.play-icon2.active, .pause-icon2.active,
.play-icon3.active, .pause-icon3.active {
    display: block;
}

/* Player Controls Section */
.player-controls,
.player-controls2,
.player-controls3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 0;
}

.track-info,
.track-info2,
.track-info3 {
    margin-bottom: 8px;
    padding-right: 60px;
}

.song-title,
.song-title2,
.song-title3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(325, 92%, 25%) !important;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name,
.artist-name2,
.artist-name3 {
    font-size: 0.8rem;
    color: hsl(325, 76%, 28%) !important;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bar */
.progress-container,
.progress-container2,
.progress-container3 {
    margin-bottom: 8px;
}

.progress-bar,
.progress-bar2,
.progress-bar3 {
    position: relative;
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 4px;
}

.progress-fill,
.progress-fill2,
.progress-fill3 {
    height: 100%;
    background: linear-gradient(90deg, hsl(312, 91%, 60%), hsl(325, 92%, 25%));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle,
.progress-handle2,
.progress-handle3 {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #e2dfdf;
    border: 2px solid hsl(325, 92%, 25%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.progress-bar:hover .progress-handle,
.progress-bar2:hover .progress-handle2,
.progress-bar3:hover .progress-handle3 {
    opacity: 1;
    pointer-events: auto;
}

.time-display,
.time-display2,
.time-display3 {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* Control Buttons */
.control-buttons,
.control-buttons2,
.control-buttons3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn,
.control-btn2,
.control-btn3 {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.control-btn:hover,
.control-btn2:hover,
.control-btn3:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.play-pause-btn-large {
    background: hsl(325, 92%, 25%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.play-pause-btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: hsl(325, 92%, 30%);
}

.play-icon-large, .pause-icon-large {
    display: none;
}

.play-icon-large.active, .pause-icon-large.active {
    display: block;
}

/* Download Container and Button */
.download-container,
.download-container2,
.download-container3 {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.download-btn,
.download-btn2,
.download-btn3 {
    background: hsl(325, 92%, 25%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.2s ease;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.download-text,
.download-text2,
.download-text3 {
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.9rem;
}

.download-info,
.download-info2,
.download-info3 {
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.9rem;
}

.download-btn:hover,
.download-btn2:hover,
.download-btn3:hover {
    background: hsl(325, 92%, 30%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Track Metadata - Apple Music Style */
.track-meta {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.65rem;
    color: #64748b;
}

.genre, .year {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}



/* Mobile Responsive Design */
@media (max-width: 768px) {
    .audio-player-container {
        margin: 0;
        padding: 0;
    }

    .audio-player {
        height: 110px;
        padding: 12px;
    }

    .player-image {
        width: 86px;
        height: 86px;
        margin-right: 14px;
    }

    .track-info {
        padding-right: 50px;
    }

    .song-title {
        font-size: 0.9rem;
    }

    .artist-name {
        font-size: 0.75rem;
    }

    .control-buttons {
        gap: 6px;
    }

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

    .track-meta {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .audio-player {
        height: 100px;
        padding: 10px;
    }

    .player-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
    }

    .track-info {
        padding-right: 45px;
    }

    .song-title {
        font-size: 0.85rem;
    }

    .control-buttons {
        gap: 4px;
    }

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

    .track-meta {
        font-size: 0.55rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    .audio-player {
        background: #1e293b;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .song-title {
        color: #f1f5f9;
    }

    .artist-name {
        color: #94a3b8;
    }

    .control-btn {
        color: #94a3b8;
    }

    .control-btn:hover {
        color: #f1f5f9;
        background: #334155;
    }

    .time-display {
        color: #94a3b8;
    }

    .genre, .year {
        background: hsl(325, 92%, 25%);
        color: #cbd5e1;
    }
}
