/* 视频页面样式 */
.video-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* 主视频区域 */
.main-video {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.video-player {
    width: 100%;
}

.video-player video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-player h2 {
    padding: 1rem;
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.video-info {
    padding: 0 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.video-description {
    padding: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    color: #34495e;
    line-height: 1.6;
}

/* 相关视频区域 */
.related-videos h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-2px);
}

.thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-item .video-info {
    padding: 0.8rem;
}

.video-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.video-item p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.video-item .views {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
    }

    .video-player h2 {
        font-size: 1.2rem;
    }

    .video-info {
        flex-direction: column;
        gap: 0.5rem;
    }
} 