/* C:\xampp\htdocs\windsurf-project\bisdel-digitalz.top\css\reels_player.css */
/* TikTok & Reels Style Vertical Video Player for Bisdel Digitalz */

/* Floating Trigger Badge on Product Page */
.reels-trigger-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d1117 0%, #1e293b 100%);
    color: #ffffff;
    border: 1.5px solid rgba(255, 94, 20, 0.45);
    padding: 9px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 94, 20, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.reels-trigger-badge:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #ff5e14;
    box-shadow: 0 8px 25px rgba(255, 94, 20, 0.45);
    color: #ffffff;
}
.reels-trigger-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5e14;
    box-shadow: 0 0 10px #ff5e14;
    animation: reelsPulse 1.5s infinite;
}
@keyframes reelsPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Modal Overlay Backdrop */
.reels-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.reels-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 9:16 Vertical Smartphone Video Container */
.reels-phone-container {
    width: 100%;
    max-width: 420px;
    height: 92vh;
    max-height: 840px;
    background: #000000;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 576px) {
    .reels-phone-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Video Element */
.reels-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

/* Top Floating Bar */
.reels-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 18px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.reels-badge-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.reels-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.reels-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Big Central Play / Pause Flash Indicator */
.reels-center-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 5;
}
.reels-center-play-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Right TikTok-Style Action Buttons */
.reels-right-actions {
    position: absolute;
    right: 14px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 10;
}
.reel-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.reel-action-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reel-action-item:hover .reel-action-icon-circle {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.35);
}
.reel-action-label {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.reel-liked .fa-heart {
    color: #ef4444 !important;
    animation: heartBounce 0.4s ease;
}
@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Bottom TikTok-Style Product Card & Caption */
.reels-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 16px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 65%, transparent 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reels-caption-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reels-audio-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
}

/* Product Buy Box Inside Reel */
.reels-product-quickbuy {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.reels-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    padding: 2px;
    flex-shrink: 0;
}
.reels-product-info {
    flex: 1;
    min-width: 0;
}
.reels-product-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reels-product-price {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
}
.reels-buy-btn {
    background: #ff5e14;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 7px 15px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 94, 20, 0.4);
    transition: all 0.2s;
    white-space: nowrap;
}
.reels-buy-btn:hover {
    background: #ea580c;
    transform: scale(1.05);
}

/* Scrub Progress Bar */
.reels-progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 4px;
}
.reels-progress-fill {
    width: 0%;
    height: 100%;
    background: #ff5e14;
    transition: width 0.1s linear;
}
