/* ============================================================
   YouTube Latest Videos Block - Grid Layout
   ============================================================ */

.vseyalnews-youtube-block {
    margin: 30px 0;
}

.yt-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Video Card */
.yt-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.yt-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

/* Thumbnail */
.yt-thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    flex-shrink: 0;
}

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

.yt-video-card:hover .yt-thumb-img {
    transform: scale(1.04);
    opacity: 0.85;
}

/* Play Button Overlay */
.yt-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.yt-video-card:hover .yt-play-btn {
    opacity: 1;
}

.yt-play-btn svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Info Area */
.yt-video-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.yt-video-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--theme-font-heading, sans-serif);
}

.yt-video-title:hover {
    color: #FF0000;
}

.yt-video-date {
    font-size: 0.75rem;
    color: #888;
}

/* View Channel Button Hover */
.yt-view-channel-btn:hover {
    opacity: 0.85;
}

/* YouTube Live blinking button */
.youtube-live-blink-btn {
    animation: youtube-live-pulse 1.5s infinite;
}

@keyframes youtube-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* ============================================================
   Responsive
   ============================================================ */

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

    .desktop-only-live {
        display: none !important;
    }
}

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

    .yt-video-title {
        font-size: 0.88rem;
    }
}

