/* 视频列表和播放器样式 */

/* 视频列表容器 */
.video-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* 视频项卡片 */
.video-item {
    background: rgba(80, 80, 80, 0.35);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(120, 120, 120, 0.4);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 浅色背景时的video-item样式 */
.video-item.light-bg {
    background: rgba(80, 80, 80, 0.35);
    border: 1px solid rgba(120, 120, 120, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 深色背景时的video-item样式 */
.video-item.dark-bg {
    background: rgba(101, 101, 101, 0.1);
    border: 1px solid rgba(134, 134, 134, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(82px);
    -webkit-backdrop-filter: blur(82px);
}

.video-item.active {
    background: linear-gradient(135deg, rgba(95, 95, 95, 0.7), rgba(101, 101, 101, 0.1));
    backdrop-filter: blur(55px);
    -webkit-backdrop-filter: blur(55px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.83);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.video-item h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.video-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.video-item .duration {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* 视频播放器 */
.video-player {
    width: 100%;
    max-height: 80vh;
    margin: 40px 0;
    background: rgba(92, 92, 92, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(211, 211, 211, 0.2);
    position: relative;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    backdrop-filter: blur(32px);
}

.video-player.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#mainVideo {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
