/* 自定义样式 */

/* 文字截断 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 视频播放器自定义样式 */
video::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.5);
}

/* 拖拽区域动画 */
#drop-zone {
    transition: all 0.3s ease;
}

#drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.02);
}

/* 卡片悬停效果 */
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 按钮动画 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* 焦点样式 */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 禁用文本选择（拖拽时） */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}
