/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    background: #f9f9f9;
    color: #333;
}

/* 标题 */
h1 {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #007BFF;
}

/* 视频播放器容器 */
.video-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 视频播放器 */
video {
    width: 100%;
    border-radius: 8px;
    background: #eee;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #ddd, #ccc);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #bbb, #aaa);
    transform: scale(1.05);
}

/* 剧集列表容器 */
.playlist {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 剧集列表标题 */
.playlist h2 {
    margin-bottom: 10px;
    font-size: 20px;
    text-align: left;
    padding-left: 10px;
    color: #007BFF;
}

/* 剧集列表 */
.playlist ul {
    list-style: none;
    padding: 0;
    max-height: 200px;  /* 限制高度，避免列表过长 */
    overflow-y: auto;  /* 启用滚动条 */
}

/* 剧集列表项 */
.playlist li {
    padding: 12px;
    margin: 5px 0;
    background: rgba(200, 200, 200, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
    padding-left: 15px;
}

.playlist li:hover {
    background: rgba(150, 150, 150, 0.3);
    transform: scale(1.02);
}

/* 当前播放剧集高亮 */
.playlist li.active {
    background: #007BFF;
    color: #fff;
    font-weight: bold;
}

/* 适配移动端 */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }
    button {
        width: 100%;
        margin-top: 5px;
    }
}