.music-mix-genres-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.music-mix-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.genre-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.genre-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    loading: lazy;
}

.genre-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.genre-tile:hover .genre-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.genre-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.music-mix-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.music-mix-modal-content {
    background: #121212;
    max-width: 700px;
    margin: 10% auto;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    color: #fff;
}

.music-mix-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.music-mix-modal-header h2 {
    font-size: 24px;
    margin: 0;
}

.music-mix-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.music-mix-archive {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mix-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #282828;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.mix-item:hover {
    background: #333;
}

.mix-cover {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    loading: lazy;
}

.mix-info {
    flex-grow: 1;
}

.mix-info h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.mix-artist, .mix-duration {
    font-size: 14px;
    color: #b3b3b3;
    margin: 2px 0;
}

.mix-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mix-play-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* #ffffff */
    transition: filter 0.2s;
    border: none;
    background: transparent;
}

.mix-play-btn:hover img {
    filter: brightness(0) invert(0.5) sepia(1) saturate(5) hue-rotate(90deg); /* #1db954 */
}

.mix-play-btn:focus {
    outline: none;
}

/* Carousel navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #ffffff !important; /* White arrows */
    background: rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: auto;
    bottom: -60px;
    transform: translateY(0);
}

.swiper-button-prev {
    left: calc(50% - 60px);
}

.swiper-button-next {
    right: calc(50% - 60px);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

.swiper-pagination {
    position: absolute;
    bottom: -60px;
}

.swiper-pagination-bullet {
    background: #ffffff !important; /* White dots */
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    opacity: 1;
}

/* Search bar styling */
.music-mix-search {
    max-width: 600px;
    margin: 20px auto;
}

.music-mix-search-form {
    display: flex;
    gap: 10px;
}

.music-mix-search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #535353;
    border-radius: 4px;
    background: #282828;
    color: #fff;
    font-size: 16px;
}

.music-mix-search-button {
    padding: 10px 20px;
    background: #1db954;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.music-mix-search-button:hover {
    background: #1ed760;
}

@media (max-width: 768px) {
    .music-mix-genres-carousel .swiper-slide {
        width: auto;
    }

    .music-mix-genres-grid {
        grid-template-columns: 1fr;
    }

    .genre-tile img {
        height: 150px;
    }

    .music-mix-modal-content {
        margin: 0;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .mix-play-btn img {
        width: 20px;
        height: 20px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        bottom: -50px;
    }

    .swiper-pagination {
        bottom: -50px;
    }

    .music-mix-search-form {
        flex-direction: column;
    }

    .music-mix-search-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .swiper-button-prev {
        left: calc(50% - 50px);
    }

    .swiper-button-next {
        right: calc(50% - 50px);
    }
}