/* 搜索结果缩略图样式 */
.post-thumbnails {
    margin-top: 12px;
    margin-bottom: 8px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    text-decoration: none;
}

.thumbnail-item {
    aspect-ratio: 15/16;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.thumbnail-wrapper:hover .thumbnail-image {
    transform: scale(1.05);
}

.thumbnail-wrapper.has-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid #333;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .thumbnails-grid {
        gap: 2px;
    }
    
    .play-icon {
        width: 20px;
        height: 20px;
    }
    
    .play-icon::before {
        border-left: 5px solid #333;
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
    }
}

/* 加载状态 */
.thumbnail-image[src=""], 
.thumbnail-image:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
