.main-container {
    overflow-x: hidden;
}

.youtube-slider-block {
    padding: var(--space-64) var(--space-36);

    .inner-container {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        gap: var(--space-64);

        .title {
            color: var(--text-primary);
            text-align: center;
            font-family: BOG, sans-serif;
            font-size: 32px;
            font-style: normal;
            font-weight: 700;
            line-height: 48px;
            width: 100%;
        }

        .video-list-container {
            display: flex;
            flex-direction: column;
            gap: var(--space-20);

            .single-video-container {
                display: none;
                width: 100%;
                height: 336px;
            }

            .video-list {
                width: 100%;
                height: 486px;
                overflow: visible;
            }

            .video-card {
                width: auto;
                height: 100%;
                border-radius: var(--border-radius-24);
                overflow: hidden;

                .video-url {
                    position: relative;
                    height: 100%;

                    .overlay {
                        position: absolute;
                        background: linear-gradient(0deg, rgba(22, 22, 22, 0.95) -2.08%, rgba(38, 38, 38, 0.00) 100%);
                        width: 100%;
                        height: 100%;
                        left: 0;
                        top: 0;
                        display: flex;
                        align-items: flex-end;

                        .play-button-container {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            padding: var(--space-26);
                            background-color: var(--button-primary);
                            border-radius: var(--border-radius-circle);

                            .play-button {
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%);
                                width: 16px;
                                height: 16px;
                            }
                        }

                        h2 {
                            margin: 0 var(--space-32) var(--space-32);
                            color: var(--text-white);
                            font-family: BOG, sans-serif;
                            font-size: 20px;
                            font-style: normal;
                            font-weight: 700;
                            line-height: 32px;
                            height: 64px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            -webkit-line-clamp: 2;
                        }
                    }

                    img {
                        height: 100%;
                        width: auto;
                        object-fit: cover;
                        object-position: center;
                    }
                }
            }
        }

        .youtube-slider-view-more {
            .button {
                display: flex;
                padding: var(--space-20) var(--space-32);
                justify-content: center;
                align-items: center;
                gap: var(--space-8);
                border-radius: var(--border-radius-8);
                background: var(--button-primary);
                width: fit-content;
                margin: 0 auto;

                color: var(--text-white);
                font-family: BOG Headline, sans-serif;
                font-size: 12px;
                font-style: normal;
                font-weight: 500;
                line-height: 18px;
                text-transform: uppercase;

                img {
                    width: 16px;
                    height: 16px;
                }
            }
        }

        .video-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(22, 22, 22, 0.95);
            align-items: center;
            justify-content: center;

            .video-modal-content {
                position: relative;
                width: 90%;
                max-width: 1200px;
                pointer-events: none;

                .video-modal-body {
                    position: relative;
                    padding-bottom: 56.25%;
                    height: 0;
                    overflow: hidden;
                    pointer-events: auto;

                    iframe {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .youtube-slider-block {
        padding: var(--space-64) var(--space-28);

        .inner-container {
            gap: var(--space-48);

            .video-list-container .video-list {
                height: 344px;

                .video-card .video-url .overlay h2 {
                    margin: 0 var(--space-32) var(--space-8);
                }
            }

            .video-modal .video-modal-content {
                padding: var(--space-28);
                width: 100%;
            }
        }
    }
}

@media (max-width: 600px) {
    .youtube-slider-block {
        padding: var(--space-48) var(--space-24);

        .inner-container {
            gap: var(--space-28);

            .title {
                font-size: 22px;
                line-height: 34px;
            }

            .video-list-container {
                .single-video-container {
                    display: block;

                    .video-card .video-url .overlay h2 {
                        font-size: 16px;
                        font-weight: 600;
                        line-height: 24px;
                        height: 48px;
                        margin: 0 var(--space-24) var(--space-28);
                    }
                }

                .video-list {
                    width: 460px;
                    height: 225px;
                    margin: 0;

                    .video-card {
                        width: 225px;

                        .video-url .overlay h2 {
                            font-size: 12px;
                            font-weight: 500;
                            line-height: 18px;
                            height: 36px;
                            margin: 0 var(--space-16) var(--space-20);
                        }

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            object-position: center;
                        }
                    }
                }
            }

            .youtube-slider-view-more .button img {
                display: none;
            }

            .video-modal .video-modal-content {
                padding: var(--space-24);
            }
        }
    }
}