/* استایل کاور */
.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 {
    display: flex;
    flex-wrap: wrap;
    gap:0; 
    justify-content: center;
    padding: 0 40px;

}
.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: #ff4d6d;
        }

        .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, #ff7a5a, #ff4d6d);
            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: #ff7a5a;
        }

        .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: #ff4d6d;
            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, #ff7a5a, #ff4d6d);
            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: #ff7a5a;
            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: #ff4d6d;
            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: #ff4d6d;
            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: #ff4d6d;
        }

        /* ============================================================
           ریسپانسیو
           ============================================================ */
        @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;
            }
        }