.ai-yt-video-sync-wrapper .ai-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-bottom: .5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ai-yt-video-sync-wrapper  .ai-head .ai-heading {
    color: var(--ai-theme-color);
    font-size: 2rem;
    font-family: var(--ai-theme-font-2);
    letter-spacing: 0;
    padding: 0 20px;
    font-weight: 600;
}

.ai-yt-video-sync-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding-left: 25px;
    padding-right: 25px;
}

.ai-yt-video-sync-container.layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.ai-yt-video-sync-container.layout-list .ai-yt-video-sync-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ai-yt-video-sync-container.layout-list .ai-yt-video-sync-thumbnail {
    width: 200px;
    margin-right: 20px;
}

.ai-yt-video-sync-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ai-yt-video-sync-item:hover {
    transform: translateY(-5px);
}

.ai-yt-video-sync-thumbnail {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #000;
}

.ai-yt-video-sync-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-yt-video-sync-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-yt-video-sync-play-icon::before {
    content: "";
    border-style: solid;
    border-width: 8px 0 8px 15px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.ai-yt-video-sync-title {
    font-size: 13px!important;
    margin: 10px 15px 5px;
    color: #333;
}

.ai-yt-video-sync-date {
    font-size: 14px;
    color: #666;
    margin: 0 15px 10px;
}

.ai-yt-video-sync-pagination {
    display: none;
    margin-top: 30px;
    text-align: center;
}

.ai-yt-video-sync-load-more {
    text-align: center;
    margin: 30px 0;
}

.ai-yt-video-sync-load-more-btn {
    background: #f00;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.ai-yt-video-sync-load-more-btn:hover {
    background: #cc0000;
}

.ai-yt-video-sync-modal {
    display: none;
}
    
.ai-yt-video-sync-modal.micromodal-slide {
    display: none;
}
    
.ai-yt-video-sync-modal.is-open {
    display: block;
}
    
.ai-yt-video-sync-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
    
.ai-yt-video-sync-modal__container {
    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 50%;
    height: 100%;
    max-width: 400px;
    max-height: 100vh;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.ai-yt-video-sync-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
    
.ai-yt-video-sync-modal__title {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}
    
.ai-yt-video-sync-modal__close {
    position: absolute;
    top: 10px;
    right: -48px;
    z-index: 10;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ff0000;
    background: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
    
.ai-yt-video-sync-modal__close:hover {
    background: rgba(255, 255, 255, 1);
    color: #ff0000;
}
    
.ai-yt-video-sync-modal__close::before {
    content: "\2715";
}
    
.ai-yt-video-sync-video-wrapperAA {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#ai-yt-video-sync-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%!important;
    height: 100%;
    border: none;
}

@media (min-width: 769px) {
    .ai-yt-video-sync-wrapper  .ai-head .ai-heading {
        font-size: 32px;
        padding-left: 148px;
    }
}

@media (max-width: 768px) {
    .ai-yt-video-sync-modal__container {
        width: 100%;
        max-width: 330px;
        padding: 0;
    }
        
    .ai-yt-video-sync-modal__title {
        font-size: 1.2rem;
    }
        
    .ai-yt-video-sync-modal__close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}