/**
 * Audio Carousel Styles
 */

/* Carousel Container */
.audio-carousel-container {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
}

/* Carousel Slide */
.audio-carousel-slide {
    padding: 0 10px;
}

.audio-carousel-slide-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 166.67%; /* 3:5 aspect ratio */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
}

/* Title */
.audio-carousel-title {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    padding: 0 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Description */
.audio-carousel-description {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 15px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Play Button */
.audio-carousel-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.audio-carousel-play-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.audio-carousel-play-button.playing {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Navigation Arrows */
.audio-carousel .slick-prev,
.audio-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-carousel .slick-prev {
    left: -20px;
}

.audio-carousel .slick-next {
    right: -20px;
}

.audio-carousel .slick-prev:hover,
.audio-carousel .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.audio-carousel .slick-prev:before,
.audio-carousel .slick-next:before {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .audio-carousel-title {
        font-size: 16px;
    }
    
    .audio-carousel-play-button {
        width: 50px;
        height: 50px;
    }
    
    .audio-carousel .slick-prev {
        left: -15px;
    }
    
    .audio-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .audio-carousel-title {
        font-size: 14px;
    }
    
    .audio-carousel-play-button {
        width: 40px;
        height: 40px;
    }
}

/* Add a dark overlay to make text more readable */
.audio-carousel-slide-inner:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}