.apoyl-multivideo-player {
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1400px; /* 最大宽度限制 */
    width: 100%;
}

.video-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.video-container {
    flex: 1;
    min-width: 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* 使用16:9的比例 */
.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.video-container video,
#dplayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.episode-list {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(56.25vw - 40px); /* 与视频区域等高 */
}

.episode-list-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.episode-list-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #18191c;
}
.episode-list-header span {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #18191c;
}
.episode-count {
    color: #666;
    font-size: 14px;
}

.episode-list-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b3b3b3 transparent;
}

.episode-list-content::-webkit-scrollbar {
    width: 6px;
}

.episode-list-content::-webkit-scrollbar-thumb {
    background-color: #b3b3b3;
    border-radius: 3px;
}

.episode-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

.episode-item:hover {
    background-color: #f5f5f5;
}

.episode-item.active {
    color: #fff;
}

.episode-number {
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
}

.episode-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.episode-playing {
    font-size: 12px;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .video-wrapper {
        padding: 15px;
        gap: 15px;
    }

    .episode-list {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .video-wrapper {
        flex-direction: column;
    }

    .episode-list {
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .apoyl-multivideo-player {
        margin: 10px auto;
    }

    .video-wrapper {
        padding: 10px;
    }

    .episode-list {
        max-height: 250px;
    }
}
