﻿@charset "utf-8";
/* ========== 老飞飞视频播放板块（适配优酷） ========== */
.video-section {
    margin-bottom: 60px;
    padding: 20px 0;
}

.video-header {
    text-align: center;
    margin-bottom: 30px;
}

.video-header h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.video-header p {
    color: #ccc;
    font-size: 16px;
}

/* 视频分类标签 */
.video-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.video-tab {
    padding: 8px 20px;
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #222;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.video-tab.active {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

.video-tab:hover:not(.active) {
    border-color: #ff6b00;
    color: #fff;
}

/* 优酷视频播放容器（替换原生video） */
.video-player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    padding-top: 56.25%; /* 16:9 比例，适配优酷视频 */
}

#youku-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* 移除iframe边框 */
    display: none;
}

/* 视频列表 */
.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

.video-item-info {
    padding: 15px;
}

.video-item-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-item-desc {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* 加载状态 */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .video-item-info {
        padding: 10px;
    }
    
    .video-item-title {
        font-size: 14px;
    }
    
    .video-tab {
        padding: 6px 15px;
        font-size: 13px;
    }
}