/* ============================================
   Video Gallery v3.0 - Frontend Styles
   ============================================ */

.vg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    color: #1a1a2e;
}
.vg-wrapper *, .vg-wrapper *::before, .vg-wrapper *::after { box-sizing: border-box; }

/* ===== CTA Section ===== */
.vg-cta {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
}
.vg-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.3;
}
.vg-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.vg-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 280px;
    cursor: pointer;
}
.vg-cta-email {
    background: #4361ee;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(67,97,238,0.3);
}
.vg-cta-email:hover {
    background: #3451d1;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(67,97,238,0.4);
}
.vg-cta-messenger {
    background: #ffffff;
    color: #0084ff;
    border: 2px solid #0084ff;
}
.vg-cta-messenger:hover {
    background: #0084ff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.vg-cta-messenger:hover svg { fill: #ffffff; }

/* ===== Layout ===== */
.vg-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.vg-main {
    flex: 1;
    min-width: 0;
}

/* ===== Search Box (sidebar) ===== */
.vg-search-box {
    margin-bottom: 12px;
}
.vg-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.vg-search-icon {
    position: absolute;
    left: 12px;
    color: #8892a4;
    pointer-events: none;
    flex-shrink: 0;
}
#vg-search,
#vg-search-mobile {
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
#vg-search::placeholder,
#vg-search-mobile::placeholder { color: #adb5bd; }
#vg-search:focus,
#vg-search-mobile:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}
.vg-search-submit {
    position: absolute;
    right: 6px;
    background: #4361ee;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.vg-search-submit:hover { background: #3451d1; }

/* ===== Card subtitle ===== */
.vg-card-subtitle {
    font-size: 13px;
    color: #5a6070;
    margin: 0 0 10px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Mobile search ===== */
.vg-mobile-search {
    display: none;
    padding: 12px 0 4px;
}

/* ===== Featured grid - [video_featured] ===== */
.vg-featured-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.vg-featured-wrapper .vg-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
.vg-featured-wrapper .vg-featured-card {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    float: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.vg-featured-card .vg-card-video {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 160% !important;
    background: #0a0a14 !important;
    overflow: hidden !important;
    height: 0 !important;
}
@media (max-width: 1024px) {
    .vg-featured-wrapper .vg-featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 768px) {
    .vg-featured-wrapper {
        padding: 0 12px !important;
    }
    .vg-featured-wrapper .vg-featured-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .vg-featured-card .vg-card-video {
        padding-bottom: 160% !important;
    }
}

/* ===== Sidebar (desktop) ===== */
.vg-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}
.vg-sidebar-inner {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
    padding: 24px;
}
.vg-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8892a4;
    margin: 0 0 16px 0;
    padding: 0;
}
.vg-cat-list { list-style: none; margin: 0; padding: 0; }
.vg-cat-list li { margin-bottom: 4px; }
.vg-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #3a3f4b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}
.vg-cat-link:hover { background: #f4f6f9; color: #1a1a2e; text-decoration: none; }
.vg-cat-link.active { background: #4361ee; color: #fff; box-shadow: 0 2px 8px rgba(67,97,238,0.3); }
.vg-cat-link.active .vg-cat-badge { background: rgba(255,255,255,0.25); color: #fff; }
.vg-cat-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-cat-badge {
    font-size: 12px; font-weight: 600; background: #eef0f4; color: #6b7280;
    border-radius: 20px; padding: 2px 10px; margin-left: 8px; flex-shrink: 0;
}

/* ===== Mobile category bar ===== */
.vg-mobile-cats {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 0;
    margin: 0 -16px;
    padding-left: 16px; padding-right: 16px;
    /* -webkit-overflow-scrolling: touch - usunięte, deprecated i powoduje bugi na iOS 13+ */
    touch-action: pan-x; /* tylko poziomy scroll, nie zakłóca pionowego scroll strony */
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.vg-mobile-cats::-webkit-scrollbar { display: none; }
.vg-cat-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    color: #5a6070;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    margin-right: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation; /* iOS: bez opóźnienia 300ms na tap */
}
.vg-cat-pill:hover { border-color: #4361ee; color: #4361ee; text-decoration: none; }
.vg-cat-pill.active { background: #4361ee; color: #fff; border-color: #4361ee; box-shadow: 0 2px 8px rgba(67,97,238,0.3); }
.vg-cat-pill .vg-cat-count { font-size: 11px; opacity: 0.7; margin-left: 4px; }

/* ===== Grid: 3 columns desktop ===== */
.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== Card ===== */
.vg-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
    /* transition tylko box-shadow - transform tworzy compositing layer i blokuje scroll na Android */
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
}
.vg-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.1);
    /* BRAK transform: translateY - blokuje scroll na Android przez compositing layer */
}

/* Video area - tall vertical */
.vg-card-video {
    position: relative;
    width: 100%;
    padding-bottom: 160%; /* ~5:8 ratio - tall vertical */
    background: #0a0a14;
    overflow: hidden;
}

/* ===== Lazy placeholder (karty bez thumbnail) ===== */
.vg-lazy-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    cursor: pointer;
}
.vg-embed-blocked {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    visibility: visible !important;
}
.vg-embed-blocked iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    pointer-events: none !important;
}
.vg-lazy-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.vg-lazy-placeholder:hover .vg-lazy-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.65) 100%);
}
.vg-lazy-placeholder:hover .vg-play-btn { transform: scale(1.1); }

/* ===== Cover ===== */
.vg-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation; /* iOS: szybkie kliknięcie, bez opóźnienia 300ms */
}
.vg-cover-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.vg-cover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: background 0.3s ease;
}
.vg-cover:hover .vg-cover-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.7) 100%);
}
.vg-cover-text {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 0 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    max-width: 90%;
    line-height: 1.4;
    order: 2;
}
.vg-play-btn {
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    order: 1;
}
.vg-cover:hover .vg-play-btn { transform: scale(1.1); }

/* ===== No-cover placeholder (zamiast iframe przy ładowaniu) ===== */
.vg-no-cover-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    cursor: pointer;
}
.vg-no-cover-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
}

/* ===== Embed container ===== */
.vg-embed-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.vg-embed-container.vg-hidden { display: none; pointer-events: none; }
/* Na desktopie iframe zawsze klikalny - scroll kółkiem myszy nie koliduje z pointer-events */
.vg-embed-container.vg-active { display: block; pointer-events: auto; }
.vg-embed-container.vg-active iframe { pointer-events: auto; }
.vg-embed-container.vg-iframe-interactive { pointer-events: auto; }
.vg-embed-container.vg-iframe-interactive iframe { pointer-events: auto; }
/* Na mobile blokujemy pointer-events - scroll palcem musi działać przez iframe.
   JS dodaje vg-iframe-interactive po tapnięciu żeby user mógł sterować playerem. */
@media (max-width: 1024px) {
    .vg-embed-container.vg-active { pointer-events: none; }
    .vg-embed-container.vg-active iframe { pointer-events: none; }
    .vg-embed-container.vg-iframe-interactive { pointer-events: auto; }
    .vg-embed-container.vg-iframe-interactive iframe { pointer-events: auto; }
}

.vg-embed-container iframe { width: 100%; height: 100%; border: none; display: block; }
.vg-embed-container .wp-block-embed__wrapper,
.vg-embed-container > div { width: 100%; height: 100%; }
.vg-embed-container .wp-block-embed__wrapper iframe { width: 100%; height: 100%; }


.vg-embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8892a4;
    background: #f8f9fb;
}
.vg-embed-placeholder p { margin: 0; font-size: 13px; }

/* ===== Card info ===== */
.vg-card-info { padding: 14px 16px; }
.vg-card-title {
    font-size: 14px; font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vg-card-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.vg-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px; font-weight: 500;
    background: #f0f2ff; color: #4361ee;
    transition: background 0.2s, color 0.2s;
}
.vg-tag[data-cat] {
    cursor: pointer;
}
.vg-tag[data-cat]:hover {
    background: #4361ee;
    color: #fff;
}

/* Card CTA buttons */
.vg-card-cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vg-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.3;
}
.vg-btn-email {
    background: #4361ee;
    color: #ffffff;
}
.vg-btn-email:hover {
    background: #3451d1;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67,97,238,0.3);
}
.vg-btn-messenger {
    background: #ffffff;
    color: #0084ff;
    border: 1.5px solid #0084ff;
}
.vg-btn-messenger:hover {
    background: #0084ff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.vg-btn-messenger:hover svg { fill: #ffffff; }

/* ===== E-book box ===== */
.vg-ebook-box {
    grid-column: 1 / -1;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.08);
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.vg-ebook-img-wrap {
    max-width: 100%;
}
.vg-ebook-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: block;
}
.vg-ebook-title {
    font-size: 18px;
    font-weight: 700;
    color: #EDC4A4;
    margin: 0;
    line-height: 1.3;
}
.vg-ebook-form {
    width: 100%;
    max-width: 340px;
}

/* ===== Pagination ===== */
.vg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-bottom: 40px;
}
.vg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    color: #3a3f4b;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}
.vg-page-btn:hover { border-color: #4361ee; color: #4361ee; text-decoration: none; }
.vg-page-btn.active {
    background: #4361ee; color: #fff; border-color: #4361ee;
    box-shadow: 0 2px 8px rgba(67,97,238,0.3);
    pointer-events: none;
}
.vg-page-arrow svg { width: 18px; height: 18px; }
.vg-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* ===== Empty ===== */
.vg-empty { text-align: center; padding: 80px 20px; color: #8892a4; }
.vg-empty-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.vg-empty p { font-size: 16px; margin: 0; }

/* ===== Loading ===== */
/* pointer-events: none usunięte - blokowało scroll i touch na iOS Safari */
.vg-loading { opacity: 0.5; transition: opacity 0.2s; }

/* ===== Reklamy mobilne ===== */
/* Na desktopie całkowicie ukryte */
.vg-ad-banner {
    display: none;
}

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

@media (max-width: 1024px) {
    .vg-grid { grid-template-columns: repeat(2, 1fr); }
    .vg-sidebar { width: 220px; }
}

@media (max-width: 768px) {
    .vg-sidebar { display: none; }
    .vg-mobile-cats { display: block; }
    .vg-mobile-search { display: block; }
    .vg-layout { flex-direction: column; gap: 0; }

    .vg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .vg-card { border-radius: 10px; }

    /* Taller cards on mobile so cover text doesn't get cut */
    .vg-card-video { padding-bottom: 180%; }

    .vg-card-info { padding: 10px 12px; }
    .vg-card-title { font-size: 13px; }
    .vg-cover-text { font-size: 13px; }
    .vg-cover-overlay { gap: 12px; }
    .vg-play-btn svg { width: 44px; height: 44px; }

    .vg-card-btn { font-size: 11px; padding: 8px 10px; }
    .vg-card-btn svg { width: 14px; height: 14px; }

    .vg-pagination { gap: 6px; margin-top: 24px; }
    .vg-page-btn { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
    .vg-page-arrow svg { width: 16px; height: 16px; }

    /* CTA on mobile */
    .vg-cta { padding: 24px 16px; margin-bottom: 16px; }
    .vg-cta-title { font-size: 18px; }
    .vg-cta-btn { min-width: 100%; padding: 12px 20px; font-size: 14px; }

    /* Reklamy mobilne - widoczne tylko na mobile, zajmują pełną szerokość gridu */
    .vg-ad-banner {
        display: block;
        grid-column: 1 / -1; /* rozciąga się przez całą szerokość gridu (oba kolumny) */
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        text-align: center;
    }
    .vg-ad-banner img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
    }
    .vg-ad-banner a {
        display: block;
        line-height: 0;
    }
}

@media (max-width: 420px) {
    .vg-wrapper { padding: 0 12px; }
    .vg-mobile-cats { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
    .vg-grid { grid-template-columns: 1fr; gap: 16px; }
    .vg-card-video { padding-bottom: 160%; }
}
/* ===== Ebook box - responsive ===== */
/* Desktop: pokaż po filmie 3, ukryj po filmie 2 */
.vg-ebook-mobile { display: none; }
.vg-ebook-desktop { display: contents; }

/* Mobile: pokaż po filmie 2, ukryj po filmie 3 */
@media (max-width: 768px) {
    .vg-ebook-mobile { display: contents; }
    .vg-ebook-desktop { display: none; }
}

/* ===== Ulubione ===== */
/* ===== Tag Ulubione pod filmem ===== */
/* Nieaktywny: złote obramowanie, czarny tekst, biała gwiazdka */
.vg-card-cats .vg-fav-tag,
.vg-tag.vg-fav-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border: 1.5px solid #f5a623 !important;
    color: #1a1a2e !important;
    background: #fff8ed !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.vg-card-cats .vg-fav-tag:hover,
.vg-tag.vg-fav-tag:hover {
    background: #ffe8b0 !important;
    color: #c47d00 !important;
}
/* Aktywny: złote tło, biały tekst i gwiazdka */
.vg-card-cats .vg-fav-tag.vg-fav-active,
.vg-tag.vg-fav-tag.vg-fav-active {
    background: #f5a623 !important;
    border-color: #f5a623 !important;
    color: #fff !important;
}
.vg-card-cats .vg-fav-tag.vg-fav-active .vg-fav-star,
.vg-tag.vg-fav-tag.vg-fav-active .vg-fav-star {
    fill: #fff !important;
    stroke: #fff !important;
}
/* Gwiazdka domyślna: złoty obrys, białe wypełnienie */
.vg-fav-star {
    flex-shrink: 0;
    transition: all 0.2s ease;
    fill: #fff;
    stroke: #f5a623;
}
.vg-fav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Pulse animacja */
@keyframes vg-fav-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.vg-fav-pulse .vg-fav-star {
    animation: vg-fav-pulse 0.35s ease;
}

/* Sidebar link ulubionych */
.vg-fav-link .vg-cat-name {
    display: flex;
    align-items: center;
}
.vg-fav-link.active {
    background: #fff8ed !important;
    color: #c47d00 !important;
    border-color: #f5a623 !important;
}

/* Mobile pill ulubionych - nieaktywny: zwykły styl z złotą gwiazdką */
.vg-fav-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.vg-fav-pill .vg-fav-pill-star {
    color: #f5a623;
    flex-shrink: 0;
}
/* Aktywny pill: niebieski jak inne kategorie */
.vg-fav-pill.active {
    background: #4361ee !important;
    color: #fff !important;
    border-color: #4361ee !important;
    box-shadow: 0 2px 8px rgba(67,97,238,0.3);
}
.vg-fav-pill.active .vg-fav-pill-star {
    color: #fff;
}

/* Badge licznika */
.vg-fav-badge {
    background: #f5a623 !important;
    color: #fff !important;
}


/* ===== Panel WooCommerce - Moje ulubione ===== */
.vg-wc-favourites h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a2e;
}
.vg-wc-empty {
    color: #6b7280;
    font-size: 15px;
    padding: 32px 0;
}
.vg-wc-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.vg-wc-fav-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vg-wc-fav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.vg-wc-fav-video {
    position: relative;
    width: 100%;
    padding-bottom: 177%;
    background: #0a0a14;
    overflow: hidden;
}
.vg-wc-fav-video .vg-cover,
.vg-wc-fav-video .vg-embed-container {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}
.vg-wc-fav-video .vg-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vg-wc-fav-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.vg-wc-fav-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    line-height: 1.35;
}
.vg-wc-fav-info p {
    font-size: 13px;
    color: #5a6070;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vg-wc-remove-fav {
    margin-top: auto;
    background: none !important;
    border: 1.5px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}
.vg-wc-remove-fav:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: #fff5f5 !important;
}
@media (max-width: 600px) {
    .vg-wc-fav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}