/* Video Page Specific Styles */

.search-bar {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
}

.search-icon {
    color: #999;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.clear-search {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-search:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Video List */
.video-list {
    padding: 0 16px;
}

.video-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-item:active {
    transform: translateY(0);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

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

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-content {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.video-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-category {
    background: #fff3e0;
    color: #ff6b35;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.video-date,
.video-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-modal.show {
    display: flex;
}

.video-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.video-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    margin-right: 16px;
    line-height: 1.4;
}

.video-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.video-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.video-modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    display: block;
}

.video-info {
    padding: 20px;
}

.video-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.video-description h1,
.video-description h2,
.video-description h3 {
    margin: 16px 0 8px 0;
    color: #333;
}

.video-description h1 {
    font-size: 18px;
}

.video-description h2 {
    font-size: 16px;
}

.video-description h3 {
    font-size: 15px;
}

.video-description p {
    margin-bottom: 12px;
}

.video-description ul,
.video-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.video-description li {
    margin-bottom: 6px;
}

/* Video Actions */
.video-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.like-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.like-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.share-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.like-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Empty States */
.empty-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* Pagination Styles */
.pagination-container {
    padding: 20px 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #4A90E2;
    color: #4A90E2;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 12px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.page-number:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-number.active {
    background: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

.page-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-modal {
        padding: 10px;
    }
    
    .video-modal-content {
        max-height: 95vh;
    }
    
    .video-modal-header {
        padding: 12px 16px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
    
    .video-info {
        padding: 16px;
    }
    
    .video-container video {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .video-item {
        margin-bottom: 12px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-content {
        padding: 12px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .video-description {
        font-size: 13px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .like-btn,
    .share-btn {
        justify-content: center;
    }
    
    /* 移动端分页样式 */
    .pagination-container {
        padding: 16px 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-numbers {
        margin: 0 8px;
        gap: 2px;
    }
    
    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-info {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}


