.playlist-card {
    position: relative;
    background: var(--bs-gray-900);
    border-radius: var(--bs-border-radius);

    .image-box {
        position: relative;

        img {
            border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
            aspect-ratio: 3/2;
            object-fit: cover;
        }

        .play-icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            right: 0;
            margin: 0 auto;
            z-index: 1;
            text-align: center;
            height: 2.5em;
            width: 2.5em;
            line-height: 2.5em;
            color: var(--bs-white);
            border: 1px solid var(--bs-white);
            opacity: 0;
            transition: all .45s ease 0s;
            border-radius: 50%;

            i {
                line-height: 2.5em;
            }
        }
    }

    .content-part {
        padding: 1em;

        .title {
            text-transform: capitalize;
            overflow: hidden;
        }

        .btn-playlist {
            color: var(--bs-white);
        }

        .dropdown {
            .dropdown-menu {
                a {
                    cursor: pointer;
                }
            }
        }
    }

    &:hover {
        .image-box {
            .play-icon {
                opacity: 1;
            }
        }
    }

    // &::after {
    //     position: absolute;
    //     content: "";
    //     top: -.5em;
    //     bottom: .5em;
    //     left: .5em;
    //     right: -.5em;
    //     background: var(--bs-body-bg);
    //     z-index: -1;
    //     border-radius: var(--bs-border-radius);
    // }

    // &::before {
    //     position: absolute;
    //     content: "";
    //     top: -1em;
    //     bottom: 1em;
    //     left: 1em;
    //     right: -1em;
    //     background: var(--bs-gray-900);
    //     z-index: -1;
    //     border-radius: var(--bs-border-radius);
    // }
}

.play-lists {
    .data-search-tab {
        border: none;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

.playlist-detail-page {
    iframe {
        height: 100%;
        width: 100%;
        height: 60vh;
    }

    .playlist-data {
        max-height: 40em;
        overflow-y: auto;
        
        .playlist-data-card {
            display: flex;
            gap: 1.5em;
            padding: 1em;

            &.active {
                background-color: var(--bs-gray-200);

                .playlist-data-card-content {
                    .playlist-data-title {
                        a {
                            color: var(--bs-primary);
                        }
                    }
                }
            }

            .playlist-data-card-image {
                flex-shrink: 0;
                position: relative;

                &:hover {
                    .playlist-time {
                        opacity: 1;
                        visibility: visible;
                    }
                }

                img {
                    height: 4em;
                    width: 7em;
                    min-width: 7em;
                    object-fit: cover;
                    border-radius: var(--bs-border-radius);
                }

                .playlist-time {
                    position: absolute;
                    color: var(--bs-white);
                    background: var(--bs-gray-900);
                    bottom: 0.25em;
                    right: 0.25em;
                    padding: 0.125em 0.25em;
                    font-size: 0.75em;
                    border-radius: var(--bs-border-radius);
                    opacity: 0;
                    visibility: hidden;
                    transition: all .5s ease-in-out;
                }
            }

            .playlist-data-card-content {
                flex-grow: 1;
                width: 100%;

                .playlist-data-title {
                    a {
                        color: var(--bs-heading-color);
                    }
                }

                .line-count-2 {
                    overflow: hidden;
                    -o-text-overflow: ellipsis;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                }

                .playlist-category {
                    li {
                        position: relative;
                        font-size: .75em;

                        &::before {
                            content: "";
                            position: absolute;
                            top: 50%;
                            transform: translateY(-50%);
                            right: -0.7em;
                            width: 0.25em;
                            height: 0.25em;
                            background-color: var(--bs-body-color);
                            border-radius: 50%;
                        }

                        &:last-child {
                            &::before {
                                content: none;
                            }
                        }
                    }
                }
            }
        }
    }

    #streamit_player_container {
        a {
            flex: 1;
        }
    }

    .actions-playlist {
        li {
            .action-btn {
                height: 2.5em;
                width: 2.5em;
                line-height: 2.5em;
                text-align: center;
                padding: 0;
                border-radius: 50%;
                font-size: 1.1em;
            }
        }
    }
}

@media (max-width: 1649px) {
    .playlist-detail-page {
        .playlist-data {
            .playlist-data-card {
                .playlist-data-card-image {
                    img {
                        height: 3.5em;
                    }
                }
            }
        }
    }
}

@include media-breakpoint-down(md) {
    .playlist-detail-page {
        iframe {
            height: 40vh;
        }
    }
}

@include media-breakpoint-down(sm) {
    .playlist-detail-page {
        iframe {
            height: auto;
        }
    }
}