.yt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}

.yt-item {
    cursor: pointer;
}

.yt-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
}

.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yt-item:hover .yt-thumb img {
    transform: scale(1.05);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    pointer-events: none;
}

.yt-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

.yt-title {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Modal */
.yt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.yt-modal.active {
    display: flex;
}

.yt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.yt-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.yt-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.yt-modal-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

.yt-modal-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

#yt-modal-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111;
}

.yt-modal-description p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    white-space: pre-line;
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.yt-modal-description p.expanded {
    max-height: 1000px;
}

.yt-read-more {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 0;
    margin-top: 4px;
}

/* Responsive */
@media ( max-width: 1024px ) {
    .yt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media ( max-width: 768px ) {
    .yt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 480px ) {
    .yt-grid {
        grid-template-columns: 1fr;
    }
}