/* front-youtube.css — extracted from front-page.php inline <style> (v1.7.0)
   Source lines 618-810. Loaded only on the front page, after theme styles. */
    /* YOUTUBE SHOWCASE */
    .yt-section {
        margin-top: 40px !important;
        position: relative;
        background: #f8f9fa;
        border-radius: 20px;
        padding: 30px 24px;
        border: 1px solid #eef0f3;
    }
    .yt-badge {
        position: absolute; top: -16px; left: 20px;
        background: #78c93e; color: #ffffff;
        font-size: 13px; font-weight: 700;
        padding: 8px 18px; border-radius: 30px;
        display: inline-flex; align-items: center; gap: 8px;
        z-index: 10; box-shadow: 0 4px 10px rgba(66, 133, 244, 0.4);
    }
    .yt-badge svg { width: 16px; height: 16px; fill: currentColor; }

    .yt-header {
        background: #ffffff; border-radius: 16px;
        padding: 24px 28px;
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px; gap: 20px; flex-wrap: wrap;
        border: 1px solid #eef0f3;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .yt-channel-info { display: flex; align-items: center; gap: 16px; }
    .yt-logo {
        width: 64px; height: 64px; border-radius: 50%; background: #ffffff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; flex-shrink: 0;
    }
    .yt-logo img { width: 100%; height: 100%; object-fit: cover; }
    .yt-channel-text { display: flex; flex-direction: column; gap: 4px; }
    .yt-name {
        font-size: 24px; font-weight: 800; color: #111111;
        display: flex; align-items: center; gap: 6px; margin: 0; line-height: 1.1;
    }
    .yt-name svg { width: 20px; height: 20px; fill: #78c93e; }
    .yt-stats { font-size: 13px; color: #666666; display: flex; align-items: center; gap: 12px; font-weight: 500; }
    .yt-stats span { display: flex; align-items: center; gap: 4px; }
    .yt-stats svg { width: 14px; height: 14px; fill: #999; }

    .yt-tagline { font-family: 'Georgia', serif; font-style: italic; font-size: 22px; color: #333333; text-align: right; line-height: 1.2; margin-left: auto; }
    .yt-tagline span { display: block; position: relative; }
    .yt-tagline span:last-child::after {
        content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
        background: #78c93e; border-radius: 2px; transform: rotate(-2deg);
    }

    .yt-subscribe-btn {
        background: #EA4335; color: #ffffff; font-size: 15px; font-weight: 700;
        padding: 12px 28px; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px;
        text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease; flex-shrink: 0;
    }
    .yt-subscribe-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4); color: #ffffff; }
    .yt-subscribe-btn svg { width: 20px; height: 20px; fill: currentColor; }

    .yt-video-grid {
        display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 20px 4px;
        scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
    }
    .yt-video-grid::-webkit-scrollbar { display: none; }

    .yt-video-card {
        min-width: 200px; max-width: 200px; height: 356px;
        background: #ffffff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
        overflow: hidden; scroll-snap-align: start; position: relative; display: block;
        text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .yt-video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }

    .yt-thumbnail {
        position: absolute; inset: 0; width: 100%; height: 100%;
        background-size: cover; background-position: center; background-color: #eee;
        display: flex; flex-direction: column; justify-content: space-between;
    }
    .yt-thumbnail::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0) 60%);
        z-index: 1; pointer-events: none;
    }

    .yt-channel-tag {
        position: absolute; top: 10px; left: 10px; z-index: 5;
        background: rgba(255,255,255,0.95); color: #111; font-size: 10px; font-weight: 700;
        padding: 4px 8px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .yt-channel-tag svg { width: 12px; height: 12px; fill: #78c93e; }

    .yt-thumb-overlay {
        position: absolute; inset: 0; z-index: 2;
        display: flex; align-items: center; justify-content: center; pointer-events: none;
    }
    .yt-play-btn {
        width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.85);
        display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
    }
    .yt-play-btn svg { width: 22px; height: 22px; fill: #333; margin-left: 3px; }

    .yt-video-bottom-content {
        position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
        padding: 14px; display: flex; flex-direction: column; gap: 10px;
    }
    .yt-video-title {
        font-size: 13px; font-weight: 700; color: #ffffff !important; line-height: 1.4; margin: 0;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }
    .yt-video-footer { display: flex; justify-content: space-between; align-items: center; }

    .yt-date { font-size: 11px; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 4px; }
    .yt-date svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.85); }

    .yt-arrow-btn {
        width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2);
        display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
    }
    .yt-arrow-btn svg { width: 14px; height: 14px; fill: #ffffff; }
    .yt-video-card:hover .yt-arrow-btn { background: #78c93e; }

    /* YOUTUBE POPUP MODAL */
    .yt-video-modal {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        z-index: 99999999 !important;
        background: rgba(0,0,0,0.9);
        display: none !important;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 20px;
        box-sizing: border-box;
    }
    .yt-video-modal.is-open { display: flex !important; opacity: 1; }
    .yt-video-modal-inner {
        position: relative !important;
        width: 90vw !important;
        max-width: 1100px !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 85vh !important;
        background: #000; border-radius: 12px; overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        transition: all 0.3s ease;
    }
    .yt-video-modal-inner.is-shorts {
        width: auto !important;
        max-width: 480px !important;
        height: 85vh !important;
        aspect-ratio: 9 / 16 !important;
    }
    .yt-video-modal-inner iframe {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        display: block !important;
    }
    .yt-video-modal-close {
        position: absolute !important;
        top: 20px !important; right: 20px !important;
        background: rgba(255,255,255,0.15) !important;
        border: 0 !important;
        border-radius: 50% !important;
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        font-size: 32px !important;
        cursor: pointer !important;
        z-index: 999999999 !important;
        line-height: 1 !important;
        padding: 0 !important;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .yt-video-modal-close:hover {
        background: #EA4335 !important;
        transform: scale(1.1);
    }
    @media (max-width: 767px) {
        .yt-video-modal-close {
            top: 10px !important; right: 10px !important;
            width: 40px !important; height: 40px !important;
            font-size: 26px !important;
        }
    }
