/* Grid card styling for video gallery */
.video-grid-card {
    background: white;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: box-shadow 0.2s;
}

.video-grid-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.dark .video-grid-card {
    background: rgb(17, 24, 39);
    border-color: rgb(55, 65, 81);
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Video thumbnail hover effect */
.video-thumbnail-hover {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.video-thumbnail-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-hover::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-thumbnail-hover:hover::after {
    opacity: 1;
}

/* Video loading effect */
.video-loading-enabled {
    position: relative;
    background: #f3f4f6;
}

.video-loading-enabled[data-loading="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: video-shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes video-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Video thumbnail pulse effect for list view */
.video-thumbnail-pulse {
    transition: all 0.15s ease-in-out;
}

.video-thumbnail-pulse:hover {
    transform: scale(1.05);
    border-radius: 8px;
}

/* Improve grid card appearance */
.video-grid-card .fi-ta-cell {
    padding: 0 !important;
}

.video-grid-card .fi-ta-content {
    padding: 1rem;
}

/* Hide unnecessary elements in grid view */
[data-view-mode="grid"] .fi-ta-header-cell {
    display: none !important;
}

/* Grid responsive layout */
@media (max-width: 768px) {
    .video-grid-card {
        margin-bottom: 1rem;
    }
}

/* Video duration badge styling */
.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Video file size styling */
.video-filesize {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .video-filesize {
    color: #9ca3af;
}
