/* استایل کاور */
.bb-customer-cover-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.bb-customer-cover {
    position: relative;
    width: 100%;
    height: 350px;
    background: #d1d8dd;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #65676b;
    background: #d1d8dd;
}

.cover-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.cover-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

/* دکمه آپلود کاور */
.cover-upload-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
}

.cover-upload-btn input[type="file"] {
    display: none;
}

.cover-upload-btn label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #050505;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cover-upload-btn label:hover {
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.cover-upload-btn label i {
    font-size: 18px;
}

.cover-upload-btn label .ti-loader {
    animation: cover-spin 1s linear infinite;
}

/* استایل لودینگ کاور */
.cover-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.cover-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

.cover-loading-spinner i {
    font-size: 48px;
    animation: cover-spin 1s linear infinite;
}

.cover-loading-spinner span {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes cover-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .bb-customer-cover {
        height: 200px;
    }

    .cover-upload-btn label span {
        display: none;
    }

    .cover-upload-btn label {
        padding: 8px 12px;
    }

    .cover-loading-spinner i {
        font-size: 32px;
    }

    .cover-loading-spinner span {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .bb-customer-cover {
        height: 150px;
    }
}
.btn-glass {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.2);
}

.btn-glass:active {
    transform: scale(0.9);
}

.btn-glass svg {
    fill: rgba(255, 255, 255, 0.9);
    width: 16px;
    height: 16px;
    transition: fill 0.3s;
}

.btn-glass:hover svg {
    fill: #ffffff;
}
 

/* ===== کانتینر اصلی ===== */
.bb-product-gallery-wrapper { 
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.12);
    padding: 12px;
    transition: all 0.3s ease;
}

/* ===== گالری ===== */
.bb-product-gallery {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* ============================================================
   حالت افقی (پیش‌فرض)
   ============================================================ */
.bb-product-gallery-horizontal {
    flex-direction: column;
}

.bb-product-gallery-horizontal .bb-product-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    width: 100%;
}

.bb-product-gallery-horizontal .bb-product-gallery-images > * {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bb-product-gallery-horizontal .bb-product-gallery-images > *:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.bb-product-gallery-horizontal .bb-product-gallery-images img {
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    transition: transform 0.4s ease;
}

.bb-product-gallery-horizontal .bb-product-gallery-images > *:hover img {
    transform: scale(1.05);
}


/* ===== بندانگشتی‌ها در حالت افقی ===== */ 
 
/* ===== بندانگشتی‌ها در حالت افقی ===== */
.bb-product-gallery-horizontal .bb-product-gallery-thumbnails {
    gap: 8px;      
    padding: 4px 6px;  
}

.bb-product-gallery-horizontal .bb-product-gallery-thumbnails img { 
    height: 80px;
    width: 80px;               
    border-radius: 16px;
    object-fit: cover;
    display: block;
}
 
.bb-product-gallery-horizontal .slick-arrow.slick-prev { 
    top: 32px !important; 
}
.bb-product-gallery-horizontal .slick-arrow.slick-next {
    top: 32px !important; 
}

/* ============================================================
   حالت عمودی
   ============================================================ */
.bb-product-gallery-vertical {
    flex-direction: row-reverse;
    align-items: stretch;
}

.bb-product-gallery-vertical .bb-product-gallery-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  
   border-radius: 20px;
}
 

.bb-product-gallery-vertical .bb-product-gallery-images > * {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bb-product-gallery-vertical .bb-product-gallery-images > *:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.bb-product-gallery-vertical .bb-product-gallery-images img {
     width: 100%;
    height: auto;  
    object-fit: contain;
    transition: transform 0.4s ease;
}

.bb-product-gallery-vertical .bb-product-gallery-images > *:hover img {
    transform: scale(1.03);
}

/* ===== بندانگشتی‌ها در حالت عمودی ===== */
.bb-product-gallery-vertical .bb-product-gallery-thumbnails {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    gap: 0; 
    overflow-y: auto;
    padding-left: 4px;
    scroll-behavior: smooth;
}

 
 
.bb-product-gallery-vertical .bb-product-gallery-thumbnails img { 
    height: 80px;
    width:80px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}
       /* ============================================================
           پنل اصلی
           ============================================================ */
        .bb-person-gallery-video {
            width: 100%; 
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 36px;
            border: 1px solid rgba(255, 255, 255, 0.7);
           
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
        }

        .bb-person-gallery-video:hover {
            transform: translateY(-6px);
           
        }

        /* ============================================================
           هدر
           ============================================================ */
        .bb-person-gallery-video__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding: 0 6px;
        }

        .bb-person-gallery-video__title {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .bb-person-gallery-video__icon-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(255, 122, 90, 0.12), rgba(255, 77, 109, 0.08));
            border: 1px solid rgba(255, 122, 90, 0.15);
        }

        .bb-person-gallery-video__title-text {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a2e;
            letter-spacing: -0.4px;
        }

        .bb-person-gallery-video__title-text span {
            color: var(--secondary-color);
        }

        .bb-person-gallery-video__badge {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 20px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 100px;
            border: 1px solid rgba(255, 122, 90, 0.12);
            font-size: 14px;
            font-weight: 600;
            color: #1a1a2e;
            backdrop-filter: blur(4px);
        }

        .bb-person-gallery-video__badge-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            animation: pulse-dot 1.8s ease-in-out infinite;
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.7); }
        }

        /* ============================================================
           پلیر
           ============================================================ */
        .bb-person-gallery-video__player-wrapper {
            position: relative;
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        }

        .bb-person-gallery-video__player {
            position: relative;
            background: #0a0c14;
            border-radius: 32px;
            overflow: hidden;
        }

        .bb-person-gallery-video__video {
            width: 100%;
            display: block;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            background: #0a0c14;
            border-radius: 32px;
        }

        /* استایل کنترلرهای پیش‌فرض HTML5 */
        .bb-person-gallery-video__video::-webkit-media-controls-panel {
            background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
            backdrop-filter: blur(8px);
            padding: 0 20px 12px;
        }

        .bb-person-gallery-video__video::-webkit-media-controls-play-button {
            color: var(--primary-color);
        }

        .bb-person-gallery-video__video::-webkit-media-controls-timeline {
            border-radius: 4px;
            height: 4px;
        }

        .bb-person-gallery-video__video::-webkit-media-controls-volume-slider {
            border-radius: 4px;
            height: 4px;
        }

        /* برچسب پخش زنده */
        .bb-person-gallery-video__live-badge {
            position: absolute;
            top: 20px;
            right: 24px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px 6px 14px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(12px);
            border-radius: 100px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.5px;
            z-index: 5;
            opacity: 0.7;
            pointer-events: none;
        }

        .bb-person-gallery-video__live-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--secondary-color);
            animation: pulse-dot 1.2s ease-in-out infinite;
        }

        /* ============================================================
           تامب‌نیل‌ها
           ============================================================ */
        .bb-person-gallery-video__thumbnails {
            margin-top: 30px;
            display: flex;
            flex-wrap: nowrap;
            gap: 18px;
            overflow-x: auto;
            padding: 4px 6px 18px 6px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 122, 90, 0.3) transparent;
        }

        .bb-person-gallery-video__thumbnails::-webkit-scrollbar {
            height: 4px;
        }

        .bb-person-gallery-video__thumbnails::-webkit-scrollbar-track {
            background: transparent;
        }

        .bb-person-gallery-video__thumbnails::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 10px;
        }

        .bb-person-gallery-video__thumb-item {
            flex: 0 0 180px;
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 3px solid transparent;
            background: #f8f4ee;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
            position: relative;
        }

        .bb-person-gallery-video__thumb-item:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(255, 122, 90, 0.2);
            box-shadow: 0 20px 50px rgba(255, 77, 109, 0.06);
        }

        .bb-person-gallery-video__thumb-item.active {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(255, 122, 90, 0.12), 0 20px 50px rgba(255, 77, 109, 0.06);
            transform: translateY(-4px);
        }

        .bb-person-gallery-video__thumb-image {
            position: relative;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            background: #e8e2d8;
        }

        .bb-person-gallery-video__thumb-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .bb-person-gallery-video__thumb-item:hover .bb-person-gallery-video__thumb-image img {
            transform: scale(1.06);
        }

        .bb-person-gallery-video__thumb-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(2px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .bb-person-gallery-video__thumb-item:hover .bb-person-gallery-video__thumb-overlay {
            opacity: 1;
        }

        .bb-person-gallery-video__thumb-play {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary-color);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .bb-person-gallery-video__thumb-play svg {
            width: 28px;
            height: 28px;
            fill: var(--secondary-color);
            margin-left: 4px;
        }

        .bb-person-gallery-video__thumb-item:hover .bb-person-gallery-video__thumb-play {
            transform: scale(1.08);
        }

        .bb-person-gallery-video__thumb-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: #fff;
            border-top: 1px solid rgba(0, 0, 0, 0.02);
        }

    

        .bb-person-gallery-video__thumb-number {
            font-size: 12px;
            font-weight: 500;
            color: #a8a8b8;
            letter-spacing: 0.3px;
        }

        .bb-person-gallery-video__thumb-item.active .bb-person-gallery-video__thumb-number {
            color: var(--secondary-color);
        }

        /* ============================================================
           ریسپانسیو
           ============================================================ */
        @media (max-width: 768px) {
            .bb-person-gallery-video {
                padding: 20px 16px 6px;
                border-radius: 32px;
            }

            .bb-person-gallery-video__header {
                flex-wrap: wrap;
                gap: 12px;
            }

            .bb-person-gallery-video__title-text {
                font-size: 18px;
            }

            .bb-person-gallery-video__icon-wrapper {
                width: 40px;
                height: 40px;
            }

            .bb-person-gallery-video__icon-wrapper svg {
                width: 24px;
                height: 24px;
            }

            .bb-person-gallery-video__badge {
                font-size: 12px;
                padding: 6px 14px;
            }

            .bb-person-gallery-video__thumb-item {
                flex: 0 0 140px;
            }

            .bb-person-gallery-video__video {
                border-radius: 20px;
            }

            .bb-person-gallery-video__player-wrapper {
                border-radius: 20px;
            }

            .bb-person-gallery-video__thumb-info {
                padding: 8px 10px;
            }

            .bb-person-gallery-video__thumb-duration {
                font-size: 11px;
                padding: 1px 10px;
            }

            .bb-person-gallery-video__live-badge {
                top: 14px;
                right: 16px;
                font-size: 10px;
                padding: 4px 12px 4px 10px;
            }

            .bb-person-gallery-video__thumb-play {
                width: 42px;
                height: 42px;
            }

            .bb-person-gallery-video__thumb-play svg {
                width: 22px;
                height: 22px;
            }
        }

        @media (max-width: 480px) {
            .bb-person-gallery-video {
                padding: 14px 12px 4px;
                border-radius: 24px;
            }

            .bb-person-gallery-video__thumb-item {
                flex: 0 0 110px;
            }

            .bb-person-gallery-video__title-text {
                font-size: 16px;
            }

            .bb-person-gallery-video__badge {
                font-size: 11px;
                padding: 4px 12px;
            }

            .bb-person-gallery-video__thumbnails {
                gap: 12px;
                margin-top: 20px;
            }
        }
.product-review-progress-bar-title {
    flex-shrink: 0;
    min-width: 160px; 
}/* ======================================================
   استایل گزینه‌های احساس (Emotion Grid - سطری)
   ====================================================== */

/* ===== شبکه سطری ===== */
.emotion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

/* ===== هر گزینه ===== */
.emotion-item {
    position: relative;
    flex: 0 0 auto;
}

.emotion-item .btn-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.emotion-item label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255,255); 
    border: 1.5px solid rgba(255, 255, 255, 0.50);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    font-size: 0.78rem;
    font-weight: 450;
    letter-spacing: 0.2px;
    text-align: center;
    min-height: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    user-select: none;
    white-space: nowrap;
}

.emotion-item label .emoji {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
    filter: saturate(0.4);
}

.emotion-item label .label-text {
    font-size: 0.7rem; 
    transition: all 0.3s ease;
    font-weight: 450;
}

/* ===== هاور ===== */
.emotion-item label:hover {
    background: var(--primary-color); 
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.emotion-item label:hover .emoji {
    transform: scale(1.1) rotate(-2deg);
    filter: saturate(1);
}

.emotion-item label:hover .label-text {
    opacity: 0.85;
}

/* ===== انتخاب‌شده ===== */
.emotion-item .btn-check:checked + label {
    background: var(--primary-color);
    backdrop-filter: blur(12px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.06),
        0 8px 32px rgba(99, 102, 241, 0.04);
    color: #ffffff;
    transform: translateY(-3px);
}

.emotion-item .btn-check:checked + label .emoji {
    transform: scale(1.15);
    filter: saturate(1);
}

.emotion-item .btn-check:checked + label .label-text {
    opacity: 1;
    color: #ffffff;
    font-weight: 500;
}

/* ===== نشانگر انتخاب (تیک) ===== */ 
.emotion-item .btn-check:checked + label::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
    font-weight: 700;
    
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    line-height: 1;
    text-align: center;
}
/* ===== ریسپانسیو ===== */
@media (max-width: 600px) {
    .emotion-item label {
        padding: 8px 14px;
        min-height: 38px;
        font-size: 0.7rem;
    }
    .emotion-item label .emoji {
        font-size: 1rem;
    }
    .emotion-item label .label-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .emotion-grid {
        gap: 6px;
    }
    .emotion-item label {
        padding: 6px 10px;
        min-height: 34px;
        font-size: 0.65rem;
        border-radius: 30px;
    }
    .emotion-item label .emoji {
        font-size: 0.85rem;
    }
    .emotion-item label .label-text {
        font-size: 0.55rem;
    }
}
/* کلاس آواتار رنگی */
.review-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

/* کلاس متن آواتار */
.review-avatar-text {
    line-height: 1;
    user-select: none;
}
.product-review-container .progress .progress-bar {
    background-color: var(--primary-color) !important;
}

#back2top.active {
    bottom: 30px;
    visibility: visible;
    opacity: 1;
}
#back2top { 
    border:none; 
    background-color: var(--primary-color); 
   box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);

}
#back2top:hover {  
    background-color: var(--secondary-color); 
  transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 50px rgba(102, 126, 234, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

}
#back2top i { 
      color:#ffffff;
}
.ps-home-banner .ps-carousel--nav-inside .owl-nav { 
    padding: 0 10px; 
}
.bb-product-gallery-thumbnails .slick-slide {
    margin-bottom: 10px;
    width: 85px !important;
} 
  [dir=rtl] .bb-product-gallery-horizontal .slick-arrow.slick-next {
        inset-inline-start: 97% !important;
    }
   .bb-product-gallery-horizontal .slick-arrow.slick-next {
        inset-inline-start: 97% !important;
    }
/* ============================================
   BB VIDEO GALLERY — Modern Glassmorphism
   ============================================ */

.bb-video-gallery {
    --bb-vg-radius: 20px;
    --bb-vg-radius-sm: 14px;
    --bb-vg-bg: #0f1115;
    --bb-vg-surface: rgba(255, 255, 255, 0.04);
    --bb-vg-surface-hover: rgba(255, 255, 255, 0.08);
    --bb-vg-border: rgba(255, 255, 255, 0.08);
    --bb-vg-border-hover: rgba(255, 255, 255, 0.18);
    --bb-vg-text: #f5f6f8;
    --bb-vg-text-dim: rgba(245, 246, 248, 0.55);
    --bb-vg-accent: #ff5a7a;
    --bb-vg-accent-2: #7a5cff;
    --bb-vg-youtube: #ff0033;
    --bb-vg-aparat: #e62117;
    --bb-vg-vimeo: #1ab7ea;
    --bb-vg-glow: 0 20px 60px -20px rgba(255, 90, 122, 0.35);
    --bb-vg-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --bb-vg-ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: relative;
    padding: 28px;
    border-radius: var(--bb-vg-radius);
    background:
        radial-gradient(1200px 400px at 0% 0%, rgba(122, 92, 255, 0.08), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(255, 90, 122, 0.08), transparent 60%),
        var(--bb-vg-bg);
    border: 1px solid var(--bb-vg-border);
    color: var(--bb-vg-text);
    font-family: inherit;
    overflow: hidden;
}

/* ===== هدر ===== */
.bb-video-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.bb-video-gallery__title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bb-video-gallery__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 90, 122, 0.18), rgba(122, 92, 255, 0.18));
    border: 1px solid var(--bb-vg-border);
    color: var(--bb-vg-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bb-video-gallery__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 0%, #b9b9c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-video-gallery__subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--bb-vg-text-dim);
}

.bb-video-gallery__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bb-vg-surface);
    border: 1px solid var(--bb-vg-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--bb-vg-text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bb-video-gallery__count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bb-vg-accent);
    box-shadow: 0 0 12px var(--bb-vg-accent);
    animation: bb-vg-pulse 1.6s ease-in-out infinite;
}

@keyframes bb-vg-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== پلیر اصلی ===== */
.bb-video-gallery__player-shell {
    position: relative;
    margin-bottom: 24px;
    border-radius: var(--bb-vg-radius);
}

.bb-video-gallery__player-glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--bb-vg-radius) + 2px);
    background: linear-gradient(135deg, rgba(255, 90, 122, 0.5), rgba(122, 92, 255, 0.5));
    filter: blur(20px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.bb-video-gallery__player-inner {
    position: relative;
    z-index: 1;
    border-radius: var(--bb-vg-radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--bb-vg-border);
    box-shadow: var(--bb-vg-shadow);
}

.bb-video-gallery__video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.bb-video-gallery__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
    background: #000;
}

/* ===== برچسب پلتفرم ===== */
.bb-video-gallery__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    transition: transform 0.3s var(--bb-vg-ease);
}

.bb-video-gallery__badge--youtube { background: rgba(255, 0, 51, 0.92); border-color: rgba(255, 0, 51, 0.4); }
.bb-video-gallery__badge--aparat  { background: rgba(230, 33, 23, 0.92); border-color: rgba(230, 33, 23, 0.4); }
.bb-video-gallery__badge--vimeo   { background: rgba(26, 183, 234, 0.92); border-color: rgba(26, 183, 234, 0.4); }
.bb-video-gallery__badge--direct  { background: rgba(255, 90, 122, 0.92); border-color: rgba(255, 90, 122, 0.4); }
.bb-video-gallery__badge--external{ background: rgba(122, 92, 255, 0.92); border-color: rgba(122, 92, 255, 0.4); }

.bb-video-gallery__badge-icon { display: inline-flex; }

/* ===== تامب‌نیل‌ها ===== */
.bb-video-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 4px;
}

.bb-video-gallery__thumb {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: var(--bb-vg-radius-sm);
    outline: none;
    transition: transform 0.4s var(--bb-vg-ease);
}

.bb-video-gallery__thumb-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--bb-vg-radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1c22, #23262e);
    border: 1px solid var(--bb-vg-border);
    transition: border-color 0.3s var(--bb-vg-ease), box-shadow 0.3s var(--bb-vg-ease);
}

.bb-video-gallery__thumb-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--bb-vg-ease), filter 0.4s var(--bb-vg-ease);
    filter: saturate(0.9) brightness(0.9);
}

.bb-video-gallery__thumb-media.no-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 90, 122, 0.25), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(122, 92, 255, 0.25), transparent 60%),
        linear-gradient(135deg, #1a1c22, #23262e);
}

.bb-video-gallery__thumb-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    opacity: 0.7;
    transition: opacity 0.3s var(--bb-vg-ease);
    z-index: 1;
}

.bb-video-gallery__thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.35s var(--bb-vg-ease);
    z-index: 2;
}

.bb-video-gallery__thumb-play svg { margin-right: -2px; }

.bb-video-gallery__thumb-platform {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.bb-video-gallery__thumb-platform--youtube { background: rgba(255, 0, 51, 0.85); }
.bb-video-gallery__thumb-platform--aparat  { background: rgba(230, 33, 23, 0.85); }
.bb-video-gallery__thumb-platform--vimeo   { background: rgba(26, 183, 234, 0.85); }
.bb-video-gallery__thumb-platform--direct  { background: rgba(255, 90, 122, 0.85); }

.bb-video-gallery__thumb-number {
    position: absolute;
    bottom: 8px;
    left: 8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

/* ===== Hover states ===== */
.bb-video-gallery__thumb:hover {
    transform: translateY(-4px);
}

.bb-video-gallery__thumb:hover .bb-video-gallery__thumb-media {
    border-color: var(--bb-vg-border-hover);
    box-shadow: 0 16px 40px -16px rgba(255, 90, 122, 0.5);
}

.bb-video-gallery__thumb:hover .bb-video-gallery__thumb-media img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(1);
}

.bb-video-gallery__thumb:hover .bb-video-gallery__thumb-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bb-video-gallery__thumb:hover .bb-video-gallery__thumb-shade {
    opacity: 0.45;
}

/* ===== Active state ===== */
.bb-video-gallery__thumb.is-active .bb-video-gallery__thumb-media {
    border-color: var(--bb-vg-accent);
    box-shadow:
        0 0 0 2px rgba(255, 90, 122, 0.3),
        0 16px 40px -16px rgba(255, 90, 122, 0.6);
}

.bb-video-gallery__thumb.is-active .bb-video-gallery__thumb-shade {
    background: linear-gradient(180deg, rgba(255, 90, 122, 0.15) 0%, rgba(0,0,0,0.8) 100%);
}

.bb-video-gallery__thumb.is-active .bb-video-gallery__thumb-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--bb-vg-accent);
    border-color: var(--bb-vg-accent);
    box-shadow: 0 0 24px rgba(255, 90, 122, 0.6);
}

.bb-video-gallery__thumb:focus-visible .bb-video-gallery__thumb-media {
    outline: 2px solid var(--bb-vg-accent-2);
    outline-offset: 2px;
}

/* ===== حالت خالی ===== */
.bb-video-gallery__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    border-radius: var(--bb-vg-radius, 20px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.bb-video-gallery__empty-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
}

.bb-video-gallery__empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .bb-video-gallery {
        padding: 18px;
        border-radius: 16px;
    }

    .bb-video-gallery__header {
        margin-bottom: 16px;
    }

    .bb-video-gallery__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .bb-video-gallery__title { font-size: 17px; }

    .bb-video-gallery__thumbs {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .bb-video-gallery__thumb-play {
        width: 36px;
        height: 36px;
    }

    .bb-video-gallery__thumb-play svg { width: 18px; height: 18px; }

    .bb-video-gallery__badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 420px) {
    .bb-video-gallery__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .bb-video-gallery__count {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ===== کاهش انیمیشن برای کاربران حساس ===== */
@media (prefers-reduced-motion: reduce) {
    .bb-video-gallery *,
    .bb-video-gallery *::before,
    .bb-video-gallery *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}