.playlist-top-shortcode {
	position: relative;

    .haru-shortcode-title {
        font-size: 20px;
        margin-bottom: 24px;
        position: relative;
        font-weight: $fw_medium;
        color: $heading_color;

        @media screen and (max-width: $screen-sm-max) {
            font-size: 18px;
        }

        @media screen and (max-width: $screen-xs-max) {
            font-size: 16px;
        }

        &:before {
            content: '';
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 1px;
            background-color: $border_color;
        }

        span {
            position: relative;
            display: inline-block;
            padding-bottom: 15px;

            &:before {
                content: '';
                position: absolute;
                width: $under_line_width;
                height: 1px;
                bottom: 0;
                background-color: $primary_color;
            }
        }
    }

	.playlist-list {
		
	}

	// Slick general
	.haru-slick {
		display: none;

		&.slick-initialized {
			display: block;
		}

		&:hover {
			.slick-arrow {
		        &.slick-prev, 
		        &.slick-next {
					opacity: 1;
					transition: all .3s;
		        }
	        }
		}
	}
	
	&.default {
		.playlist-item {
			position: relative;

			&.default {
				display: flex;
				margin-bottom: 24px;

				&:last-child {
					border: none;
					padding-bottom: 0;
				}

				.playlist-item__thumbnail {
					width: 35%;
                    min-width: 100px;
				}

				.playlist-item__content {
					padding-left: 12px;
					width: 65%;
				}

				.playlist-item__title {
					margin-top: 0;
					padding-top: 0;
				}
			}
		}
	}

    &.style-2 {
        .playlist-item {
            margin-bottom: 20px;
        }
    }

    &.style-4 {
        max-width: none;

        .playlist-list {
            margin: 0 -15px;
        }
        
        .playlist-item {
            padding: 0 15px;
            margin-bottom: 10px;
        }

        // Style at small area
        &.style-sidebar {
            // Video
            .playlist-item__date,
            .playlist-item__author {
                @media screen and (max-width: $screen-sm-max) {
                    display: none;
                }

                @media screen and (max-width: $screen-xs-max) {
                    display: block;
                }
            }
        }
    }

	// Arrow
    .slick-arrow {
        &.slick-prev, 
        &.slick-next {
            background: rgba($black, .3);
            border: none;
            color: transparent;
            cursor: pointer;
            display: block;
            font-size: 0;
            line-height: 0;
            outline: none;
            opacity: 0;
            padding: 0;
            position: absolute;
            top: 50%;
            z-index: 99;
            width: 30px;
            height: 30px;
            border-radius: $border_radius_small;
            transform: translateY(-50%);
            transition: all .3s;

            &:before {
                color: $white;
                font-family: 'slick';
                font-size: 14px;
                line-height: 1;
                opacity: 1;
                transition: all .3s;
            }

            &:hover {
                background-color: $primary_color;

                &:before {
                    background-color: $white;
                    transition: all .3s;
                }
            }
        }
        &.slick-prev {
            left: 15px;

            &:before {
                display: inline-block;
                background-repeat: no-repeat;
    			background-size: cover;
                content: '';
                -webkit-mask-image: url(../images/icon-arrow-left.svg);
			    mask-image: url(../images/icon-arrow-left.svg);
			    width: 4.69px;
			    height: 8px;
			    background-color: $white;
            }
        }
        &.slick-next {
            right: 15px;

            &:before {
                display: inline-block;
                background-repeat: no-repeat;
    			background-size: cover;
                content: '';
                -webkit-mask-image: url(../images/icon-arrow-right.svg);
			    mask-image: url(../images/icon-arrow-right.svg);
			    width: 4.69px;
			    height: 8px;
			    background-color: $white;
            }
        }
    }

    // Dots
    .slick-dots {
        list-style: none;
        padding: 0;
        text-align: center;

        @media screen and(max-width: $screen-xs-max) {
            bottom: 15px;
        }

        li {
            display: inline-block;
            padding: 0 12px;
            &.slick-active {
                button {
                    width: 16px;
                    height: 16px;
                    background: transparent;
                }
            }

            button {
                width: 8px;
                height: 8px;
                display: block;
                background: $black;
                border: 1px solid $black;
                font-size: 0;
                padding: 0;
                border-radius: 50%;
                
                &:focus {
                    outline: none;
                }
            }
        }
    }

    .playlist-control {
        position: absolute;
        right: 0;
        top: 0;

        .playlist-control-item {
            display: inline-block;
            width: 26px;
            height: 26px;
            line-height: 24px;
            margin: 0 2px;
            text-align: center;

            &:first-child {
                margin-left: 0;
            }

            &:last-child {
                margin-right: 0;
            }

            &:hover {
                cursor: pointer;
                

                i {
                    background-color: $primary_color;
                    transition: all .3s;
                }
            }

            &.disable {
                opacity: .5;
                pointer-events: none;
            }
        }
    }
}
