/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* 侧边栏样式 */
.video-sidebar {
    width: 250px;
    margin-right: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.video-sidebar h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.video-list {
    list-style: none;
}

.video-list li {
    margin-bottom: 0.5rem;
}

.video-list li a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.video-list li a:hover {
    background-color: #f0f0f0;
}

.video-list li.active a {
    background-color: #e3f2fd;
}

.video-list img, .thumbnail-placeholder {
    width: 60px;
    height: 40px;
    object-fit: cover;
    margin-right: 0.5rem;
    border-radius: 4px;
}

.thumbnail-placeholder {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.video-list span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区样式 */
.video-main {
    flex: 1;
}

.video-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

video {
    width: 100%;
    display: block;
    outline: none;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.video-source {
    color: #999;
    font-size: 0.875rem;
    text-align: right;
}

.video-source a {
    color: #3498db;
    text-decoration: none;
}

.video-source a:hover {
    text-decoration: underline;
}

.no-videos {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .video-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        max-height: none;
    }
}