.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.youtube-video-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.youtube-video-card:hover {
    transform: scale(1.02);
}

.youtube-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.youtube-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.youtube-video-thumbnail:hover img {
    opacity: 0.9;
}

.youtube-video-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 24px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-video-thumbnail::before {
    content: '▶';
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: white;
    font-size: 10px;
    z-index: 1;
}

.youtube-video-info {
    padding: 12px 0;
    display: flex;
    gap: 12px;
}

.youtube-video-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.youtube-video-details {
    flex: 1;
    min-width: 0;
}

.youtube-video-details h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-video-details h3 a {
    color: inherit;
    text-decoration: none;
}

.youtube-video-details h3 a:hover {
    color: #065fd4;
}

.youtube-video-meta {
    font-size: 12px;
    color: #606060;
    line-height: 1.3;
}

.youtube-video-meta a {
    color: #606060;
    text-decoration: none;
}

.youtube-video-meta a:hover {
    color: #0f0f0f;
}

.youtube-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .youtube-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }

    .youtube-video-details h3 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
