.dg-youtube-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dg-youtube-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dg-youtube-header h2 {
    margin: 0;
}

.dg-youtube-header a {
    text-decoration: none;
}

.dg-youtube-slider {
    position: relative;
}

.dg-youtube-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.dg-youtube-track::-webkit-scrollbar {
    display: none;
}

.dg-youtube-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 260px;
    cursor: pointer;
}

.dg-youtube-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.dg-youtube-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.dg-youtube-card:hover .dg-youtube-thumb img {
    transform: scale(1.04);
}

.dg-youtube-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .75);
    color: #fff;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
}

.dg-youtube-title {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.dg-youtube-arrow {
    position: absolute;
    top: 35%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    cursor: pointer;
}

.dg-youtube-arrow.prev {
    left: -15px;
}

.dg-youtube-arrow.next {
    right: -15px;
}

.dg-youtube-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dg-youtube-modal.active {
    display: flex;
}

.dg-youtube-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.dg-youtube-modal iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 0;
}

.dg-youtube-close {
    position: absolute;
    right: 0;
    top: -45px;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 36px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .dg-youtube-card {
        flex: 0 0 85%;
    }

    .dg-youtube-arrow {
        display: none;
    }

    .dg-youtube-header {
        align-items: flex-start;
        flex-direction: column;
    }
}