/* Video Duration Badge - Top Left Corner */
.product__card {
    position: relative;
}

.product__card__video-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.product__card__video-duration i {
    font-size: 14px;
}

/* Ensure video duration badge is visible on hover */
.product__card:hover .product__card__video-duration {
    background: rgba(0, 0, 0, 0.9);
}

/* For masonry grid items (author assets) */
.author-masonry-item {
    position: relative;
}

.author-masonry-item .product__card__video-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.author-masonry-item .product__card__video-duration i {
    font-size: 14px;
}

.author-masonry-item:hover .product__card__video-duration {
    background: rgba(0, 0, 0, 0.9);
}

/* Asset Type Badge - Top Left Corner (Icon Only, No Background) */
.product__card__asset-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    color: white;
    padding: 8px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    white-space: nowrap;
    border: none;
    width: 32px;
    height: 32px;
    gap: 4px;
}

/* When badge has text (for videos) */
.product__card__asset-type.has-text {
    width: auto;
    padding: 6px 10px;
    justify-content: flex-start;
}

.product__card__asset-type i {
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.product__card__asset-type svg {
    width: 20px;
    height: 16px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.product__card__asset-type .badge-text {
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* Ensure asset type badge is visible on hover */
.product__card:hover .product__card__asset-type {
    transform: scale(1.1);
}

.product__card:hover .product__card__asset-type i,
.product__card:hover .product__card__asset-type .badge-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

.product__card:hover .product__card__asset-type svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1));
}

/* Video Player with Native Controls - Centered */
.video-player-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Minimum height to center properly */
}

.video-player-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain; /* Maintain aspect ratio */
}

/* Ensure video container takes full available space */
.product-details__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Video Purchase Notice Styling */
.video-purchase-notice {
    margin-top: 20px;
}

.video-purchase-notice div {
    transition: all 0.3s ease;
}

.video-purchase-notice div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Format Badges Layout - Max 3 on one line */
.formats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
    max-width: none;
    padding-right: 20px;
    justify-content: flex-start;
}

.photo-formats-section {
    width: 140%;
    max-width: none;
    margin-right: -40%;
    padding-right: 60px;
    overflow: visible;
}

.format-badge-pill {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    min-width: fit-content;
    max-width: calc(33.333% - 4px);
    flex: 0 0 auto;
}

.format-badge-pill:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive: Stack on mobile if needed */
@media (max-width: 768px) {
    .formats-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .format-badge-pill {
        font-size: 13px;
        padding: 6px 12px;
    }
}